pub struct Shadow {
pub id: NodeId,
pub offset_x: NodeProperty,
pub offset_y: NodeProperty,
pub radius: NodeProperty,
pub color: NodeProperty,
pub opacity: NodeProperty,
pub source: PortRef,
}Expand description
Composites a blurred alpha shadow behind a raster.
Fields§
§id: NodeId§offset_x: NodePropertyHorizontal shadow offset in pixels.
offset_y: NodePropertyVertical shadow offset in pixels.
radius: NodePropertyShadow blur radius in pixels.
color: NodePropertyShadow color.
opacity: NodePropertyShadow opacity.
source: PortRefTrait Implementations§
Source§impl GpuCompileNode for Shadow
impl GpuCompileNode for Shadow
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Shadow
impl GpuFrameBindNode for Shadow
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Shadow
impl Node for Shadow
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Shadow
impl PropertyEval for Shadow
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin for Shadow
impl UnwindSafe for Shadow
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