pub struct WindowAttributes {Show 19 fields
pub inner_size: Option<Size>,
pub min_inner_size: Option<Size>,
pub max_inner_size: Option<Size>,
pub position: Option<Position>,
pub resizable: bool,
pub enabled_buttons: WindowButtons,
pub title: String,
pub fullscreen: Option<Fullscreen>,
pub maximized: bool,
pub visible: bool,
pub transparent: bool,
pub decorations: bool,
pub window_icon: Option<Icon>,
pub preferred_theme: Option<Theme>,
pub resize_increments: Option<Size>,
pub content_protected: bool,
pub window_level: WindowLevel,
pub parent_window: Option<RawWindowHandle>,
pub active: bool,
}
Expand description
Attributes to use when creating a window.
Fields§
§inner_size: Option<Size>
§min_inner_size: Option<Size>
§max_inner_size: Option<Size>
§position: Option<Position>
§resizable: bool
§title: String
§fullscreen: Option<Fullscreen>
§maximized: bool
§visible: bool
§transparent: bool
§decorations: bool
§window_icon: Option<Icon>
§preferred_theme: Option<Theme>
§resize_increments: Option<Size>
§content_protected: bool
§window_level: WindowLevel
§parent_window: Option<RawWindowHandle>
§active: bool
Trait Implementations§
Source§impl Clone for WindowAttributes
impl Clone for WindowAttributes
Source§fn clone(&self) -> WindowAttributes
fn clone(&self) -> WindowAttributes
Returns a copy 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 WindowAttributes
impl Debug for WindowAttributes
Source§impl Default for WindowAttributes
impl Default for WindowAttributes
Source§fn default() -> WindowAttributes
fn default() -> WindowAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowAttributes
impl RefUnwindSafe for WindowAttributes
impl !Send for WindowAttributes
impl !Sync for WindowAttributes
impl Unpin for WindowAttributes
impl UnwindSafe for WindowAttributes
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