Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
window.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "sr/types.h"
14
15#ifdef WIN32
16# ifdef COMPILING_DLL_SimulatedRealityDisplays
17# define DIMENCOSR_API __declspec(dllexport)
18# else
19# define DIMENCOSR_API __declspec(dllimport)
20# endif
21#else
22# define DIMENCOSR_API
23#endif
24
28typedef void* SR_HWND;
29
30namespace SR {
31
38public:
47 static Window* create(SRContext &context, SR_HWND window);
48
55 virtual SR_HWND getHandle() = 0;
56
61 virtual SR_recti getLocation() = 0;
62
78 virtual bool isWindowPartVisible(unsigned int xOffset, unsigned int yOffset, unsigned int width, unsigned int height) = 0;
79};
80
81}
82
83#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Interface class to represent the application window in the SR system.
Definition: window.h:37
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:25
C-compatible integer rectangle representation.
Definition: types.h:115
void * SR_HWND
Type to avoid the direct use of HWND and the required inclusion of Windows.h in this file.
Definition: window.h:28
#define DIMENCOSR_API
Definition: window.h:22