Struct radiant_rs::Monitor
[−]
[src]
pub struct Monitor { /* fields omitted */ }
An individual monitor, returned from Display::monitors()
.
Methods
impl Monitor
[src]
pub fn name(&self) -> String
[src]
Returns the name of the device.
pub fn width(&self) -> u32
[src]
Returns the current width in pixels.
pub fn height(&self) -> u32
[src]
Returns the current height in pixels.
pub fn dimensions(&self) -> (u32, u32)
[src]
Returns the current width and height in pixels.
Trait Implementations
impl Clone for Monitor
[src]
fn clone(&self) -> Monitor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more