pub struct SW(/* private fields */);
kernel
only.Expand description
HWND::ShowWindow
show_cmd
(i32
).
Implementations§
Source§impl SW
impl SW
Sourcepub const unsafe fn as_mut(&mut self) -> &mut i32
pub const unsafe fn as_mut(&mut self) -> &mut i32
Returns a mutable reference to the underlying raw value.
§Safety
Be sure the integer being set is meaningful for the actual type.
Sourcepub const unsafe fn from_raw(v: i32) -> Self
pub const unsafe fn from_raw(v: i32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
Sourcepub const fn raw(&self) -> i32
pub const fn raw(&self) -> i32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
Source§impl SW
impl SW
Sourcepub const SHOWNORMAL: Self
pub const SHOWNORMAL: Self
Activates and displays a window. If the window is minimized or maximized the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
Sourcepub const SHOWMINIMIZED: Self
pub const SHOWMINIMIZED: Self
Activates the window and displays it as a minimized window.
Sourcepub const SHOWMAXIMIZED: Self
pub const SHOWMAXIMIZED: Self
Activates the window and displays it as a maximized window.
Sourcepub const SHOWNOACTIVATE: Self
pub const SHOWNOACTIVATE: Self
Displays a window in its most recent size and position. This value is
similar to SW::SHOWNORMAL
except that the window is not activated.
Sourcepub const MINIMIZE: Self
pub const MINIMIZE: Self
Minimizes the specified window and activates the next top-level window in the Z order.
Sourcepub const SHOWMINNOACTIVE: Self
pub const SHOWMINNOACTIVE: Self
Displays the window as a minimized window. This value is similar to
SW::SHOWMINIMIZED
except the window is not activated.
pub const SHOWNA: Self
Sourcepub const RESTORE: Self
pub const RESTORE: Self
Activates and displays the window. If the window is minimized or maximized the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
Sourcepub const SHOWDEFAULT: Self
pub const SHOWDEFAULT: Self
Sets the show state based on the SW value specified in the
STARTUPINFO
structure passed to the
CreateProcess
function by the program that
started the application.
Sourcepub const FORCEMINIMIZE: Self
pub const FORCEMINIMIZE: Self
Minimizes a window even if the thread that owns the window is not responding. This flag should only be used when minimizing windows from a different thread.