Skip to main content

App

Struct App 

Source
pub struct App { /* private fields */ }
Expand description

Unified cross-platform application runtime orchestrating platform events, reactivity, layout, and rendering.

Implementations§

Source§

impl App

Core lifecycle, event dispatch, and frame rendering pipeline for App.

Source

pub fn new(config: AppConfig) -> Result<Self, PlatformError>

Creates an App bound to the active native OS/Web platform backend.

§Arguments
  • AppConfig - Declarative application configuration.
§Returns
  • Result<Self, PlatformError> - Initialized cross-platform app.
Source

pub fn headless(config: AppConfig) -> Result<Self, PlatformError>

Creates an App backed by a deterministic offscreen HeadlessPlatform.

§Arguments
  • AppConfig - Declarative application configuration.
§Returns
  • Result<Self, PlatformError> - Initialized headless app.
Source

pub fn with_platform( config: AppConfig, platform: Box<dyn PlatformBackend>, ) -> Result<Self, PlatformError>

Creates an App backed by an explicit PlatformBackend implementation.

§Arguments
  • AppConfig - Application configuration.
  • Box<dyn PlatformBackend> - Platform backend implementation.
§Returns
  • Result<Self, PlatformError> - Initialized application runtime.
Source

pub fn notify_surface_lost(&mut self) -> u64

Signals graphics surface loss distinctly from OS background and route freeze, preserving page state and invalidating old surface retries.

§Arguments
  • &Self - Mutable application.
§Returns
  • u64 - Newly assigned monotonic surface generation identifier.
Source

pub fn notify_surface_recreated(&mut self) -> u64

Signals graphics surface recreation distinctly from OS foreground and schedules a clean full-surface redraw on the new generation.

§Arguments
  • &Self - Mutable application.
§Returns
  • u64 - Newly active monotonic surface generation identifier.
Source

pub fn capture_resource_accounting_snapshot( &mut self, grace_period_ms: u64, ) -> ResourceAccountingSnapshot

Synchronizes current page phase counts into ResourceAccountant and captures an ownership & leak snapshot.

§Arguments
  • &Self - Mutable application.
  • u64 - Grace period in milliseconds before live objects under destroyed owners count as leaks.
§Returns
  • ResourceAccountingSnapshot - Complete ownership snapshot separating expected_retained from destroyed_owner.live_objects.
Source

pub fn set_partial_layout_damage(&mut self, enabled: bool)

Enables or disables surgical partial-layout conservative bounds diffing (default true; disable for full-redraw A/B comparisons).

§Arguments
  • &Self - Mutable application.
  • bool - true for surgical partial-layout damage; false to promote any layout pass to full-viewport redraw.
Source

pub fn is_partial_layout_damage_enabled(&self) -> bool

Returns whether surgical partial-layout conservative bounds diffing is enabled.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - true when surgical partial-layout damage is active.
Source

pub fn set_telemetry_enabled(&mut self, enabled: bool)

Enables or disables opt-in per-phase microsecond timing instrumentation inside step_frame.

§Arguments
  • &Self - Mutable application.
  • bool - true to capture microsecond phase timings; false for zero-syscall default execution.
Source

pub fn is_telemetry_enabled(&self) -> bool

Returns whether opt-in per-phase microsecond telemetry timing is currently enabled.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - true when per-phase microsecond timing is active.
Source

pub fn last_frame_telemetry(&self) -> FrameTelemetry

Returns the most recently recorded unified FrameTelemetry snapshot.

§Arguments
  • &Self - Application reference.
§Returns
  • FrameTelemetry - Last frame phase timings, damage ratio, redraw cause, and idle-aware FPS.
Source

pub fn target_hz(&self) -> f32

Returns the effective target frame cadence in Hertz considering both display refresh rate and fps_limit.

§Arguments
  • &Self - Application reference.
§Returns
  • f32 - Effective target refresh cadence in Hertz.
Source

pub fn present_fps(&self) -> f32

Returns the active presented frames-per-second rate (0.0 while idle).

§Arguments
  • &Self - Application reference.
§Returns
  • f32 - Active presented frames per second.
Source

pub fn is_idle(&self) -> bool

Returns true when the most recent step_frame call skipped rendering because the scene was clean and idle.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - Whether the application is currently idle.
Source

pub fn display_refresh_rate_hz(&self) -> f32

Returns the detected native hardware display refresh rate in Hertz (120.0, 144.0, 180.0, etc.).

§Arguments
  • &Self - Application reference.
§Returns
  • f32 - Active display refresh rate in Hertz.
Source

pub fn update_display_refresh_rate_hz(&mut self, hz: f32)

Updates the detected native hardware display refresh rate reported by an OS or browser host.

§Arguments
  • &Self - Mutable application.
  • f32 - Measured or queried display refresh rate in Hertz.
Source

pub fn report_host_refresh_rate(&mut self, measured_hz: f32)

Reports live host VSync / requestAnimationFrame cadence when the scene is idle so telemetry reflects the real display rate.

§Arguments
  • &Self - Mutable application.
  • f32 - Measured host presentation cadence in Hertz.
Source

pub fn is_ime_active(&self) -> bool

Returns whether an editable input node currently requests the system soft keyboard / IME.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - True when an enabled NodeKind::Input holds keyboard focus.
Source

pub fn last_frame_damage(&self) -> DamageRegion

Returns the damage region rasterized during the most recent rendered frame.

§Arguments
  • &Self - Application reference.
