pub struct DomBuilder<'a> { /* private fields */ }Expand description
A DOM tree (uzor::ui::dom) inside a kit panel. Start with dom.
Implementations§
Source§impl<'a> DomBuilder<'a>
impl<'a> DomBuilder<'a>
Sourcepub fn viewport(self, r: Rect) -> Self
pub fn viewport(self, r: Rect) -> Self
The viewport fixed elements are placed against (the panel rect by default).
Sourcepub fn paint_slots(
self,
paint: &'a mut dyn FnMut(&mut dyn RenderContext, &SlotFrame<'_>),
) -> Self
pub fn paint_slots( self, paint: &'a mut dyn FnMut(&mut dyn RenderContext, &SlotFrame<'_>), ) -> Self
Paint the tree’s embed slots with paint in paint order: each slot’s content
is drawn right after its box, clipped to it and to its scroll containers, so a
popover, a fixed sheet or a toast declared later stays on top. A paint slot
(uzor::ui::dom::El::paint_slot) also gets the gestures it captured.
Sourcepub fn build<'c, C: ContentCx<'c>>(self, cx: &mut C) -> DomResponse
pub fn build<'c, C: ContentCx<'c>>(self, cx: &mut C) -> DomResponse
Paint the tree and register its hit targets and fields.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DomBuilder<'a>
impl<'a> !Send for DomBuilder<'a>
impl<'a> !Sync for DomBuilder<'a>
impl<'a> !UnwindSafe for DomBuilder<'a>
impl<'a> Forget for DomBuilder<'a>
impl<'a> Freeze for DomBuilder<'a>
impl<'a> Move for DomBuilder<'a>
impl<'a> Unpin for DomBuilder<'a>
impl<'a> UnsafeUnpin for DomBuilder<'a>
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