Struct iui::menus::MenuItem [] [src]

pub struct MenuItem { /* fields omitted */ }

A MenuItem represents an item that is shown in a Menu. Note that, unlike many controls, the text on MenuItems cannot be changed after creation.

Methods

impl MenuItem
[src]

[src]

Enables the item, allowing it to be selected. This is the default state of a menu item.

[src]

Disables the item, preventing it from being selected and providing a visual cue to the user that it cannot be selected.

[src]

Returns true if the menu item is checked, and false if it is not checked (or not checkable).

[src]

Sets the menu item to either checked or unchecked based on the given value.

Setting the checked value of a non-checkable menu item has no effect.

[src]

Sets the function to be executed when the item is clicked/selected.

[src]

Trait Implementations

impl Clone for MenuItem
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for MenuItem

impl !Sync for MenuItem