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
Sourcepub fn with_tooltip_delay(self, delay: Duration) -> Self
pub fn with_tooltip_delay(self, delay: Duration) -> Self
Configures the pointer dwell delay before native hover tooltips (title / alt) appear.
Sourcepub fn with_tooltip_delay_ms(self, delay_ms: u64) -> Self
pub fn with_tooltip_delay_ms(self, delay_ms: u64) -> Self
Configures the pointer dwell delay in milliseconds before native hover tooltips appear.
Sourcepub fn with_tooltip_style(self, style: HoverTooltipStyle) -> Self
pub fn with_tooltip_style(self, style: HoverTooltipStyle) -> Self
Configures visual styling and offset for native hover tooltips.
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