public PathSegment(CanvasProperty <double> length) { Length = length; StrokeWidth = new ValueCanvasProperty <double>(1); FgColor = Color.Black; BgColor = new Color(true); }
public Color(CanvasProperty <double> red, CanvasProperty <double> green, CanvasProperty <double> blue) { _red = red; _green = green; _blue = blue; _none = false; }
public Color(bool tmp) //TODO: Think of some better constructors { _none = true; //Place dummy values into _red, _green and _blue _red = new ValueCanvasProperty <double>(0); _green = new ValueCanvasProperty <double>(0); _blue = new ValueCanvasProperty <double>(0); }
public override bool Equals(CanvasProperty <T> other) { if (other is IndexCanvasProperty <T> ) { var otherIndex = (IndexCanvasProperty <T>)other; return(_index == otherIndex._index); } return(false); }
public override bool Equals(CanvasProperty <T> other) { if (other is ValueCanvasProperty <T> ) { var otherValue = (ValueCanvasProperty <T>)other; return(_value.Equals(otherValue._value)); } return(false); }
public Rotation(CanvasProperty <double> angle) { Angle = angle; }
public Move(CanvasProperty <double> distance) { Distance = distance; }
public abstract bool Equals(CanvasProperty <T> other);