pub struct WindowConfig {Show 14 fields
pub title: String,
pub width: f64,
pub height: f64,
pub decorations: bool,
pub resizable: bool,
pub transparent: bool,
pub desktop_backdrop: Option<BackdropMaterial>,
pub native_shadow: bool,
pub level: WindowLevel,
pub append_to_document: bool,
pub web_parent_id: Option<String>,
pub close_behavior: CloseBehavior,
pub pointer: PointerSettings,
pub safe_area_insets: Option<Insets>,
}Fields§
§title: String§width: f64§height: f64§decorations: bool§resizable: bool§transparent: bool§desktop_backdrop: Option<BackdropMaterial>Opt in to desktop effects. Regions are supplied by Element::desktop_backdrop.
native_shadow: bool§level: WindowLevel§append_to_document: bool§web_parent_id: Option<String>§close_behavior: CloseBehavior§pointer: PointerSettings§safe_area_insets: Option<Insets>Explicit safe-area override in logical pixels. None uses native
insets where Winit exposes them and zero elsewhere.
Implementations§
Source§impl WindowConfig
impl WindowConfig
pub fn with_safe_area_insets(self, insets: Insets) -> Self
pub fn into_attributes(self) -> WindowAttributes
pub fn into_attributes_with_identity( self, identity: &ApplicationIdentity, ) -> WindowAttributes
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowConfig
impl Debug for WindowConfig
Source§impl Default for WindowConfig
impl Default for WindowConfig
Source§impl PartialEq for WindowConfig
impl PartialEq for WindowConfig
impl StructuralPartialEq for WindowConfig
Auto Trait Implementations§
impl Freeze for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnsafeUnpin for WindowConfig
impl UnwindSafe for WindowConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.