14#ifndef GRAPHICSWINDOWPROCCALLBACKDATA_H
15#define GRAPHICSWINDOWPROCCALLBACKDATA_H
28class EXPCL_PANDA_DISPLAY GraphicsWindowProcCallbackData :
public CallbackData {
30 INLINE GraphicsWindowProcCallbackData(
GraphicsWindow* graphicsWindow);
35 INLINE
void set_hwnd(uintptr_t hwnd);
36 INLINE
void set_msg(
int msg);
37 INLINE
void set_wparam(
int wparam);
38 INLINE
void set_lparam(
int lparam);
42 virtual void output(std::ostream &out)
const;
45 INLINE uintptr_t get_hwnd()
const;
46 INLINE
int get_msg()
const;
47 INLINE
int get_wparam()
const;
48 INLINE
int get_lparam()
const;
68 static void init_type() {
69 CallbackData::init_type();
71 CallbackData::get_class_type());
74 return get_class_type();
76 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool is_touch_event()
Returns whether the event is a touch event.
int get_num_touches()
Returns the current number of touches on the window.
GraphicsWindow * get_graphics_window() const
Returns the GraphicsWindow that generated this event.
TouchInfo get_touch_info(int index)
Returns the TouchInfo object describing the specified touch.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
Stores information for a single touch event.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.