pub enum SceneNode {
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,
},
}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.
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