pub struct Layer {
pub widget_id: u64,
pub region: Rect,
pub z_index: i32,
pub lines: Vec<Vec<Segment>>,
}Expand description
A single widget layer in the compositor stack.
Contains the widget’s rendered output (as lines of segments), its on-screen bounding box, and its z-index for stacking order.
Fields§
§widget_id: u64The widget ID that owns this layer.
region: RectBounding box on screen.
z_index: i32Stacking order (higher = on top).
lines: Vec<Vec<Segment>>Per-line styled segment output.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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