pub struct ComposeBox { /* private fields */ }Expand description
A Box and its builder. Named apart from std::boxed::Box, which a glob import of
this module would otherwise hide.
Implementations§
Source§impl ComposeBox
impl ComposeBox
Source§impl ComposeBox
impl ComposeBox
Source§impl ComposeBox
impl ComposeBox
Source§impl ComposeBox
impl ComposeBox
Sourcepub fn on_pointer(
self,
kinds: PointerKinds,
handler: impl FnMut(PointerEvent) + 'static,
) -> Self
pub fn on_pointer( self, kinds: PointerKinds, handler: impl FnMut(PointerEvent) + 'static, ) -> Self
Subscribes the node to the kinds of pointer input in kinds. The handler runs
on the same call as the input; calling consume on the event keeps it from
the nearest subscribed ancestor and from the Renderer’s own handling.
A node that never calls this has no pointer input at all, and costs nothing.
Trait Implementations§
Source§impl Drop for ComposeBox
impl Drop for ComposeBox
Auto Trait Implementations§
impl !RefUnwindSafe for ComposeBox
impl !Send for ComposeBox
impl !Sync for ComposeBox
impl !UnwindSafe for ComposeBox
impl Freeze for ComposeBox
impl Unpin for ComposeBox
impl UnsafeUnpin for ComposeBox
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