Enum fltk::menu::MenuFlag[][src]

#[repr(i32)]pub enum MenuFlag {
    Normal,
    Inactive,
    Toggle,
    Value,
    Radio,
    Invisible,
    SubmenuPointer,
    Submenu,
    MenuDivider,
    MenuHorizontal,
}

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 Clone for MenuFlag[src]

impl Copy for MenuFlag[src]

impl Debug for MenuFlag[src]

impl PartialEq<MenuFlag> for MenuFlag[src]

impl StructuralPartialEq for MenuFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.