Documentation
¶
Index ¶
- func DuoUIdrawRectangle(gtx *layout.Context, w, h int, color string, borderRadius [4]float32, ...)
- func DuoUIfill(gtx *layout.Context, col string)
- func HexARGB(s string) (c color.RGBA)
- func NewDuoUIcolors() (c map[string]string)
- func NewDuoUIfonts() (f map[string]text.Typeface)
- func NewDuoUIicons() (i map[string]*DuoUIicon)
- type Button
- type Command
- type DuoUIbutton
- type DuoUIcheckBox
- type DuoUIcomponent
- type DuoUIcounter
- type DuoUIeditor
- type DuoUIicon
- type DuoUIimage
- type DuoUIitem
- type DuoUIlabel
- type DuoUIpage
- type DuoUIpanel
- type DuoUItheme
- func (t *DuoUItheme) Body1(txt string) DuoUIlabel
- func (t *DuoUItheme) Body2(txt string) DuoUIlabel
- func (t *DuoUItheme) Button(txt string) Button
- func (t *DuoUItheme) Caption(txt string) DuoUIlabel
- func (t *DuoUItheme) Command(name string) *Command
- func (t *DuoUItheme) DuoUIbutton(txtFont text.Typeface, ...) DuoUIbutton
- func (t *DuoUItheme) DuoUIcheckBox(label, color, iconColor string) DuoUIcheckBox
- func (t *DuoUItheme) DuoUIcomponent(name string) *DuoUIcomponent
- func (t *DuoUItheme) DuoUIcounter(pageFunction func()) DuoUIcounter
- func (t *DuoUItheme) DuoUIeditor(hint string) DuoUIeditor
- func (t *DuoUItheme) DuoUIitem(background string) DuoUIitem
- func (t *DuoUItheme) DuoUIlabel(size unit.Value, txt string) DuoUIlabel
- func (t *DuoUItheme) DuoUIline(gtx *layout.Context, color string) func()
- func (t *DuoUItheme) DuoUIpage(txt string, border float32, command, header, body, footer func()) *DuoUIpage
- func (t *DuoUItheme) DuoUIpanel(content func()) *DuoUIpanel
- 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
- func (t *DuoUItheme) IconButton(icon *DuoUIicon) IconButton
- func (t *DuoUItheme) Image(img paint.ImageOp) DuoUIimage
- func (t *DuoUItheme) ScrollBar(c *gel.ScrollBar) *ScrollBar
- type DuoUIthemeNav
- type IconButton
- type ScrollBar
- type ScrollBarBody
- type ScrollBarButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuoUIdrawRectangle ¶
func NewDuoUIcolors ¶
func NewDuoUIfonts ¶
func NewDuoUIicons ¶
Types ¶
type Button ¶
type DuoUIbutton ¶
type DuoUIbutton struct {
// Color is the text color.
// contains filtered or unexported fields
}
func (DuoUIbutton) IconLayout ¶
func (b DuoUIbutton) IconLayout(gtx *layout.Context, button *gel.Button)
func (DuoUIbutton) MenuLayout ¶
func (b DuoUIbutton) MenuLayout(gtx *layout.Context, button *gel.Button)
type DuoUIcheckBox ¶
type DuoUIcheckBox struct {
// contains filtered or unexported fields
}
type DuoUIcomponent ¶
func (DuoUIcomponent) Layout ¶
func (p DuoUIcomponent) Layout(gtx *layout.Context, f func())
type DuoUIcounter ¶
type DuoUIcounter struct {
Font text.Font
TextSize unit.Value
TxColor string
BgColor string
// contains filtered or unexported fields
}
func (DuoUIcounter) Layout ¶
func (c DuoUIcounter) Layout(gtx *layout.Context, cc *gel.DuoUIcounter, label, value string)
type DuoUIeditor ¶
type DuoUIicon ¶
func NewDuoUIicon ¶
NewDuoUIicon returns a new DuoUIicon from DuoUIiconVG data.
type DuoUIimage ¶
type DuoUIimage struct {
// Src is the image to display.
Src paint.ImageOp
// Scale is the ratio of image pixels to
// dps.
Scale float32
}
Image is a widget that displays an image.
func (DuoUIimage) Layout ¶
func (im DuoUIimage) Layout(gtx *layout.Context)
type DuoUIitem ¶
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
TextSize unit.Value
// contains filtered or unexported fields
}
func (DuoUIlabel) Layout ¶
func (l DuoUIlabel) Layout(gtx *layout.Context)
type DuoUIpage ¶
type DuoUIpanel ¶
type DuoUIpanel struct {
Name string
// contains filtered or unexported fields
}
type DuoUItheme ¶
type DuoUItheme struct {
Shaper text.Shaper
TextSize unit.Value
Colors map[string]string
Fonts map[string]text.Typeface
Icons map[string]*DuoUIicon
// 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) Button ¶
func (t *DuoUItheme) Button(txt string) Button
func (*DuoUItheme) Caption ¶
func (t *DuoUItheme) Caption(txt string) DuoUIlabel
func (*DuoUItheme) Command ¶
func (t *DuoUItheme) Command(name string) *Command
func (*DuoUItheme) DuoUIbutton ¶
func (t *DuoUItheme) DuoUIbutton(txtFont text.Typeface, txt, txtColor, bgColor, txtHoverColor, bgHoverColor, icon, iconColor string, textSize, iconSize, width, height, paddingVertical, paddingHorizontal int) DuoUIbutton
func (*DuoUItheme) DuoUIcheckBox ¶
func (t *DuoUItheme) DuoUIcheckBox(label, color, iconColor string) DuoUIcheckBox
func (*DuoUItheme) DuoUIcomponent ¶
func (t *DuoUItheme) DuoUIcomponent(name string) *DuoUIcomponent
func (*DuoUItheme) DuoUIcounter ¶
func (t *DuoUItheme) DuoUIcounter(pageFunction func()) DuoUIcounter
func (*DuoUItheme) DuoUIeditor ¶
func (t *DuoUItheme) DuoUIeditor(hint string) DuoUIeditor
func (*DuoUItheme) DuoUIitem ¶
func (t *DuoUItheme) DuoUIitem(background string) DuoUIitem
func (*DuoUItheme) DuoUIlabel ¶
func (t *DuoUItheme) DuoUIlabel(size unit.Value, txt string) DuoUIlabel
func (*DuoUItheme) DuoUIline ¶
func (t *DuoUItheme) DuoUIline(gtx *layout.Context, color string) func()
func (*DuoUItheme) DuoUIpage ¶
func (t *DuoUItheme) DuoUIpage(txt string, border float32, command, header, body, footer func()) *DuoUIpage
func (*DuoUItheme) DuoUIpanel ¶
func (t *DuoUItheme) DuoUIpanel(content func()) *DuoUIpanel
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
func (*DuoUItheme) IconButton ¶
func (t *DuoUItheme) IconButton(icon *DuoUIicon) IconButton
func (*DuoUItheme) Image ¶
func (t *DuoUItheme) Image(img paint.ImageOp) DuoUIimage
type DuoUIthemeNav ¶
type DuoUIthemeNav struct {
// Color is the text color.
// Icon *DuoUIicon
}
func (DuoUIthemeNav) Layout ¶
func (n DuoUIthemeNav) Layout(gtx *layout.Context)
type IconButton ¶
type ScrollBar ¶
type ScrollBarBody ¶
type ScrollBarButton ¶
type ScrollBarButton struct {
Height int
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.