[−][src]Struct native_windows_gui::ControlBase
Control base is a low level interface to create base Windows handle (HWND, HMENU, TIMER, etc). This is used internally by every controls.
use native_windows_gui as nwg; fn basic_stuff(window: &nwg::Window) -> Result<(), nwg::NwgError> { nwg::ControlBase::build_hwnd() .class_name("BUTTON") .forced_flags(0) .flags(0) .size((100, 100)) .position((100, 100)) .text("HELLO") .parent(Some(window.handle)) .build()?; #[cfg(feature = "menu")] nwg::ControlBase::build_hmenu() .text("Item") .item(true) .parent(window.handle) .build()?; Ok(()) }
Implementations
impl ControlBase
[src]
pub fn build_hwnd() -> HwndBuilder
[src]
pub fn build_hmenu() -> HmenuBuilder
[src]
pub fn build_timer() -> TimerBuilder
[src]
pub fn build_notice() -> OtherBuilder
[src]
pub fn build_tray_notification() -> OtherBuilder
[src]
Trait Implementations
impl Clone for ControlBase
[src]
pub fn clone(&self) -> ControlBase
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ControlBase
[src]
Auto Trait Implementations
impl RefUnwindSafe for ControlBase
[src]
impl Send for ControlBase
[src]
impl Sync for ControlBase
[src]
impl Unpin for ControlBase
[src]
impl UnwindSafe for ControlBase
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,