-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDisplaySpec.lua
More file actions
30 lines (22 loc) · 906 Bytes
/
DisplaySpec.lua
File metadata and controls
30 lines (22 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---@meta
--- An object describing a display: its supported and current video modes.
---@class DisplaySpec
DisplaySpec = {}
--- Return the currently active `DisplayMode` for this display, or `nil` if there is no such mode.
---@return DisplayMode
function DisplaySpec:GetCurrentMode() end
--- Return the unique identifier of the display.
---@return string
function DisplaySpec:GetId() end
--- Return the "human-readable" display name.
---@return string
function DisplaySpec:GetName() end
--- Return the `DisplayMode`s supported by this device.
---@return DisplayMode[]
function DisplaySpec:GetSupportedModes() end
--- Return `true` if this `DisplaySpec` is describing the "logical display" like an X screen or the
--- Win32 "Virtual screen", or `false` otherwise (if this describes a physical display).
---@return boolean
function DisplaySpec:IsVirtual() end
---@class DisplaySpecs
DisplaySpecs = {}