public interface IShape : IStateDependent
Interface for vector icon shapes.

Properties

SvgPathCode

#
string SvgPathCode { get; }
Create an SVG compliant path commands.

Methods

Draw

#
void Draw(IconContext context, VectorStyle style)
Draw this element to a graphics object.
context (IconContext)Icon graphics context.
style (VectorStyle)Style to draw.

Glue

#
void Glue(IconContext context, GraphicsPath path)
Append this element to a graphics path. This may not necessarily be possible with every kind of shape.
context (IconContext)Icon graphics context.
path (GraphicsPath)Path to append to.

Store

void Store(IWriter writer)
This method is called whenever the instance is required to serialize itself.
inherited fromIStorable
writer (IWriter)Writer object to serialize with.

Update

void Update(string stateName, double value)
Resolve a new state.
inherited fromIStateDependent
stateName (string)Name of state which is being modified.
value (double)New value of state.