OpenSceneGraph 3.6.5
osgWidget::EventInterface Class Reference

#include <EventInterface>

Inheritance diagram for osgWidget::EventInterface:

Public Types

typedef std::list< osg::ref_ptr< Callback > > CallbackList

Public Member Functions

 EventInterface ()
 EventInterface (const EventInterface &ei)
virtual ~EventInterface ()
virtual bool focus (const WindowManager *)
virtual bool unfocus (const WindowManager *)
virtual bool mouseEnter (double, double, const WindowManager *)
virtual bool mouseOver (double, double, const WindowManager *)
virtual bool mouseLeave (double, double, const WindowManager *)
virtual bool mouseDrag (double, double, const WindowManager *)
virtual bool mousePush (double, double, const WindowManager *)
virtual bool mouseRelease (double, double, const WindowManager *)
virtual bool mouseScroll (double, double, const WindowManager *)
virtual bool keyDown (int, int, const WindowManager *)
virtual bool keyUp (int, int, const WindowManager *)
void setEventMask (unsigned int mask)
void addEventMask (unsigned int mask)
void removeEventMask (unsigned int mask)
unsigned int getEventMask () const
CallbackListgetCallbacks ()
const CallbackListgetCallbacks () const
void addCallback (Callback *cb)
bool callCallbacks (Event &ev)
bool callMethodAndCallbacks (Event &ev)
bool canFocus () const
bool canUnfocus () const
bool canMouseEnter () const
bool canMouseOver () const
bool canMouseLeave () const
bool canMouseDrag () const
bool canMousePush () const
bool canMouseRelease () const
bool canMouseScroll () const
bool canKeyDown () const
bool canKeyUp () const

Member Typedef Documentation

◆ CallbackList

Constructor & Destructor Documentation

◆ EventInterface() [1/2]

osgWidget::EventInterface::EventInterface ( )
inline

References osgWidget::EVENT_NONE.

Referenced by EventInterface().

◆ EventInterface() [2/2]

osgWidget::EventInterface::EventInterface ( const EventInterface & ei)
inline

References EventInterface().

◆ ~EventInterface()

virtual osgWidget::EventInterface::~EventInterface ( )
inlinevirtual

Member Function Documentation

◆ addCallback()

◆ addEventMask()

void osgWidget::EventInterface::addEventMask ( unsigned int mask)
inline

◆ callCallbacks()

bool osgWidget::EventInterface::callCallbacks ( Event & ev)
inline

◆ callMethodAndCallbacks()

◆ canFocus()

bool osgWidget::EventInterface::canFocus ( ) const
inline

◆ canKeyDown()

bool osgWidget::EventInterface::canKeyDown ( ) const
inline

◆ canKeyUp()

bool osgWidget::EventInterface::canKeyUp ( ) const
inline

◆ canMouseDrag()

bool osgWidget::EventInterface::canMouseDrag ( ) const
inline

◆ canMouseEnter()

bool osgWidget::EventInterface::canMouseEnter ( ) const
inline

◆ canMouseLeave()

bool osgWidget::EventInterface::canMouseLeave ( ) const
inline

◆ canMouseOver()

bool osgWidget::EventInterface::canMouseOver ( ) const
inline

◆ canMousePush()

bool osgWidget::EventInterface::canMousePush ( ) const
inline

◆ canMouseRelease()

bool osgWidget::EventInterface::canMouseRelease ( ) const
inline

◆ canMouseScroll()

bool osgWidget::EventInterface::canMouseScroll ( ) const
inline

◆ canUnfocus()

bool osgWidget::EventInterface::canUnfocus ( ) const
inline

◆ focus()

virtual bool osgWidget::EventInterface::focus ( const WindowManager * )
inlinevirtual

◆ getCallbacks() [1/2]

CallbackList & osgWidget::EventInterface::getCallbacks ( )
inline

◆ getCallbacks() [2/2]

const CallbackList & osgWidget::EventInterface::getCallbacks ( ) const
inline

◆ getEventMask()

unsigned int osgWidget::EventInterface::getEventMask ( ) const
inline

◆ keyDown()

virtual bool osgWidget::EventInterface::keyDown ( int ,
int ,
const WindowManager *  )
inlinevirtual

Reimplemented in osgWidget::Input.

Referenced by callMethodAndCallbacks().

◆ keyUp()

virtual bool osgWidget::EventInterface::keyUp ( int ,
int ,
const WindowManager *  )
inlinevirtual

Reimplemented in osgWidget::Input.

Referenced by callMethodAndCallbacks().

◆ mouseDrag()

virtual bool osgWidget::EventInterface::mouseDrag ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mouseEnter()

virtual bool osgWidget::EventInterface::mouseEnter ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mouseLeave()

virtual bool osgWidget::EventInterface::mouseLeave ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mouseOver()

virtual bool osgWidget::EventInterface::mouseOver ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mousePush()

virtual bool osgWidget::EventInterface::mousePush ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mouseRelease()

virtual bool osgWidget::EventInterface::mouseRelease ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ mouseScroll()

virtual bool osgWidget::EventInterface::mouseScroll ( double ,
double ,
const WindowManager *  )
inlinevirtual

◆ removeEventMask()

void osgWidget::EventInterface::removeEventMask ( unsigned int mask)
inline

◆ setEventMask()

void osgWidget::EventInterface::setEventMask ( unsigned int mask)
inline

◆ unfocus()

virtual bool osgWidget::EventInterface::unfocus ( const WindowManager * )
inlinevirtual

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

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.