FluidBorder

Interface for borders

Members

Functions

apply
void apply(FluidBackend backend, Rectangle borderBox, uint[4] size)

Apply the border, drawing it in the given box.

cornerRect
Rectangle cornerRect(Rectangle source, uint[4] size, Style.Side side)

Get square for corner next counter-clockwise to the given side. Note: returned rectangles may have negative size; rect start position will always point to the corner itself.

sideRect
Rectangle sideRect(Rectangle source, uint[4] size, Style.Side side)

Get the rectangle for the given side of the border.

Meta