Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
GraphicsWindowProcCallbackData Class Reference

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"

Inheritance diagram for GraphicsWindowProcCallbackData:
CallbackData TypedObject MemoryBase

Public Member Functions

 GraphicsWindowProcCallbackData (GraphicsWindow *graphicsWindow)
 
virtual TypeHandle force_init_type ()
 
GraphicsWindowget_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 (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.
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
const TypedObjectas_typed_object () const
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
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.
 
bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.
 
bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.
 
TypedObjectoperator= (const TypedObject &copy)=default
 
- Public Member Functions inherited from MemoryBase
void operator delete (void *, void *)
 
void operator delete (void *ptr)
 
void operator delete[] (void *, void *)
 
void operator delete[] (void *ptr)
 
void * operator new (size_t size)
 
void * operator new (size_t size, void *ptr)
 
void * operator new[] (size_t size)
 
void * operator new[] (size_t size, void *ptr)
 

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.
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
 get_type
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GraphicsWindowProcCallbackData()

GraphicsWindowProcCallbackData::GraphicsWindowProcCallbackData ( GraphicsWindow * graphicsWindow)
inline

Definition at line 17 of file graphicsWindowProcCallbackData.I.

Member Function Documentation

◆ force_init_type()

virtual TypeHandle GraphicsWindowProcCallbackData::force_init_type ( )
inlinevirtual

Reimplemented from CallbackData.

Definition at line 76 of file graphicsWindowProcCallbackData.h.

◆ get_class_type()

static TypeHandle GraphicsWindowProcCallbackData::get_class_type ( )
inlinestatic

Definition at line 65 of file graphicsWindowProcCallbackData.h.

◆ get_graphics_window()

GraphicsWindow * GraphicsWindowProcCallbackData::get_graphics_window ( ) const
inline

Returns the GraphicsWindow that generated this event.

Definition at line 25 of file graphicsWindowProcCallbackData.I.

◆ get_num_touches()

int GraphicsWindowProcCallbackData::get_num_touches ( )

Returns the current number of touches on the window.

Definition at line 44 of file graphicsWindowProcCallbackData.cxx.

References GraphicsWindow::get_num_touches().

◆ get_touch_info()

TouchInfo GraphicsWindowProcCallbackData::get_touch_info ( int index)

Returns the TouchInfo object describing the specified touch.

Definition at line 53 of file graphicsWindowProcCallbackData.cxx.

References GraphicsWindow::get_touch_info().

◆ get_type()

virtual TypeHandle GraphicsWindowProcCallbackData::get_type ( ) const
inlinevirtual

Reimplemented from CallbackData.

Definition at line 73 of file graphicsWindowProcCallbackData.h.

◆ init_type()

static void GraphicsWindowProcCallbackData::init_type ( )
inlinestatic

Definition at line 68 of file graphicsWindowProcCallbackData.h.

◆ is_touch_event()

bool GraphicsWindowProcCallbackData::is_touch_event ( )

Returns whether the event is a touch event.

Definition at line 35 of file graphicsWindowProcCallbackData.cxx.

References GraphicsWindow::is_touch_event().

◆ output()

void GraphicsWindowProcCallbackData::output ( std::ostream & out) const
virtual

Reimplemented from CallbackData.

Definition at line 22 of file graphicsWindowProcCallbackData.cxx.


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