pub struct AppBuilder<M: Model> { /* private fields */ }Expand description
Builder for configuring and running programs.
Implementations§
Source§impl<M: Model> AppBuilder<M>
impl<M: Model> AppBuilder<M>
Sourcepub fn screen_mode(self, mode: ScreenMode) -> Self
pub fn screen_mode(self, mode: ScreenMode) -> Self
Set the screen mode.
Sourcepub fn with_mouse(self) -> Self
pub fn with_mouse(self) -> Self
Enable mouse support.
Sourcepub fn with_budget(self, budget: FrameBudgetConfig) -> Self
pub fn with_budget(self, budget: FrameBudgetConfig) -> Self
Set the frame budget configuration.
Sourcepub fn with_evidence_sink(self, config: EvidenceSinkConfig) -> Self
pub fn with_evidence_sink(self, config: EvidenceSinkConfig) -> Self
Set the evidence JSONL sink configuration.
Sourcepub fn with_render_trace(self, config: RenderTraceConfig) -> Self
pub fn with_render_trace(self, config: RenderTraceConfig) -> Self
Set the render-trace recorder configuration.
Sourcepub fn with_widget_refresh(self, config: WidgetRefreshConfig) -> Self
pub fn with_widget_refresh(self, config: WidgetRefreshConfig) -> Self
Set the widget refresh selection configuration.
Sourcepub fn with_effect_queue(self, config: EffectQueueConfig) -> Self
pub fn with_effect_queue(self, config: EffectQueueConfig) -> Self
Set the effect queue scheduling configuration.
Sourcepub fn with_inline_auto_remeasure(
self,
config: InlineAutoRemeasureConfig,
) -> Self
pub fn with_inline_auto_remeasure( self, config: InlineAutoRemeasureConfig, ) -> Self
Enable inline auto UI height remeasurement.
Sourcepub fn without_inline_auto_remeasure(self) -> Self
pub fn without_inline_auto_remeasure(self) -> Self
Disable inline auto UI height remeasurement.
Sourcepub fn with_locale_context(self, locale_context: LocaleContext) -> Self
pub fn with_locale_context(self, locale_context: LocaleContext) -> Self
Set the locale context used for rendering.
Sourcepub fn with_locale(self, locale: impl Into<Locale>) -> Self
pub fn with_locale(self, locale: impl Into<Locale>) -> Self
Set the base locale used for rendering.
Sourcepub fn resize_coalescer(self, config: CoalescerConfig) -> Self
pub fn resize_coalescer(self, config: CoalescerConfig) -> Self
Set the resize coalescer configuration.
Sourcepub fn resize_behavior(self, behavior: ResizeBehavior) -> Self
pub fn resize_behavior(self, behavior: ResizeBehavior) -> Self
Set the resize handling behavior.
Sourcepub fn legacy_resize(self, enabled: bool) -> Self
pub fn legacy_resize(self, enabled: bool) -> Self
Toggle legacy immediate-resize behavior for migration.
Auto Trait Implementations§
impl<M> Freeze for AppBuilder<M>where
M: Freeze,
impl<M> !RefUnwindSafe for AppBuilder<M>
impl<M> !Send for AppBuilder<M>
impl<M> !Sync for AppBuilder<M>
impl<M> Unpin for AppBuilder<M>where
M: Unpin,
impl<M> !UnwindSafe for AppBuilder<M>
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