§Returns
  • DamageRegion - Last rendered damage region.
Source

pub fn read_clipboard(&self) -> Option<String>

Reads the current plain-text clipboard content from the active platform backend.

§Arguments
  • &Self - Application reference.
§Returns
  • Option<String> - Current clipboard string if available.
Source

pub fn write_clipboard(&mut self, text: &str) -> Result<(), PlatformError>

Writes text into the active platform backend clipboard.

§Arguments
  • &Self - Mutable application.
  • &str - UTF-8 string to place in the system clipboard.
§Returns
  • Result<(), PlatformError> - Clipboard write status.
Source

pub fn app_state(&self) -> AppState

Returns the current normalized cross-platform AppState.

§Arguments
  • &Self - Application reference.
§Returns
  • AppState - Current canonical application lifecycle state.
Source

pub fn app_state_signal(&self) -> Signal<AppState>

Returns the reactive Signal<AppState> tracking canonical application lifecycle transitions.

§Arguments
  • &Self - Application reference.
§Returns
  • Signal<AppState> - Reactive application state signal.
Source

pub fn safe_area_signal(&self) -> Signal<SafeAreaInsets>

Returns the reactive Signal<SafeAreaInsets> tracking OS status-bar, notch, and Atomic/Dynamic Island insets.

§Arguments
  • &Self - Application reference.
§Returns
  • Signal<SafeAreaInsets> - Reactive safe-area signal.
Source

pub fn immersive_fullscreen_signal(&self) -> Signal<bool>

Returns the reactive Signal<bool> tracking immersive fullscreen mode across UI chrome and OS bars.

§Arguments
  • &Self - Application reference.
§Returns
  • Signal<bool> - Reactive immersive fullscreen state signal.
Source

pub fn is_immersive_fullscreen(&self) -> bool

Returns whether immersive fullscreen mode is currently enabled.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - true while immersive fullscreen is active.
Source

pub fn set_immersive_fullscreen(&mut self, enabled: bool)

Toggles immersive fullscreen mode, updating reactive UI chrome state and enqueuing platform fullscreen commands.

§Arguments
  • &Self - Mutable application.
  • bool - true to enter edge-to-edge immersive fullscreen; false to exit and restore bars.
Source

pub fn active_gesture(&self) -> ActiveGesture

Returns the currently active exclusive gesture owner inside GestureArena.

§Arguments
  • &Self - Application reference.
§Returns
  • ActiveGesture - Current exclusive gesture state (Idle when no gesture is active).
Source

pub fn is_background_frozen(&self) -> bool

Returns true when the application is currently frozen in background with zero CPU/GPU frame work.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - true while background-frozen.
Source

pub fn should_pump_frames(&self) -> bool

Returns true when the host event loop should pump frames (running && !is_background_frozen()).

§Arguments
  • &Self - Application reference.
§Returns
  • bool - false when background-frozen or shutting down so OS/Web frame pumps stay completely idle.
Source

pub fn is_platform_frame_pump_paused(&self) -> bool

Returns whether the underlying platform backend’s frame pump is currently paused for background freeze.

§Arguments
  • &Self - Application reference.
§Returns
  • bool - true when the platform frame pump is paused.
Source

pub fn wait_background_events(&mut self) -> Result<FrameStats, PlatformError>

Blocks on OS lifecycle events with zero CPU usage while background-frozen and renders a restored frame immediately upon waking to foreground.

§Arguments
  • &Self - Mutable application.
§Returns
  • Result<FrameStats, PlatformError> - Zeroed idle stats while still backgrounded, or restored frame stats after waking.
Source

pub fn dispatch_system_event(&mut self, event: SystemEvent)

Normalizes a raw SystemEvent through SystemEventNormalizer, updates reactive Context signals, and notifies all active hooks and visible Lifecycle components.

§Arguments
  • &Self - Mutable application.
  • SystemEvent - Incoming platform or synthetic system event.
Source

pub fn copy_selection(&mut self) -> Option<String>

Copies the active scene text selection into the platform clipboard and returns the copied string.

§Arguments
  • &Self - Mutable application.
§Returns
  • Option<String> - Copied UTF-8 selection, or None when nothing is selected.
Source

pub fn set_fps_limit(&mut self, limit: Option<u32>)

Configures the cross-platform maximum frame rate (None = unlimited maximum FPS, the default).

§Arguments
  • &Self - Mutable application.
  • Option<u32> - Target FPS cap (Some(1..=1000) or None for uncapped maximum FPS).
Source

pub fn fps_limit(&self) -> Option<u32>

Returns the active cross-platform FPS limit (None = unlimited maximum FPS).

§Arguments
  • &Self - Application reference.
§Returns
  • Option<u32> - Active frame rate cap, or None when uncapped.
Source

pub fn attach_game_host(&mut self, host: GameEngineHost)

Registers a GameEngineHost so all incoming OS/Web WindowEvents are automatically forwarded to its InputState.

§Arguments
  • &Self - Mutable application.
  • GameEngineHost - Game engine host handle to attach.
Source

pub fn has_active_animations(&self) -> bool

Returns true when any node transition animation, inertial scroll, or blinking text caret is actively running.

§Arguments
  • &Self - App reference.
§Returns
  • bool - Whether animations need continuous frame stepping.
Source

pub fn mount<F, C>(&mut self, builder: F) -> NodeId
where F: FnOnce() -> C, C: Component,

