pub struct RetainedBracket {
pub key: u64,
pub layer: u32,
pub opacity: f32,
pub placement: RetainedPlacement,
pub extent_px: (u32, u32),
pub kind: RetainedKind,
}Expand description
One retained bracket a compiler with retention on recorded this frame,
for the renderer’s store (crate::cache::retained) to resolve.
Fields§
§key: u64The key the bracket carried.
layer: u32The recorded layer standing for the bracket, indexed into
CommandRecorder::layers.
opacity: f32The bracket’s alpha — what the page is composited at. Never baked into the page itself.
placement: RetainedPlacementWhere the body’s local space lands on the device grid, presentation scale included.
extent_px: (u32, u32)The device extent the bracket’s rect covers under
placement — the ledger’s extent_px.
kind: RetainedKindWhich of the two commands this is, with what each one needs.
Implementations§
Trait Implementations§
Source§impl Clone for RetainedBracket
impl Clone for RetainedBracket
Source§impl Debug for RetainedBracket
impl Debug for RetainedBracket
Source§impl PartialEq for RetainedBracket
impl PartialEq for RetainedBracket
impl StructuralPartialEq for RetainedBracket
Auto Trait Implementations§
impl Freeze for RetainedBracket
impl RefUnwindSafe for RetainedBracket
impl Send for RetainedBracket
impl Sync for RetainedBracket
impl Unpin for RetainedBracket
impl UnsafeUnpin for RetainedBracket
impl UnwindSafe for RetainedBracket
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