File: Rectangles.rb

package info (click to toggle)
libtioga-ruby 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,956 kB
  • ctags: 3,257
  • sloc: ansic: 31,801; ruby: 16,346; sh: 172; makefile: 114
file content (94 lines) | stat: -rw-r--r-- 2,489 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#  Rectangles.rb

module Tioga

# These are the methods for creating and using rectangular paths for PDF graphics operations.

class Rectangles < Doc < FigureMaker

# Add a rectangle with corners at (_x_, _y_), (_x_ + _width_, _y_),
# (_x_ + _width_, _y_ + _height_), and (_x_, _y_ + _height_).
   def append_rect_to_path(x, y, width, height)
   end
   
# Calls append_rect_to_path followed by #fill.
   def fill_rect(x, y, width, height)
   end

# Calls append_rect_to_path followed by #stroke.
   def stroke_rect(x, y, width, height)
   end

# Calls append_rect_to_path followed by fill_and_stroke.
   def fill_and_stroke_rect(x, y, width, height)
   end
   
# Calls append_rect_to_path followed by #clip.
   def clip_rect(x, y, width, height)
   end
   
# :call-seq:
#               append_frame_to_path                         
#                   
# Calls append_rect_to_path with the current frame rectangle.
   def append_frame_to_path
   end

# :call-seq:
#               stroke_frame                         
#                   
# Calls append_frame_to_path followed by #stroke.
   def stroke_frame
   end

# :call-seq:
#               fill_frame                         
#                   
# Calls append_frame_to_path followed by #fill.
   def fill_frame
   end

# :call-seq:
#               fill_and_stroke_frame                         
#                   
# Calls append_frame_to_path followed by fill_and_stroke.
   def fill_and_stroke_frame
   end

# :call-seq:
#               clip_to_frame                         
#                   
# Calls append_frame_to_path followed by #clip.
   def clip_to_frame
   end
   
# Like append_rect_to_path, but with corners rounded with
# curvatures given by _dx_ and _dy_.
#
# The illustration shows a rounded rectangle stroked and used as a clipping path
# for showing the image.
#
# link:images/append_rounded_rect.png
#
   def append_rounded_rect_to_path(x, y, width, height, dx, dy)
   end
   
# Calls append_rounded_rect_to_path followed by #clip.
   def clip_rounded_rect(x, y, width, height, dx, dy)
   end
   
# Calls append_rounded_rect_to_path followed by #fill.
   def fill_rounded_rect(x, y, width, height, dx, dy)
   end
   
# Calls append_rounded_rect_to_path followed by #stroke.
   def stroke_rounded_rect(x, y, width, height, dx, dy)
   end

# Calls append_rounded_rect_to_path followed by fill_and_stroke.
   def fill_and_stroke_rounded_rect(x, y, width, height, dx, dy)
   end


end # class
end # module Tioga