~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/svg/renderer/public/nsISVGGeometrySource.idl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
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/
 
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
 * Crocodile Clips Ltd.
 
19
 * Portions created by the Initial Developer are Copyright (C) 2002
 
20
 * the Initial Developer. All Rights Reserved.
 
21
 *
 
22
 * Contributor(s):
 
23
 *    Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
 
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 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.
 
36
 *
 
37
 * ----- END LICENSE BLOCK ----- */
 
38
 
 
39
#include "nsISupports.idl"
 
40
 
 
41
%{C++
 
42
#include "nsColor.h"
 
43
%}
 
44
 
 
45
native nscolor(nscolor);
 
46
 
 
47
interface nsIDOMSVGMatrix;
 
48
interface nsIPresContext;
 
49
 
 
50
/**
 
51
 * \addtogroup rendering_backend_interfaces Rendering Backend Interfaces
 
52
 * @{
 
53
 */
 
54
 
 
55
/**
 
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
 
59
 * geometry object.
 
60
 *
 
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).
 
65
 *
 
66
 * @nosubgrouping
 
67
 */
 
68
[scriptable, uuid(d65a8784-5382-4b68-848d-0a91cd096937)]
 
69
interface nsISVGGeometrySource : nsISupports
 
70
{
 
71
  /**
 
72
   * @name Generic updatemasks
 
73
   * @{
 
74
   */
 
75
  const unsigned long UPDATEMASK_NOTHING           = 0x00000000;
 
76
  const unsigned long UPDATEMASK_ALL               = 0xFFFFFFFF;
 
77
  /** @} */
 
78
  
 
79
  /**
 
80
   * @name Presentation context
 
81
   * @{
 
82
   */
 
83
  [noscript] readonly attribute nsIPresContext presContext;
 
84
  const unsigned long UPDATEMASK_PRES_CONTEXT      = 0x00000001;
 
85
  /** @} */
 
86
  
 
87
  /**
 
88
   * @name Current transform matrix
 
89
   * @{
 
90
   */
 
91
  readonly attribute nsIDOMSVGMatrix CTM;
 
92
  const unsigned long UPDATEMASK_CTM               = 0x00000002;
 
93
  /** @} */
 
94
  
 
95
  /**
 
96
   * @name Stroke opacity
 
97
   * @{
 
98
   */
 
99
  readonly attribute float strokeOpacity;
 
100
  const unsigned long UPDATEMASK_STROKE_OPACITY    = 0x00000004;
 
101
  /** @} */
 
102
 
 
103
  /**
 
104
   * @name Stroke width
 
105
   * @{
 
106
   */
 
107
  readonly attribute float strokeWidth;
 
108
  const unsigned long UPDATEMASK_STROKE_WIDTH      = 0x00000008;
 
109
  /** @} */
 
110
 
 
111
  /**
 
112
   * @name Stroke dash-array
 
113
   * @{
 
114
   */
 
115
  void getStrokeDashArray([array, size_is(count)] out float arr,
 
116
                          out unsigned long count);
 
117
  const unsigned long UPDATEMASK_STROKE_DASH_ARRAY = 0x00000010;
 
118
  /** @} */
 
119
 
 
120
  /**
 
121
   * @name Stroke dash-offset
 
122
   * @{
 
123
   */
 
124
  readonly attribute float strokeDashoffset;
 
125
  const unsigned long UPDATEMASK_STROKE_DASHOFFSET = 0x00000020;
 
126
  /** @} */
 
127
 
 
128
  /**
 
129
   * @name Stroke line-cap
 
130
   * @{
 
131
   */
 
132
  const unsigned short STROKE_LINECAP_BUTT   = 0;
 
133
  const unsigned short STROKE_LINECAP_ROUND  = 1;
 
134
  const unsigned short STROKE_LINECAP_SQUARE = 2;
 
135
 
 
136
  readonly attribute unsigned short strokeLinecap;
 
137
  const unsigned long UPDATEMASK_STROKE_LINECAP    = 0x00000040;
 
138
  /** @} */
 
139
 
 
140
  
 
141
  /**
 
142
   * @name Stroke line-join
 
143
   * @{
 
144
   */
 
145
  const unsigned short STROKE_LINEJOIN_MITER = 0;
 
146
  const unsigned short STROKE_LINEJOIN_ROUND = 1;
 
147
  const unsigned short STROKE_LINEJOIN_BEVEL = 2;
 
148
 
 
149
  readonly attribute unsigned short strokeLinejoin;
 
150
  const unsigned long UPDATEMASK_STROKE_LINEJOIN   = 0x00000080;
 
151
  /** @} */
 
152
  
 
153
  /**
 
154
   * @name Miterlimit
 
155
   * @{
 
156
   */
 
157
  readonly attribute float strokeMiterlimit;
 
158
  const unsigned long UPDATEMASK_STROKE_MITERLIMIT = 0x00000100;
 
159
  /** @} */
 
160
 
 
161
  /**
 
162
   * @name Fill opacity
 
163
   * @{
 
164
   */
 
165
  readonly attribute float fillOpacity;
 
166
  const unsigned long UPDATEMASK_FILL_OPACITY      = 0x00000200;
 
167
  /** @} */
 
168
 
 
169
  
 
170
  /**
 
171
   * @name Fill rule
 
172
   * @{
 
173
   */
 
174
  const unsigned short FILL_RULE_NONZERO = 0;
 
175
  const unsigned short FILL_RULE_EVENODD = 1;
 
176
  
 
177
  readonly attribute unsigned short fillRule;
 
178
  const unsigned long UPDATEMASK_FILL_RULE         = 0x00000400;
 
179
  /** @} */
 
180
 
 
181
  
 
182
  /**
 
183
   * @name Paint type constants for stroke and fill paint
 
184
   * @{
 
185
   */
 
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; 
 
189
  /** @} */
 
190
  
 
191
  /**
 
192
   * @name Stroke paint
 
193
   * @{
 
194
   */
 
195
  /* **** stroke paint XXX needs consolidation ********************* */  
 
196
  readonly attribute unsigned short strokePaintType; 
 
197
  const unsigned long UPDATEMASK_STROKE_PAINT_TYPE = 0x00000800;
 
198
 
 
199
  [noscript] readonly attribute nscolor strokePaint; 
 
200
  const unsigned long UPDATEMASK_STROKE_PAINT      = 0x00001000;
 
201
  /** @} */
 
202
 
 
203
  /**
 
204
   * @name Fill paint
 
205
   * @{
 
206
   */
 
207
  /* **** fill paint XXX needs consolidation *********************** */
 
208
  readonly attribute unsigned short fillPaintType; 
 
209
  const unsigned long UPDATEMASK_FILL_PAINT_TYPE   = 0x00002000;
 
210
 
 
211
  [noscript] readonly attribute nscolor fillPaint; 
 
212
  const unsigned long UPDATEMASK_FILL_PAINT        = 0x00004000;  
 
213
  /** @} */
 
214
};
 
215
 
 
216
/** @} */