pub struct WindowCreateOptions {
pub state: WindowState,
pub renderer_type: RendererType,
pub hot_reload_handler: Option<Box<dyn HotReloadHandler>>,
}
Expand description
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§
Source§impl WindowCreateOptions
impl WindowCreateOptions
pub fn new(css: Css) -> Self
pub fn with_css(self, css: Css) -> Self
pub fn new_hot_reload(hot_reload_handler: Box<dyn HotReloadHandler>) -> Self
Trait Implementations§
Source§impl Debug for WindowCreateOptions
impl Debug for WindowCreateOptions
Auto Trait Implementations§
impl Freeze for WindowCreateOptions
impl !RefUnwindSafe for WindowCreateOptions
impl !Send for WindowCreateOptions
impl !Sync for WindowCreateOptions
impl Unpin for WindowCreateOptions
impl !UnwindSafe for WindowCreateOptions
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