pub struct DocumentZoomState {
pub requested: f32,
pub applied: f32,
pub min: f32,
pub max: f32,
}Expand description
The retained page-zoom model shared by retained documents and hosted engines.
requested is the caller’s own value, echoed back unchanged: the host
persists it per node and steps its own ladder. applied is what the engine
actually used after clamping and any quantization of its own, and min /
max name the engine’s bounds so a host can grey out a step it cannot take.
Fields§
§requested: f32The absolute factor the caller asked for (1.0 = 100 %).
applied: f32The effective factor this engine is presenting at.
min: f32§max: f32Implementations§
Trait Implementations§
Source§impl Clone for DocumentZoomState
impl Clone for DocumentZoomState
impl Copy for DocumentZoomState
Source§impl Debug for DocumentZoomState
impl Debug for DocumentZoomState
Source§impl<'de> Deserialize<'de> for DocumentZoomState
impl<'de> Deserialize<'de> for DocumentZoomState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentZoomState
impl PartialEq for DocumentZoomState
Source§impl Serialize for DocumentZoomState
impl Serialize for DocumentZoomState
impl StructuralPartialEq for DocumentZoomState
Auto Trait Implementations§
impl Freeze for DocumentZoomState
impl RefUnwindSafe for DocumentZoomState
impl Send for DocumentZoomState
impl Sync for DocumentZoomState
impl Unpin for DocumentZoomState
impl UnsafeUnpin for DocumentZoomState
impl UnwindSafe for DocumentZoomState
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