MaterialX 1.38.9
Loading...
Searching...
No Matches
WindowWrapper Class Reference

Generic wrapper for encapsulating a "window" construct. More...

#include <WindowWrapper.h>

Public Member Functions

ExternalWindowHandle externalHandle () const
 Return "external" handle.
 
InternalWindowHandle internalHandle () const
 Return "internal" handle.
 
bool isValid () const
 Check that there is a valid OS handle set. More...
 
void release ()
 Release resources stored in wrapper.
 

Static Public Member Functions

static WindowWrapperPtr create (ExternalWindowHandle externalHandle={}, InternalWindowHandle internalHandle={}, DisplayHandle display={})
 Create a new WindowWrapper.
 

Protected Member Functions

 WindowWrapper (ExternalWindowHandle externalHandle, InternalWindowHandle internalHandle, DisplayHandle display)
 

Protected Attributes

ExternalWindowHandle _externalHandle
 
InternalWindowHandle _internalHandle
 

Detailed Description

Generic wrapper for encapsulating a "window" construct.

Each supported platform will have specific storage and management logic.

Member Function Documentation

◆ isValid()

bool isValid ( ) const
inline

Check that there is a valid OS handle set.

It is sufficient to just check the internal handle.


The documentation for this class was generated from the following files: