pub struct ScaleEvent {
pub scale: i32,
pub baseline: i32,
}Expand description
A screen scale event
Fields§
§scale: i32Integer scale (premultiplied with baseline)
baseline: i32Baseline of the scale
Implementations§
Source§impl ScaleEvent
impl ScaleEvent
pub fn to_event(&self) -> Event
pub fn from_event(event: Event) -> ScaleEvent
Trait Implementations§
Source§impl Clone for ScaleEvent
impl Clone for ScaleEvent
Source§fn clone(&self) -> ScaleEvent
fn clone(&self) -> ScaleEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScaleEvent
Auto Trait Implementations§
impl Freeze for ScaleEvent
impl RefUnwindSafe for ScaleEvent
impl Send for ScaleEvent
impl Sync for ScaleEvent
impl Unpin for ScaleEvent
impl UnsafeUnpin for ScaleEvent
impl UnwindSafe for ScaleEvent
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