Documentation ¶
Index ¶
Constants ¶
View Source
const FitContent = 1e6
Variables ¶
View Source
var ( LeftRoundBraket = &Label{Text: "(", MaxWidth: FitContent} RightRoundBraket = &Label{Text: ")", MaxWidth: FitContent} LeftSquareBraket = &Label{Text: "[", MaxWidth: FitContent} RightSquareBraket = &Label{Text: "]", MaxWidth: FitContent} LeftCurlyBraket = &Label{Text: "{", MaxWidth: FitContent} RightCurlyBraket = &Label{Text: "}", MaxWidth: FitContent} )
View Source
var ( PlusSymbol = &Label{Text: "+", MaxWidth: FitContent} MinusSymbol = &Label{Text: "-", MaxWidth: FitContent} MultiplySymbol = &Label{Text: "*", MaxWidth: FitContent} FactorSymbol = &Label{Text: "!", MaxWidth: FitContent} InterpunctSymbol = &Label{Text: "·", MaxWidth: FitContent} ModuloSymbol = &Label{Text: "%", MaxWidth: FitContent} SqrtSymbol = &Label{Text: "√", MaxWidth: FitContent} )
Functions ¶
This section is empty.
Types ¶
type Group ¶
func (*Group) Dimensions ¶
type Label ¶
type Label struct { Text string // Alignment specify the text alignment. Alignment text.Alignment // MaxWith limits the with of a label, FitContent to limits the width to fit the content. MaxWidth int // MaxLines limits the number of lines. Zero means no limit. MaxLines int }
Label is a widget for laying out and drawing text.
func (*Label) Dimensions ¶
type LineIterator ¶
Click to show internal directories.
Click to hide internal directories.