Struct playdate_rs::system::MenuItem
source · pub struct MenuItem { /* private fields */ }Implementations§
source§impl MenuItem
impl MenuItem
sourcepub fn get_value(&self) -> i32
pub fn get_value(&self) -> i32
Gets the integer value of the menu item.
For checkmark menu items, 1 means checked, 0 unchecked. For option menu items, the value indicates the array index of the currently selected option.
Trait Implementations§
source§impl PartialEq<MenuItem> for MenuItem
impl PartialEq<MenuItem> for MenuItem
impl Eq for MenuItem
impl Send for MenuItem
impl StructuralEq for MenuItem
impl StructuralPartialEq for MenuItem
impl Sync for MenuItem
Auto 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