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 rect. Draw(gc draw.Context, rect geom.Rect, inLiveResize bool) }
Border defines methods required of all border providers.
type Compound ¶
type Compound struct {
// contains filtered or unexported fields
}
Compound provides stacking of borders together.
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 provides and empty border with the specified insets.
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line private a lined border.
func NewLine ¶
NewLine creates a new line border. The cornerRadius specifies the amount of rounding to use on the corners. The insets represent how thick the border will be drawn on that edge. If noInset is true, the Insets() method will return zeroes.
Click to show internal directories.
Click to hide internal directories.