OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
osgWidget::EventInterface Class Reference

#include <EventInterface.h>

Inheritance diagram for osgWidget::EventInterface:
Inheritance graph
[legend]

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
 

Detailed Description

Definition at line 267 of file EventInterface.h.

Member Typedef Documentation

Definition at line 317 of file EventInterface.h.

Constructor & Destructor Documentation

osgWidget::EventInterface::EventInterface ( )
inline

Definition at line 270 of file EventInterface.h.

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

Definition at line 272 of file EventInterface.h.

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

Definition at line 276 of file EventInterface.h.

Member Function Documentation

void osgWidget::EventInterface::addCallback ( Callback cb)
inline

Definition at line 322 of file EventInterface.h.

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

Definition at line 305 of file EventInterface.h.

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

Definition at line 326 of file EventInterface.h.

Here is the call graph for this function:

bool osgWidget::EventInterface::callMethodAndCallbacks ( Event ev)
inline

Definition at line 343 of file EventInterface.h.

Here is the call graph for this function:

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

Definition at line 393 of file EventInterface.h.

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

Definition at line 404 of file EventInterface.h.

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

Definition at line 405 of file EventInterface.h.

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

Definition at line 399 of file EventInterface.h.

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

Definition at line 396 of file EventInterface.h.

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

Definition at line 398 of file EventInterface.h.

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

Definition at line 397 of file EventInterface.h.

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

Definition at line 400 of file EventInterface.h.

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

Definition at line 401 of file EventInterface.h.

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

Definition at line 402 of file EventInterface.h.

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

Definition at line 394 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, osgWidget::NotifyWidget, and osgWidget::Input.

Definition at line 284 of file EventInterface.h.

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

Definition at line 319 of file EventInterface.h.

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

Definition at line 320 of file EventInterface.h.

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

Definition at line 313 of file EventInterface.h.

Here is the caller graph for this function:

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

Reimplemented in osgWidget::Input.

Definition at line 298 of file EventInterface.h.

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

Reimplemented in osgWidget::Input.

Definition at line 299 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, and osgWidget::NotifyWidget.

Definition at line 288 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, and osgWidget::NotifyWidget.

Definition at line 290 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, and osgWidget::NotifyWidget.

Definition at line 289 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, osgWidget::NotifyWidget, and osgWidget::Input.

Definition at line 292 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, osgWidget::NotifyWidget, and osgWidget::Input.

Definition at line 293 of file EventInterface.h.

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

Reimplemented in osgWidget::NullWidget, and osgWidget::NotifyWidget.

Definition at line 294 of file EventInterface.h.

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

Definition at line 309 of file EventInterface.h.

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

Definition at line 301 of file EventInterface.h.

Here is the caller graph for this function:

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

Reimplemented in osgWidget::NullWidget, osgWidget::NotifyWidget, and osgWidget::Input.

Definition at line 285 of file EventInterface.h.


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