Plasma Engine  2.0
Loading...
Searching...
No Matches
Screen.h
1#pragma once
2
3#include <Foundation/Logging/Log.h>
4#include <Foundation/Math/Rect.h>
5#include <Foundation/Math/Size.h>
6#include <Foundation/Strings/String.h>
7
9struct PL_FOUNDATION_DLL plScreenInfo
10{
12
13 plInt32 m_iOffsetX;
14 plInt32 m_iOffsetY;
18};
19
21class PL_FOUNDATION_DLL plScreen
22{
23public:
25 static plResult EnumerateScreens(plDynamicArray<plScreenInfo>& out_screens);
26
28 static void PrintScreenInfo(const plHybridArray<plScreenInfo, 2>& screens, plLogInterface* pLog = plLog::GetThreadLocalLogSystem());
29};
Definition DynamicArray.h:81
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
static plLogInterface * GetThreadLocalLogSystem()
Returns the currently set default logging system, or a thread local instance of plGlobalLog,...
Definition Log.cpp:345
Base class for all logging classes.
Definition Log.h:77
Provides functionality to detect available monitors.
Definition Screen.h:22
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
Describes the properties of a screen.
Definition Screen.h:10
plString m_sDisplayName
Some OS provided name for the screen, typically the manufacturer and model name.
Definition Screen.h:11
bool m_bIsPrimary
Whether this is the primary/main screen.
Definition Screen.h:17
plInt32 m_iOffsetY
The virtual position of the screen. Ie. a window created at this location will appear on this screen.
Definition Screen.h:14
plInt32 m_iResolutionX
The virtual resolution. Ie. a window with this dimension will span the entire screen.
Definition Screen.h:15
plInt32 m_iOffsetX
The virtual position of the screen. Ie. a window created at this location will appear on this screen.
Definition Screen.h:13
plInt32 m_iResolutionY
The virtual resolution. Ie. a window with this dimension will span the entire screen.
Definition Screen.h:16