daedalus/Source/SysPSP/UI/UIScreen.h
2020-08-22 18:42:41 +10:00

48 lines
1.2 KiB
C++

/*
Copyright (C) 2006 StrmnNrmn
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef SYSPSP_UI_UISCREEN_H_
#define SYSPSP_UI_UISCREEN_H_
#include "Base/Types.h"
class v2;
class c32;
class CUIContext;
class CUIComponent;
class CUIScreen
{
public:
CUIScreen( CUIContext * p_context );
virtual ~CUIScreen();
virtual void Update( float elapsed_time, const v2 & stick, u32 old_buttons, u32 new_buttons ) = 0;
virtual void Render() = 0;
virtual bool IsFinished() const = 0;
void Run();
protected:
CUIContext * mpContext;
};
#endif // SYSPSP_UI_UISCREEN_H_