pub enum ScenePrimitive {
Show 17 variants
Rect {
id: UiId,
rect: UiRect,
style: VisualStyle,
phase: RenderPhase,
},
Ellipse {
id: UiId,
rect: UiRect,
style: VisualStyle,
phase: RenderPhase,
},
Text {
id: UiId,
rect: UiRect,
text: Cow<'static, str>,
style: TextStyle,
phase: RenderPhase,
},
Custom {
id: UiId,
rect: UiRect,
key: &'static str,
style: Option<CustomPaintStyle>,
phase: RenderPhase,
},
Line {
id: UiId,
start: Point,
end: Point,
stroke: Stroke,
phase: RenderPhase,
},
Path {
id: UiId,
rect: UiRect,
path: UiPath,
style: PathStyle,
phase: RenderPhase,
},
Image {
id: UiId,
rect: UiRect,
source: UiImageSource,
request: ImageRequest,
fit: ImageFit,
phase: RenderPhase,
},
Icon {
id: UiId,
rect: UiRect,
key: &'static str,
style: IconStyle,
phase: RenderPhase,
},
Glow {
id: UiId,
rect: UiRect,
color: Color,
alpha: u8,
phase: RenderPhase,
},
BackdropBlur {
id: UiId,
rect: UiRect,
style: BackdropBlurStyle,
phase: RenderPhase,
},
BackdropBlurPath {
id: UiId,
rect: UiRect,
path: UiPath,
style: BackdropBlurStyle,
phase: RenderPhase,
},
Overlay {
id: UiId,
rect: UiRect,
style: OverlayStyle,
phase: RenderPhase,
},
CompositingLayer {
id: UiId,
rect: UiRect,
spec: CompositingLayerSpec,
commands: Vec<ScenePrimitive>,
content_signature: u64,
phase: RenderPhase,
},
StaticLayer {
id: UiId,
rect: UiRect,
spec: StaticLayerSpec,
commands: Vec<ScenePrimitive>,
child_signature: u64,
phase: RenderPhase,
},
ScrollRaster {
id: UiId,
viewport: UiRect,
spec: ScrollRasterSpec,
commands: Vec<ScenePrimitive>,
child_signature: u64,
phase: RenderPhase,
},
Clip {
id: UiId,
rect: UiRect,
commands: Vec<ScenePrimitive>,
child_signature: u64,
phase: RenderPhase,
},
ClipPath {
id: UiId,
rect: UiRect,
path: UiPath,
commands: Vec<ScenePrimitive>,
child_signature: u64,
phase: RenderPhase,
},
}Variants§
Rect
Ellipse
Text
Custom
Line
Path
Image
Icon
Glow
BackdropBlur
BackdropBlurPath
Overlay
CompositingLayer
Fields
§
spec: CompositingLayerSpec§
commands: Vec<ScenePrimitive>Commands use layer-local coordinates so moving a layer does not invalidate its surface.
§
phase: RenderPhaseStaticLayer
ScrollRaster
Clip
ClipPath
Implementations§
Trait Implementations§
Source§impl Clone for ScenePrimitive
impl Clone for ScenePrimitive
Source§fn clone(&self) -> ScenePrimitive
fn clone(&self) -> ScenePrimitive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScenePrimitive
impl Debug for ScenePrimitive
Source§impl PartialEq for ScenePrimitive
impl PartialEq for ScenePrimitive
impl StructuralPartialEq for ScenePrimitive
Auto Trait Implementations§
impl Freeze for ScenePrimitive
impl RefUnwindSafe for ScenePrimitive
impl Send for ScenePrimitive
impl Sync for ScenePrimitive
impl Unpin for ScenePrimitive
impl UnsafeUnpin for ScenePrimitive
impl UnwindSafe for ScenePrimitive
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