prime/include/MetroidPrime/CIOWin.hpp

46 lines
997 B
C++
Raw Permalink Normal View History

#ifndef _CIOWIN
#define _CIOWIN
#include "types.h"
#include "rstl/string.hpp"
class CArchitectureMessage;
class CArchitectureQueue;
class CIOWin {
public:
enum EMessageReturn {
kMR_Normal = 0,
kMR_Exit = 1,
kMR_RemoveIOWinAndExit = 2,
kMR_RemoveIOWin = 3,
};
2022-10-08 09:21:38 +00:00
CIOWin(const rstl::string& name);
virtual ~CIOWin();
2022-10-08 09:21:38 +00:00
const rstl::string& GetName() const;
virtual EMessageReturn OnMessage(const CArchitectureMessage&, CArchitectureQueue&) = 0;
virtual bool GetIsContinueDraw() const;
2022-10-08 09:21:38 +00:00
virtual void Draw() const;
virtual void PreDraw() const;
private:
rstl::string x4_name;
};
2022-12-07 05:52:23 +00:00
#define kFrontEndUIMsgPriority 12
#define kFrontEndUIDrawPriority 11
#define kMFGameMsgPriority 10
#define kMFGameDrawPriority 1000
// namespace IOWinPriorities {
// static int kFrontEndUIMsgPriority = 12;
// static int kFrontEndUIDrawPriority = 11;
// static int kMFGameMsgPriority = 10;
// static int kMFGameDrawPriority = 1000;
// } // namespace IOWinPriorities
#endif // _CIOWIN