pub struct Path {
pub id: NodeId,
pub data: 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 rasterized vector path source.
Fields§
§id: NodeId§data: NodePropertySVG-style path data.
position: NodePropertyPath 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 Path
impl GpuCompileNode for Path
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Path
impl GpuFrameBindNode for Path
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Path
impl Node for Path
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Path
impl PropertyEval for Path
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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