openscenegraph
Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
osgWidget::Event Class Reference

Public Member Functions

 Event (WindowManager *wm, EventType _type=EVENT_NONE)
 
Event & makeType (EventType _type)
 
Event & makeMouse (double _x, double _y, EventType _type=EVENT_NONE)
 
Event & makeKey (int _key, int _keyMask, EventType _type=EVENT_NONE)
 
WindowManager * getWindowManager ()
 
const WindowManager * getWindowManager () const
 
Window * getWindow ()
 
const Window * getWindow () const
 
Widget * getWidget ()
 
const Widget * getWidget () const
 
void * getData ()
 
const void * getData () const
 
void setData (void *data)
 

Public Attributes

EventType type
 
double x
 
double y
 
int key
 
int keyMask
 

Protected Attributes

WindowManager * _wm
 
Window * _window
 
Widget * _widget
 
void * _data
 

Friends

class WindowManager
 
class Window
 

Constructor & Destructor Documentation

§ Event()

osgWidget::Event::Event ( WindowManager *  wm,
EventType  _type = EVENT_NONE 
)
inline

Member Function Documentation

§ getData() [1/2]

void* osgWidget::Event::getData ( )
inline

§ getData() [2/2]

const void* osgWidget::Event::getData ( ) const
inline

§ getWidget() [1/2]

Widget* osgWidget::Event::getWidget ( )
inline

§ getWidget() [2/2]

const Widget* osgWidget::Event::getWidget ( ) const
inline

§ getWindow() [1/2]

Window* osgWidget::Event::getWindow ( )
inline

§ getWindow() [2/2]

const Window* osgWidget::Event::getWindow ( ) const
inline

§ getWindowManager() [1/2]

WindowManager* osgWidget::Event::getWindowManager ( )
inline

§ getWindowManager() [2/2]

const WindowManager* osgWidget::Event::getWindowManager ( ) const
inline

§ makeKey()

Event& osgWidget::Event::makeKey ( int  _key,
int  _keyMask,
EventType  _type = EVENT_NONE 
)
inline

§ makeMouse()

Event& osgWidget::Event::makeMouse ( double  _x,
double  _y,
EventType  _type = EVENT_NONE 
)
inline

§ makeType()

Event& osgWidget::Event::makeType ( EventType  _type)
inline

§ setData()

void osgWidget::Event::setData ( void *  data)
inline

Friends And Related Function Documentation

§ Window

friend class Window
friend

§ WindowManager

friend class WindowManager
friend

Member Data Documentation

§ _data

void* osgWidget::Event::_data
protected

§ _widget

Widget* osgWidget::Event::_widget
protected

§ _window

Window* osgWidget::Event::_window
protected

§ _wm

WindowManager* osgWidget::Event::_wm
protected

§ key

int osgWidget::Event::key

§ keyMask

int osgWidget::Event::keyMask

§ type

EventType osgWidget::Event::type

§ x

double osgWidget::Event::x

§ y

double osgWidget::Event::y

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