pub struct Widgets<'a> {
pub coord: &'a mut InputCoordinator,
pub states: &'a mut StateRegistry,
pub selectables: &'a mut Selectables,
pub layer: LayerId,
}Expand description
Widget registration face a hook draws against: the window’s coordinator
(library L1 register_* fns take it), the per-widget typed state store
and the layer the hook’s widgets register into.
The coordinator’s state-mutating driver methods are deliberately not reachable here (one writer of focus / hover / capture, design §6.3); lib brief L6 makes that mechanical.
Fields§
§coord: &'a mut InputCoordinatorThe window’s input coordinator (widget registration only).
states: &'a mut StateRegistryPer-widget persistent typed state (scroll offsets, expand flags).
selectables: &'a mut SelectablesSelectable plain text of this frame (select by drag / double / triple click, copy).
layer: LayerIdThe layer this hook’s widgets register into (panel-local or the overlay’s own).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Widgets<'a>
impl<'a> !UnwindSafe for Widgets<'a>
impl<'a> Forget for Widgets<'a>
impl<'a> Freeze for Widgets<'a>
impl<'a> Move for Widgets<'a>
impl<'a> Send for Widgets<'a>
impl<'a> Sync for Widgets<'a>
impl<'a> Unpin for Widgets<'a>
impl<'a> UnsafeUnpin for Widgets<'a>
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