pub struct WindowSettings {
pub flow: Flow,
pub theme: Theme,
pub visibility: Visibility,
pub decorations: Visibility,
pub resizeable: bool,
pub fullscreen: Option<Fullscreen>,
pub cursor_mode: CursorMode,
pub close_on_x: bool,
}Expand description
Optional onfiguration for the window to be built.
Fields§
§flow: Flow§theme: Theme§visibility: Visibility§decorations: Visibility§resizeable: bool§fullscreen: Option<Fullscreen>§cursor_mode: CursorMode§close_on_x: boolImplementations§
Source§impl WindowSettings
impl WindowSettings
pub fn with_flow(self, flow: Flow) -> Self
pub fn with_theme(self, theme: Theme) -> Self
pub fn with_visibility(self, visibility: Visibility) -> Self
pub fn with_decorations(self, visibility: Visibility) -> Self
pub fn with_fullscreen(self, fullscreen: Option<Fullscreen>) -> Self
pub fn with_cursor_mode(self, cursor_mode: CursorMode) -> Self
pub fn with_close_on_x(self, close_on_x: bool) -> Self
pub fn with_resizeable(self, resizeable: bool) -> Self
Trait Implementations§
Source§impl Clone for WindowSettings
impl Clone for WindowSettings
Source§fn clone(&self) -> WindowSettings
fn clone(&self) -> WindowSettings
Returns a duplicate 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 WindowSettings
impl Debug for WindowSettings
Source§impl Default for WindowSettings
impl Default for WindowSettings
Source§impl From<WindowSettings> for WindowBuilder
impl From<WindowSettings> for WindowBuilder
Source§fn from(settings: WindowSettings) -> Self
fn from(settings: WindowSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowSettings
impl RefUnwindSafe for WindowSettings
impl Send for WindowSettings
impl Sync for WindowSettings
impl Unpin for WindowSettings
impl UnwindSafe for WindowSettings
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