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
5
* The contents of this file are subject to the Mozilla Public License
6
* Version 1.1 (the "License"); you may not use this file except in
7
* compliance with the License. You may obtain a copy of the License at
8
* http://www.mozilla.org/MPL/
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
15
* The Original Code is the Mozilla SVG project.
17
* The Initial Developer of the Original Code is
18
* Crocodile Clips Ltd..
19
* Portions created by the Initial Developer are Copyright (C) 2001
20
* the Initial Developer. All Rights Reserved.
23
* Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
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 NPL, 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.
37
* ----- END LICENSE BLOCK ----- */
39
#include "domstubs.idl"
41
[scriptable, uuid(b9022da7-e26d-4df3-8c94-b45c4aedda7c)]
42
interface nsIDOMSVGPathSeg : nsISupports
45
const unsigned short PATHSEG_UNKNOWN = 0;
46
const unsigned short PATHSEG_CLOSEPATH = 1;
47
const unsigned short PATHSEG_MOVETO_ABS = 2;
48
const unsigned short PATHSEG_MOVETO_REL = 3;
49
const unsigned short PATHSEG_LINETO_ABS = 4;
50
const unsigned short PATHSEG_LINETO_REL = 5;
51
const unsigned short PATHSEG_CURVETO_CUBIC_ABS = 6;
52
const unsigned short PATHSEG_CURVETO_CUBIC_REL = 7;
53
const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS = 8;
54
const unsigned short PATHSEG_CURVETO_QUADRATIC_REL = 9;
55
const unsigned short PATHSEG_ARC_ABS = 10;
56
const unsigned short PATHSEG_ARC_REL = 11;
57
const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS = 12;
58
const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13;
59
const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14;
60
const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15;
61
const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
62
const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
63
const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
64
const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
66
readonly attribute unsigned short pathSegType;
67
readonly attribute DOMString pathSegTypeAsLetter;
71
[scriptable, uuid(2b72d033-f115-45aa-9748-8c11ea07b845)]
72
interface nsIDOMSVGPathSegClosePath : nsIDOMSVGPathSeg
77
[scriptable, uuid(b0106d01-9746-440b-b067-68ee043dabc3)]
78
interface nsIDOMSVGPathSegMovetoAbs : nsIDOMSVGPathSeg
81
// raises nsIDOMDOMException on setting
83
// raises nsIDOMDOMException on setting
86
[scriptable, uuid(c6ee1ddd-8b35-4e1b-b381-c063a28012d9)]
87
interface nsIDOMSVGPathSegMovetoRel : nsIDOMSVGPathSeg
90
// raises nsIDOMDOMException on setting
92
// raises nsIDOMDOMException on setting
95
[scriptable, uuid(bac3648d-55a3-491b-9863-a18fd7506689)]
96
interface nsIDOMSVGPathSegLinetoAbs : nsIDOMSVGPathSeg
99
// raises nsIDOMDOMException on setting
101
// raises nsIDOMDOMException on setting
104
[scriptable, uuid(3294d20e-c707-4e59-a625-bde93fc0b25f)]
105
interface nsIDOMSVGPathSegLinetoRel : nsIDOMSVGPathSeg
108
// raises nsIDOMDOMException on setting
110
// raises nsIDOMDOMException on setting
113
[scriptable, uuid(ad929b96-ef81-4002-b596-c6a8b3a878e9)]
114
interface nsIDOMSVGPathSegCurvetoCubicAbs : nsIDOMSVGPathSeg
117
// raises nsIDOMDOMException on setting
119
// raises nsIDOMDOMException on setting
121
// raises nsIDOMDOMException on setting
123
// raises nsIDOMDOMException on setting
125
// raises nsIDOMDOMException on setting
127
// raises nsIDOMDOMException on setting
130
[scriptable, uuid(dc7ba13f-8cb6-48d2-9e22-a4a6817abbb9)]
131
interface nsIDOMSVGPathSegCurvetoCubicRel : nsIDOMSVGPathSeg
134
// raises nsIDOMDOMException on setting
136
// raises nsIDOMDOMException on setting
138
// raises nsIDOMDOMException on setting
140
// raises nsIDOMDOMException on setting
142
// raises nsIDOMDOMException on setting
144
// raises nsIDOMDOMException on setting
147
[scriptable, uuid(ec4e8f65-5f4a-495e-a5f2-00e18d5e5f96)]
148
interface nsIDOMSVGPathSegCurvetoQuadraticAbs : nsIDOMSVGPathSeg
151
// raises nsIDOMDOMException on setting
153
// raises nsIDOMDOMException on setting
155
// raises nsIDOMDOMException on setting
157
// raises nsIDOMDOMException on setting
160
[scriptable, uuid(7007113c-e06b-4256-8530-4884d5d769c6)]
161
interface nsIDOMSVGPathSegCurvetoQuadraticRel : nsIDOMSVGPathSeg
164
// raises nsIDOMDOMException on setting
166
// raises nsIDOMDOMException on setting
168
// raises nsIDOMDOMException on setting
170
// raises nsIDOMDOMException on setting
173
[scriptable, uuid(c26e1779-604b-4bad-8a29-02d2a2113769)]
174
interface nsIDOMSVGPathSegArcAbs : nsIDOMSVGPathSeg
177
// raises nsIDOMDOMException on setting
179
// raises nsIDOMDOMException on setting
181
// raises nsIDOMDOMException on setting
183
// raises nsIDOMDOMException on setting
184
attribute float angle;
185
// raises nsIDOMDOMException on setting
186
attribute boolean largeArcFlag;
187
// raises nsIDOMDOMException on setting
188
attribute boolean sweepFlag;
189
// raises nsIDOMDOMException on setting
192
[scriptable, uuid(a685997e-fb47-47c0-a34c-5da11cb66537)]
193
interface nsIDOMSVGPathSegArcRel : nsIDOMSVGPathSeg
196
// raises nsIDOMDOMException on setting
198
// raises nsIDOMDOMException on setting
200
// raises nsIDOMDOMException on setting
202
// raises nsIDOMDOMException on setting
203
attribute float angle;
204
// raises nsIDOMDOMException on setting
205
attribute boolean largeArcFlag;
206
// raises nsIDOMDOMException on setting
207
attribute boolean sweepFlag;
208
// raises nsIDOMDOMException on setting
211
[scriptable, uuid(e74b55ef-1c44-4a40-9f51-a2196b11283a)]
212
interface nsIDOMSVGPathSegLinetoHorizontalAbs : nsIDOMSVGPathSeg
215
// raises nsIDOMDOMException on setting
218
[scriptable, uuid(0a797fdc-8b60-4cb3-a0da-4c898832ba30)]
219
interface nsIDOMSVGPathSegLinetoHorizontalRel : nsIDOMSVGPathSeg
222
// raises nsIDOMDOMException on setting
225
[scriptable, uuid(0811d434-3d90-4eec-8fa2-066dde037917)]
226
interface nsIDOMSVGPathSegLinetoVerticalAbs : nsIDOMSVGPathSeg
229
// raises nsIDOMDOMException on setting
232
[scriptable, uuid(93db35b1-6b33-49d5-ad25-1ed1a7611ad2)]
233
interface nsIDOMSVGPathSegLinetoVerticalRel : nsIDOMSVGPathSeg
236
// raises nsIDOMDOMException on setting
239
[scriptable, uuid(eb422132-514e-4a1c-81ec-b84a5df5fb96)]
240
interface nsIDOMSVGPathSegCurvetoCubicSmoothAbs : nsIDOMSVGPathSeg
243
// raises nsIDOMDOMException on setting
245
// raises nsIDOMDOMException on setting
247
// raises nsIDOMDOMException on setting
249
// raises nsIDOMDOMException on setting
252
[scriptable, uuid(5860bccd-f86b-47f8-86c1-cb1245b6a8e1)]
253
interface nsIDOMSVGPathSegCurvetoCubicSmoothRel : nsIDOMSVGPathSeg
256
// raises nsIDOMDOMException on setting
258
// raises nsIDOMDOMException on setting
260
// raises nsIDOMDOMException on setting
262
// raises nsIDOMDOMException on setting
265
[scriptable, uuid(3ce86063-0a35-48ec-b372-f198b7d04755)]
266
interface nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs : nsIDOMSVGPathSeg
269
// raises nsIDOMDOMException on setting
271
// raises nsIDOMDOMException on setting
274
[scriptable, uuid(5c0e4d25-a9f1-4aab-936c-2b61ed6c085f)]
275
interface nsIDOMSVGPathSegCurvetoQuadraticSmoothRel : nsIDOMSVGPathSeg
278
// raises nsIDOMDOMException on setting
280
// raises nsIDOMDOMException on setting