pub struct WindowConfig {Show 20 fields
pub title: String,
pub size: Vector2<f64>,
pub min_size: Option<Vector2<f64>>,
pub max_size: Option<Vector2<f64>>,
pub resizable: bool,
pub maximized: bool,
pub mode: WindowMode,
pub level: WindowLevel,
pub visible: bool,
pub blur: bool,
pub transparent: bool,
pub position: Option<Point2<f64>>,
pub active: bool,
pub buttons: WindowButtons,
pub decorations: bool,
pub resize_increments: Option<Vector2<f64>>,
pub content_protected: bool,
pub icon: Option<WindowIcon>,
pub cursor: Cursor,
pub close_on_request: bool,
}Expand description
Window configuration.
Fields§
§title: StringThe title of the window.
size: Vector2<f64>The inner size of the window.
min_size: Option<Vector2<f64>>The minimum size of the window.
max_size: Option<Vector2<f64>>The maximum size of the window.
resizable: boolIf the window should be resizeable.
maximized: boolIf the window should be maximized on startup.
mode: WindowModeThe window mode.
level: WindowLevelThe window level.
visible: boolIf the window should be visible on startup.
blur: boolIf the window background should be blurred.
transparent: boolIf the window background should be transparent. May not be compatible on all system.
position: Option<Point2<f64>>The desired initial position for the window.
active: boolIf the window should be active/focused on startup.
The enabled window buttons.
decorations: boolIf the window should be decorated (have borders).
resize_increments: Option<Vector2<f64>>The resize increments of the window. Not supported everywhere.
content_protected: boolPrevents window capturing by some apps (not all though).
icon: Option<WindowIcon>The window icon.
cursor: CursorThe window cursor.
close_on_request: boolIf the window should exit/close on close request (pressing the close window button).
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WindowConfig
impl Debug 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 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
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.