pub struct RenderGroup { /* private fields */ }Expand description
A group of renderables rendered vertically.
Implementations§
Source§impl RenderGroup
impl RenderGroup
Sourcepub fn add(
&mut self,
renderable: impl Renderable + Send + Sync + 'static,
) -> &mut Self
pub fn add( &mut self, renderable: impl Renderable + Send + Sync + 'static, ) -> &mut Self
Add a renderable to the group.
Sourcepub fn from_renderables(renderables: Vec<BoxedRenderable>) -> Self
pub fn from_renderables(renderables: Vec<BoxedRenderable>) -> Self
Create a group from a vector of renderables.
Trait Implementations§
Source§impl Default for RenderGroup
impl Default for RenderGroup
Source§impl Renderable for RenderGroup
impl Renderable for RenderGroup
Auto Trait Implementations§
impl Freeze for RenderGroup
impl !RefUnwindSafe for RenderGroup
impl Send for RenderGroup
impl Sync for RenderGroup
impl Unpin for RenderGroup
impl !UnwindSafe for RenderGroup
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
Source§impl<T> Measurable for Twhere
T: Renderable,
impl<T> Measurable for Twhere
T: Renderable,
Source§fn measure(&self, width: usize) -> Measurement
fn measure(&self, width: usize) -> Measurement
Measure this renderable at the given width.