pub struct UiRuntime { /* private fields */ }Implementations§
Source§impl UiRuntime
impl UiRuntime
pub fn handle_default_action( &mut self, tree: &HostTree, pending: UiDefaultAction, ) -> RuntimeOutput
Source§impl UiRuntime
impl UiRuntime
pub fn advance(&mut self, tree: &mut HostTree, elapsed_ms: f32) -> RuntimeOutput
pub fn sync_tree_animation_targets(&mut self, tree: &HostTree) -> bool
Source§impl UiRuntime
impl UiRuntime
pub fn sync_tree_focus(&mut self, tree: &HostTree) -> bool
pub fn focus_node(&mut self, tree: &HostTree, id: &UiId) -> bool
Source§impl UiRuntime
impl UiRuntime
pub fn handle_input( &mut self, tree: &HostTree, input: InputEvent, ) -> RuntimeOutput
Source§impl UiRuntime
impl UiRuntime
pub fn new() -> Self
pub fn reset(&mut self)
pub fn animations(&self) -> &AnimationRegistry
pub fn animations_mut(&mut self) -> &mut AnimationRegistry
pub fn component_states(&self) -> &ComponentStateStore
pub fn component_tree(&self) -> &ComponentTree
pub fn frame_interval_ms(&self) -> Option<u64>
pub fn invalidate_all_components(&self)
pub fn contexts(&self) -> &ContextRegistry
pub fn hook_states(&self) -> &HookStateStore
pub fn hook_updates(&self) -> &Arc<UiUpdateQueue> ⓘ
pub fn set_wake(&self, wake: UiWake)
pub fn set_task_spawner(&mut self, spawner: UiTaskSpawner)
pub fn task_spawner(&self) -> Option<&UiTaskSpawner>
pub fn apply_pending_updates(&mut self, tree: &HostTree) -> PendingUpdateOutput
pub fn effects(&self) -> &EffectRegistry
pub fn run_effects(&self)
pub fn interaction_state(&self) -> UiInteractionState
pub fn clear_interaction_state(&mut self) -> bool
pub fn clear_effects(&mut self)
pub fn clear_hook_state(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UiRuntime
impl !RefUnwindSafe for UiRuntime
impl !Send for UiRuntime
impl !Sync for UiRuntime
impl !UnwindSafe for UiRuntime
impl Unpin for UiRuntime
impl UnsafeUnpin for UiRuntime
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