pub struct MenuSubmenuConfig {
pub safe_hover_buffer: Px,
pub open_delay: Duration,
pub close_delay: Duration,
pub focus_delay: Duration,
pub pointer_grace_timeout: Duration,
}Fields§
§safe_hover_buffer: Px§open_delay: DurationDelay before opening a submenu on pointer hover.
Radix Menu uses a small delay (~100ms) to avoid accidental opens while sweeping across items.
close_delay: Duration§focus_delay: Duration§pointer_grace_timeout: DurationHow long a submenu “pointer grace” corridor stays armed after the pointer exits the trigger.
Implementations§
Trait Implementations§
Source§fn clone(&self) -> MenuSubmenuConfig
fn clone(&self) -> MenuSubmenuConfig
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