6 #ifndef MATERIALX_WINDOWWRAPPER_H
7 #define MATERIALX_WINDOWWRAPPER_H
10 #define WIN32_LEAN_AND_MEAN
13 #elif defined(__linux__) || defined(__FreeBSD__)
16 using Widget =
struct _WidgetRec*;
31 #elif defined(__linux__) || defined(__FreeBSD__)
39 using Widget =
struct _WidgetRec*;
40 #elif defined(__APPLE__)
94 #if defined(__linux__) || defined(__FreeBSD__)
96 Display* getXDisplay()
const
111 #if defined(__linux__) || defined(__FreeBSD__)
113 Window _framebufferWindow;
ExternalWindowHandle _externalHandle
#define MATERIALX_NAMESPACE_BEGIN
WindowWrapper(ExternalWindowHandle externalHandle, InternalWindowHandle internalHandle, DisplayHandle display)
InternalWindowHandle _internalHandle
std::shared_ptr< class WindowWrapper > WindowWrapperPtr
WindowWrapper shared pointer.
void release()
Release resources stored in wrapper.
static WindowWrapperPtr create(ExternalWindowHandle externalHandle={}, InternalWindowHandle internalHandle={}, DisplayHandle display={})
Create a new WindowWrapper.
void * Widget
OS specific type windowing definitions.
void * ExternalWindowHandle
ExternalWindowHandle externalHandle() const
Return "external" handle.
void * InternalWindowHandle
#define MATERIALX_NAMESPACE_END
InternalWindowHandle internalHandle() const
Return "internal" handle.