2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CIOWIN
|
|
|
|
#define _CIOWIN
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
#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);
|
2022-09-13 04:26:54 +00:00
|
|
|
virtual ~CIOWin();
|
2022-10-08 09:21:38 +00:00
|
|
|
|
|
|
|
const rstl::string& GetName() const;
|
2022-09-13 04:26:54 +00:00
|
|
|
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;
|
2022-09-13 04:26:54 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
rstl::string x4_name;
|
|
|
|
};
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CIOWIN
|