#[repr(i32)]
pub enum MenuFlag {
Normal,
Inactive,
Toggle,
Value,
Radio,
Invisible,
SubmenuPointer,
Submenu,
MenuDivider,
MenuHorizontal,
}Expand description
Defines the menu flag for any added menu items using the add() method
Variants
Normal
Normal item
Inactive
Inactive item
Toggle
Item is a checkbox toggle (shows checkbox for on/off state)
Value
The on/off state for checkbox/radio buttons (if set, state is ‘on’)
Radio
Item is a radio button
Invisible
Invisible item
SubmenuPointer
Indicates user_data() is a pointer to another menu array (unused with Rust)
Submenu
Menu item is a submenu
MenuDivider
Menu divider
MenuHorizontal
Horizontal menu (actually reserved for future use)
Trait Implementations
impl Copy for MenuFlag
impl StructuralPartialEq for MenuFlag
Auto Trait Implementations
impl RefUnwindSafe for MenuFlag
impl Send for MenuFlag
impl Sync for MenuFlag
impl Unpin for MenuFlag
impl UnwindSafe for MenuFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more