pub enum SceneNode {
Show 14 variants
Rect {
rect: Rect,
brush: Brush,
radius: f32,
},
Border {
rect: Rect,
color: Color,
width: f32,
radius: f32,
},
Text {
rect: Rect,
text: Arc<str>,
color: Color,
size: f32,
font_family: Option<&'static str>,
},
Ellipse {
rect: Rect,
brush: Brush,
},
EllipseBorder {
rect: Rect,
color: Color,
width: f32,
},
PushClip {
rect: Rect,
radius: f32,
},
PopClip,
PushTransform {
transform: Transform,
},
PopTransform,
Image {
rect: Rect,
handle: ImageHandle,
tint: Color,
fit: ImageFit,
},
Shadow {
rect: Rect,
radius: f32,
elevation: f32,
color: Color,
},
BeginLayer {
rect: Rect,
layer_id: u32,
alpha: f32,
},
EndLayer {
layer_id: u32,
},
CompositeShadow {
layer_id: u32,
blur_px: f32,
offset_px: (f32, f32),
color: Color,
},
}Variants§
Rect
Border
Text
Ellipse
EllipseBorder
PushClip
PopClip
PushTransform
PopTransform
Image
Shadow
Shadow behind a rounded rect, typically driven by StateElevation.
The elevation field controls offset and alpha.
BeginLayer
Mark the start of a graphics layer: the contained subtree is rendered
into an offscreen texture and then composited back into the parent.
alpha is the group-compositing alpha applied at composite time.
EndLayer
Closes the graphics layer opened by the matching BeginLayer.
CompositeShadow
Draws a blurred drop shadow underneath a previously-rendered layer.
Emitted between EndLayer and the layer’s CompositeLayer. The
quad samples the layer’s texture with a 3x3 Gaussian blur and an
optional vertical offset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SceneNode
impl RefUnwindSafe for SceneNode
impl Send for SceneNode
impl Sync for SceneNode
impl Unpin for SceneNode
impl UnsafeUnpin for SceneNode
impl UnwindSafe for SceneNode
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