|
My Project
|
system events struct More...
#include <EventClasses.h>
Public Types | |
| enum | SystemEventType { SYS_COMMANDLINE = 0, SYS_WM_CLOSE = 1, SYS_WM_DROPFILES = 2, SYS_WM_DESTROY = 3, SYS_WM_SETTINGCHANGE = 4 } |
Public Member Functions | |
| SystemEvent (int nType, const string &sCode) | |
| virtual int | GetEventType () const |
| get event type | |
| string | ToScriptCode () const |
| build script code and return. More... | |
| virtual bool | IsAsyncMode () |
| return true, if firing event does not immediately invoke the handler. More... | |
| void | SetAsyncMode (bool bAsync) |
| set whether firing event does not immediately invoke the handler. More... | |
Public Member Functions inherited from ParaEngine::IEvent | |
| virtual bool | IsAsyncMode () const |
| return true, if firing event does not immediately invoke the handler. More... | |
| virtual int | GetEventID () const |
| get event id | |
Public Attributes | |
| int | m_nType |
| string | m_sCode |
| bool | m_bIsAsyncMode |
system events struct
|
inlinevirtual |
return true, if firing event does not immediately invoke the handler.
|
inline |
set whether firing event does not immediately invoke the handler.
caution: almost all event should be fired in async mode. Sync Mode event is only used internally by a few system messages like the WM_CLOSED message.
|
virtual |
build script code and return.
it does not cache the script code. Use GetScriptCode() instead for performance reason.
Reimplemented from ParaEngine::IEvent.
1.8.12