Enum native_windows_gui::ControlHandle [−][src]
pub enum ControlHandle {
NoHandle,
Hwnd(HWND),
Menu(HMENU, HMENU),
PopMenu(HWND, HMENU),
MenuItem(HMENU, u32),
Notice(HWND, u32),
Timer(HWND, u32),
SystemTray(HWND),
}Inner handle type used internally by each control.
Variants
Hwnd(HWND)(Parent menu / Menu). Parent menu must be there as WINAPI does not have any function to fetch the parent
(Parent window / Menu).
(Parent menu / Unique ID).
Notice control
Timer control
SystemTray(HWND)System tray control
Implementations
impl ControlHandle[src]
pub fn destroy(&mut self)[src]
Destroy the underlying object and set the handle to NoHandle
Can be used to “reset” a UI component
pub fn blank(&self) -> bool[src]
pub fn hwnd(&self) -> Option<HWND>[src]
pub fn hmenu(&self) -> Option<(HMENU, HMENU)>[src]
pub fn pop_hmenu(&self) -> Option<(HWND, HMENU)>[src]
pub fn hmenu_item(&self) -> Option<(HMENU, u32)>[src]
pub fn timer(&self) -> Option<(HWND, u32)>[src]
pub fn notice(&self) -> Option<(HWND, u32)>[src]
pub fn tray(&self) -> Option<HWND>[src]
Trait Implementations
impl Clone for ControlHandle[src]
fn clone(&self) -> ControlHandle[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ControlHandle[src]
impl Debug for ControlHandle[src]
impl Default for ControlHandle[src]
fn default() -> ControlHandle[src]
impl Eq for ControlHandle[src]
impl From<&'_ AnimationTimer> for ControlHandle[src]
fn from(control: &AnimationTimer) -> Self[src]
impl From<&'_ Button> for ControlHandle[src]
impl From<&'_ CheckBox> for ControlHandle[src]
impl<D: Display + Default> From<&'_ ComboBox<D>> for ControlHandle[src]
impl From<&'_ ControlHandle> for ControlHandle[src]
fn from(control: &ControlHandle) -> Self[src]
impl From<&'_ DatePicker> for ControlHandle[src]
fn from(control: &DatePicker) -> Self[src]
impl From<&'_ ExternCanvas> for ControlHandle[src]
fn from(control: &ExternCanvas) -> Self[src]
impl From<&'_ Frame> for ControlHandle[src]
impl From<&'_ ImageFrame> for ControlHandle[src]
fn from(control: &ImageFrame) -> Self[src]
impl From<&'_ Label> for ControlHandle[src]
impl<D: Display + Default> From<&'_ ListBox<D>> for ControlHandle[src]
impl From<&'_ ListView> for ControlHandle[src]
impl From<&'_ Menu> for ControlHandle[src]
impl From<&'_ MenuItem> for ControlHandle[src]
impl From<&'_ MenuSeparator> for ControlHandle[src]
fn from(control: &MenuSeparator) -> Self[src]
impl From<&'_ MessageWindow> for ControlHandle[src]
fn from(control: &MessageWindow) -> Self[src]
impl From<&'_ Notice> for ControlHandle[src]
impl From<&'_ ProgressBar> for ControlHandle[src]
fn from(control: &ProgressBar) -> Self[src]
impl From<&'_ RadioButton> for ControlHandle[src]
fn from(control: &RadioButton) -> Self[src]
impl From<&'_ RichLabel> for ControlHandle[src]
impl From<&'_ RichTextBox> for ControlHandle[src]
fn from(control: &RichTextBox) -> Self[src]
impl From<&'_ ScrollBar> for ControlHandle[src]
impl From<&'_ StatusBar> for ControlHandle[src]
impl From<&'_ Tab> for ControlHandle[src]
impl From<&'_ TabsContainer> for ControlHandle[src]
fn from(control: &TabsContainer) -> Self[src]
impl From<&'_ TextBox> for ControlHandle[src]
impl From<&'_ TextInput> for ControlHandle[src]
impl From<&'_ Timer> for ControlHandle[src]
impl From<&'_ Tooltip> for ControlHandle[src]
impl From<&'_ TrackBar> for ControlHandle[src]
impl From<&'_ TrayNotification> for ControlHandle[src]
fn from(control: &TrayNotification) -> Self[src]
impl From<&'_ TreeView> for ControlHandle[src]
impl From<&'_ Window> for ControlHandle[src]
impl From<&'_ mut AnimationTimer> for ControlHandle[src]
fn from(control: &mut AnimationTimer) -> Self[src]
impl From<&'_ mut Button> for ControlHandle[src]
impl From<&'_ mut CheckBox> for ControlHandle[src]
impl From<&'_ mut DatePicker> for ControlHandle[src]
fn from(control: &mut DatePicker) -> Self[src]
impl From<&'_ mut ExternCanvas> for ControlHandle[src]
fn from(control: &mut ExternCanvas) -> Self[src]
impl From<&'_ mut Frame> for ControlHandle[src]
impl From<&'_ mut ImageFrame> for ControlHandle[src]
fn from(control: &mut ImageFrame) -> Self[src]
impl From<&'_ mut Label> for ControlHandle[src]
impl From<&'_ mut ListView> for ControlHandle[src]
impl From<&'_ mut Menu> for ControlHandle[src]
impl From<&'_ mut MenuItem> for ControlHandle[src]
impl From<&'_ mut MenuSeparator> for ControlHandle[src]
fn from(control: &mut MenuSeparator) -> Self[src]
impl From<&'_ mut MessageWindow> for ControlHandle[src]
fn from(control: &mut MessageWindow) -> Self[src]
impl From<&'_ mut Notice> for ControlHandle[src]
impl From<&'_ mut ProgressBar> for ControlHandle[src]
fn from(control: &mut ProgressBar) -> Self[src]
impl From<&'_ mut RadioButton> for ControlHandle[src]
fn from(control: &mut RadioButton) -> Self[src]
impl From<&'_ mut RichLabel> for ControlHandle[src]
impl From<&'_ mut RichTextBox> for ControlHandle[src]
fn from(control: &mut RichTextBox) -> Self[src]
impl From<&'_ mut ScrollBar> for ControlHandle[src]
impl From<&'_ mut StatusBar> for ControlHandle[src]
impl From<&'_ mut Tab> for ControlHandle[src]
impl From<&'_ mut TabsContainer> for ControlHandle[src]
fn from(control: &mut TabsContainer) -> Self[src]
impl From<&'_ mut TextBox> for ControlHandle[src]
impl From<&'_ mut TextInput> for ControlHandle[src]
impl From<&'_ mut Timer> for ControlHandle[src]
impl From<&'_ mut Tooltip> for ControlHandle[src]
impl From<&'_ mut TrackBar> for ControlHandle[src]
impl From<&'_ mut TrayNotification> for ControlHandle[src]
fn from(control: &mut TrayNotification) -> Self[src]
impl From<&'_ mut TreeView> for ControlHandle[src]
impl From<&'_ mut Window> for ControlHandle[src]
impl PartialEq<AnimationTimer> for ControlHandle[src]
fn eq(&self, other: &AnimationTimer) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Button> for ControlHandle[src]
impl PartialEq<CheckBox> for ControlHandle[src]
fn eq(&self, other: &CheckBox) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl<D: Display + Default> PartialEq<ComboBox<D>> for ControlHandle[src]
fn eq(&self, other: &ComboBox<D>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ControlHandle[src]
impl PartialEq<ControlHandle> for Window[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Tooltip[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TrackBar[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Menu[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for MenuItem[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for MenuSeparator[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl<D: Display + Default> PartialEq<ControlHandle> for ComboBox<D>[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl<D: Display + Default> PartialEq<ControlHandle> for ListBox<D>[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TabsContainer[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Tab[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for DatePicker[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Button[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ProgressBar[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TreeView[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TrayNotification[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for MessageWindow[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Timer[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for AnimationTimer[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Notice[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ListView[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ExternCanvas[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Frame[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ImageFrame[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for RichTextBox[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for RichLabel[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for ScrollBar[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for Label[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for CheckBox[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for RadioButton[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TextInput[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for TextBox[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ControlHandle> for StatusBar[src]
fn eq(&self, other: &ControlHandle) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<DatePicker> for ControlHandle[src]
fn eq(&self, other: &DatePicker) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ExternCanvas> for ControlHandle[src]
fn eq(&self, other: &ExternCanvas) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Frame> for ControlHandle[src]
impl PartialEq<ImageFrame> for ControlHandle[src]
fn eq(&self, other: &ImageFrame) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Label> for ControlHandle[src]
impl<D: Display + Default> PartialEq<ListBox<D>> for ControlHandle[src]
fn eq(&self, other: &ListBox<D>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ListView> for ControlHandle[src]
fn eq(&self, other: &ListView) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Menu> for ControlHandle[src]
impl PartialEq<MenuItem> for ControlHandle[src]
fn eq(&self, other: &MenuItem) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<MenuSeparator> for ControlHandle[src]
fn eq(&self, other: &MenuSeparator) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<MessageWindow> for ControlHandle[src]
fn eq(&self, other: &MessageWindow) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Notice> for ControlHandle[src]
impl PartialEq<ProgressBar> for ControlHandle[src]
fn eq(&self, other: &ProgressBar) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<RadioButton> for ControlHandle[src]
fn eq(&self, other: &RadioButton) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<RichLabel> for ControlHandle[src]
fn eq(&self, other: &RichLabel) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<RichTextBox> for ControlHandle[src]
fn eq(&self, other: &RichTextBox) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<ScrollBar> for ControlHandle[src]
fn eq(&self, other: &ScrollBar) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<StatusBar> for ControlHandle[src]
fn eq(&self, other: &StatusBar) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Tab> for ControlHandle[src]
impl PartialEq<TabsContainer> for ControlHandle[src]
fn eq(&self, other: &TabsContainer) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<TextBox> for ControlHandle[src]
fn eq(&self, other: &TextBox) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<TextInput> for ControlHandle[src]
fn eq(&self, other: &TextInput) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Timer> for ControlHandle[src]
impl PartialEq<Tooltip> for ControlHandle[src]
fn eq(&self, other: &Tooltip) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<TrackBar> for ControlHandle[src]
fn eq(&self, other: &TrackBar) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<TrayNotification> for ControlHandle[src]
fn eq(&self, other: &TrayNotification) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<TreeView> for ControlHandle[src]
fn eq(&self, other: &TreeView) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl PartialEq<Window> for ControlHandle[src]
Auto Trait Implementations
impl RefUnwindSafe for ControlHandle
impl !Send for ControlHandle
impl !Sync for ControlHandle
impl Unpin for ControlHandle
impl UnwindSafe for ControlHandle
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>,