Mounts a root Component or NodeId into the application’s scene root with an ambient Context.

§Arguments
  • &Self - Mutable application.
  • F - Zero-argument root builder closure invoking view! or components.
§Returns
  • NodeId - Mounted root content node handle.
Source

pub fn platform_kind(&self) -> PlatformKind

Returns the active PlatformKind.

§Arguments
  • &Self - App reference.
§Returns
  • PlatformKind - Active execution platform.
Source

pub fn platform_capabilities(&self) -> PlatformCapabilities

Returns the active PlatformCapabilities.

§Arguments
  • &Self - App reference.
§Returns
  • PlatformCapabilities - Hardware/OS capability matrix.
Source

pub fn raw_window_handle(&self) -> RawWindowHandle

Returns the RawWindowHandle of the primary window.

§Arguments
  • &Self - App reference.
§Returns
  • RawWindowHandle - Native OS window pointer bundle.
Source

pub fn a11y_tree(&self) -> A11yTree

Compiles a fresh cross-platform A11yTree snapshot from the active retained SceneTree.

§Arguments
  • &Self - App reference.
§Returns
  • A11yTree - Compiled accessibility tree with laid-out bounds and focus state.
Source

pub fn set_render_mode(&mut self, mode: RenderMode)

Dynamically switches the rendering pipeline mode (Auto, Software, Hardware, Hybrid).

§Arguments
  • &Self - Mutable app.
  • RenderMode - Target render mode.
Source

pub fn queue_window_command(&mut self, command: WindowCommand)

Queues a WindowCommand for immediate dispatch on the next frame tick.

§Arguments
  • &Self - Mutable app.
  • WindowCommand - Command to queue.
Source

pub fn set_exact_physical_viewport( &mut self, phys_w: u32, phys_h: u32, scale: f32, )

Sets exact physical pixel surface dimensions and DPI scale without truncating fractional logical sizes.

§Arguments
  • &Self - Mutable app.
  • u32 - Exact physical surface width in device pixels.
  • u32 - Exact physical surface height in device pixels.
  • f32 - Active display DPI scale factor.
Source

pub fn dispatch_window_event(&mut self, event: WindowEvent)

Processes a single incoming WindowEvent, updating state, hit-testing, and dispatching UI callbacks.

§Arguments
  • &Self - Mutable app.
  • WindowEvent - Event received from the OS or test harness.
Source

pub fn step_frame(&mut self) -> Result<FrameStats, PlatformError>

Executes one complete frame tick: poll events, flush commands, layout, paint, render, and present.

§Arguments
  • &Self - Mutable app.
§Returns
  • Result<FrameStats, PlatformError> - Performance and pixel telemetry for this frame.
Source

pub fn step_game_frame( &mut self, dt_secs: f32, ) -> Result<FrameStats, PlatformError>

Advances the internal FrameClock by dt_secs, executes one full UI/game frame, and resets transient input deltas.

§Arguments
  • &Self - Mutable app.
  • f32 - Elapsed seconds since the previous frame.
§Returns
  • Result<FrameStats, PlatformError> - Frame telemetry for the rendered frame.
Source

pub fn run_frames( &mut self, max_frames: Option<u64>, ) -> Result<FrameStats, PlatformError>

Runs the interactive frame loop until max_frames is reached or the window closes.

§Arguments
  • &Self - Mutable app.
  • Option<u64> - Optional frame limit (None loops until CloseRequested or termination).
§Returns
  • Result<FrameStats, PlatformError> - Telemetry from the final rendered frame.
Source

pub fn cancel_all_active_pointers(&mut self)

Cancels all active pointer/touch contacts and resets transient gesture, drag, hover, and pressed UI state.

§Arguments
  • &Self - Mutable app.
Source

pub fn reconcile_active_touch_ids(&mut self, live_ids: &[u64])

Reconciles active touch contacts against the OS ground-truth live pointer ID list, pruning any stale/missed touches.

§Arguments
  • &Self - Mutable app.
  • &[u64] - Currently active OS touch pointer identifiers.
Source§

impl App

Source

pub fn get_config(&self) -> &AppConfig

Source

pub fn get_mut_config(&mut self) -> &mut AppConfig

Source

pub fn set_config(&mut self, val: AppConfig) -> &mut Self

Source

pub fn get_mut_platform(&mut self) -> &mut Box<dyn PlatformBackend + 'static>

Source

