Trait tao::platform::windows::WindowExtWindows [−][src]
pub trait WindowExtWindows { fn hinstance(&self) -> *mut c_void; fn hwnd(&self) -> *mut c_void; fn set_enable(&self, enabled: bool); fn set_taskbar_icon(&self, taskbar_icon: Option<Icon>); fn theme(&self) -> Theme; }
Expand description
Additional methods on Window
that are specific to Windows.
Required methods
fn hinstance(&self) -> *mut c_void
[src]
Expand description
Returns the HINSTANCE of the window
fn hwnd(&self) -> *mut c_void
[src]
Expand description
Returns the native handle that is used by this window.
The pointer will become invalid when the native window was destroyed.
fn set_enable(&self, enabled: bool)
[src]
Expand description
Enables or disables mouse and keyboard input to the specified window.
A window must be enabled before it can be activated.
If an application has create a modal dialog box by disabling its owner window
(as described in WindowBuilderExtWindows::with_owner_window
), the application must enable
the owner window before destroying the dialog box.
Otherwise, another window will receive the keyboard focus and be activated.
If a child window is disabled, it is ignored when the system tries to determine which window should receive mouse messages.
For more information, see https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-enablewindow#remarks and https://docs.microsoft.com/en-us/windows/win32/winmsg/window-features#disabled-windows
fn set_taskbar_icon(&self, taskbar_icon: Option<Icon>)
[src]
Expand description
This sets ICON_BIG
. A good ceiling here is 256x256.
fn theme(&self) -> Theme
[src]
Expand description
Returns the current window theme.