pub struct Text {
pub id: NodeId,
pub content: NodeProperty,
pub font_family: NodeProperty,
pub font_size: NodeProperty,
pub font_weight: NodeProperty,
pub font_style: NodeProperty,
pub max_width: NodeProperty,
pub position: NodeProperty,
pub color: NodeProperty,
pub alignment_horizontal: NodeProperty,
pub alignment_vertical: NodeProperty,
}Expand description
Produces a text raster source.
Fields§
§id: NodeId§content: NodePropertyText content to render.
font_family: NodePropertyFont family name.
font_size: NodePropertyFont size in pixels.
font_weight: NodePropertyFont weight.
font_style: NodePropertyFont style.
max_width: NodePropertyMaximum line width in pixels. Use 0 for automatic width.
position: NodePropertyText origin in pixels.
color: NodePropertyText color.
alignment_horizontal: NodePropertyHorizontal text alignment.
alignment_vertical: NodePropertyVertical text alignment.
Trait Implementations§
Source§impl GpuCompileNode for Text
impl GpuCompileNode for Text
fn compile_gpu( &self, ctx: &mut CompileContext<'_>, port: &PortRef, ) -> Result<CompiledOutput, LumenError>
Source§impl GpuFrameBindNode for Text
impl GpuFrameBindNode for Text
fn bind_gpu_frame( &self, ctx: &FrameBindContext<'_>, binding: &FrameBinding, bound: &mut BoundFrame, ) -> Result<(), LumenError>
Source§impl Node for Text
impl Node for Text
fn id(&self) -> NodeId
fn input_port_defs(&self) -> &'static [InputPortDef]
fn output_port_defs(&self) -> &'static [OutputPortDef]
Source§impl PropertyEval for Text
impl PropertyEval for Text
fn get_property(&self, id: &str) -> Result<Option<NodeProperty>, LumenError>
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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