pub fn set_platform( &mut self, val: Box<dyn PlatformBackend + 'static>, ) -> &mut Self

Source

pub fn get_window_state(&self) -> WindowState

Source

pub fn get_mut_window_state(&mut self) -> &mut WindowState

Source

pub fn set_window_state(&mut self, val: WindowState) -> &mut Self

Source

pub fn get_scene(&self) -> &SceneHandle

Source

pub fn get_mut_scene(&mut self) -> &mut SceneHandle

Source

pub fn set_scene(&mut self, val: SceneHandle) -> &mut Self

Source

pub fn get_context(&self) -> &Context

Source

pub fn get_mut_context(&mut self) -> &mut Context

Source

pub fn set_context(&mut self, val: Context) -> &mut Self

Source

pub fn get_layout_engine(&self) -> &LayoutEngine

Source

pub fn get_mut_layout_engine(&mut self) -> &mut LayoutEngine

Source

pub fn set_layout_engine(&mut self, val: LayoutEngine) -> &mut Self

Source

pub fn get_renderer(&self) -> &Renderer

Source

pub fn get_mut_renderer(&mut self) -> &mut Renderer

Source

pub fn set_renderer(&mut self, val: Renderer) -> &mut Self

Source

pub fn get_command_queue(&self) -> &WindowCommandQueue

Source

pub fn get_mut_command_queue(&mut self) -> &mut WindowCommandQueue

Source

pub fn set_command_queue(&mut self, val: WindowCommandQueue) -> &mut Self

Source

pub fn get_storage(&self) -> &StorageStore

Source

pub fn get_mut_storage(&mut self) -> &mut StorageStore

Source

pub fn set_storage(&mut self, val: StorageStore) -> &mut Self

Source

pub fn get_running(&self) -> bool

Source

pub fn get_mut_running(&mut self) -> &mut bool

Source

pub fn set_running(&mut self, val: bool) -> &mut Self

Source

pub fn get_pending_damage(&self) -> DamageRegion

Source

pub fn get_mut_pending_damage(&mut self) -> &mut DamageRegion

Source

pub fn set_pending_damage(&mut self, val: DamageRegion) -> &mut Self

Source

pub fn get_input_state(&self) -> &InputState

Source

pub fn get_mut_input_state(&mut self) -> &mut InputState

Source

pub fn set_input_state(&mut self, val: InputState) -> &mut Self

Source

pub fn get_frame_clock(&self) -> FrameClock

Source

pub fn get_mut_frame_clock(&mut self) -> &mut FrameClock

Source

pub fn set_frame_clock(&mut self, val: FrameClock) -> &mut Self

Source

pub fn get_services(&self) -> &PlatformServiceHub

Source

pub fn get_mut_services(&mut self) -> &mut PlatformServiceHub

Source

pub fn set_services(&mut self, val: PlatformServiceHub) -> &mut Self

Source

pub fn get_dynamic_hub(&self) -> &DynamicUpdateHub

Source

pub fn get_mut_dynamic_hub(&mut self) -> &mut DynamicUpdateHub

Source

pub fn set_dynamic_hub(&mut self, val: DynamicUpdateHub) -> &mut Self

Source

pub fn get_last_rendered_revision(&self) -> u64

Source

pub fn get_mut_last_rendered_revision(&mut self) -> &mut u64

Source

pub fn set_last_rendered_revision(&mut self, val: u64) -> &mut Self

Source

pub fn get_last_cursor(&self) -> CursorIcon

Source

pub fn get_mut_last_cursor(&mut self) -> &mut CursorIcon

Source

pub fn set_last_cursor(&mut self, val: CursorIcon) -> &mut Self

Source

pub fn get_game_hosts(&self) -> &Vec<GameEngineHost>

Source

pub fn get_mut_game_hosts(&mut self) -> &mut Vec<GameEngineHost>

Source

pub fn set_game_hosts(&mut self, val: Vec<GameEngineHost>) -> &mut Self

Source

pub fn get_mut_touch_drag_pointer_id(&mut self) -> &mut Option<u64>

Source

pub fn set_touch_drag_pointer_id(&mut self, val: Option<u64>) -> &mut Self

Source

pub fn get_mut_touch_drag_origin(&mut self) -> &mut Option<Point>

Source

pub fn set_touch_drag_origin(&mut self, val: Option<Point>) -> &mut Self

Source

pub fn get_mut_touch_drag_last(&mut self) -> &mut Option<Point>

Source

pub fn set_touch_drag_last(&mut self, val: Option<Point>) -> &mut Self

Source

pub fn get_touch_dragging(&self) -> bool

Source

pub fn get_mut_touch_dragging(&mut self) -> &mut bool

Source

pub fn set_touch_dragging(&mut self, val: bool) -> &mut Self

Source

pub fn get_touch_drag_travel(&self) -> f32

Source

pub fn get_mut_touch_drag_travel(&mut self) -> &mut f32

Source

pub fn set_touch_drag_travel(&mut self, val: f32) -> &mut Self

Source

pub fn get_touch_scroll_axis(&self) -> u8

Source

pub fn get_mut_touch_scroll_axis(&mut self) -> &mut u8

Source

pub fn set_touch_scroll_axis(&mut self, val: u8) -> &mut Self

Source

pub fn get_touch_vel_accum_delta(&self) -> Point

Source

pub fn get_mut_touch_vel_accum_delta(&mut self) -> &mut Point

Source

pub fn set_touch_vel_accum_delta(&mut self, val: Point) -> &mut Self

Source

pub fn get_touch_vel_head(&self) -> usize

Source

pub fn get_mut_touch_vel_head(&mut self) -> &mut usize

Source

pub fn set_touch_vel_head(&mut self, val: usize) -> &mut Self

Source

pub fn get_touch_vel_len(&self) -> usize

Source

pub fn get_mut_touch_vel_len(&mut self) -> &mut usize

Source

pub fn set_touch_vel_len(&mut self, val: usize) -> &mut Self

Source

pub fn get_touch_vel_idle_secs(&self) -> f32

Source

pub fn get_mut_touch_vel_idle_secs(&mut self) -> &mut f32

Source

pub fn set_touch_vel_idle_secs(&mut self, val: f32) -> &mut Self

Source

pub fn get_scrollbar_dragging(&self) -> bool

Source

pub fn get_mut_scrollbar_dragging(&mut self) -> &mut bool

Source

pub fn set_scrollbar_dragging(&mut self, val: bool) -> &mut Self

Source

pub fn get_scrollbar_drag_axis(&self) -> u8

Source

pub fn get_mut_scrollbar_drag_axis(&mut self) -> &mut u8

Source

pub fn set_scrollbar_drag_axis(&mut self, val: u8) -> &mut Self

Source

pub fn get_mut_text_selecting_node(&mut self) -> &mut Option<NodeId>

Source

pub fn set_text_selecting_node(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_text_select_anchor_char(&self) -> usize

Source

pub fn get_mut_text_select_anchor_char(&mut self) -> &mut usize

Source

pub fn set_text_select_anchor_char(&mut self, val: usize) -> &mut Self

Source

pub fn get_text_click_count(&self) -> u8

Source

pub fn get_mut_text_click_count(&mut self) -> &mut u8

Source

pub fn set_text_click_count(&mut self, val: u8) -> &mut Self

Source

pub fn get_mut_text_last_click_node(&mut self) -> &mut Option<NodeId>

Source

pub fn set_text_last_click_node(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_mut_text_last_click_pos(&mut self) -> &mut Option<Point>

Source

pub fn set_text_last_click_pos(&mut self, val: Option<Point>) -> &mut Self

Source

pub fn get_text_last_click_age_secs(&self) -> f32

Source

pub fn get_mut_text_last_click_age_secs(&mut self) -> &mut f32

Source

pub fn set_text_last_click_age_secs(&mut self, val: f32) -> &mut Self

Source

pub fn get_active_pointers(&self) -> &HashMap<u64, Point>

Source

pub fn get_mut_active_pointers(&mut self) -> &mut HashMap<u64, Point>

Source

pub fn set_active_pointers(&mut self, val: HashMap<u64, Point>) -> &mut Self

Source

pub fn get_active_pointer_devices(&self) -> &HashMap<u64, PointerDevice>

Source

pub fn get_mut_active_pointer_devices( &mut self, ) -> &mut HashMap<u64, PointerDevice>

Source

pub fn set_active_pointer_devices( &mut self, val: HashMap<u64, PointerDevice>, ) -> &mut Self

Source

pub fn get_mut_gesture_origin(&mut self) -> &mut Option<Point>

Source

pub fn set_gesture_origin(&mut self, val: Option<Point>) -> &mut Self

Source

pub fn get_pinch_base_dist(&self) -> f32

Source

pub fn get_mut_pinch_base_dist(&mut self) -> &mut f32

Source

pub fn set_pinch_base_dist(&mut self, val: f32) -> &mut Self

Source

pub fn get_gesture_hold_secs(&self) -> f32

Source

pub fn get_mut_gesture_hold_secs(&mut self) -> &mut f32

Source

pub fn set_gesture_hold_secs(&mut self, val: f32) -> &mut Self

Source

pub fn get_long_press_fired(&self) -> bool

Source

pub fn get_mut_long_press_fired(&mut self) -> &mut bool

Source

pub fn set_long_press_fired(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_last_tap_pos(&mut self) -> &mut Option<Point>

Source

pub fn set_last_tap_pos(&mut self, val: Option<Point>) -> &mut Self

Source

pub fn get_last_tap_age_secs(&self) -> f32

Source

pub fn get_mut_last_tap_age_secs(&mut self) -> &mut f32

Source

pub fn set_last_tap_age_secs(&mut self, val: f32) -> &mut Self

Source

pub fn get_gesture_seq(&self) -> u64

Source

pub fn get_mut_gesture_seq(&mut self) -> &mut u64

Source

pub fn set_gesture_seq(&mut self, val: u64) -> &mut Self

Source

pub fn get_scroll_velocity(&self) -> Point

Source

pub fn get_mut_scroll_velocity(&mut self) -> &mut Point

Source

pub fn set_scroll_velocity(&mut self, val: Point) -> &mut Self

Source

pub fn get_scroll_fling_pos(&self) -> Point

Source

pub fn get_mut_scroll_fling_pos(&mut self) -> &mut Point

Source

pub fn set_scroll_fling_pos(&mut self, val: Point) -> &mut Self

Source

pub fn get_mut_touch_scroll_target(&mut self) -> &mut Option<NodeId>

Source

pub fn set_touch_scroll_target(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_smooth_scroll_pending(&self) -> Point

Source

pub fn get_mut_smooth_scroll_pending(&mut self) -> &mut Point

Source

pub fn set_smooth_scroll_pending(&mut self, val: Point) -> &mut Self

Source

pub fn get_smooth_scroll_pos(&self) -> Point

Source

pub fn get_mut_smooth_scroll_pos(&mut self) -> &mut Point

Source

pub fn set_smooth_scroll_pos(&mut self, val: Point) -> &mut Self

Source

pub fn get_mut_smooth_scroll_target(&mut self) -> &mut Option<NodeId>

Source

pub fn set_smooth_scroll_target(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_in_step_frame(&self) -> bool

Source

pub fn get_mut_in_step_frame(&mut self) -> &mut bool

Source

pub fn set_in_step_frame(&mut self, val: bool) -> &mut Self

Source

pub fn get_gesture_suppressed(&self) -> bool

Source

pub fn get_mut_gesture_suppressed(&mut self) -> &mut bool

Source

pub fn set_gesture_suppressed(&mut self, val: bool) -> &mut Self

Source

pub fn get_fps_accum_secs(&self) -> f32

Source

pub fn get_mut_fps_accum_secs(&mut self) -> &mut f32

Source

pub fn set_fps_accum_secs(&mut self, val: f32) -> &mut Self

Source

pub fn get_fps_accum_frames(&self) -> u32

Source

pub fn get_mut_fps_accum_frames(&mut self) -> &mut u32

Source

pub fn set_fps_accum_frames(&mut self, val: u32) -> &mut Self

Source

pub fn get_fps_budget_accum(&self) -> f32

Source

pub fn get_mut_fps_budget_accum(&mut self) -> &mut f32

Source

pub fn set_fps_budget_accum(&mut self, val: f32) -> &mut Self

Source

pub fn get_last_ime_active(&self) -> bool

Source

pub fn get_mut_last_ime_active(&mut self) -> &mut bool

Source

pub fn set_last_ime_active(&mut self, val: bool) -> &mut Self

Source

pub fn get_mut_last_ime_node(&mut self) -> &mut Option<NodeId>

Source

pub fn set_last_ime_node(&mut self, val: Option<NodeId>) -> &mut Self

Source

pub fn get_last_frame_damage(&self) -> DamageRegion

Source

pub fn get_mut_last_frame_damage(&mut self) -> &mut DamageRegion

Source

pub fn set_last_frame_damage(&mut self, val: DamageRegion) -> &mut Self

Source

pub fn get_display_refresh_rate_hz(&self) -> f32

Source

pub fn get_mut_display_refresh_rate_hz(&mut self) -> &mut f32

Source

pub fn set_display_refresh_rate_hz(&mut self, val: f32) -> &mut Self

Source

pub fn get_was_animating(&self) -> bool

Source

pub fn get_mut_was_animating(&mut self) -> &mut bool

Source

pub fn set_was_animating(&mut self, val: bool) -> &mut Self

Source

pub fn get_system_event_normalizer(&self) -> &SystemEventNormalizer

Source

pub fn get_mut_system_event_normalizer(&mut self) -> &mut SystemEventNormalizer

Source

pub fn set_system_event_normalizer( &mut self, val: SystemEventNormalizer, ) -> &mut Self

Source

pub fn get_telemetry_enabled(&self) -> bool

Source

pub fn get_mut_telemetry_enabled(&mut self) -> &mut bool

Source

pub fn get_last_frame_telemetry(&self) -> FrameTelemetry

Source

pub fn get_mut_last_frame_telemetry(&mut self) -> &mut FrameTelemetry

Source

pub fn set_last_frame_telemetry(&mut self, val: FrameTelemetry) -> &mut Self

Source

pub fn get_pending_full_redraw_reason(&self) -> FullRedrawReason

Source

pub fn get_mut_pending_full_redraw_reason(&mut self) -> &mut FullRedrawReason

Source

pub fn set_pending_full_redraw_reason( &mut self, val: FullRedrawReason, ) -> &mut Self

Source

pub fn get_last_rendered_viewport(&self) -> Size

Source

pub fn get_mut_last_rendered_viewport(&mut self) -> &mut Size

Source

pub fn set_last_rendered_viewport(&mut self, val: Size) -> &mut Self

Source

pub fn get_last_rendered_scale(&self) -> f32

Source

pub fn get_mut_last_rendered_scale(&mut self) -> &mut f32

Source

pub fn set_last_rendered_scale(&mut self, val: f32) -> &mut Self

Source

pub fn get_active_present_fps(&self) -> f32

Source

pub fn get_mut_active_present_fps(&mut self) -> &mut f32

Source

pub fn set_active_present_fps(&mut self, val: f32) -> &mut Self

Source

pub fn get_idle_secs_since_present(&self) -> f32

Source

pub fn get_mut_idle_secs_since_present(&mut self) -> &mut f32

Source

pub fn set_idle_secs_since_present(&mut self, val: f32) -> &mut Self

Source

pub fn get_is_idle_frame(&self) -> bool

Source

pub fn get_mut_is_idle_frame(&mut self) -> &mut bool

Source

pub fn set_is_idle_frame(&mut self, val: bool) -> &mut Self

Source

pub fn get_partial_layout_damage(&self) -> bool

Source

pub fn get_mut_partial_layout_damage(&mut self) -> &mut bool

Source

pub fn get_mut_background_frozen(&mut self) -> &mut bool

Source

pub fn get_mut_resume_zero_dt_pending(&mut self) -> &mut bool

Source

pub fn get_mut_last_immersive_fullscreen(&mut self) -> &mut bool

Source

pub fn get_surface_present(&self) -> &SurfacePresentState

Source

pub fn get_mut_surface_present(&mut self) -> &mut SurfacePresentState

Source

pub fn set_surface_present(&mut self, val: SurfacePresentState) -> &mut Self

Source

pub fn get_route_prewarmer(&self) -> &RoutePrewarmer

Source

pub fn get_mut_route_prewarmer(&mut self) -> &mut RoutePrewarmer

Source

pub fn set_route_prewarmer(&mut self, val: RoutePrewarmer) -> &mut Self

Source

pub fn get_page_lifecycle(&self) -> &PageLifecycleController

Source

pub fn get_mut_page_lifecycle(&mut self) -> &mut PageLifecycleController

Source

pub fn set_page_lifecycle(&mut self, val: PageLifecycleController) -> &mut Self

Source

pub fn get_resource_accountant(&self) -> &ResourceAccountant

Source

pub fn get_mut_resource_accountant(&mut self) -> &mut ResourceAccountant

Source

pub fn set_resource_accountant(&mut self, val: ResourceAccountant) -> &mut Self

Source

pub fn get_mut_callback_accum_secs(&mut self) -> &mut f32

Source

pub fn get_mut_callback_accum_ticks(&mut self) -> &mut u32

Source

pub fn get_mut_last_callback_rate_hz(&mut self) -> &mut f32

Source

pub fn get_mut_has_callback_rate_sample(&mut self) -> &mut bool

Source

pub fn get_mut_monotonic_clock_ns(&mut self) -> &mut u64

Source

pub fn get_mut_input_resample_head(&mut self) -> &mut usize

Source

pub fn get_mut_input_resample_len(&mut self) -> &mut usize

Source

pub fn get_mut_last_scroll_ts_ns(&mut self) -> &mut u64

Trait Implementations§

Source§

impl Debug for App

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the struct fields as a debug struct, skipping excluded fields.

§Arguments
  • &mut ::std::fmt::Formatter<'_> - The formatter to write the representation into.
§Returns
  • ::std::fmt::Result - Success or failure of the formatting operation.

Auto Trait Implementations§

§

impl !RefUnwindSafe for App

§

impl !Send for App

§

impl !Sync for App

§

impl !UnwindSafe for App

§

impl Forget for App

§

impl Freeze for App
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze, *const ArcInner<[u8]> is !null: Freeze, PhantomData<ArcInner<[u8]>>: Freeze, *const dyn PlatformBackend is !null: Freeze, PhantomData<dyn PlatformBackend>: Freeze, *const RcInner<SceneHandleInner> is !null: Freeze, PhantomData<RcInner<SceneHandleInner>>: Freeze, PhantomData<fn() -> Breakpoint>: Freeze, PhantomData<fn() -> Size>: Freeze, PhantomData<fn() -> ThemeMode>: Freeze, PhantomData<fn() -> SafeAreaInsets>: Freeze, PhantomData<fn() -> Option<GestureEvent>>: Freeze, PhantomData<fn() -> f32>: Freeze, PhantomData<fn() -> u64>: Freeze, *const RcInner<RefCell<DynamicHubState>> is !null: Freeze, PhantomData<RcInner<RefCell<DynamicHubState>>>: Freeze, PhantomData<fn() -> Option<u32>>: Freeze, PhantomData<fn() -> bool>: Freeze, PhantomData<fn() -> Vec<(u64, Point)>>: Freeze, PhantomData<fn() -> AppState>: Freeze, PhantomData<fn() -> NetworkStatus>: Freeze, PhantomData<fn() -> ScreenOrientation>: Freeze, PhantomData<fn() -> String>: Freeze, PhantomData<fn() -> DeviceMotionSample>: Freeze, *const RcInner<ContextShared> is !null: Freeze, PhantomData<RcInner<ContextShared>>: Freeze, PhantomData<NodeId>: Freeze, PhantomData<FlexItemRecord>: Freeze, PhantomData<(usize, usize)>: Freeze, PhantomData<TextSizeEntry>: Freeze, PhantomData<LayoutNodeSnapshot>: Freeze, PhantomData<u32>: Freeze, PhantomData<[MeasureCacheSlot; 4]>: Freeze, PhantomData<Option<FinalLayoutSlot>>: Freeze, PhantomData<NodeTextHashSlot>: Freeze, PhantomData<Rect>: Freeze, *const SoftwareRenderer is !null: Freeze, PhantomData<SoftwareRenderer>: Freeze, *const HardwareRenderer is !null: Freeze, PhantomData<HardwareRenderer>: Freeze, *const HybridRenderer is !null: Freeze, PhantomData<HybridRenderer>: Freeze, PhantomData<u64>: Freeze, PhantomData<(GlyphKey, RasterizedGlyph)>: Freeze, PhantomData<AsciiGlyphStyleTable>: Freeze, PhantomData<(u64, usize)>: Freeze, PhantomData<ShapingRunSlot>: Freeze, PhantomData<LineBreakSlot>: Freeze, PhantomData<RetainedPaintFragment>: Freeze, PhantomData<CachedDrawCommand>: Freeze, PhantomData<DrawCommand>: Freeze, PhantomData<String>: Freeze, PhantomData<(i32, usize, NodeId)>: Freeze, PhantomData<WindowCommand>: Freeze, PhantomData<(String, String)>: Freeze, PhantomData<(SystemPermission, PermissionStatus)>: Freeze, PhantomData<(SystemPermission, String)>: Freeze, PhantomData<ProtocolRegistration>: Freeze, PhantomData<DeepLinkEvent>: Freeze, PhantomData<LiveActivityHandle>: Freeze, PhantomData<SystemNotification>: Freeze, PhantomData<A11yAnnouncement>: Freeze, PhantomData<fn() -> Option<DeepLinkEvent>>: Freeze, PhantomData<GameEngineHost>: Freeze, PhantomData<(u64, Point)>: Freeze, PhantomData<(u64, PointerDevice)>: Freeze, PhantomData<ScopeId>: Freeze, PhantomData<(u64, f32)>: Freeze, PhantomData<RoutePrewarmTask>: Freeze, PhantomData<PrewarmedRouteArtifact>: Freeze, PhantomData<(u64, PageLifecycleEntry)>: Freeze, PhantomData<((TrackedResourceKind, u64), TrackedResourceRecord)>: Freeze, PhantomData<(ResourceOwnerId, (u64, u64))>: Freeze, PhantomData<(bool, Rect)>: Freeze, PhantomData<usize>: Freeze, PhantomData<(NodeId, Rect)>: Freeze, PhantomData<(Rc<RefCell<dyn FnMut(&UiEvent)>>, UiEvent)>: Freeze,

§

impl Move for App

§

impl Unpin for App

§

impl UnsafeUnpin for App
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, *const ArcInner<[u8]> is !null: UnsafeUnpin, PhantomData<ArcInner<[u8]>>: UnsafeUnpin, *const dyn PlatformBackend is !null: UnsafeUnpin, PhantomData<dyn PlatformBackend>: UnsafeUnpin, *const RcInner<SceneHandleInner> is !null: UnsafeUnpin, PhantomData<RcInner<SceneHandleInner>>: UnsafeUnpin, PhantomData<fn() -> Breakpoint>: UnsafeUnpin, PhantomData<fn() -> Size>: UnsafeUnpin, PhantomData<fn() -> ThemeMode>: UnsafeUnpin, PhantomData<fn() -> SafeAreaInsets>: UnsafeUnpin, PhantomData<fn() -> Option<GestureEvent>>: UnsafeUnpin, PhantomData<fn() -> f32>: UnsafeUnpin, PhantomData<fn() -> u64>: UnsafeUnpin, *const RcInner<RefCell<DynamicHubState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<DynamicHubState>>>: UnsafeUnpin, PhantomData<fn() -> Option<u32>>: UnsafeUnpin, PhantomData<fn() -> bool>: UnsafeUnpin, PhantomData<fn() -> Vec<(u64, Point)>>: UnsafeUnpin, PhantomData<fn() -> AppState>: UnsafeUnpin, PhantomData<fn() -> NetworkStatus>: UnsafeUnpin, PhantomData<fn() -> ScreenOrientation>: UnsafeUnpin, PhantomData<fn() -> String>: UnsafeUnpin, PhantomData<fn() -> DeviceMotionSample>: UnsafeUnpin, *const RcInner<ContextShared> is !null: UnsafeUnpin, PhantomData<RcInner<ContextShared>>: UnsafeUnpin, PhantomData<NodeId>: UnsafeUnpin, PhantomData<FlexItemRecord>: UnsafeUnpin, PhantomData<(usize, usize)>: UnsafeUnpin, PhantomData<TextSizeEntry>: UnsafeUnpin, PhantomData<LayoutNodeSnapshot>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, PhantomData<[MeasureCacheSlot; 4]>: UnsafeUnpin, PhantomData<Option<FinalLayoutSlot>>: UnsafeUnpin, PhantomData<NodeTextHashSlot>: UnsafeUnpin, PhantomData<Rect>: UnsafeUnpin, *const SoftwareRenderer is !null: UnsafeUnpin, PhantomData<SoftwareRenderer>: UnsafeUnpin, *const HardwareRenderer is !null: UnsafeUnpin, PhantomData<HardwareRenderer>: UnsafeUnpin, *const HybridRenderer is !null: UnsafeUnpin, PhantomData<HybridRenderer>: UnsafeUnpin, PhantomData<u64>: UnsafeUnpin, PhantomData<(GlyphKey, RasterizedGlyph)>: UnsafeUnpin, PhantomData<AsciiGlyphStyleTable>: UnsafeUnpin, PhantomData<(u64, usize)>: UnsafeUnpin, PhantomData<ShapingRunSlot>: UnsafeUnpin, PhantomData<LineBreakSlot>: UnsafeUnpin, PhantomData<RetainedPaintFragment>: UnsafeUnpin, PhantomData<CachedDrawCommand>: UnsafeUnpin, PhantomData<DrawCommand>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, PhantomData<(i32, usize, NodeId)>: UnsafeUnpin, PhantomData<WindowCommand>: UnsafeUnpin, PhantomData<(String, String)>: UnsafeUnpin, PhantomData<(SystemPermission, PermissionStatus)>: UnsafeUnpin, PhantomData<(SystemPermission, String)>: UnsafeUnpin, PhantomData<ProtocolRegistration>: UnsafeUnpin, PhantomData<DeepLinkEvent>: UnsafeUnpin, PhantomData<LiveActivityHandle>: UnsafeUnpin, PhantomData<SystemNotification>: UnsafeUnpin, PhantomData<A11yAnnouncement>: UnsafeUnpin, PhantomData<fn() -> Option<DeepLinkEvent>>: UnsafeUnpin, PhantomData<GameEngineHost>: UnsafeUnpin, PhantomData<(u64, Point)>: UnsafeUnpin, PhantomData<(u64, PointerDevice)>: UnsafeUnpin, PhantomData<ScopeId>: UnsafeUnpin, PhantomData<(u64, f32)>: UnsafeUnpin, PhantomData<RoutePrewarmTask>: UnsafeUnpin, PhantomData<PrewarmedRouteArtifact>: UnsafeUnpin, PhantomData<(u64, PageLifecycleEntry)>: UnsafeUnpin, PhantomData<((TrackedResourceKind, u64), TrackedResourceRecord)>: UnsafeUnpin, PhantomData<(ResourceOwnerId, (u64, u64))>: UnsafeUnpin, PhantomData<(bool, Rect)>: UnsafeUnpin, PhantomData<usize>: UnsafeUnpin, PhantomData<(NodeId, Rect)>: UnsafeUnpin, PhantomData<(Rc<RefCell<dyn FnMut(&UiEvent)>>, UiEvent)>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.