Rendering

Rectangle styles

# Devices.Rectangles.PlainType.

type Plain <: Style end

Plain rectangle style. Use this if you are fond for the simpler times when rectangles were just rectangles.

source

# Devices.Rectangles.RoundedType.

type Rounded{T<:Coordinate} <: Style
    r::T
end

Rounded rectangle style. All corners are rounded off with a given radius r. The bounding box of the unstyled rectangle should remain unaffected.

source

# Devices.Rectangles.UndercutType.

type Undercut{T<:Coordinate} <: Style
    ucl::T
    uct::T
    ucr::T
    ucb::T
end

Undercut rectangles. In each direction around a rectangle (left, top, right, bottom) an undercut is rendered on a different layer.

source

Polygon styles

# Devices.Polygons.PlainType.

Plain polygon style.

source

Render methods

# Devices.render!Function.

render!(c::Cell, r::Rectangle, s::Rectangles.Style=Rectangles.Plain(); kwargs...)

Render a rectangle r to cell c, defaulting to plain styling.

Returns an array of the AbstractPolygons added to the cell.

source

render!(c::Cell, r::Rectangle, ::Rectangles.Plain; kwargs...)

Render a rectangle r to cell c with plain styling.

Returns an array with the rectangle in it.

source

render!(c::Cell, r::Rectangle, s::Rectangles.Rounded; kwargs...)

Render a rounded rectangle r to cell c. This is accomplished by rendering a path around the outside of a (smaller than requested) solid rectangle. The bounding box of r is preserved.

Returns an array of the AbstractPolygons added to the cell.

source

render!(c::Cell, r::Rectangle, s::Rectangles.Undercut;
    layer=0, uclayer=0, kwargs...)

Render a rectangle r to cell c. Additionally, put a hollow border around the rectangle with layer uclayer. Useful for undercut structures.

Returns an array of the AbstractPolygons added to the cell.

source

render!(c::Cell, r::Polygon, s::Polygons.Style=Polygons.Plain(); kwargs...)

Render a polygon r to cell c, defaulting to plain styling.

source

render!(c::Cell, p::Path; kwargs...)

Render a path p to a cell c.

source

render!(c::Cell, segment::Paths.Segment, s::Paths.Style; kwargs...)

Render a segment with style s to cell c.

source

render!(c::Cell, segment::Paths.Segment, s::Paths.DecoratedStyle; kwargs...)

Render a segment with decorated style s to cell c. Cell references held by the decorated style will have their fields modified by this method, which is why they are shallow copied in the Paths.attach! function.

This method draws the decorations before the path itself is drawn.

source