class

NanoSVG::Attrib

Inherits Reference < Object

Style attribute stack entry (C: NSVGattrib).

Constructors

Instance methods

copy

Deep-ish copy for pushAttr (C memcpy).

Source
dominant_baseline

0 = alphabetic, 1 = central, 2 = middle, 3 = hanging.

Source
dominant_baseline=(dominant_baseline : Int32)

0 = alphabetic, 1 = central, 2 = middle, 3 = hanging.

Source
fill_color
Source
fill_color=(fill_color : UInt32)
Source
fill_gradient
Source
fill_gradient=(fill_gradient : String)
Source
fill_opacity
Source
fill_opacity=(fill_opacity : Float32)
Source
fill_rule
Source
fill_rule=(fill_rule : FillRule)
Source
font_bold
Source
font_bold=(font_bold : Bool)
Source
font_family

Text properties (<text>/<tspan>).

Source
font_family=(font_family : String)

Text properties (<text>/<tspan>).

Source
font_italic
Source
font_italic=(font_italic : Bool)
Source
font_size
Source
font_size=(font_size : Float32)
Source
has_fill
Source
has_fill=(has_fill : Int32)
Source
has_stroke
Source
has_stroke=(has_stroke : Int32)
Source
id=(id : String)
Source
letter_spacing
Source
letter_spacing=(letter_spacing : Float32)
Source
miter_limit
Source
miter_limit=(miter_limit : Float32)
Source
opacity
Source
opacity=(opacity : Float32)
Source
paint_order
Source
paint_order=(paint_order : UInt8)
Source
stop_color
Source
stop_color=(stop_color : UInt32)
Source
stop_offset
Source
stop_offset=(stop_offset : Float32)
Source
stop_opacity
Source
stop_opacity=(stop_opacity : Float32)
Source
stroke_color
Source
stroke_color=(stroke_color : UInt32)
Source
stroke_dash_array
Source
stroke_dash_array=(stroke_dash_array : Array(Float32))
Source
stroke_dash_count
Source
stroke_dash_count=(stroke_dash_count : Int32)
Source
stroke_dash_offset
Source
stroke_dash_offset=(stroke_dash_offset : Float32)
Source
stroke_gradient
Source
stroke_gradient=(stroke_gradient : String)
Source
stroke_line_cap
Source
stroke_line_cap=(stroke_line_cap : LineCap)
Source
stroke_line_join
Source
stroke_line_join=(stroke_line_join : LineJoin)
Source
stroke_opacity
Source
stroke_opacity=(stroke_opacity : Float32)
Source
stroke_width
Source
stroke_width=(stroke_width : Float32)
Source
text_anchor

0 = start, 1 = middle, 2 = end.

Source
text_anchor=(text_anchor : Int32)

0 = start, 1 = middle, 2 = end.

Source
visible
Source
visible=(visible : Bool)
Source
xform
Source
xform=(xform : Array(Float32))
Source