15 #include "windowHandle.h" 18 TypeHandle WindowHandle::OSHandle::_type_handle;
40 if (_keyboard_window != NULL) {
41 _keyboard_window->receive_windows_message(msg, wparam, lparam);
54 if (_os_handle != NULL) {
55 return _os_handle->get_int_handle();
66 output(ostream &out)
const {
67 if (_os_handle == NULL) {
92 if (_keyboard_window == child) {
93 _keyboard_window = NULL;
105 _keyboard_window = child;
116 nout <<
"receive_windows_message(" << msg <<
", " << wparam <<
", " << lparam <<
")\n";
124 WindowHandle::OSHandle::
145 void WindowHandle::OSHandle::
146 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...
This object represents a window on the desktop, not necessarily a Panda 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...
virtual void detach_child(WindowHandle *child)
Called on a parent handle to indicate a child window's intention to detach itself.
size_t get_int_handle() const
Returns the OS-specific handle converted to an integer, if this is possible for the particular repres...
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...
virtual 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 attach_child(WindowHandle *child)
Called on a parent handle to indicate a child window's intention to attach itself.
TypeHandle is the identifier used to differentiate C++ class types.