This object represents a window on the desktop, not necessarily a Panda window.
More...
Classes |
| class | OSHandle |
Public Member Functions |
|
| WindowHandle (OSHandle *os_handle) |
|
| WindowHandle (const WindowHandle ©) |
| virtual void | attach_child (WindowHandle *child) |
| | Called on a parent handle to indicate a child window's intention to attach itself.
|
| virtual void | detach_child (WindowHandle *child) |
| | Called on a parent handle to indicate a child window's intention to detach itself.
|
|
virtual TypeHandle | force_init_type () |
| size_t | get_int_handle () const |
| | Returns the OS-specific handle converted to an integer, if this is possible for the particular representation.
|
| OSHandle * | get_os_handle () const |
| | Returns the OS-specific handle stored internally to the WindowHandle wrapper.
|
|
virtual TypeHandle | get_type () const |
|
void | output (ostream &out) const |
| 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.
|
| virtual void | request_keyboard_focus (WindowHandle *child) |
| | Called on a parent handle to indicate a child window's wish to receive keyboard button events.
|
| 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, if any.
|
| void | set_os_handle (OSHandle *os_handle) |
| | Changes the OS-specific handle stored internally to the WindowHandle wrapper.
|
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.
|
Protected Member Functions |
|
| PT (OSHandle) _os_handle |
|
| PT (WindowHandle) _keyboard_window |
This object represents a window on the desktop, not necessarily a Panda window.
This structure can be assigned to a WindowProperties to indicate a parent window.
It also has callbacks so the Panda window can communicate with its parent window, which is particularly important when running embedded in a browser.
To create a WindowHandle, you would usually call one of the NativeWindowHandle::make_*() methods, depending on the kind of native window handle object you already have.
Definition at line 40 of file windowHandle.h.