#[repr(u32)]pub enum WindowFocusState {
Unfocused = 0,
Focused = 1,
Active = 2,
}Expand description
Window focus state.
Variants§
Unfocused = 0
Inactive and does not have focus.
Focused = 1
Active and has keyboard focus.
Active = 2
Active but does not have keyboard focus.
Trait Implementations§
Source§impl Clone for WindowFocusState
impl Clone for WindowFocusState
Source§fn clone(&self) -> WindowFocusState
fn clone(&self) -> WindowFocusState
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 WindowFocusState
impl Debug for WindowFocusState
Source§impl Default for WindowFocusState
impl Default for WindowFocusState
Source§fn default() -> WindowFocusState
fn default() -> WindowFocusState
Returns the “default value” for a type. Read more
Source§impl From<WindowFocusState> for MirWindowFocusState
impl From<WindowFocusState> for MirWindowFocusState
Source§fn from(value: WindowFocusState) -> Self
fn from(value: WindowFocusState) -> Self
Converts to this type from the input type.
Source§impl Hash for WindowFocusState
impl Hash for WindowFocusState
Source§impl PartialEq for WindowFocusState
impl PartialEq for WindowFocusState
Source§impl TryFrom<u32> for WindowFocusState
impl TryFrom<u32> for WindowFocusState
impl Copy for WindowFocusState
impl Eq for WindowFocusState
impl StructuralPartialEq for WindowFocusState
Auto Trait Implementations§
impl Freeze for WindowFocusState
impl RefUnwindSafe for WindowFocusState
impl Send for WindowFocusState
impl Sync for WindowFocusState
impl Unpin for WindowFocusState
impl UnsafeUnpin for WindowFocusState
impl UnwindSafe for WindowFocusState
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