[][src]Struct azul_core::window::WindowCreateOptions

pub struct WindowCreateOptions {
    pub state: WindowState,
    pub renderer_type: RendererType,
    pub hot_reload_handler: Option<Box<dyn HotReloadHandler>>,
}

Options on how to initially create the window

Fields

state: WindowState

State of the window, set the initial title / width / height here.

renderer_type: RendererType

Renderer type: Hardware-with-software-fallback, pure software or pure hardware renderer?

hot_reload_handler: Option<Box<dyn HotReloadHandler>>

An optional style hot-reloader for the current window, only available with debug_assertions enabled

Implementations

impl WindowCreateOptions[src]

pub fn new(css: Css) -> Self[src]

pub fn with_css(self, css: Css) -> Self[src]

pub fn new_hot_reload(hot_reload_handler: Box<dyn HotReloadHandler>) -> Self[src]

Trait Implementations

impl Debug for WindowCreateOptions[src]

impl Default for WindowCreateOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.