Пример #1
0
 public PathSegment(CanvasProperty <double> length)
 {
     Length      = length;
     StrokeWidth = new ValueCanvasProperty <double>(1);
     FgColor     = Color.Black;
     BgColor     = new Color(true);
 }
Пример #2
0
 public Color(CanvasProperty <double> red, CanvasProperty <double> green, CanvasProperty <double> blue)
 {
     _red   = red;
     _green = green;
     _blue  = blue;
     _none  = false;
 }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #6
0
 public Rotation(CanvasProperty <double> angle)
 {
     Angle = angle;
 }
Пример #7
0
 public Move(CanvasProperty <double> distance)
 {
     Distance = distance;
 }
Пример #8
0
 public abstract bool Equals(CanvasProperty <T> other);