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) 2002
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 "nsISupports.idl"
45
native nscolor(nscolor);
47
interface nsIDOMSVGMatrix;
48
interface nsIPresContext;
51
* \addtogroup rendering_backend_interfaces Rendering Backend Interfaces
56
* Describes a 'geometry' object (either a path or a glyph) in the SVG
57
* rendering backend. The rendering backend maintains an object
58
* implementing this interface for each rendering engine-native
61
* An engine-native geometry object will be informed of changes in a
62
* geometry's description with a call to its 'update' method with an
63
* OR-ed combination of the UPDATEMASK_* constants defined in this
64
* interface (or one of its sub-interfaces).
68
[scriptable, uuid(d65a8784-5382-4b68-848d-0a91cd096937)]
69
interface nsISVGGeometrySource : nsISupports
72
* @name Generic updatemasks
75
const unsigned long UPDATEMASK_NOTHING = 0x00000000;
76
const unsigned long UPDATEMASK_ALL = 0xFFFFFFFF;
80
* @name Presentation context
83
[noscript] readonly attribute nsIPresContext presContext;
84
const unsigned long UPDATEMASK_PRES_CONTEXT = 0x00000001;
88
* @name Current transform matrix
91
readonly attribute nsIDOMSVGMatrix CTM;
92
const unsigned long UPDATEMASK_CTM = 0x00000002;
96
* @name Stroke opacity
99
readonly attribute float strokeOpacity;
100
const unsigned long UPDATEMASK_STROKE_OPACITY = 0x00000004;
107
readonly attribute float strokeWidth;
108
const unsigned long UPDATEMASK_STROKE_WIDTH = 0x00000008;
112
* @name Stroke dash-array
115
void getStrokeDashArray([array, size_is(count)] out float arr,
116
out unsigned long count);
117
const unsigned long UPDATEMASK_STROKE_DASH_ARRAY = 0x00000010;
121
* @name Stroke dash-offset
124
readonly attribute float strokeDashoffset;
125
const unsigned long UPDATEMASK_STROKE_DASHOFFSET = 0x00000020;
129
* @name Stroke line-cap
132
const unsigned short STROKE_LINECAP_BUTT = 0;
133
const unsigned short STROKE_LINECAP_ROUND = 1;
134
const unsigned short STROKE_LINECAP_SQUARE = 2;
136
readonly attribute unsigned short strokeLinecap;
137
const unsigned long UPDATEMASK_STROKE_LINECAP = 0x00000040;
142
* @name Stroke line-join
145
const unsigned short STROKE_LINEJOIN_MITER = 0;
146
const unsigned short STROKE_LINEJOIN_ROUND = 1;
147
const unsigned short STROKE_LINEJOIN_BEVEL = 2;
149
readonly attribute unsigned short strokeLinejoin;
150
const unsigned long UPDATEMASK_STROKE_LINEJOIN = 0x00000080;
157
readonly attribute float strokeMiterlimit;
158
const unsigned long UPDATEMASK_STROKE_MITERLIMIT = 0x00000100;
165
readonly attribute float fillOpacity;
166
const unsigned long UPDATEMASK_FILL_OPACITY = 0x00000200;
174
const unsigned short FILL_RULE_NONZERO = 0;
175
const unsigned short FILL_RULE_EVENODD = 1;
177
readonly attribute unsigned short fillRule;
178
const unsigned long UPDATEMASK_FILL_RULE = 0x00000400;
183
* @name Paint type constants for stroke and fill paint
186
const unsigned short PAINT_TYPE_NONE = 0;
187
const unsigned short PAINT_TYPE_SOLID_COLOR = 1;
188
const unsigned short PAINT_TYPE_SERVER = 2;
195
/* **** stroke paint XXX needs consolidation ********************* */
196
readonly attribute unsigned short strokePaintType;
197
const unsigned long UPDATEMASK_STROKE_PAINT_TYPE = 0x00000800;
199
[noscript] readonly attribute nscolor strokePaint;
200
const unsigned long UPDATEMASK_STROKE_PAINT = 0x00001000;
207
/* **** fill paint XXX needs consolidation *********************** */
208
readonly attribute unsigned short fillPaintType;
209
const unsigned long UPDATEMASK_FILL_PAINT_TYPE = 0x00002000;
211
[noscript] readonly attribute nscolor fillPaint;
212
const unsigned long UPDATEMASK_FILL_PAINT = 0x00004000;