[−][src]Struct native_windows_gui::HmenuBuilder
Low level HMENU builder. Instanced by ControlBase::build_hmenu
.
Implementations
impl HmenuBuilder
[src]
pub fn text<'a>(self, text: &'a str) -> HmenuBuilder
[src]
Set the text of the Menu
pub fn item(self, i: bool) -> HmenuBuilder
[src]
Set if the menu should be an item or a menu
pub fn separator(self, i: bool) -> HmenuBuilder
[src]
Set if the menu item should be a separator
pub fn popup(self, i: bool) -> HmenuBuilder
[src]
Set if the menu item should be a separator
pub fn parent(self, parent: ControlHandle) -> HmenuBuilder
[src]
Set the parent of the menu. Can be a window or another menu.
pub fn build(self) -> Result<ControlHandle, NwgError>
[src]
Trait Implementations
impl Default for HmenuBuilder
[src]
fn default() -> HmenuBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for HmenuBuilder
impl !Send for HmenuBuilder
impl !Sync for HmenuBuilder
impl Unpin for HmenuBuilder
impl UnwindSafe for HmenuBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,