Struct figures::DisplayScale [−][src]
pub struct DisplayScale<T> { /* fields omitted */ }
Expand description
Scaling ratios for Scaled
and Displayable
.
Implementations
Returns a new instance with the two scales provided.
dpi
: This scale represents the scaling betweenPixels
andPoints
. It should be set to the system configured user interface scaling, if possible. In general, this scale shouldn’t be something an end-user manually configures.additional_scaling
: This scale represents the scaling betweenPoints
andScaled
. This is an additional layer of scaling on top of thedpi
scaling. It is intended to be used to provide a way for applications to allow end-users to configure an application-specific zoom setting.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for DisplayScale<T> where
T: RefUnwindSafe,
impl<T> Send for DisplayScale<T> where
T: Send,
impl<T> Sync for DisplayScale<T> where
T: Sync,
impl<T> Unpin for DisplayScale<T> where
T: Unpin,
impl<T> UnwindSafe for DisplayScale<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more