parallel

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuoUIdrawRectangle

func DuoUIdrawRectangle(gtx *layout.Context, w, h int, color color.RGBA, borderRadius [4]float32, padding [4]float32)

func HexARGB

func HexARGB(s string) (c color.RGBA)

Types

type DuoUIbutton

type DuoUIbutton struct {
	Text string
	// Color is the text color.
	TxColor           color.RGBA
	Font              text.Font
	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
}

func (DuoUIbutton) Layout

func (b DuoUIbutton) Layout(gtx *layout.Context, button *widget.Button)

type DuoUIcheckBox

type DuoUIcheckBox struct {
	// contains filtered or unexported fields
}

func (DuoUIcheckBox) Layout

func (c DuoUIcheckBox) Layout(gtx *layout.Context, checkBox *widget.CheckBox)

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
}

func (DuoUIcounter) Layout

func (b DuoUIcounter) Layout(gtx *layout.Context, button *widget.Counter)

type DuoUIeditor

type DuoUIeditor 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
	// contains filtered or unexported fields
}

func (DuoUIeditor) Layout

func (e DuoUIeditor) Layout(gtx *layout.Context, editor *widget.Editor)

type DuoUIicon

type DuoUIicon struct {
	Color color.RGBA
	// contains filtered or unexported fields
}

func NewDuoUIicon

func NewDuoUIicon(data []byte) (*DuoUIicon, error)

NewDuoUIicon returns a new DuoUIicon from DuoUIiconVG data.

func (*DuoUIicon) Layout

func (ic *DuoUIicon) Layout(gtx *layout.Context, sz unit.Value)

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 struct {
	Background color.RGBA
	Color      color.RGBA
	Icon       *DuoUIicon
	Size       unit.Value
	Padding    unit.Value
}

func (DuoUIlogo) Layout

func (b DuoUIlogo) Layout(gtx *layout.Context, button *widget.Button)

type DuoUIpage

type DuoUIpage struct {
	Text         string
	TxColor      color.RGBA
	Font         text.Font
	Width        float32
	Height       float32
	BgColor      color.RGBA
	CornerRadius unit.Value
	// contains filtered or unexported fields
}

func (DuoUIpage) Layout

func (b DuoUIpage) Layout(gtx *layout.Context, content func())

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 (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 {
	Title string
	// Color is the text color.
	TxColor      color.RGBA
	Font         text.Font
	BgColor      color.RGBA
	CornerRadius unit.Value
	//Icon          *DuoUIicon
	IcoBackground color.RGBA
	IcoColor      color.RGBA
	IcoPadding    unit.Value
	IcoSize       unit.Value
	Size          unit.Value
	Padding       unit.Value
}

func (DuoUIthemeNav) Layout

func (n DuoUIthemeNav) Layout(gtx *layout.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL