pub struct MenuScope<'a> { /* private fields */ }Expand description
A Menu and its builder.
Implementations§
Source§impl<'a> MenuScope<'a>
impl<'a> MenuScope<'a>
Source§impl<'a> MenuScope<'a>
impl<'a> MenuScope<'a>
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MenuScope<'a>
impl<'a> !Send for MenuScope<'a>
impl<'a> !Sync for MenuScope<'a>
impl<'a> !UnwindSafe for MenuScope<'a>
impl<'a> Forget for MenuScope<'a>
impl<'a> Freeze for MenuScope<'a>
impl<'a> Move for MenuScope<'a>
impl<'a> Unpin for MenuScope<'a>
impl<'a> UnsafeUnpin for MenuScope<'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