pub struct Settings {
pub size: (u32, u32),
pub position: Position,
pub min_size: Option<(u32, u32)>,
pub max_size: Option<(u32, u32)>,
pub resizable: bool,
pub decorations: bool,
pub transparent: bool,
pub always_on_top: bool,
pub icon: Option<Icon>,
}
Expand description
The window settings of an application.
Fields
size: (u32, u32)
The initial size of the window.
position: Position
The initial position of the window.
min_size: Option<(u32, u32)>
The minimum size of the window.
max_size: Option<(u32, u32)>
The maximum size of the window.
resizable: bool
Whether the window should be resizable or not.
decorations: bool
Whether the window should have a border, a title bar, etc. or not.
transparent: bool
Whether the window should be transparent.
always_on_top: bool
Whether the window will always be on top of other windows.
icon: Option<Icon>
The icon of the window.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more