pub struct MenuView {
pub anchor: Rect,
pub items: Vec<MenuItem>,
pub selected: usize,
pub query: String,
}Expand description
The data the host needs to draw and drive the open menu.
Fields§
§anchor: RectThe rectangle where the menu is anchored.
items: Vec<MenuItem>The visible menu rows.
selected: usizeThe selected row index.
query: StringThe typed filter query.
Trait Implementations§
impl StructuralPartialEq for MenuView
Auto Trait Implementations§
impl Freeze for MenuView
impl RefUnwindSafe for MenuView
impl Send for MenuView
impl Sync for MenuView
impl Unpin for MenuView
impl UnsafeUnpin for MenuView
impl UnwindSafe for MenuView
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