pub struct HostTreeBuilder { /* private fields */ }Implementations§
Source§impl HostTreeBuilder
impl HostTreeBuilder
pub fn new() -> Self
pub fn from_retained(tree: HostTree) -> Self
pub fn push(&mut self, node: UiNode) -> UiId
pub fn node(&mut self, id: UiId, kind: UiNodeKind, rect: UiRect) -> UiId
pub fn interactive( &mut self, id: UiId, kind: UiNodeKind, rect: UiRect, interaction: InteractionRole, ) -> UiId
pub fn styled( &mut self, id: UiId, kind: UiNodeKind, rect: UiRect, style: VisualStyle, ) -> UiId
pub fn text( &mut self, id: UiId, rect: UiRect, text: impl Into<Cow<'static, str>>, style: TextStyle, ) -> UiId
pub fn laid_out( &mut self, id: UiId, kind: UiNodeKind, rect: UiRect, layout: LayoutSpec, ) -> UiId
pub fn in_phase( &mut self, id: UiId, kind: UiNodeKind, rect: UiRect, phase: RenderPhase, ) -> UiId
pub fn with_parent<T>( &mut self, id: UiId, build: impl FnOnce(&mut Self) -> T, ) -> T
pub fn element(&mut self, element: UiElement) -> UiId
pub fn mount( &mut self, component: impl RootComponent, viewport: UiRect, interaction: &UiInteractionState, animations: &AnimationRegistry, component_states: &ComponentStateStore, component_tree: &ComponentTree, contexts: &ContextRegistry, hook_states: &HookStateStore, hook_updates: &Arc<UiUpdateQueue>, task_spawner: Option<&UiTaskSpawner>, effects: &EffectRegistry, scale: UiScale, ) -> UiId
pub fn finish(self) -> HostTree
pub fn projection_metrics(&self) -> HostProjectionMetrics
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostTreeBuilder
impl !UnwindSafe for HostTreeBuilder
impl Freeze for HostTreeBuilder
impl Send for HostTreeBuilder
impl Sync for HostTreeBuilder
impl Unpin for HostTreeBuilder
impl UnsafeUnpin for HostTreeBuilder
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