### Home Classes Methods

### In Files

- lib/Tioga/Rectangles.rb

### Parent

Doc< FigureMaker

### Methods

- #append_frame_to_path
- #append_rect_to_path
- #append_rounded_rect_to_path
- #clip_rect
- #clip_rounded_rect
- #clip_to_frame
- #fill_and_stroke_frame
- #fill_and_stroke_rect
- #fill_and_stroke_rounded_rect
- #fill_frame
- #fill_rect
- #fill_rounded_rect
- #stroke_frame
- #stroke_rect
- #stroke_rounded_rect

### Class/Module Index

Quicksearch

- Tioga
- Tioga::Arcs_and_Circles
- Tioga::ColorConstants
- Tioga::Colorbars
- Tioga::Colormaps
- Tioga::Creating_Paths
- Tioga::Executive
- Tioga::FigureConstants
- Tioga::FigureMaker
- Tioga::Figures_and_Plots
- Tioga::Flate
- Tioga::Images
- Tioga::Legends
- Tioga::MarkerConstants
- Tioga::Markers
- Tioga::Page_Frame_Bounds
- Tioga::Rectangles
- Tioga::Shading
- Tioga::Special_Paths
- Tioga::Strokes
- Tioga::TeX_Text
- Tioga::Titles_and_Labels
- Tioga::Transparency
- Tioga::Tutorial
- Tioga::Tutorial::Animation
- Tioga::Tutorial::CommandLine
- Tioga::Tutorial::DocStructure
- Tioga::Tutorial::Epilog
- Tioga::Tutorial::Figures
- Tioga::Tutorial::OtherStuff
- Tioga::Tutorial::OtherWaysToRunTioga
- Tioga::Tutorial::Plots
- Tioga::Tutorial::SampledData
- Tioga::Tutorial::SimpleFigure
- Tioga::Tutorial::TextForTeX
- Tioga::Tutorial::UsingRuby
- Tioga::Using_Paths
- Tioga::X_and_Y_Axes
- Dobjects
- Dobjects::Dtable
- Dobjects::Dvector
- Dobjects::Function
- Dobjects::MathEvaluator
- Flate
- TiogaDoc

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.