Exemple #1
0
 public PathSegment(CanvasProperty <double> length)
 {
     Length      = length;
     StrokeWidth = new ValueCanvasProperty <double>(1);
     FgColor     = Color.Black;
     BgColor     = new Color(true);
 }
Exemple #2
0
 public Color(CanvasProperty <double> red, CanvasProperty <double> green, CanvasProperty <double> blue)
 {
     _red   = red;
     _green = green;
     _blue  = blue;
     _none  = false;
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        public override bool Equals(CanvasProperty <T> other)
        {
            if (other is IndexCanvasProperty <T> )
            {
                var otherIndex = (IndexCanvasProperty <T>)other;
                return(_index == otherIndex._index);
            }

            return(false);
        }
Exemple #5
0
        public override bool Equals(CanvasProperty <T> other)
        {
            if (other is ValueCanvasProperty <T> )
            {
                var otherValue = (ValueCanvasProperty <T>)other;
                return(_value.Equals(otherValue._value));
            }

            return(false);
        }
Exemple #6
0
 public Rotation(CanvasProperty <double> angle)
 {
     Angle = angle;
 }
Exemple #7
0
 public Move(CanvasProperty <double> distance)
 {
     Distance = distance;
 }
Exemple #8
0
 public abstract bool Equals(CanvasProperty <T> other);