Trait glutin::platform::windows::WindowExtWindows
source · pub trait WindowExtWindows {
// Required methods
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§
sourcefn hwnd(&self) -> *mut c_void
fn hwnd(&self) -> *mut c_void
Returns the native handle that is used by this window.
The pointer will become invalid when the native window was destroyed.
sourcefn set_enable(&self, enabled: bool)
fn set_enable(&self, enabled: bool)
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
sourcefn set_taskbar_icon(&self, taskbar_icon: Option<Icon>)
fn set_taskbar_icon(&self, taskbar_icon: Option<Icon>)
This sets ICON_BIG
. A good ceiling here is 256x256.