pub enum RenderNode {
Empty,
Primitive(DrawCommand),
Group {
children: NodeVec,
},
Transform {
matrix: [f32; 6],
children: NodeVec,
},
Clip {
rect: Rect,
radius: BorderRadius,
children: NodeVec,
},
Layer {
opacity: f32,
backdrop_blur: f32,
children: NodeVec,
},
Overlay {
children: NodeVec,
},
Boundary {
child: Rc<Segment>,
},
}Variants§
Implementations§
Source§impl RenderNode
impl RenderNode
pub fn group(children: impl IntoIterator<Item = RenderNode>) -> RenderNode
pub fn rect(rect: Rect, style: RectStyle) -> RenderNode
pub fn text( text: impl Into<Arc<str>>, rect: Rect, style: TextStyle, ) -> RenderNode
pub fn rich_text( runs: Arc<[TextRun]>, rect: Rect, base: TextStyle, ) -> RenderNode
pub fn path(data: Arc<PathData>, style: PathStyle) -> RenderNode
pub fn transform_with( matrix: [f32; 6], children: impl IntoIterator<Item = RenderNode>, ) -> RenderNode
pub fn layer( opacity: f32, backdrop_blur: f32, children: impl IntoIterator<Item = RenderNode>, ) -> RenderNode
Sourcepub fn overlay(children: impl IntoIterator<Item = RenderNode>) -> RenderNode
pub fn overlay(children: impl IntoIterator<Item = RenderNode>) -> RenderNode
A portal whose subtree is hoisted to the top layer at compose time (see RenderNode::Overlay).
Auto Trait Implementations§
impl !RefUnwindSafe for RenderNode
impl !Send for RenderNode
impl !Sync for RenderNode
impl !UnwindSafe for RenderNode
impl Freeze for RenderNode
impl Unpin for RenderNode
impl UnsafeUnpin for RenderNode
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