pub struct RenderRootContext<'a, H: UiHost> {
pub ui: &'a mut UiTree<H>,
pub app: &'a mut H,
pub services: &'a mut dyn UiServices,
pub window: AppWindowId,
pub bounds: Rect,
}Fields§
§ui: &'a mut UiTree<H>§app: &'a mut H§services: &'a mut dyn UiServices§window: AppWindowId§bounds: RectImplementations§
Source§impl<'a, H: UiHost + 'static> RenderRootContext<'a, H>
impl<'a, H: UiHost + 'static> RenderRootContext<'a, H>
pub fn new( ui: &'a mut UiTree<H>, app: &'a mut H, services: &'a mut dyn UiServices, window: AppWindowId, bounds: Rect, ) -> Self
pub fn render_root<I>(
self,
root_name: &str,
render: impl FnOnce(&mut ElementContext<'_, H>) -> I,
) -> NodeIdwhere
I: IntoIterator<Item = AnyElement>,
pub fn render_dismissible_root_with_hooks<I>(
self,
root_name: &str,
render: impl FnOnce(&mut ElementContext<'_, H>) -> I,
) -> NodeIdwhere
I: IntoIterator<Item = AnyElement>,
Auto Trait Implementations§
impl<'a, H> Freeze for RenderRootContext<'a, H>
impl<'a, H> !RefUnwindSafe for RenderRootContext<'a, H>
impl<'a, H> !Send for RenderRootContext<'a, H>
impl<'a, H> !Sync for RenderRootContext<'a, H>
impl<'a, H> Unpin for RenderRootContext<'a, H>
impl<'a, H> UnsafeUnpin for RenderRootContext<'a, H>
impl<'a, H> !UnwindSafe for RenderRootContext<'a, H>
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