rmagick 1.7.4 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

Files changed (130) hide show
  1. data/ChangeLog +10 -2
  2. data/README.html +284 -290
  3. data/README.txt +298 -307
  4. data/configure +180 -11
  5. data/configure.ac +18 -2
  6. data/doc/comtasks.html +1 -1
  7. data/doc/constants.html +15 -10
  8. data/doc/css/ref.css +67 -0
  9. data/doc/draw.html +1 -1
  10. data/doc/ex/InitialCoords.rb +24 -0
  11. data/doc/ex/NewCoordSys.rb +33 -0
  12. data/doc/ex/OrigCoordSys.rb +19 -0
  13. data/doc/ex/PreserveAspectRatio.rb +206 -0
  14. data/doc/ex/RotateScale.rb +38 -0
  15. data/doc/ex/Skew.rb +39 -0
  16. data/doc/ex/Use01.rb +17 -0
  17. data/doc/ex/Use02.rb +22 -0
  18. data/doc/ex/Use03.rb +17 -0
  19. data/doc/ex/ViewBox.rb +34 -0
  20. data/doc/ex/arcs01.rb +29 -0
  21. data/doc/ex/arcs02.rb +62 -0
  22. data/doc/ex/baseline_shift01.rb +19 -0
  23. data/doc/ex/bounding_box.rb +31 -37
  24. data/doc/ex/circle01.rb +18 -0
  25. data/doc/ex/cubic01.rb +46 -0
  26. data/doc/ex/cubic02.rb +95 -0
  27. data/doc/ex/drop_shadow.rb +1 -1
  28. data/doc/ex/ellipse01.rb +23 -0
  29. data/doc/ex/evenodd.rb +44 -0
  30. data/doc/ex/font_styles.rb +29 -0
  31. data/doc/ex/group.rb +27 -0
  32. data/doc/ex/image.rb +47 -0
  33. data/doc/ex/images/big-duck.gif +0 -0
  34. data/doc/ex/images/duck.gif +0 -0
  35. data/doc/ex/images/duck0.gif +0 -0
  36. data/doc/ex/images/duck1.gif +0 -0
  37. data/doc/ex/images/duck10.gif +0 -0
  38. data/doc/ex/images/duck11.gif +0 -0
  39. data/doc/ex/images/duck12.gif +0 -0
  40. data/doc/ex/images/duck13.gif +0 -0
  41. data/doc/ex/images/duck14.gif +0 -0
  42. data/doc/ex/images/duck15.gif +0 -0
  43. data/doc/ex/images/duck2.gif +0 -0
  44. data/doc/ex/images/duck3.gif +0 -0
  45. data/doc/ex/images/duck4.gif +0 -0
  46. data/doc/ex/images/duck5.gif +0 -0
  47. data/doc/ex/images/duck6.gif +0 -0
  48. data/doc/ex/images/duck7.gif +0 -0
  49. data/doc/ex/images/duck8.gif +0 -0
  50. data/doc/ex/images/duck9.gif +0 -0
  51. data/doc/ex/line01.rb +24 -0
  52. data/doc/ex/nested_rvg.rb +22 -0
  53. data/doc/ex/nonzero.rb +44 -0
  54. data/doc/ex/polygon01.rb +24 -0
  55. data/doc/ex/polyline01.rb +24 -0
  56. data/doc/ex/quad01.rb +37 -0
  57. data/doc/ex/rect01.rb +16 -0
  58. data/doc/ex/rect02.rb +23 -0
  59. data/doc/ex/rvg_clippath.rb +15 -0
  60. data/doc/ex/rvg_linecap.rb +44 -0
  61. data/doc/ex/rvg_linejoin.rb +42 -0
  62. data/doc/ex/rvg_opacity.rb +20 -0
  63. data/doc/ex/rvg_pattern.rb +27 -0
  64. data/doc/ex/rvg_stroke_dasharray.rb +13 -0
  65. data/doc/ex/sepiatone.rb +15 -0
  66. data/doc/ex/shadow.rb +37 -0
  67. data/doc/ex/smile.rb +9 -9
  68. data/doc/ex/stroke_fill.rb +12 -0
  69. data/doc/ex/text01.rb +18 -0
  70. data/doc/ex/text_styles.rb +22 -0
  71. data/doc/ex/texture_fill_to_border.rb +3 -3
  72. data/doc/ex/texture_floodfill.rb +3 -2
  73. data/doc/ex/tref01.rb +26 -0
  74. data/doc/ex/triangle01.rb +17 -0
  75. data/doc/ex/tspan01.rb +19 -0
  76. data/doc/ex/tspan02.rb +20 -0
  77. data/doc/ex/tspan03.rb +22 -0
  78. data/doc/ex/writing_mode01.rb +28 -0
  79. data/doc/ex/writing_mode02.rb +27 -0
  80. data/doc/ilist.html +1 -1
  81. data/doc/image1.html +66 -30
  82. data/doc/image2.html +1 -1
  83. data/doc/image3.html +274 -49
  84. data/doc/imageattrs.html +87 -10
  85. data/doc/imusage.html +1 -1
  86. data/doc/index.html +80 -39
  87. data/doc/info.html +149 -13
  88. data/doc/magick.html +1 -1
  89. data/doc/rvg.html +890 -0
  90. data/doc/rvgclip.html +249 -0
  91. data/doc/rvggroup.html +305 -0
  92. data/doc/rvgimage.html +288 -0
  93. data/doc/rvgpattern.html +456 -0
  94. data/doc/rvgshape.html +376 -0
  95. data/doc/rvgstyle.html +269 -0
  96. data/doc/rvgtext.html +464 -0
  97. data/doc/rvgtspan.html +237 -0
  98. data/doc/rvgtut.html +512 -0
  99. data/doc/rvguse.html +145 -0
  100. data/doc/rvgxform.html +294 -0
  101. data/doc/struct.html +9 -71
  102. data/doc/usage.html +22 -7
  103. data/ext/RMagick/MANIFEST +94 -2
  104. data/ext/RMagick/rmagick.h +10 -4
  105. data/ext/RMagick/rmagick_config.h.in +8 -2
  106. data/ext/RMagick/rmdraw.c +2 -2
  107. data/ext/RMagick/rmfill.c +2 -2
  108. data/ext/RMagick/rmilist.c +3 -3
  109. data/ext/RMagick/rmimage.c +152 -5
  110. data/ext/RMagick/rminfo.c +208 -2
  111. data/ext/RMagick/rmmain.c +14 -5
  112. data/ext/RMagick/rmutil.c +83 -22
  113. data/lib/RMagick.rb +2 -2
  114. data/lib/rvg/clippath.rb +46 -0
  115. data/lib/rvg/container.rb +129 -0
  116. data/lib/rvg/deep_equal.rb +54 -0
  117. data/lib/rvg/describable.rb +51 -0
  118. data/lib/rvg/embellishable.rb +395 -0
  119. data/lib/rvg/misc.rb +729 -0
  120. data/lib/rvg/paint.rb +48 -0
  121. data/lib/rvg/pathdata.rb +129 -0
  122. data/lib/rvg/rvg.rb +279 -0
  123. data/lib/rvg/stretchable.rb +150 -0
  124. data/lib/rvg/stylable.rb +116 -0
  125. data/lib/rvg/text.rb +185 -0
  126. data/lib/rvg/transformable.rb +131 -0
  127. data/lib/rvg/units.rb +64 -0
  128. data/rmagick.gemspec +1 -1
  129. data/uninstall.rb +3 -2
  130. metadata +96 -3
