TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::MonitorInfo Struct Reference

Window, monitor and mouse coordinates are physical pixels. More...

#include <gui_core/windows/gui_window_backend.h>

Public Attributes

IntRect rect
 Full monitor bounds (virtual screen pixels).
IntRect workArea
 Usable area (excludes taskbar/dock).
bool isPrimary = false
 The OS's main monitor.
float contentScale = 1.0f
 UI scale the user chose for this monitor (1.0 = 100%).
float refreshRate = 0.0f
 Hz; 0 when unknown.

Detailed Description

Window, monitor and mouse coordinates are physical pixels.

The UI scale is applied to styles, not coordinates (see MonitorInfo::contentScale).

Member Data Documentation

◆ rect

IntRect tachyon::MonitorInfo::rect

Full monitor bounds (virtual screen pixels).

◆ workArea

IntRect tachyon::MonitorInfo::workArea

Usable area (excludes taskbar/dock).

◆ isPrimary

bool tachyon::MonitorInfo::isPrimary = false

The OS's main monitor.

◆ contentScale

float tachyon::MonitorInfo::contentScale = 1.0f

UI scale the user chose for this monitor (1.0 = 100%).

◆ refreshRate

float tachyon::MonitorInfo::refreshRate = 0.0f

Hz; 0 when unknown.


The documentation for this struct was generated from the following file: