rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
14 const char*
name() noexcept;
17 unsigned int ram() noexcept;
21 unsigned int l1Size() noexcept;
23 bool has3DNow() noexcept;
24 bool hasAVX() noexcept;
25 bool hasAVX2() noexcept;
26 bool hasAltiVec() noexcept;
27 bool hasMMX() noexcept;
28 bool hasRDTSC() noexcept;
29 bool hasSSE() noexcept;
30 bool hasSSE2() noexcept;
31 bool hasSSE3() noexcept;
32 bool hasSSE41() noexcept;
33 bool hasSSE42() noexcept;
44 void setText(const
char* x);
46 namespace screensaver {
48 void disable() noexcept;
49 bool enabled() noexcept;
53 const char*
name(
const unsigned int i);
57 namespace display::unsafe {
60 const char*
name(
const unsigned int i);
61 geom::RectWH
bounds(
const unsigned int i);
66 namespace display::mode::unsafe {
int throwOnErr(const int code)
Throw a rolmodl::sdlexception if code < 0.
unsigned int l1Size() noexcept
Get the CPU L1 cache line size in bytes.
const char * name() noexcept
Human-readable OS name. Use rolmodl::sys::id() for OS identification purposes instead of this method.
unsigned int logicalCores() noexcept
Get the number of available logical CPU cores.
void enable() noexcept
Enable system screensaver.
unsigned int ram() noexcept
Get the amount of system RAM in MB.
geom::RectWH bounds(const unsigned int i)
Get the resolution of the ith display. Unsafe because there is no bounds checking on the index.
geom::RectWH usableBounds(const unsigned int i)
Get the bounds of the usable space of the ith display. Excludes system decorations such as the menu b...
State
Indicates battery status a.k.a. the system power state.
bool hasText() noexcept
Query whether thhe clipboard has text contents.
unsigned int countForDisplayN(unsigned int n)
Get the amount of display modes available for the nth display.
std::optional< const char * > current() noexcept
Query the current video driver name.