Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellFactory ¶
type CellFactory struct { // Height is returned when CellHeight() is called. Height float64 }
CellFactory provides simple text cells.
func (*CellFactory) CellHeight ¶
func (f *CellFactory) CellHeight() float64
CellHeight implements the widget.CellFactory interface.
func (*CellFactory) CreateCell ¶
func (f *CellFactory) CreateCell(owner ui.Widget, element interface{}, index int, selected, focused bool) ui.Widget
CreateCell implements the widget.CellFactory interface.
type Label ¶
Label represents a non-interactive piece of text.
func NewWithFont ¶
NewWithFont creates a label with the specified text and font.
func (*Label) SetForeground ¶
SetForeground sets the color used when drawing the text.
Click to show internal directories.
Click to hide internal directories.