public
Description: Fast, Nimble PDF Writer for Ruby
Homepage: http://prawn.majesticseacreature.com
Clone URL: git://github.com/sandal/prawn.git
Grapics API docs [#26]
sandal (author)
Thu Jun 26 16:27:42 -0700 2008
commit  451da0ab5ef7501b52e0d32bb80235fdefb43449
tree    22338333fc79c8b32fa3a2fdd74c541acfe2da4c
parent  81bf90f6cd86ecdaa25879f2973c255d4188793c
...
27
28
29
 
30
31
32
...
75
76
77
 
 
78
79
80
...
96
97
98
 
 
 
99
100
101
102
 
 
 
103
104
105
106
 
 
107
108
109
...
199
200
201
 
202
203
204
205
206
 
207
208
209
...
212
213
214
 
215
216
217
...
27
28
29
30
31
32
33
...
76
77
78
79
80
81
82
83
...
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
...
210
211
212
213
214
215
216
217
218
219
220
221
222
...
225
226
227
228
229
230
231
0
@@ -27,6 +27,7 @@ module Prawn
0
     #
0
     #   pdf.move_to [100,50]
0
     #   pdf.move_to(100,50)
0
+    #
0
     def move_to(*point)
0
       x,y = translate(point)           
0
       add_content("%.3f %.3f m" % [ x, y ])
0
@@ -75,6 +76,8 @@ module Prawn
0
       add_content("#{width} w")
0
     end
0
 
0
+    # The current line thickness
0
+    #
0
     def line_width
0
       @line_width || 1
0
     end
0
@@ -96,14 +99,22 @@ module Prawn
0
       line_to(x1, y1)
0
     end   
0
 
0
+    # Draws a horizontal line from <tt>x1</tt> to <tt>x2</tt> at the
0
+    # current <tt>y</tt> position.
0
+    #
0
     def horizontal_line(x1,x2)
0
       line(x1,y,x2,y)
0
     end
0
 
0
+    # Draws a horizontal line from the left border to the right border of the
0
+    # bounding box at the current <tt>y</tt> position.
0
+    #
0
     def horizontal_rule
0
       horizontal_line(bounds.absolute_left, bounds.absolute_right)
0
     end
0
 
0
+    # Draws a vertical line at the given x position from y1 to y2.
0
+    # 
0
     def vertical_line_at(x,y1,y2)
0
       line(x,y1,x,y2)
0
     end
0
@@ -199,11 +210,13 @@ module Prawn
0
     end
0
     
0
     # Strokes and closes the current path.
0
+    #
0
     def stroke
0
       add_content "S"
0
     end              
0
     
0
     # Fills, strokes, and closes the current path.
0
+    #
0
     def fill 
0
       add_content "b" 
0
     end     
0
@@ -212,6 +225,7 @@ module Prawn
0
     #
0
     #    stroke_some_method(*args) #=> some_method(*args); stroke
0
     #    fill_some_method(*args) #=> some_method(*args); fill
0
+    #
0
     def method_missing(id,*args,&block)
0
       case(id.to_s) 
0
       when /^stroke_(.*)/

Comments