class Tioga::Rectangles

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

Public Instance Methods

append_frame_to_path click to toggle source

Calls #append_rect_to_path with the current frame rectangle.

# File lib/Tioga/Rectangles.rb, line 34
def append_frame_to_path
end
append_rect_to_path(x, y, width, height) click to toggle source

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

# 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) click to toggle source

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.

# 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) click to toggle source

Calls #append_rect_to_path followed by clip.

# File lib/Tioga/Rectangles.rb, line 27
def clip_rect(x, y, width, height)
end
clip_rounded_rect(x, y, width, height, dx, dy) click to toggle source

Calls #append_rounded_rect_to_path followed by clip.

# File lib/Tioga/Rectangles.rb, line 77
def clip_rounded_rect(x, y, width, height, dx, dy)
end
clip_to_frame click to toggle source

Calls #append_frame_to_path followed by clip.

# File lib/Tioga/Rectangles.rb, line 62
def clip_to_frame
end
fill_and_stroke_frame click to toggle source

Calls #append_frame_to_path followed by fill_and_stroke.

# File lib/Tioga/Rectangles.rb, line 55
def fill_and_stroke_frame
end
fill_and_stroke_rect(x, y, width, height) click to toggle source

Calls #append_rect_to_path followed by fill_and_stroke.

# 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) click to toggle source

Calls #append_rounded_rect_to_path followed by fill_and_stroke.

# File lib/Tioga/Rectangles.rb, line 89
def fill_and_stroke_rounded_rect(x, y, width, height, dx, dy)
end
fill_frame click to toggle source

Calls #append_frame_to_path followed by fill.

# File lib/Tioga/Rectangles.rb, line 48
def fill_frame
end
fill_rect(x, y, width, height) click to toggle source

Calls #append_rect_to_path followed by fill.

# File lib/Tioga/Rectangles.rb, line 15
def fill_rect(x, y, width, height)
end
fill_rounded_rect(x, y, width, height, dx, dy) click to toggle source

Calls #append_rounded_rect_to_path followed by fill.

# File lib/Tioga/Rectangles.rb, line 81
def fill_rounded_rect(x, y, width, height, dx, dy)
end
stroke_frame click to toggle source

Calls #append_frame_to_path followed by stroke.

# File lib/Tioga/Rectangles.rb, line 41
def stroke_frame
end
stroke_rect(x, y, width, height) click to toggle source

Calls #append_rect_to_path followed by stroke.

# File lib/Tioga/Rectangles.rb, line 19
def stroke_rect(x, y, width, height)
end
stroke_rounded_rect(x, y, width, height, dx, dy) click to toggle source

Calls #append_rounded_rect_to_path followed by stroke.

# File lib/Tioga/Rectangles.rb, line 85
def stroke_rounded_rect(x, y, width, height, dx, dy)
end