Panda3D
|
This object represents a window on the desktop, not necessarily a Panda window. More...
#include <pandadoc.hpp>
Classes | |
class | OSHandle |
Public Member Functions | |
__init__ (const WindowHandle copy) | |
__init__ (WindowHandle::OSHandle os_handle) | |
int | getIntHandle () |
Returns the OS-specific handle converted to an integer, if this is possible for the particular representation. | |
WindowHandle::OSHandle | getOsHandle () |
Returns the OS-specific handle stored internally to the WindowHandle wrapper. | |
output (Ostream out) | |
sendWindowsMessage (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. | |
setOsHandle (WindowHandle::OSHandle os_handle) | |
Changes the OS-specific handle stored internally to the WindowHandle wrapper. | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. | |
![]() | |
int | getRefCount () |
Returns the current reference count. | |
ref () | |
Explicitly increments the reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
bool | unref () |
Explicitly decrements the reference count. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Public Attributes | |
WindowHandle::OSHandle | os_handle |
Returns the OS-specific handle stored internally to the WindowHandle wrapper. | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. | |
![]() | |
int | ref_count |
The current reference count. | |
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.
__init__ | ( | const WindowHandle | copy | ) |
__init__ | ( | WindowHandle::OSHandle | os_handle | ) |
|
static |
int getIntHandle | ( | ) |
Returns the OS-specific handle converted to an integer, if this is possible for the particular representation.
Returns 0 if it is not.
WindowHandle::OSHandle getOsHandle | ( | ) |
Returns the OS-specific handle stored internally to the WindowHandle wrapper.
output | ( | Ostream | out | ) |
sendWindowsMessage | ( | 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.
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.
setOsHandle | ( | WindowHandle::OSHandle | os_handle | ) |
Changes the OS-specific handle stored internally to the WindowHandle wrapper.
WindowHandle::OSHandle os_handle |
Returns the OS-specific handle stored internally to the WindowHandle wrapper.