1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is the Mozilla SVG project.
16 *
17 * The Initial Developer of the Original Code is
18 * Scooter Morris.
19 * Portions created by the Initial Developer are Copyright (C) 2004
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Scooter Morris <scootermorris@comcast.net>
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 #include "nsIDOMSVGElement.idl"
40
41 /**
42 * The nsIDOMSVGGradientElement interface is the interface to an SVG
43 * gradient element.
44 *
45 * For more information on this interface please see
46 * http://www.w3.org/TR/SVG11/pservers.html
47 *
48 */
49
50 interface nsIDOMSVGAnimatedEnumeration;
51 interface nsIDOMSVGAnimatedTransformList;
52
53 [scriptable, uuid(988b2de4-137b-4bb8-a15e-fe94038e9cf3)]
54 interface nsIDOMSVGGradientElement
55 : nsIDOMSVGElement
56 /*
57 The SVG DOM makes use of multiple interface inheritance.
58 Since XPCOM only supports single interface inheritance,
59 the best thing that we can do is to promise that whenever
60 an object implements _this_ interface it will also
61 implement the following interfaces. (We then have to QI to
62 hop between them.)
63
64 nsIDOMSVGURIReference,
65 nsIDOMSVGStylable
66 */
67 {
68 const unsigned short SVG_SPREADMETHOD_UNKNOWN = 0;
69 const unsigned short SVG_SPREADMETHOD_PAD = 1;
70 const unsigned short SVG_SPREADMETHOD_REFLECT = 2;
71 const unsigned short SVG_SPREADMETHOD_REPEAT = 3;
72
73 readonly attribute nsIDOMSVGAnimatedEnumeration gradientUnits;
74 readonly attribute nsIDOMSVGAnimatedTransformList gradientTransform;
75 readonly attribute nsIDOMSVGAnimatedEnumeration spreadMethod;
76 };
77
78
79 /**
80 * The nsIDOMSVGLinearGradientElement interface is the interface to an SVG
81 * linear gradient element.
82 *
83 * For more information on this interface please see
84 * http://www.w3.org/TR/SVG11/pservers.html
85 *
86 */
87
88 // Linear gradient
89 interface nsIDOMSVGAnimatedLength;
90
91 [scriptable, uuid(7e15fce5-b208-43e1-952a-c570ebad0619)]
92 interface nsIDOMSVGLinearGradientElement
93 : nsIDOMSVGGradientElement
94 {
95 readonly attribute nsIDOMSVGAnimatedLength x1;
96 readonly attribute nsIDOMSVGAnimatedLength y1;
97 readonly attribute nsIDOMSVGAnimatedLength x2;
98 readonly attribute nsIDOMSVGAnimatedLength y2;
99 };
100
101 /**
102 * The nsIDOMSVGRadialGradientElement interface is the interface to an SVG
103 * radial gradient element.
104 *
105 * For more information on this interface please see
106 * http://www.w3.org/TR/SVG11/pservers.html
107 *
108 */
109
110 // Radial gradient
111 interface nsIDOMSVGAnimatedLength;
112
113 [scriptable, uuid(d0262ae1-31a4-44be-b82e-85e4cfe280fd)]
114 interface nsIDOMSVGRadialGradientElement
115 : nsIDOMSVGGradientElement
116 {
117 readonly attribute nsIDOMSVGAnimatedLength cx;
118 readonly attribute nsIDOMSVGAnimatedLength cy;
119 readonly attribute nsIDOMSVGAnimatedLength r;
120 readonly attribute nsIDOMSVGAnimatedLength fx;
121 readonly attribute nsIDOMSVGAnimatedLength fy;
122 };