Struct smithay_client_toolkit::output::Mode [−][src]
pub struct Mode {
pub dimensions: (i32, i32),
pub refresh_rate: i32,
pub is_current: bool,
pub is_preferred: bool,
}A possible mode for an output
Fields
dimensions: (i32, i32)
Number of pixels of this mode in format (width, height)
for example (1920, 1080)
refresh_rate: i32
Refresh rate for this mode, in mHz
is_current: bool
Whether this is the current mode for this output
is_preferred: bool
Whether this is the preferred mode for this output
Trait Implementations
impl Copy for Mode[src]
impl Copy for Modeimpl Clone for Mode[src]
impl Clone for Modefn clone(&self) -> Mode[src]
fn clone(&self) -> ModeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Mode[src]
impl Debug for Mode