pub struct ChoiceMenu<'a> {
pub control: &'a Node,
pub bounds: Rect,
pub layout_direction: LayoutDirection,
pub rows: Cow<'a, [String]>,
pub first: usize,
pub highlighted: Option<usize>,
pub selected: Option<usize>,
pub font_size: f32,
/* private fields */
}Fields§
§control: &'a Node§bounds: Rect§layout_direction: LayoutDirection§rows: Cow<'a, [String]>§first: usize§highlighted: Option<usize>§selected: Option<usize>§font_size: f32Implementations§
Source§impl ChoiceMenu<'_>
impl ChoiceMenu<'_>
pub fn rows_bounds(&self) -> Rect
pub fn scroll_indicator(&self) -> Option<Rect>
pub fn row_enabled(&self, offset: usize) -> bool
pub fn row_bounds(&self, offset: usize) -> Rect
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ChoiceMenu<'a>
impl<'a> !Send for ChoiceMenu<'a>
impl<'a> !Sync for ChoiceMenu<'a>
impl<'a> !UnwindSafe for ChoiceMenu<'a>
impl<'a> Forget for ChoiceMenu<'a>
impl<'a> Freeze for ChoiceMenu<'a>
impl<'a> Move for ChoiceMenu<'a>
impl<'a> Unpin for ChoiceMenu<'a>
impl<'a> UnsafeUnpin for ChoiceMenu<'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