Struct orbtk_orbclient::WindowSettings
source · [−]pub struct WindowSettings {
pub always_on_top: bool,
pub borderless: bool,
pub fonts: HashMap<String, &'static [u8]>,
pub position: (f64, f64),
pub resizeable: bool,
pub size: (f64, f64),
pub title: String,
}
Expand description
Contains settings of a window.
Fields
always_on_top: bool
Will the window always shown on top of other windows.
borderless: bool
Is the window borderless / without decorations?
fonts: HashMap<String, &'static [u8]>
List of fonts to register.
position: (f64, f64)
The initial position of the window.
resizeable: bool
Is the window resizable?
size: (f64, f64)
The initial size of the window.
title: String
Title of the window.
Trait Implementations
sourceimpl Clone for WindowSettings
impl Clone for WindowSettings
sourcefn clone(&self) -> WindowSettings
fn clone(&self) -> WindowSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowSettings
impl Debug for WindowSettings
sourceimpl Default for WindowSettings
impl Default for WindowSettings
sourcefn default() -> WindowSettings
fn default() -> WindowSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for WindowSettings
impl Send for WindowSettings
impl Sync for WindowSettings
impl Unpin for WindowSettings
impl UnwindSafe for WindowSettings
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
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