pub struct StrataAppBuilder { /* private fields */ }Expand description
Fluent builder for low-level application configuration and initialization.
Implementations§
Source§impl StrataAppBuilder
impl StrataAppBuilder
pub fn new() -> Self
pub fn with_window(self, config: WindowConfig) -> Self
pub fn with_dpr(self, dpr: f32) -> Self
pub fn on_start<F: FnMut(&mut AppRuntime) + 'static>(self, cb: F) -> Self
pub fn on_event<F: FnMut(&PlatformEvent, &mut EventLoopControl, &mut AppRuntime) + 'static>( self, cb: F, ) -> Self
pub fn on_frame<F: FnMut(AppFrameInfo, &mut AppRuntime) + 'static>( self, cb: F, ) -> Self
pub fn on_draw<F: FnMut(&mut DisplayList) + 'static>(self, cb: F) -> Self
pub fn on_exit<F: FnMut(&mut AppRuntime) + 'static>(self, cb: F) -> Self
pub fn build<F: FnOnce() -> View>(self, root: F) -> StrataApp
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StrataAppBuilder
impl !Send for StrataAppBuilder
impl !Sync for StrataAppBuilder
impl !UnwindSafe for StrataAppBuilder
impl Forget for StrataAppBuilder
impl Freeze for StrataAppBuilder
impl Move for StrataAppBuilder
impl Unpin for StrataAppBuilder
impl UnsafeUnpin for StrataAppBuilder
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