Struct rs::outputs::OutputState
source · [−]pub struct OutputState {
pub current_mode: Option<Mode>,
pub geometry: Option<Geometry>,
pub scale: i32,
}
Fields
current_mode: Option<Mode>
geometry: Option<Geometry>
scale: i32
Implementations
sourceimpl OutputState
impl OutputState
fn uninitialized() -> OutputState
fn transform_size<T>(width: T, height: T, transform: Transform) -> Size<T>
sourcepub fn get_pixel_size(&self) -> Option<Size<u32>>
pub fn get_pixel_size(&self) -> Option<Size<u32>>
Return resolution adjusted for current transform
sourcepub fn get_physical_size(&self) -> Option<Size<Option<Millimeter>>>
pub fn get_physical_size(&self) -> Option<Size<Option<Millimeter>>>
Return physical dimensions adjusted for current transform
Trait Implementations
sourceimpl Clone for OutputState
impl Clone for OutputState
sourcefn clone(&self) -> OutputState
fn clone(&self) -> OutputState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutputState
impl Debug for OutputState
impl Copy for OutputState
Auto Trait Implementations
impl RefUnwindSafe for OutputState
impl Send for OutputState
impl Sync for OutputState
impl Unpin for OutputState
impl UnwindSafe for OutputState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more