pub struct MenuPanel<'a> {
pub menu: &'a Node,
pub bounds: Rect,
pub layout_direction: LayoutDirection,
pub rows: Vec<MenuRow<'a>>,
pub highlighted: Option<usize>,
/* private fields */
}Fields§
§bounds: Rect§layout_direction: LayoutDirection§rows: Vec<MenuRow<'a>>§highlighted: Option<usize>Implementations§
Source§impl MenuPanel<'_>
impl MenuPanel<'_>
pub fn path(&self) -> &[usize]
pub fn session(&self) -> u64
pub fn can_scroll(&self, backward: bool) -> bool
pub fn row_index(&self, slot: usize) -> usize
pub fn entry(&self, slot: usize) -> MenuEntry
pub fn label_offset(&self) -> f32
pub fn row_content_bounds(&self, slot: usize, start: f32, width: f32) -> Rect
pub fn icon_bounds(&self, slot: usize) -> Rect
pub fn row_highlighted(&self, slot: usize) -> bool
pub fn row_bounds(&self, slot: usize) -> Rect
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MenuPanel<'a>
impl<'a> !Send for MenuPanel<'a>
impl<'a> !Sync for MenuPanel<'a>
impl<'a> !UnwindSafe for MenuPanel<'a>
impl<'a> Forget for MenuPanel<'a>
impl<'a> Freeze for MenuPanel<'a>
impl<'a> Move for MenuPanel<'a>
impl<'a> Unpin for MenuPanel<'a>
impl<'a> UnsafeUnpin for MenuPanel<'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