Osiris Framework  0.3
OMouseClickEvent Class Reference

Class for mouse click events. More...

#include <OsirisSDK/OEvent.h>

Inheritance diagram for OMouseClickEvent:
OMemoryPoolEvent OEvent OMemoryPoolObject< OEVENT_MP_BLOCKSIZE, OEVENT_MP_SEGMENTSIZE >

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 OMemoryPoolmemoryPool ()
 

Detailed Description

Class for mouse click events.

Constructor & Destructor Documentation

OMouseClickEvent::OMouseClickEvent ( OMouseClickEvent::MouseButton  btn,
OMouseClickEvent::MouseStatus  status,
int  x,
int  y 
)

Class constructor.

Parameters
btnMouse button that generated the event.
statusStatus of the mouse button: released or pressed.
xWindow X-axis component in pixels.
yWindow Y-axis component in pixels.

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