This specialization on CallbackData is passed when the callback is initiated from from an implementation of the GraphicsWindowProc class, such as PythonGraphicsWindowProc. More...
#include "graphicsWindowProcCallbackData.h"
Public Member Functions | |
GraphicsWindowProcCallbackData (GraphicsWindow *graphicsWindow) | |
virtual TypeHandle | force_init_type () |
GraphicsWindow * | get_graphics_window () const |
Returns the GraphicsWindow that generated this event. More... | |
int | get_num_touches () |
Returns the current number of touches on the window. More... | |
TouchInfo | get_touch_info (int index) |
Returns the TouchInfo object describing the specified touch. More... | |
virtual TypeHandle | get_type () const |
bool | is_touch_event () |
Returns whether the event is a touch event. More... | |
virtual void | output (std::ostream &out) const |
Public Member Functions inherited from CallbackData | |
virtual void | upcall () |
You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback. More... | |
Public Member Functions inherited from TypedObject | |
TypedObject (const TypedObject ©)=default | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. More... | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. More... | |
TypedObject & | operator= (const TypedObject ©)=default |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Static Public Member Functions inherited from CallbackData | |
static TypeHandle | get_class_type () |
static void | init_type () |
Static Public Member Functions inherited from TypedObject | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. More... | |
Additional Inherited Members | |
Public Attributes inherited from TypedObject | |
get_type | |
This specialization on CallbackData is passed when the callback is initiated from from an implementation of the GraphicsWindowProc class, such as PythonGraphicsWindowProc.
Definition at line 28 of file graphicsWindowProcCallbackData.h.
|
inline |
Returns the GraphicsWindow that generated this event.
Definition at line 26 of file graphicsWindowProcCallbackData.I.
int GraphicsWindowProcCallbackData::get_num_touches | ( | ) |
Returns the current number of touches on the window.
Definition at line 45 of file graphicsWindowProcCallbackData.cxx.
References GraphicsWindow::get_num_touches().
TouchInfo GraphicsWindowProcCallbackData::get_touch_info | ( | int | index | ) |
Returns the TouchInfo object describing the specified touch.
Definition at line 54 of file graphicsWindowProcCallbackData.cxx.
References GraphicsWindow::get_touch_info().
bool GraphicsWindowProcCallbackData::is_touch_event | ( | ) |
Returns whether the event is a touch event.
Definition at line 36 of file graphicsWindowProcCallbackData.cxx.
References GraphicsWindow::is_touch_event().