Documentation
¶
Index ¶
- func DuoUIdrawRectangle(gtx *layout.Context, w, h int, color color.RGBA, borderRadius [4]float32, ...)
- func HexARGB(s string) (c color.RGBA)
- type DuoUIbutton
- type DuoUIcheckBox
- type DuoUIcounter
- type DuoUIeditor
- type DuoUIicon
- type DuoUIlabel
- type DuoUIlogo
- type DuoUIpage
- type DuoUItheme
- func (t *DuoUItheme) Body1(txt string) DuoUIlabel
- func (t *DuoUItheme) Body2(txt string) DuoUIlabel
- func (t *DuoUItheme) Caption(txt string) DuoUIlabel
- func (t *DuoUItheme) DuoUIbutton(txt, txtColor, bgColor, iconColor string, iconSize int, ...) DuoUIbutton
- func (t *DuoUItheme) DuoUIcheckBox(label string) DuoUIcheckBox
- func (t *DuoUItheme) DuoUIcounter(txt, txtColor, bgColor, iconColor string, iconSize int, ...) DuoUIbutton
- func (t *DuoUItheme) DuoUIeditor(hint, txt string) DuoUIeditor
- func (t *DuoUItheme) DuoUIiconLogo(icon *DuoUIicon) DuoUIlogo
- func (t *DuoUItheme) DuoUIlabel(size unit.Value, txt string) DuoUIlabel
- func (t *DuoUItheme) DuoUIpage(txtColor, bgColor string, ...) DuoUIpage
- func (t *DuoUItheme) H1(txt string) DuoUIlabel
- func (t *DuoUItheme) H2(txt string) DuoUIlabel
- func (t *DuoUItheme) H3(txt string) DuoUIlabel
- func (t *DuoUItheme) H4(txt string) DuoUIlabel
- func (t *DuoUItheme) H5(txt string) DuoUIlabel
- func (t *DuoUItheme) H6(txt string) DuoUIlabel
- type DuoUIthemeNav
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuoUIdrawRectangle ¶
Types ¶
type DuoUIbutton ¶
type DuoUIbutton struct {
// Color is the text color.
// contains filtered or unexported fields
}
type DuoUIcheckBox ¶
type DuoUIcheckBox struct {
// contains filtered or unexported fields
}
type DuoUIcounter ¶
type DuoUIcounter struct {
Font text.Font
// Color is the text color.
Color color.RGBA
// Hint contains the text displayed when the editor is empty.
Hint string
// HintColor is the color of hint text.
HintColor color.RGBA
Text string
// Color is the text color.
TxColor color.RGBA
Width float32
Height float32
BgColor color.RGBA
CornerRadius unit.Value
Icon *DuoUIicon
IconSize int
IconColor color.RGBA
PaddingVertical unit.Value
PaddingHorizontal unit.Value
// contains filtered or unexported fields
}
type DuoUIeditor ¶
type DuoUIicon ¶
func NewDuoUIicon ¶
NewDuoUIicon returns a new DuoUIicon from DuoUIiconVG data.
type DuoUIlabel ¶
type DuoUIlabel struct {
// Face defines the text style.
Font text.Font
// Color is the text color.
Color color.RGBA
// Alignment specify the text alignment.
Alignment text.Alignment
// MaxLines limits the number of lines. Zero means no limit.
MaxLines int
Text string
// contains filtered or unexported fields
}
func (DuoUIlabel) Layout ¶
func (l DuoUIlabel) Layout(gtx *layout.Context)
type DuoUIlogo ¶
type DuoUIpage ¶
type DuoUItheme ¶
type DuoUItheme struct {
Shaper text.Shaper
Color struct {
Primary color.RGBA
Text color.RGBA
Hint color.RGBA
InvText color.RGBA
}
TextSize unit.Value
// contains filtered or unexported fields
}
func NewDuoUItheme ¶
func NewDuoUItheme() *DuoUItheme
func (*DuoUItheme) Body1 ¶
func (t *DuoUItheme) Body1(txt string) DuoUIlabel
func (*DuoUItheme) Body2 ¶
func (t *DuoUItheme) Body2(txt string) DuoUIlabel
func (*DuoUItheme) Caption ¶
func (t *DuoUItheme) Caption(txt string) DuoUIlabel
func (*DuoUItheme) DuoUIbutton ¶
func (t *DuoUItheme) DuoUIbutton(txt, txtColor, bgColor, iconColor string, iconSize int, width, height, paddingVertical, paddingHorizontal float32, icon *DuoUIicon) DuoUIbutton
func (*DuoUItheme) DuoUIcheckBox ¶
func (t *DuoUItheme) DuoUIcheckBox(label string) DuoUIcheckBox
func (*DuoUItheme) DuoUIcounter ¶
func (t *DuoUItheme) DuoUIcounter(txt, txtColor, bgColor, iconColor string, iconSize int, width, height, paddingVertical, paddingHorizontal float32, icon *DuoUIicon) DuoUIbutton
func (*DuoUItheme) DuoUIeditor ¶
func (t *DuoUItheme) DuoUIeditor(hint, txt string) DuoUIeditor
func (*DuoUItheme) DuoUIiconLogo ¶
func (t *DuoUItheme) DuoUIiconLogo(icon *DuoUIicon) DuoUIlogo
func (*DuoUItheme) DuoUIlabel ¶
func (t *DuoUItheme) DuoUIlabel(size unit.Value, txt string) DuoUIlabel
func (*DuoUItheme) DuoUIpage ¶
func (t *DuoUItheme) DuoUIpage(txtColor, bgColor string, width, height, paddingVertical, paddingHorizontal float32) DuoUIpage
func (*DuoUItheme) H1 ¶
func (t *DuoUItheme) H1(txt string) DuoUIlabel
func (*DuoUItheme) H2 ¶
func (t *DuoUItheme) H2(txt string) DuoUIlabel
func (*DuoUItheme) H3 ¶
func (t *DuoUItheme) H3(txt string) DuoUIlabel
func (*DuoUItheme) H4 ¶
func (t *DuoUItheme) H4(txt string) DuoUIlabel
func (*DuoUItheme) H5 ¶
func (t *DuoUItheme) H5(txt string) DuoUIlabel
func (*DuoUItheme) H6 ¶
func (t *DuoUItheme) H6(txt string) DuoUIlabel
type DuoUIthemeNav ¶
type DuoUIthemeNav struct {
// Color is the text color.
//Icon *DuoUIicon
}
func (DuoUIthemeNav) Layout ¶
func (n DuoUIthemeNav) Layout(gtx *layout.Context)
Click to show internal directories.
Click to hide internal directories.