pub struct NavigationMenuRootState { /* private fields */ }Implementations§
pub fn is_open_delayed(&self) -> bool
pub fn clear_timers(&mut self, host: &mut dyn UiActionHost)
pub fn on_trigger_enter( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, value_model: &Model<Option<Arc<str>>>, item_value: Arc<str>, cfg: NavigationMenuConfig, )
pub fn on_trigger_leave( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, value_model: &Model<Option<Arc<str>>>, cfg: NavigationMenuConfig, )
pub fn on_content_enter(&mut self, host: &mut dyn UiActionHost)
pub fn on_content_leave( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, value_model: &Model<Option<Arc<str>>>, cfg: NavigationMenuConfig, )
pub fn on_item_select( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, value_model: &Model<Option<Arc<str>>>, item_value: Arc<str>, cfg: NavigationMenuConfig, )
pub fn on_item_dismiss( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, value_model: &Model<Option<Arc<str>>>, cfg: NavigationMenuConfig, )
Sourcepub fn on_timer(
&mut self,
host: &mut dyn UiActionHost,
acx: ActionCx,
token: TimerToken,
value_model: &Model<Option<Arc<str>>>,
cfg: NavigationMenuConfig,
) -> bool
pub fn on_timer( &mut self, host: &mut dyn UiActionHost, acx: ActionCx, token: TimerToken, value_model: &Model<Option<Arc<str>>>, cfg: NavigationMenuConfig, ) -> bool
Handle a timer callback (open/close/skip-delay).
Returns true when it updates state and a redraw should be requested by the caller.
Trait Implementations§
Source§fn clone(&self) -> NavigationMenuRootState
fn clone(&self) -> NavigationMenuRootState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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