pub struct SheetArea {
pub id: WidgetId,
pub panel: Rect,
pub available: f32,
pub spec: SheetSpec,
pub areas: Vec<WidgetId>,
}Expand description
One sheet of the frame: where its panel is, what it was built with, and the scroll areas walked inside it.
Fields§
§id: WidgetIdThe panel’s identity, and the key of its retained state.
panel: RectThe panel, on screen.
available: f32The height the sheet’s shares are shares of, in px.
spec: SheetSpecIts configuration this frame.
areas: Vec<WidgetId>The scroll areas registered inside the panel. Only these hand a gesture to the sheet: an area elsewhere on the screen owns its own finger.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SheetArea
Auto Trait Implementations§
impl Freeze for SheetArea
impl RefUnwindSafe for SheetArea
impl Send for SheetArea
impl Sync for SheetArea
impl Unpin for SheetArea
impl UnsafeUnpin for SheetArea
impl UnwindSafe for SheetArea
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