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 async_state_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.
async_state_epoch: u64Async-state epoch (see crate::animation::async_state_epoch)
recorded the last paint. Mismatch forces a re-raster so a
freshly-arrived async result (image fetch, font load) doesn’t
composite the previous frame’s stale FBO contents.
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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().