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

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

Member Function Documentation

void* osgWidget::Event::getData ( )
inline
const void* osgWidget::Event::getData ( ) const
inline
Widget* osgWidget::Event::getWidget ( )
inline
const Widget* osgWidget::Event::getWidget ( ) const
inline
Window* osgWidget::Event::getWindow ( )
inline
const Window* osgWidget::Event::getWindow ( ) const
inline
WindowManager* osgWidget::Event::getWindowManager ( )
inline
const WindowManager* osgWidget::Event::getWindowManager ( ) const
inline
Event& osgWidget::Event::makeKey ( int  _key,
int  _keyMask,
EventType  _type = EVENT_NONE 
)
inline

References osgWidget::EVENT_NONE.

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

References osgWidget::EVENT_NONE.

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

References osgWidget::EVENT_NONE.

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

Friends And Related Function Documentation

friend class Window
friend
friend class WindowManager
friend

Member Data Documentation

void* osgWidget::Event::_data
protected
Widget* osgWidget::Event::_widget
protected
Window* osgWidget::Event::_window
protected
WindowManager* osgWidget::Event::_wm
protected
int osgWidget::Event::key
int osgWidget::Event::keyMask
EventType osgWidget::Event::type
double osgWidget::Event::x
double osgWidget::Event::y

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