pub struct BackbufferState {
pub cache: BackbufferCache,
pub dirty: bool,
pub width: u32,
pub height: u32,
pub spec_kind: BackbufferKind,
pub theme_epoch: u64,
pub typography_epoch: u64,
pub repaint_count: u64,
pub composite_count: u64,
/* private fields */
}Expand description
Retained widget backbuffer state shared by software and GL implementations.
Fields§
§cache: BackbufferCache§dirty: bool§width: u32§height: u32§spec_kind: BackbufferKind§theme_epoch: u64Visuals epoch recorded the last time this retained surface was repainted. Retained backend layers compare it against the live theme epoch so a dark/light flip rebuilds the window/layer in the shared paint path.
typography_epoch: u64Typography epoch recorded the last time this retained surface was repainted. Without this, a clean parent FBO can keep compositing old text after global font/LCD settings change.
repaint_count: u64§composite_count: u64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackbufferState
impl RefUnwindSafe for BackbufferState
impl Send for BackbufferState
impl Sync for BackbufferState
impl Unpin for BackbufferState
impl UnsafeUnpin for BackbufferState
impl UnwindSafe for BackbufferState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().