pub struct Renderer<P>{ /* private fields */ }
Implementations§
Source§impl<P> Renderer<P>
impl<P> Renderer<P>
Sourcepub fn new(compositor: P::Compositor, bus: EventLoop) -> Rc<Renderer<P>>
pub fn new(compositor: P::Compositor, bus: EventLoop) -> Rc<Renderer<P>>
This function returns a new reference counted renderer with the given compositor.
pub fn queue_rerender(self: &Rc<Self>, instance: &Rc<Instance<P>>)
pub fn render( self: &Rc<Self>, element: Element<P>, container: P::ContainerID, ) -> Rc<Instance<P>>
Auto Trait Implementations§
impl<P> !Freeze for Renderer<P>
impl<P> !RefUnwindSafe for Renderer<P>
impl<P> !Send for Renderer<P>
impl<P> !Sync for Renderer<P>
impl<P> Unpin for Renderer<P>
impl<P> !UnwindSafe for Renderer<P>
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