Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Interface class to represent the application window in the SR system. More...
#include <window.h>
Public Member Functions | |
virtual SR_HWND | getHandle ()=0 |
Get the handle used by the operating system associated with the window. More... | |
virtual SR_recti | getLocation ()=0 |
Get the location of the window with respect to the primary display. More... | |
virtual bool | isWindowPartVisible (unsigned int xOffset, unsigned int yOffset, unsigned int width, unsigned int height)=0 |
Determine whether a window is (partially) visible. More... | |
Static Public Member Functions | |
static Window * | create (SRContext &context, SR_HWND window) |
Create a Window class compatible with the current operating system (Windows) More... | |
Interface class to represent the application window in the SR system.
Create a Window class compatible with the current operating system (Windows)
context | is the context of the application |
window | is the handle to the window |
The pointer returned by this function should be deleted by the application when it wants the memory cleaned up
|
pure virtual |
Get the handle used by the operating system associated with the window.
The returned SR_HWND handle can be cast to HWND and used in Windows API functions
|
pure virtual |
Get the location of the window with respect to the primary display.
|
pure virtual |
Determine whether a window is (partially) visible.
The provided offset and size of the weaving surface will be clipped to the window size. Any checks about whether or not the window is occluded will be limited to the bounds of the window. Windows spawned as children of the windowHandle will be ignored as they are considered part of the main weaving window.
windowHandle | is a handle to the window as used in windows API functions |
xOffset | to where the weaving surface starts (could be 0 for all the way on the left side of the window) |
yOffset | to where the weaving surface starts (could be 0 for all the way on the top side of the window) |
width | of the weaving surface |
height | of the weaving surface |
std::runtime_error | if windowHandle is not a valid window handle (HWND) |