@@ -0,0 +1,249 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml">
5
+ <head>
6
+ <meta name="generator" content=
7
+ "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
8
+
9
+ <title>RMagick: RVG Reference: RVG::ClipPath Class</title>
10
+ <meta http-equiv="Content-Type" content=
11
+ "text/html; charset=us-ascii" />
12
+ <meta name="GENERATOR" content="Quanta Plus" />
13
+ <meta name="Copyright" content=
14
+ "Copyright (C) 2005 by Timothy P. Hunter" />
15
+ <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
+ <script type="text/javascript" src="scripts/doc.js">
17
+ </script>
18
+ <script type="text/javascript">
19
+ //<![CDATA[
20
+ //]]>
21
+ </script>
22
+ <style type="text/css">
23
+ /*<![CDATA[*/
24
+ }
25
+ /*]]>*/
26
+ </style>
27
+ </head>
28
+
29
+ <body>
30
+ <h6 id="header">RMagick User's Guide and Reference</h6>
31
+
32
+ <div class="nav">
33
+ &laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href=
34
+ "index.html">Contents</a> | <a href=
35
+ "rvgtext.html">Next</a>&nbsp;&raquo;
36
+ </div>
37
+
38
+ <h1>class RVG::ClipPath <span class="superclass">&lt;
39
+ Object</span></h1>
40
+
41
+ <div id="toc">
42
+ <h2>Table of Contents</h2>
43
+
44
+ <h3>class methods</h3>
45
+
46
+ <ul>
47
+ <li><a href="#new">new</a></li>
48
+ </ul>
49
+
50
+ <h3>attributes</h3>
51
+
52
+ <div class="toccol">
53
+ <ul>
54
+ <li><a href="#desc">desc, desc=</a></li>
55
+
56
+ <li><a href="#metadata">metadata, metadata=</a></li>
57
+
58
+ <li><a href="#title">title, title=</a></li>
59
+ </ul>
60
+ </div>
61
+
62
+ <h3>instance methods</h3>
63
+
64
+ <div class="toccol">
65
+ <ul>
66
+ <li><a href="#g">text</a></li>
67
+
68
+ <li><a href="#use">use</a></li>
69
+ </ul>
70
+ </div>
71
+
72
+ <h3>shared methods</h3>
73
+
74
+ <p>In addition to the methods listed above, <code>class
75
+ RVG::ClipPath</code> also implements the <a href=
76
+ "rvgstyle.html">styles</a> method and the <a href=
77
+ "rvgshape.html">shape methods</a>.</p>
78
+ </div>
79
+
80
+ <h2 class="methods">class methods</h2>
81
+
82
+ <div class="sig">
83
+ <h3 id="new">new</h3>
84
+
85
+ <p>RVG::ClipPath.new(<span class="arg">clip_path_units</span>)
86
+ [ <span class="arg">{ |clippath| drawing method calls }</span>
87
+ ] -&gt; aClipPath</p>
88
+ </div>
89
+
90
+ <div class="desc">
91
+ <h4>Description</h4>
92
+
93
+ <p>Creates a <em>clipping path</em>. A clipping path is a
94
+ combination of path, text, and basic shape objects that define
95
+ an outline. Attach the clipping path to an object such as a
96
+ raster image or RVG object with the :clip_path style. When RVG
97
+ draws the object, things "outside" the path are not drawn.</p>
98
+
99
+ <p>The ClipPath.new method yields to a block. Within the block
100
+ define the clipping path with a combination of path, basic
101
+ shape, and <a href="#text">text</a> objects. You can also use
102
+ the <a href="#use">use</a> method to refer to a
103
+ previously-defined object or group of objects.</p>
104
+
105
+ <h4>Arguments</h4>
106
+
107
+ <dl>
108
+ <dt>clip_path_units</dt>
109
+
110
+ <dd>Defines the coordinate system for the contents of the
111
+ clipping path. This argument can take either of two values,
112
+ <strong>userSpaceOnUse</strong>, or
113
+ <strong>objectBoundingBox</strong>. If
114
+ <code>userSpaceOnUse</code>, the contents of the clipping
115
+ path represent values in the current user coordinate system
116
+ in place at the time when the clipping path is referenced. if
117
+ objectBoundingBox, then the user coordinate system for the
118
+ contents of the clipping path is established using the
119
+ bounding box of the object to which the clipping path is
120
+ applied. The default is <code>userSpaceOnUse</code>.</dd>
121
+ </dl>
122
+
123
+ <h4>Example</h4>
124
+
125
+ <p><a href="javascript:popup('rvg_clippath.rb.html')"><img src=
126
+ "ex/rvg_clippath.gif" title="Click to see the example script"
127
+ alt="clipping path example" /></a></p>
128
+
129
+ <h4>See Also</h4>
130
+
131
+ <p>The <a href="rvgstyle.html">:clip_rule</a> style.</p>
132
+ </div>
133
+
134
+ <h2 class="methods">attributes</h2>
135
+
136
+ <div class="sig">
137
+ <h3 id="desc">desc, desc=</h3>
138
+
139
+ <p><span class="arg">clippath</span>.desc -&gt; <span class=
140
+ "arg">aString</span><br />
141
+ <span class="arg">clippath</span>.desc = <span class=
142
+ "arg">aString</span></p>
143
+ </div>
144
+
145
+ <div class="desc">
146
+ <h4>Description</h4>Use the <code>desc</code> attribute to
147
+ assign a text description to the clipping path.
148
+ </div>
149
+
150
+ <div class="sig">
151
+ <h3 id="metadata">metadata, metadata=</h3>
152
+
153
+ <p><span class="arg">clippath</span>.metadata -&gt;
154
+ <span class="arg">aString</span><br />
155
+ <span class="arg">clippath</span>.metadata = <span class=
156
+ "arg">aString</span></p>
157
+ </div>
158
+
159
+ <div class="desc">
160
+ <h4>Description</h4>Use the <code>metadata</code> attribute to
161
+ assign additional metadata to the clipping path.
162
+ </div>
163
+
164
+ <div class="sig">
165
+ <h3 id="title">title, title=</h3>
166
+
167
+ <p><span class="arg">clippath</span>.title -&gt; <span class=
168
+ "arg">aString</span><br />
169
+ <span class="arg">clippath</span>.title = <span class=
170
+ "arg">aString</span></p>
171
+ </div>
172
+
173
+ <div class="desc">
174
+ <h4>Description</h4>Use the <code>title</code> attribute to
175
+ assign a title to the clipping path.
176
+ </div>
177
+
178
+ <h2 class="methods">instance methods</h2>
179
+
180
+ <div class="sig">
181
+ <h3 id='text'>text</h3>
182
+
183
+ <p><span class="arg">clippath.</span>text(<span class=
184
+ "arg">x</span>=0, <span class="arg">y</span>=0, <span class=
185
+ "arg">text</span>=nil) [{|<span class="arg">aText</span>| ...}]
186
+ -&gt; <span class="arg">aText</span></p>
187
+ </div>
188
+
189
+ <div class="desc">
190
+ <h4>Description</h4>
191
+
192
+ <p>Calls <a href="rvgtext.html#new">RVG::Text.new</a> to
193
+ construct a text object and adds it to the clipping path.
194
+ Yields to a block if one is present, passing the new text
195
+ object as an argument.</p>
196
+
197
+ <h4>Returns</h4>
198
+
199
+ <p>The <code>RVG::Text</code> object, so other
200
+ <code>RVG::Text</code> methods can be chained to this
201
+ method.</p>
202
+ </div>
203
+
204
+ <div class="sig">
205
+ <h3 id="use">use</h3>
206
+
207
+ <p><span class="arg">clippath.</span>use(<span class=
208
+ "arg">obj</span>, <span class="arg">x</span>=0, <span class=
209
+ "arg">y</span>=0, <span class="arg">width</span>=nil,
210
+ <span class="arg">height</span>=nil) -&gt; <span class=
211
+ "arg">aUse</span></p>
212
+ </div>
213
+
214
+ <div class="desc">
215
+ <h4>Description</h4>
216
+
217
+ <p>Calls <a href="rvguse.html#new">RVG::Use.new</a> to
218
+ constructs a <code>use</code> object and adds it to the
219
+ clipping path.</p>
220
+
221
+ <p>When the referenced argument is another RVG object,
222
+ <span class="arg">width</span> and <span class=
223
+ "arg">height</span> can be used to specify the width and height
224
+ of the viewport. If present and non-nil, these arguments
225
+ override any width and height specified when the RVG object was
226
+ created. You must specify the viewport size either when
227
+ creating the RVG object or when referencing it with
228
+ <code>use</code>.</p>
229
+
230
+ <h4>Examples</h4>
231
+
232
+ <p>See <a href="rvguse.html#new">RVG::Use.new</a></p>
233
+
234
+ <h4>Returns</h4>
235
+
236
+ <p>The <code>RVG::Use</code> object, so other
237
+ <code>RVG::Use</code> methods can be chained to this
238
+ method.</p>
239
+ </div>
240
+
241
+ <p class="spacer">&nbsp;</p>
242
+
243
+ <div class="nav">
244
+ &laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href=
245
+ "index.html">Contents</a> | <a href=
246
+ "rvgtext.html">Next</a>&nbsp;&raquo;
247
+ </div>
248
+ </body>
249
+ </html>
@@ -0,0 +1,305 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml">
5
+ <head>
6
+ <meta name="generator" content=
7
+ "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
8
+
9
+ <title>RMagick: RVG Reference: RVG::Group Class</title>
10
+ <meta http-equiv="Content-Type" content=
11
+ "text/html; charset=us-ascii" />
12
+ <meta name="GENERATOR" content="Quanta Plus" />
13
+ <meta name="Copyright" content=
14
+ "Copyright (C) 2005 by Timothy P. Hunter" />
15
+ <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
+ <script type="text/javascript" src="scripts/doc.js">
17
+ </script>
18
+ <script type="text/javascript">
19
+ //<![CDATA[
20
+ //]]>
21
+ </script>
22
+ <style type="text/css">
23
+ /*<![CDATA[*/
24
+ }
25
+ /*]]>*/
26
+ </style>
27
+ </head>
28
+
29
+ <body>
30
+ <h6 id="header">RMagick User's Guide and Reference</h6>
31
+
32
+ <div class="nav">
33
+ &laquo;&nbsp;<a href="rvg.html">Prev</a> | <a href=
34
+ "index.html">Contents</a> | <a href=
35
+ "rvgimage.html">Next</a>&nbsp;&raquo;
36
+ </div>
37
+
38
+ <h1>class RVG::Group <span class="superclass">&lt;
39
+ Object</span></h1>
40
+
41
+ <div id="toc">
42
+ <h2>Table of Contents</h2>
43
+
44
+ <h3>class methods</h3>
45
+
46
+ <ul>
47
+ <li><a href="#new">new</a></li>
48
+ </ul>
49
+
50
+ <h3>attributes</h3>
51
+
52
+ <ul>
53
+ <li><a href="#desc">desc, desc=</a></li>
54
+
55
+ <li><a href="#metadata">metadata, metadata=</a></li>
56
+
57
+ <li><a href="#title">title, title=</a></li>
58
+ </ul>
59
+
60
+ <h3>instance methods</h3>
61
+
62
+ <ul>
63
+ <li><a href="#g">g</a></li>
64
+
65
+ <li><a href="#image">image</a></li>
66
+
67
+ <li><a href="#rvg">rvg</a></li>
68
+
69
+ <li><a href="#text">text</a></li>
70
+
71
+ <li><a href="#use">use</a></li>
72
+ </ul>
73
+
74
+ <h3>shared methods</h3>
75
+
76
+ <p>In addition to the methods listed above, <code>class
77
+ RVG::Group</code> also implements the <a href=
78
+ "rvgstyle.html">styles</a> method, the <a href=
79
+ "rvgshape.html">shape methods</a> and the <a href=
80
+ "rvgxform.html">transform methods</a>.</p>
81
+ </div>
82
+
83
+ <h2 class="methods">class methods</h2>
84
+
85
+ <div class="sig">
86
+ <h3 id="new">new</h3>
87
+
88
+ <p><span class="arg">RVG::Group</span>.new [ <span class=
89
+ "arg">{ |<span class="arg">self</span>| drawing method calls
90
+ }</span> ] -&gt; <span class="arg">aGroup</span></p>
91
+ </div>
92
+
93
+ <div class="desc">
94
+ <h4>Description</h4>
95
+
96
+ <p>Drawing objects defined within a group share the transforms
97
+ and styles defined on the group. Groups can be nested
98
+ arbitrarily deep. <code>RVG::Group.new</code> is commonly
99
+ invoked within another group or RVG object by calling the
100
+ <code>g</code> method (<a href="rvg.html#RVG_g">RVG#g</a>, <a href="#g">RVG::Group#g</a>) , which nests the group within the target
101
+ object.</p>
102
+
103
+ <p><code>RVG::Group.new</code> yields to a block if one is
104
+ present, passing <code>self</code> as an argument.</p>
105
+
106
+ <h4>Returns</h4>
107
+
108
+ <p>An <code>RVG::Group</code> object</p>
109
+
110
+ <h4>Example</h4>
111
+
112
+ <p>See the tutorial for examples of the most common uses of
113
+ groups. In this example, I use RVG::Group.new to construct a
114
+ "stand-alone" group that is then referenced in multiple calls
115
+ to the <a href="rvguse.html">use</a> method.</p>
116
+
117
+ <p><a href="javascript:popup('group.rb.html')"><img src=
118
+ "ex/group.gif" title="Click to see the example script" alt=
119
+ "group example" /></a></p>
120
+
121
+ <h4>See also</h4>
122
+
123
+ <p><a href="rvg.html">RVG</a></p>
124
+ </div>
125
+
126
+ <h2 class="methods">attributes</h2>
127
+
128
+ <div class="sig">
129
+ <h3 id="desc">desc, desc=</h3>
130
+
131
+ <p><span class="arg">group</span>.desc -&gt; <span class=
132
+ "arg">aString</span><br />
133
+ <span class="arg">group</span>.desc = <span class=
134
+ "arg">aString</span></p>
135
+ </div>
136
+
137
+ <div class="desc">
138
+ <h4>Description</h4>Use the <code>desc</code> attribute to
139
+ assign a text description to the group.
140
+ </div>
141
+
142
+ <div class="sig">
143
+ <h3 id="metadata">metadata, metadata=</h3>
144
+
145
+ <p><span class="arg">group</span>.metadata -&gt; <span class=
146
+ "arg">aString</span><br />
147
+ <span class="arg">group</span>.metadata = <span class=
148
+ "arg">aString</span></p>
149
+ </div>
150
+
151
+ <div class="desc">
152
+ <h4>Description</h4>Use the <code>metadata</code> attribute to
153
+ assign additional metadata to the group.
154
+ </div>
155
+
156
+ <div class="sig">
157
+ <h3 id="RVG_title">title, title=</h3>
158
+
159
+ <p><span class="arg">group</span>.title -&gt; <span class=
160
+ "arg">aString</span><br />
161
+ <span class="arg">group</span>.title = <span class=
162
+ "arg">aString</span></p>
163
+ </div>
164
+
165
+ <div class="desc">
166
+ <h4>Description</h4>Use the <code>title</code> attribute to
167
+ assign a title to the group.
168
+ </div>
169
+
170
+ <h2 class="methods">instance methods</h2>
171
+
172
+ <div class="sig">
173
+ <h3 id='g'>g</h3>
174
+
175
+ <p><span class="arg">group.</span>g [{|<span class=
176
+ "arg">grp</span>| ...}] -&gt; <span class=
177
+ "arg">aGroup</span></p>
178
+ </div>
179
+
180
+ <div class="desc">
181
+ <h4>Description</h4>
182
+
183
+ <p>Calls <a href="#new">new</a> to construct a new group and
184
+ nests it within the target group. Yields to a block if one is
185
+ present, passing the new group as an argument.</p>
186
+
187
+ <h4>Returns</h4>
188
+
189
+ <p>Returns the new group, so other methods in this class can be
190
+ chained to this method.</p>
191
+ </div>
192
+
193
+ <div class="sig">
194
+ <h3 id='image'>image</h3>
195
+
196
+ <p><span class="arg">group.</span>image(<span class=
197
+ "arg">raster_image</span>, <span class="arg">width</span>=nil,
198
+ <span class="arg">height</span>=nil, <span class=
199
+ "arg">x</span>=0, <span class="arg">y</span>=0) -&gt;
200
+ <span class="arg">anImage</span></p>
201
+ </div>
202
+
203
+ <div class="desc">
204
+ <h4>Description</h4>
205
+
206
+ <p>Calls <a href="rvgimage.html#new">RVG::Image.new</a> to
207
+ construct an image and adds it to the group.</p>
208
+
209
+ <h4>Returns</h4>
210
+
211
+ <p>Returns the new image, so <code>RVG::Image</code> methods
212
+ can be chained to this method.</p>
213
+ </div>
214
+
215
+ <div class="sig">
216
+ <h3 id="rvg">rvg</h3>
217
+
218
+ <p><span class="arg">group</span>.rvg(<span class=
219
+ "arg">width</span>, <span class="arg">height</span>,
220
+ <span class="arg">x</span>=0, <span class="arg">y</span>=0)
221
+ [{|<span class="arg">new_rvg</span>| ...}] -&gt; <span class=
222
+ "arg">anRVG</span></p>
223
+ </div>
224
+
225
+ <div class="desc">
226
+ <h4>Description</h4>
227
+
228
+ <p>Calls <a href="rvg.html#RVG_new">RVG.new</a> to construct a
229
+ new RVG object and adds it to the group. See the <a href=
230
+ "rvg.html#RVG_rvg">rvg</a> method in the RVG class.</p>
231
+
232
+ <h4>Returns</h4>
233
+
234
+ <p>The <code>RVG</code> object, so other <code>RVG</code>
235
+ methods can be chained to this method.</p>
236
+ </div>
237
+
238
+ <div class="sig">
239
+ <h3 id='text'>text</h3>
240
+
241
+ <p><span class="arg">group.</span>text(<span class=
242
+ "arg">x</span>=0, <span class="arg">y</span>=0, <span class=
243
+ "arg">text</span>=nil) [{|<span class="arg">aText</span>| ...}]
244
+ -&gt; <span class="arg">aText</span></p>
245
+ </div>
246
+
247
+ <div class="desc">
248
+ <h4>Description</h4>
249
+
250
+ <p>Calls <a href="rvgtext.html#new">RVG::Text.new</a> to
251
+ construct a text object and adds it to the group. Yields to a
252
+ block if one is present, passing the new text object as an
253
+ argument.</p>
254
+
255
+ <h4>Returns</h4>
256
+
257
+ <p>The <code>RVG::Text</code> object, so other
258
+ <code>RVG::Text</code> methods can be chained to this
259
+ method.</p>
260
+ </div>
261
+
262
+ <div class="sig">
263
+ <h3 id="use">use</h3>
264
+
265
+ <p><span class="arg">group</span>.use(<span class=
266
+ "arg">obj</span>, <span class="arg">x</span>=0, <span class=
267
+ "arg">y</span>=0, <span class="arg">width</span>=nil,
268
+ <span class="arg">height</span>=nil) -&gt; <span class=
269
+ "arg">aUse</span></p>
270
+ </div>
271
+
272
+ <div class="desc">
273
+ <h4>Description</h4>
274
+
275
+ <p>Calls <a href="rvguse.html#new">RVG::Use.new</a> to
276
+ constructs a <code>use</code> object and adds it to the RVG
277
+ object.</p>
278
+
279
+ <p>When the referenced argument is an RVG object, <span class=
280
+ "arg">width</span> and <span class="arg">height</span> can be
281
+ used to specify the width and height of the viewport. If
282
+ present and non-nil, these arguments override any width and
283
+ height specified when the RVG object was created. You must
284
+ specify the viewport size either when creating the RVG object
285
+ or when referencing it with <code>use</code>.</p>
286
+
287
+ <h4>Example</h4>
288
+ <p>See <a href="rvguse.html#new">RVG::Use.new</a></p>
289
+
290
+ <h4>Returns</h4>
291
+
292
+ <p>The <code>RVG::Use</code> object, so other
293
+ <code>RVG::Use</code> methods can be chained to this
294
+ method.</p>
295
+ </div>
296
+
297
+ <p class="spacer">&nbsp;</p>
298
+
299
+ <div class="nav">
300
+ &laquo; <a href="rvg.html">Prev</a> | <a href=
301
+ "index.html">Contents</a> | <a href="rvgimage.html">Next</a>
302
+ &raquo;
303
+ </div>
304
+ </body>
305
+ </html>