SvgElement.cs 34.2 KB
Newer Older
1001
1002
    }

Tebjan Halm's avatar
Tebjan Halm committed
1003
1004
1005
    /// <summary>
    /// Represents the state of the mouse at the moment the event occured.
    /// </summary>
Tebjan Halm's avatar
Tebjan Halm committed
1006
    public class MouseArg : SVGArg
Tebjan Halm's avatar
Tebjan Halm committed
1007
1008
1009
1010
1011
    {
        public float x;
        public float y;

        /// <summary>
1012
        /// 1 = left, 2 = middle, 3 = right
Tebjan Halm's avatar
Tebjan Halm committed
1013
        /// </summary>
1014
        public int Button;
1015
1016
        
        public int ClickCount = -1;
davescriven's avatar
davescriven committed
1017
1018
    }

1019
1020
1021
    /// <summary>
    /// Represents the mouse position at the moment the event occured.
    /// </summary>
Tebjan Halm's avatar
Tebjan Halm committed
1022
    public class PointArg : SVGArg
1023
1024
1025
1026
    {
        public float x;
        public float y;
    }
joreg's avatar
joreg committed
1027
1028
1029
1030
    
    /// <summary>
    /// Represents a string argument
    /// </summary>
Tebjan Halm's avatar
Tebjan Halm committed
1031
    public class StringArg : SVGArg
joreg's avatar
joreg committed
1032
1033
1034
    {
        public string s;
    }
1035

davescriven's avatar
davescriven committed
1036
1037
    internal interface ISvgElement
    {
1038
1039
1040
		SvgElement Parent {get;}
		SvgElementCollection Children { get; }

1041
        void Render(SvgRenderer renderer);
davescriven's avatar
davescriven committed
1042
1043
    }
}