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
Force mouse capture on.
Sourcepub fn with_mouse_capture_policy(self, policy: MouseCapturePolicy) -> Self
pub fn with_mouse_capture_policy(self, policy: MouseCapturePolicy) -> Self
Set mouse capture policy for this app.
Sourcepub fn with_mouse_enabled(self, enabled: bool) -> Self
pub fn with_mouse_enabled(self, enabled: bool) -> Self
Force mouse capture enabled/disabled for this app.
Sourcepub fn with_budget(self, budget: FrameBudgetConfig) -> Self
pub fn with_budget(self, budget: FrameBudgetConfig) -> Self
Set the frame budget configuration.
Sourcepub fn with_load_governor(self, config: LoadGovernorConfig) -> Self
pub fn with_load_governor(self, config: LoadGovernorConfig) -> Self
Set the runtime load-governor configuration.
Sourcepub fn without_load_governor(self) -> Self
pub fn without_load_governor(self) -> Self
Disable the adaptive load governor for this app.
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.
Sourcepub fn tick_strategy(self, strategy: TickStrategyKind) -> Self
pub fn tick_strategy(self, strategy: TickStrategyKind) -> Self
Set the tick strategy for selective background screen ticking.