34class EXPCL_PANDA_DISPLAY WindowHandle :
public TypedReferenceCount {
38 INLINE WindowHandle(
OSHandle *os_handle);
39 INLINE WindowHandle(
const WindowHandle ©);
40 virtual ~WindowHandle();
50 void output(std::ostream &out)
const;
63 class EXPCL_PANDA_DISPLAY OSHandle :
public TypedReferenceCount {
70 virtual void output(std::ostream &out)
const;
76 static void init_type() {
77 TypedReferenceCount::init_type();
79 TypedReferenceCount::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
93 PT(WindowHandle) _keyboard_window;
99 static void init_type() {
100 TypedReferenceCount::init_type();
102 TypedReferenceCount::get_class_type());
104 virtual TypeHandle get_type()
const {
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
110 static TypeHandle _type_handle;
115INLINE std::ostream &operator << (std::ostream &out,
const WindowHandle &handle) {
TypeHandle is the identifier used to differentiate C++ class types.
virtual size_t get_int_handle() const
Returns the OS-specific handle converted to an integer, if this is possible for the particular repres...
This object represents a window on the desktop, not necessarily a Panda window.
virtual void detach_child(WindowHandle *child)
Called on a parent handle to indicate a child window's intention to detach itself.
set_os_handle
Changes the OS-specific handle stored internally to the WindowHandle wrapper.
void send_windows_message(unsigned int msg, int wparam, int lparam)
Call this method on a parent WindowHandle to deliver a Windows message to the current child window,...
size_t get_int_handle() const
Returns the OS-specific handle converted to an integer, if this is possible for the particular repres...
virtual void receive_windows_message(unsigned int msg, int wparam, int lparam)
Called on a child handle to deliver a keyboard button event generated in the parent window.
get_os_handle
Returns the OS-specific handle stored internally to the WindowHandle wrapper.
virtual void attach_child(WindowHandle *child)
Called on a parent handle to indicate a child window's intention to attach itself.
virtual void request_keyboard_focus(WindowHandle *child)
Called on a parent handle to indicate a child window's wish to receive keyboard button events.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.