Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Border ¶
type Border interface { // Insets returns the insets describing the space the border occupies on each side. Insets() geom.Insets // Draw the border into 'bounds'. Draw(gc *draw.Graphics, bounds geom.Rect) }
The Border interface should be implemented by objects that provide a border around an area.
type Compound ¶
type Compound struct {
// contains filtered or unexported fields
}
Compound is a border that contains other borders.
func NewCompound ¶
NewCompound creates a border that contains other borders. The first one will be drawn in the outermost position, with each successive one moving further into the interior.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
Empty is a border that contains empty space, effectively providing an empty margin.
type Line ¶
type Line struct { // NoInset will cause the Insets() method to return zeroes if true. NoInset bool // contains filtered or unexported fields }
Line is a border that draws a line along some or all of its sides.
func NewLine ¶
NewLine creates a new line border. The insets represent how thick the border will be drawn on that edge.
Click to show internal directories.
Click to hide internal directories.