[][src]Struct fltk::menu::MenuItem

pub struct MenuItem { /* fields omitted */ }

Creates a menu item

Methods

impl MenuItem[src]

pub fn label(&self) -> String[src]

Returns the label of the menu item

pub fn set_label(&mut self, txt: &str)[src]

Sets the label of the menu item

pub fn label_type<T: WidgetType>(&self) -> T[src]

Returns the label type of the menu item

pub fn set_label_type<T: WidgetType>(&mut self, typ: T)[src]

Sets the label type of the menu item

pub fn label_color(&self) -> Color[src]

Returns the label color of the menu item

pub fn set_label_color(&mut self, color: Color)[src]

Sets the label color of the menu item

pub fn label_font(&self) -> Font[src]

Returns the label font of the menu item

pub fn set_label_font(&mut self, font: Font)[src]

Sets the label font of the menu item

pub fn label_size(&self) -> usize[src]

Returns the label size of the menu item

pub fn set_label_size(&mut self, sz: usize)[src]

Sets the label size of the menu item

pub fn value(&self) -> bool[src]

Returns the value of the menu item

pub fn set(&mut self)[src]

Sets the menu item

pub fn clear(&mut self)[src]

Clears the menu item

pub fn visible(&self) -> bool[src]

Returns whether the menu item is visible or not

pub fn active(&mut self) -> bool[src]

Returns whether the menu item is active

pub fn activate(&mut self)[src]

Activates the menu item

pub fn deactivate(&mut self)[src]

Deactivates the menu item

pub fn show(&mut self)[src]

Shows the menu item

pub fn hide(&mut self)[src]

Hides the menu item

Trait Implementations

impl Clone for MenuItem[src]

impl Debug for MenuItem[src]

Auto Trait Implementations

impl RefUnwindSafe for MenuItem

impl !Send for MenuItem

impl !Sync for MenuItem

impl Unpin for MenuItem

impl UnwindSafe for MenuItem

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.