pub struct Output { /* private fields */ }
Implementations
sourceimpl Output
impl Output
sourcepub fn mm_height(&self) -> i32
pub fn mm_height(&self) -> i32
Gets the physical height of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.
Returns
the height of the output in millimeters. A value of 0 indicates that the height is unknown
sourcepub fn mm_width(&self) -> i32
pub fn mm_width(&self) -> i32
Gets the physical width of the output. In some cases (such as as a projector), the value returned here might correspond to nominal resolution rather than the actual physical size of the output device.
Returns
the height of the output in millimeters. A value of 0 indicates the width is unknown
sourcepub fn refresh_rate(&self) -> f32
pub fn refresh_rate(&self) -> f32
Gets the number of times per second that the output device refreshes the display contents.
Returns
the refresh rate of the output device. A value of zero indicates that the refresh rate is unknown.
sourcepub fn subpixel_order(&self) -> SubpixelOrder
pub fn subpixel_order(&self) -> SubpixelOrder
For an output device where each pixel is made up of smaller components with different colors, returns the layout of the subpixel components.
Returns
the order of subpixel components for the output device
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.