WindowHandle
from panda3d.core import WindowHandle
- class WindowHandle
Bases:
TypedReferenceCount
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.
Inheritance diagram
- class OSHandle
Bases:
TypedReferenceCount
This internal pointer within WindowHandle stores the actual OS-specific window handle type, whatever type that is. It is subclassed for each OS.
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- getIntHandle()
C++ Interface: get_int_handle(OSHandle self)
- /**
Returns the OS-specific handle converted to an integer, if this is possible
for the particular representation. Returns 0 if it is not.
*/
- get_class_type()
C++ Interface: get_class_type()
- __init__(*args, **kwargs)
- getClassType()
C++ Interface: get_class_type()
- getIntHandle()
C++ Interface: get_int_handle(WindowHandle self)
- /**
Returns the OS-specific handle converted to an integer, if this is possible
for the particular representation. Returns 0 if it is not.
*/
- getOsHandle()
C++ Interface: get_os_handle(WindowHandle self)
- /**
Returns the OS-specific handle stored internally to the WindowHandle
wrapper.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_int_handle()
C++ Interface: get_int_handle(WindowHandle self)
- /**
Returns the OS-specific handle converted to an integer, if this is possible
for the particular representation. Returns 0 if it is not.
*/
- get_os_handle()
C++ Interface: get_os_handle(WindowHandle self)
- /**
Returns the OS-specific handle stored internally to the WindowHandle
wrapper.
*/
- os_handle
- sendWindowsMessage()
C++ Interface: send_windows_message(const WindowHandle self, 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. This is used in the web plugin system to
deliver button events detected directly by the browser system into Panda,
which is particularly necessary on Vista.
*/
- send_windows_message()
C++ Interface: send_windows_message(const WindowHandle self, 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. This is used in the web plugin system to
deliver button events detected directly by the browser system into Panda,
which is particularly necessary on Vista.
*/