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§
Source§impl 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§
Source§impl Clone for OutputState
impl Clone for OutputState
Source§fn clone(&self) -> OutputState
fn clone(&self) -> OutputState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OutputState
impl Debug for OutputState
impl Copy for OutputState
Auto Trait Implementations§
impl Freeze for OutputState
impl RefUnwindSafe for OutputState
impl Send for OutputState
impl Sync for OutputState
impl Unpin for OutputState
impl UnwindSafe for OutputState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more