#[repr(i32)]pub enum WindowShowState {
Hide = 0,
Maximize = 3,
Minimize = 6,
Restore = 9,
Show = 5,
ShowMinimized = 2,
ShowMinNoActivate = 7,
ShowNoActivate = 8,
ShowNormalNoActivate = 4,
ShowNormal = 1,
}
Available on crate feature
ui
only.Expand description
Window show state such as ‘minimized’ or ‘hidden’.
Changing this state for a window can be done with WindowHandle::set_show_state
.
WindowHandle::get_placement
and WindowPlacement::get_show_state
can be used to read the state.
Variants§
Hide = 0
Maximize = 3
Minimize = 6
Restore = 9
Show = 5
ShowMinimized = 2
ShowMinNoActivate = 7
ShowNoActivate = 8
ShowNormalNoActivate = 4
ShowNormal = 1
Trait Implementations§
Source§impl Clone for WindowShowState
impl Clone for WindowShowState
Source§fn clone(&self) -> WindowShowState
fn clone(&self) -> WindowShowState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowShowState
impl Debug for WindowShowState
Source§impl From<WindowShowState> for SHOW_WINDOW_CMD
impl From<WindowShowState> for SHOW_WINDOW_CMD
Source§fn from(value: WindowShowState) -> Self
fn from(value: WindowShowState) -> Self
Converts to this type from the input type.
Source§impl From<WindowShowState> for i32
impl From<WindowShowState> for i32
Source§fn from(enum_value: WindowShowState) -> Self
fn from(enum_value: WindowShowState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WindowShowState
impl PartialEq for WindowShowState
Source§impl TryFrom<i32> for WindowShowState
impl TryFrom<i32> for WindowShowState
Source§type Error = TryFromPrimitiveError<WindowShowState>
type Error = TryFromPrimitiveError<WindowShowState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for WindowShowState
impl TryFromPrimitive for WindowShowState
const NAME: &'static str = "WindowShowState"
type Primitive = i32
type Error = TryFromPrimitiveError<WindowShowState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for WindowShowState
impl Eq for WindowShowState
impl StructuralPartialEq for WindowShowState
Auto Trait Implementations§
impl Freeze for WindowShowState
impl RefUnwindSafe for WindowShowState
impl Send for WindowShowState
impl Sync for WindowShowState
impl Unpin for WindowShowState
impl UnwindSafe for WindowShowState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more