pub struct TextScaleGuard(/* private fields */);Expand description
Installing the reader’s font size for a whole frame — see
frus_core::install_text_scale. Re-exported for the shell, which has to hold it
across the build, the layout and the paint.
Puts back the scale that was in force before install_text_scale, when dropped —
including while a panic unwinds, so one bad frame cannot leave a stale scale installed
for every frame after it.
Trait Implementations§
Source§impl Drop for TextScaleGuard
impl Drop for TextScaleGuard
Auto Trait Implementations§
impl Freeze for TextScaleGuard
impl RefUnwindSafe for TextScaleGuard
impl Send for TextScaleGuard
impl Sync for TextScaleGuard
impl Unpin for TextScaleGuard
impl UnsafeUnpin for TextScaleGuard
impl UnwindSafe for TextScaleGuard
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