Osiris Framework
0.3
|
Class for mouse click events. More...
#include <OsirisSDK/OEvent.h>
Public Types | |
enum | MouseButton { NoButton =0x0, RightButton =GLUT_RIGHT_BUTTON, MiddleButton =GLUT_MIDDLE_BUTTON, LeftButton =GLUT_LEFT_BUTTON } |
enum | MouseStatus { Release =GLUT_UP, Press =GLUT_DOWN } |
Public Types inherited from OEvent | |
enum | EventType { KeyboardPressEvent =1000, KeyboardReleaseEvent, MouseClickEvent, MouseActiveMoveEvent, MousePassiveMoveEvent, ResizeEvent } |
Public Member Functions | |
OMouseClickEvent (MouseButton btn, MouseStatus status, int x, int y) | |
Class constructor. More... | |
virtual | ~OMouseClickEvent () |
Class destructor. | |
MouseButton | button () const |
Mouse button that generated the event. | |
MouseStatus | status () const |
Mouse button status: pressed or released. | |
int | x () const |
Window X-axis component in pixels. | |
int | y () const |
Window Y-axis component in pixels. | |
Public Member Functions inherited from OMemoryPoolEvent | |
OMemoryPoolEvent (OEvent::EventType type) | |
Class constructor. More... | |
virtual | ~OMemoryPoolEvent () |
Class destructor. | |
Public Member Functions inherited from OEvent | |
OEvent (EventType type) | |
Class constructor. More... | |
virtual | ~OEvent () |
Class destructor. | |
EventType | type () const |
Returns event type. | |
Public Member Functions inherited from OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE > | |
OMemoryPoolObject () | |
Class constructor. | |
virtual | ~OMemoryPoolObject () |
Class destructor. | |
void * | operator new (size_t sz) |
void | operator delete (void *ptr) |
Additional Inherited Members | |
Static Public Member Functions inherited from OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE > | |
static OMemoryPool * | memoryPool () |
Class for mouse click events.
OMouseClickEvent::OMouseClickEvent | ( | OMouseClickEvent::MouseButton | btn, |
OMouseClickEvent::MouseStatus | status, | ||
int | x, | ||
int | y | ||
) |
Class constructor.
btn | Mouse button that generated the event. |
status | Status of the mouse button: released or pressed. |
x | Window X-axis component in pixels. |
y | Window Y-axis component in pixels. |