Struct winit::window::WindowAttributes
source · pub struct WindowAttributes {Show 18 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 maximized: bool,
pub visible: bool,
pub transparent: bool,
pub blur: 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 active: bool,
/* private fields */
}
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
§maximized: bool
§visible: bool
§transparent: bool
§blur: bool
§decorations: bool
§window_icon: Option<Icon>
§preferred_theme: Option<Theme>
§resize_increments: Option<Size>
§content_protected: bool
§window_level: WindowLevel
§active: bool
Implementations§
source§impl WindowAttributes
impl WindowAttributes
sourcepub fn parent_window(&self) -> Option<&RawWindowHandle>
pub fn parent_window(&self) -> Option<&RawWindowHandle>
Get the parent window stored on the attributes.
sourcepub fn fullscreen(&self) -> Option<&Fullscreen>
pub fn fullscreen(&self) -> Option<&Fullscreen>
Get Fullscreen
option stored on the attributes.
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 !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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.