My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::MouseEvent Struct Reference

simple mouse event struct More...

#include <EventClasses.h>

Inheritance diagram for ParaEngine::MouseEvent:
ParaEngine::IEvent

Public Member Functions

 MouseEvent (DWORD MouseState, int x, int y)
 
 MouseEvent (DWORD MouseState, int x, int y, int nEventType)
 
virtual int GetEventType () const
 get event type
 
string ToScriptCode () const
 build script code and return. 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

DWORD m_MouseState
 
int m_x
 
int m_y
 
int m_nEventType
 EM_MOUSE_MOVE or EM_MOUSE_CLICK, EM_MOUSE_DOWN, EM_MOUSE_UP, etc. More...
 

Detailed Description

simple mouse event struct

Member Function Documentation

§ ToScriptCode()

std::string MouseEvent::ToScriptCode ( ) const
virtual

build script code and return.

it does not cache the script code. Use GetScriptCode() instead for performance reason.

Reimplemented from ParaEngine::IEvent.

Member Data Documentation

§ m_nEventType

int ParaEngine::MouseEvent::m_nEventType

EM_MOUSE_MOVE or EM_MOUSE_CLICK, EM_MOUSE_DOWN, EM_MOUSE_UP, etc.


The documentation for this struct was generated from the following files: