class HexaPDF::Layout::Style::Border

Parent

Represents the border of a rectangular area.

Attributes

color[R]

The colors of each edge. See Quad.

style[R]

The styles of each edge. See Quad.

width[R]

The widths of each edge. See Quad.

Public Class Methods

new(width: 0, color: 0, style: :solid)

Creates a new border style. All arguments can be set to any value that a Quad can process.

Public Instance Methods

draw(canvas, x, y, w, h)

Draws the border onto the canvas, inside the rectangle (x, y, w, h).

none?()

Returns true if there is no border.