LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
window.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "sr/types.h"
9
10#ifdef WIN32
11# ifdef COMPILING_DLL_SimulatedRealityDisplays
12# define DIMENCOSR_API __declspec(dllexport)
13# else
14# define DIMENCOSR_API __declspec(dllimport)
15# endif
16#else
17# define DIMENCOSR_API
18#endif
19
23typedef void* SR_HWND;
24
25namespace SR {
26
33public:
42 static Window* create(SRContext &context, SR_HWND window);
43
50 virtual SR_HWND getHandle() = 0;
51
56 virtual SR_recti getLocation() = 0;
57
73 virtual bool isWindowPartVisible(unsigned int xOffset, unsigned int yOffset, unsigned int width, unsigned int height) = 0;
74};
75
76}
77
78#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Interface class to represent the application window in the SR system.
Definition: window.h:32
virtual SR_recti getLocation()=0
Get the location of the window with respect to the primary display.
static Window * create(SRContext &context, SR_HWND window)
Create a Window class compatible with the current operating system (Windows)
virtual bool isWindowPartVisible(unsigned int xOffset, unsigned int yOffset, unsigned int width, unsigned int height)=0
Determine whether a window is (partially) visible.
virtual SR_HWND getHandle()=0
Get the handle used by the operating system associated with the window.
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible integer rectangle representation.
Definition: types.h:107
void * SR_HWND
Type to avoid the direct use of HWND and the required inclusion of Windows.h in this file.
Definition: window.h:23
#define DIMENCOSR_API
Definition: window.h:17