Documentation ¶
Index ¶
- type CellFactory
- type Label
- func (l *Label) DefaultDraw(gc draw.Context, dirty geom.Rect, inLiveResize bool)
- func (l *Label) DefaultSizes(hint geom.Size) (min, pref, max geom.Size)
- func (l *Label) Font() *draw.Font
- func (l *Label) Gap() float64
- func (l *Label) HAlign() align.Alignment
- func (l *Label) Image() *draw.Image
- func (l *Label) Ink() draw.Ink
- func (l *Label) SetBorder(value border.Border) *Label
- func (l *Label) SetEnabled(enabled bool) *Label
- func (l *Label) SetFocusable(focusable bool) *Label
- func (l *Label) SetFont(value *draw.Font) *Label
- func (l *Label) SetGap(value float64) *Label
- func (l *Label) SetHAlign(value align.Alignment) *Label
- func (l *Label) SetImage(value *draw.Image) *Label
- func (l *Label) SetInk(value draw.Ink) *Label
- func (l *Label) SetSide(value side.Side) *Label
- func (l *Label) SetText(value string) *Label
- func (l *Label) SetVAlign(value align.Alignment) *Label
- func (l *Label) Side() side.Side
- func (l *Label) Text() string
- func (l *Label) VAlign() align.Alignment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellFactory ¶
type CellFactory struct {
Height float64
}
CellFactory provides a simple implementation of a CellFactory that uses Labels for its cells.
func (*CellFactory) CellHeight ¶
func (f *CellFactory) CellHeight() float64
CellHeight implements widget.CellFactory.
func (*CellFactory) CreateCell ¶
func (f *CellFactory) CreateCell(owner *ux.Panel, element interface{}, index int, selected, focused bool) *ux.Panel
CreateCell implements widget.CellFactory.
type Label ¶
Label represents non-interactive text and/or an image.
func (*Label) DefaultDraw ¶
DefaultDraw provides the default drawing.
func (*Label) DefaultSizes ¶
DefaultSizes provides the default sizing.
func (*Label) SetEnabled ¶
SetEnabled sets enabled state.
func (*Label) SetFocusable ¶
SetFocusable whether it can have the keyboard focus.
func (*Label) SetFont ¶
SetFont sets the font that will be used when drawing text content. Pass in nil to use the default.
func (*Label) SetInk ¶
SetInk sets the ink that will be used when drawing text content. Pass in nil to use the default.
Click to show internal directories.
Click to hide internal directories.