Class: Tioga::Rectangles

Inherits:
Object
  • Object
show all
Defined in:
lib/Tioga/Rectangles.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#append_frame_to_pathObject

:call-seq:

append_frame_to_path

Calls append_rect_to_path with the current frame rectangle.



34
35
# File 'lib/Tioga/Rectangles.rb', line 34

def append_frame_to_path
end

#append_rect_to_path(x, y, width, height) ⇒ Object

Add a rectangle with corners at (x, y), (x + width, y), (x + width, y + height), and (x, y + height).



11
12
# File 'lib/Tioga/Rectangles.rb', line 11

def append_rect_to_path(x, y, width, height)
end

#append_rounded_rect_to_path(x, y, width, height, dx, dy) ⇒ Object

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.



73
74
# File 'lib/Tioga/Rectangles.rb', line 73

def append_rounded_rect_to_path(x, y, width, height, dx, dy)
end

#clip_rect(x, y, width, height) ⇒ Object

Calls append_rect_to_path followed by #clip.



27
28
# File 'lib/Tioga/Rectangles.rb', line 27

def clip_rect(x, y, width, height)
end

#clip_rounded_rect(x, y, width, height, dx, dy) ⇒ Object

Calls append_rounded_rect_to_path followed by #clip.



77
78
# File 'lib/Tioga/Rectangles.rb', line 77

def clip_rounded_rect(x, y, width, height, dx, dy)
end

#clip_to_frameObject

:call-seq:

clip_to_frame

Calls append_frame_to_path followed by #clip.



62
63
# File 'lib/Tioga/Rectangles.rb', line 62

def clip_to_frame
end

#fill_and_stroke_frameObject

:call-seq:

fill_and_stroke_frame

Calls append_frame_to_path followed by fill_and_stroke.



55
56
# File 'lib/Tioga/Rectangles.rb', line 55

def fill_and_stroke_frame
end

#fill_and_stroke_rect(x, y, width, height) ⇒ Object

Calls append_rect_to_path followed by fill_and_stroke.



23
24
# File 'lib/Tioga/Rectangles.rb', line 23

def fill_and_stroke_rect(x, y, width, height)
end

#fill_and_stroke_rounded_rect(x, y, width, height, dx, dy) ⇒ Object

Calls append_rounded_rect_to_path followed by fill_and_stroke.



89
90
# File 'lib/Tioga/Rectangles.rb', line 89

def fill_and_stroke_rounded_rect(x, y, width, height, dx, dy)
end

#fill_frameObject

:call-seq:

fill_frame

Calls append_frame_to_path followed by #fill.



48
49
# File 'lib/Tioga/Rectangles.rb', line 48

def fill_frame
end

#fill_rect(x, y, width, height) ⇒ Object

Calls append_rect_to_path followed by #fill.



15
16
# File 'lib/Tioga/Rectangles.rb', line 15

def fill_rect(x, y, width, height)
end

#fill_rounded_rect(x, y, width, height, dx, dy) ⇒ Object

Calls append_rounded_rect_to_path followed by #fill.



81
82
# File 'lib/Tioga/Rectangles.rb', line 81

def fill_rounded_rect(x, y, width, height, dx, dy)
end

#stroke_frameObject

:call-seq:

stroke_frame

Calls append_frame_to_path followed by #stroke.



41
42
# File 'lib/Tioga/Rectangles.rb', line 41

def stroke_frame
end

#stroke_rect(x, y, width, height) ⇒ Object

Calls append_rect_to_path followed by #stroke.



19
20
# File 'lib/Tioga/Rectangles.rb', line 19

def stroke_rect(x, y, width, height)
end

#stroke_rounded_rect(x, y, width, height, dx, dy) ⇒ Object

Calls append_rounded_rect_to_path followed by #stroke.



85
86
# File 'lib/Tioga/Rectangles.rb', line 85

def stroke_rounded_rect(x, y, width, height, dx, dy)
end