#[repr(C)]pub struct WindowFlags {
pub frame: WindowFrame,
pub is_about_to_close: bool,
pub has_decorations: bool,
pub is_visible: bool,
pub is_always_on_top: bool,
pub is_resizable: bool,
pub has_focus: bool,
pub has_extended_window_frame: bool,
pub has_blur_behind_window: bool,
pub smooth_scroll_enabled: bool,
pub autotab_enabled: bool,
}Fields§
§frame: WindowFrameIs the window currently maximized, minimized or fullscreen
is_about_to_close: boolIs the window about to close on the next frame?
has_decorations: boolDoes the window have decorations (close, minimize, maximize, title bar)?
is_visible: boolIs the window currently visible?
is_always_on_top: boolIs the window always on top?
is_resizable: boolWhether the window is resizable
has_focus: boolWhether the window has focus or not (mutating this will request user attention)
has_extended_window_frame: boolWhether the window has an “extended frame”, i.e. the title bar is not rendered and the maximize / minimize / close buttons bleed into the window content
has_blur_behind_window: boolWhether or not the compositor should blur the application background
smooth_scroll_enabled: boolIs smooth scrolling enabled for this window?
autotab_enabled: boolIs automatic TAB switching supported?
Trait Implementations§
Source§impl Clone for WindowFlags
impl Clone for WindowFlags
Source§fn clone(&self) -> WindowFlags
fn clone(&self) -> WindowFlags
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 WindowFlags
impl Debug for WindowFlags
Source§impl Default for WindowFlags
impl Default for WindowFlags
Source§impl Hash for WindowFlags
impl Hash for WindowFlags
Source§impl Ord for WindowFlags
impl Ord for WindowFlags
Source§fn cmp(&self, other: &WindowFlags) -> Ordering
fn cmp(&self, other: &WindowFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WindowFlags
impl PartialEq for WindowFlags
Source§impl PartialOrd for WindowFlags
impl PartialOrd for WindowFlags
impl Copy for WindowFlags
impl Eq for WindowFlags
impl StructuralPartialEq for WindowFlags
Auto Trait Implementations§
impl Freeze for WindowFlags
impl RefUnwindSafe for WindowFlags
impl Send for WindowFlags
impl Sync for WindowFlags
impl Unpin for WindowFlags
impl UnwindSafe for WindowFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more