Struct native_windows_gui::MenuItem
[−]
[src]
pub struct MenuItem { /* fields omitted */ }
A menu item control
Methods
impl MenuItem
[src]
fn get_enabled(&self) -> bool
Return true if the menuitem is enabled or false otherwise
fn set_enabled(&self, enabled: bool)
Enable or disable the menuitem
Trait Implementations
impl Control for MenuItem
[src]
A menu item control
fn handle(&self) -> AnyHandle
Should return the underlying handle to the object
fn control_type(&self) -> ControlType
Should return the type of the control. For custom controls, the return value should be Undefined
(the default).
fn free(&mut self)
If specified, should free any ressource allocated in the template build
function. This includes functions like DestroyWindow
.