Panda3D
|
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. | |
int | get_num_touches () |
Returns the current number of touches on the window. | |
TouchInfo | get_touch_info (int index) |
Returns the TouchInfo object describing the specified touch. | |
virtual TypeHandle | get_type () const |
bool | is_touch_event () |
Returns whether the event is a touch event. | |
virtual void | output (ostream &out) const |
Static Public Member Functions | |
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. |
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 30 of file graphicsWindowProcCallbackData.h.
GraphicsWindow * GraphicsWindowProcCallbackData::get_graphics_window | ( | ) | const [inline] |
Returns the GraphicsWindow that generated this event.
Definition at line 31 of file graphicsWindowProcCallbackData.I.
Returns the current number of touches on the window.
Definition at line 51 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 62 of file graphicsWindowProcCallbackData.cxx.
References GraphicsWindow::get_touch_info().
static void GraphicsWindowProcCallbackData::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from CallbackData.
Definition at line 70 of file graphicsWindowProcCallbackData.h.
References CallbackData::init_type().
Returns whether the event is a touch event.
Definition at line 40 of file graphicsWindowProcCallbackData.cxx.
References GraphicsWindow::is_touch_event().