17 TypeHandle WindowHandle::OSHandle::_type_handle;
34 if (_keyboard_window !=
nullptr) {
35 _keyboard_window->receive_windows_message(msg, wparam, lparam);
45 if (_os_handle !=
nullptr) {
46 return _os_handle->get_int_handle();
55 output(std::ostream &out)
const {
56 if (_os_handle ==
nullptr) {
77 if (_keyboard_window == child) {
78 _keyboard_window =
nullptr;
88 _keyboard_window = child;
97 nout <<
"receive_windows_message(" << msg <<
", " << wparam <<
", " << lparam <<
")\n";
103 WindowHandle::OSHandle::
119 void WindowHandle::OSHandle::
120 output(std::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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.