Panda3D
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
WindowHandle Class Reference

This object represents a window on the desktop, not necessarily a Panda window. More...

Inheritance diagram for WindowHandle:
TypedReferenceCount TypedObject ReferenceCount NativeWindowHandle

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. More...
 
WindowHandle::OSHandle getOsHandle ()
 Returns the OS-specific handle stored internally to the WindowHandle wrapper. More...
 
 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. More...
 
 setOsHandle (WindowHandle::OSHandle os_handle)
 Changes the OS-specific handle stored internally to the WindowHandle wrapper. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
bool unref ()
 Explicitly decrements the reference count. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedReferenceCount
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Public Attributes

WindowHandle::OSHandle os_handle
 Returns the OS-specific handle stored internally to the WindowHandle wrapper. More...
 
- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Detailed Description

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.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( const WindowHandle  copy)

◆ __init__() [2/2]

__init__ ( WindowHandle::OSHandle  os_handle)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getIntHandle()

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.

◆ getOsHandle()

WindowHandle::OSHandle getOsHandle ( )

Returns the OS-specific handle stored internally to the WindowHandle wrapper.

◆ output()

output ( Ostream  out)

◆ sendWindowsMessage()

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()

setOsHandle ( WindowHandle::OSHandle  os_handle)

Changes the OS-specific handle stored internally to the WindowHandle wrapper.

Member Data Documentation

◆ os_handle

Returns the OS-specific handle stored internally to the WindowHandle wrapper.