pub struct Shape {
pub id: NodeId,
pub geometry_kind: NodeProperty,
pub width: NodeProperty,
pub height: NodeProperty,
pub border_radius: NodeProperty,
pub polygon_points: NodeProperty,
pub position: NodeProperty,
pub fill_enabled: NodeProperty,
pub fill_color: NodeProperty,
pub stroke_enabled: NodeProperty,
pub stroke_color: NodeProperty,
pub stroke_width: NodeProperty,
}Expand description
Produces a vector shape layer for GPU rasterization.
Fields§
§id: NodeId§geometry_kind: NodePropertyGeometry primitive to rasterize.
width: NodePropertyShape width in pixels.
height: NodePropertyShape height in pixels.
border_radius: NodePropertyCorner radius for rectangle geometry.
polygon_points: NodePropertyPolygon point list formatted as x,y; x,y.
position: NodePropertyShape origin in pixels.
fill_enabled: NodePropertyEnables fill rendering.
fill_color: NodePropertyFill color.
stroke_enabled: NodePropertyEnables stroke rendering.
stroke_color: NodePropertyStroke color.
stroke_width: NodePropertyStroke width in pixels.
Trait Implementations§
Source§impl GpuCompileNode for Shape
impl GpuCompileNode for Shape
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Shape
impl GpuFrameBindNode for Shape
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Shape
impl Node for Shape
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Shape
impl PropertyEval for Shape
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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