DGLE2   Young, strong and crazy!
Public Member Functions | List of all members
IBaseEvent Class Referenceabstract

Base interface of any engine event. More...

#include <DGLE.h>

Inheritance diagram for IBaseEvent:
IDGLE_Base IEvBeforeInitialization IEvConsoleWrite IEvFatalMessage IEvGetSubSystem IEvGoFullScreen IEvWindowMessage

Public Member Functions

virtual DGLE_RESULT DGLE_API GetEventType (E_EVENT_TYPE &eEvType)=0
 Returns type of event.
 
virtual DGLE_RESULT DGLE_API GetUnknownEventType (uint &uiUnknEvType)=0
 In case event type is ET_UNKNOWN, you can use this function to get specific event type id.
 
- Public Member Functions inherited from IDGLE_Base
virtual DGLE_RESULT DGLE_API GetGUID (GUID &guid)=0
 Returns unique identifier of the last interface in the inheritance chain.
 
virtual DGLE_RESULT DGLE_API ExecuteCommand (uint uiCmd, TVariant &stVar)=0
 Executes some command using its index or bitmask.
 
virtual DGLE_RESULT DGLE_API ExecuteTextCommand (const char *pcCommand, TVariant &stVar)=0
 Executes some text command and returns result as variant.
 
virtual DGLE_RESULT DGLE_API ExecuteTextCommandEx (const char *pcCommand, char *pcResult, uint &uiCharsCount)=0
 Executes some text command and returns result as string.
 

Detailed Description

Base interface of any engine event.

See Also
IEngineCore::AddEventListener, IEngineCore::RemoveEventListener

Member Function Documentation

virtual DGLE_RESULT DGLE_API GetEventType ( E_EVENT_TYPE eEvType)
pure virtual

Returns type of event.

Parameters
[out]eEvTypeType of the event. You may cast this interface pointer to special event interface if such exists.
Returns
Always returns DGLE_Types.h::S_OK.
virtual DGLE_RESULT DGLE_API GetUnknownEventType ( uint uiUnknEvType)
pure virtual

In case event type is ET_UNKNOWN, you can use this function to get specific event type id.

Parameters
[out]uiUnknEvTypeInteger with unique event type index. Meaning of these indexes must be provided by the developer of specific event type.
Returns
Returns DGLE_Types.h::S_FALSE if event is not of ET_UNKNOWN type and DGLE_Types.h::S_OK otherwise.

Sun Nov 16 2014 09:47:29   Generated by   doxygen   Content copyrighted to DGLE Team