Struct dotrix_core::window::Monitor [−][src]
pub struct Monitor {
pub name: String,
pub number: usize,
pub scale_factor: f32,
pub size: Vec2u,
pub video_modes: Vec<VideoMode>,
}
Expand description
Information about a monitor.
Fields
name: String
Human-readable (kind of) name of the monitor.
number: usize
Internal monitor number.
scale_factor: f32
The scale factor that can be used to map logical pixels to physical pixels, and vice versa.
size: Vec2u
Maximum resolution in pixels.
video_modes: Vec<VideoMode>
All video modes supported by the monitor.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Monitor
impl UnwindSafe for Monitor
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more