Documentation
¶
Index ¶
- Variables
- func Big() func(*buttonOptions)
- func Disabled(b bool) func(*buttonOptions)
- func Primary() func(*buttonOptions)
- type ButtonOptions
- type ButtonStyle
- type ButtonWidget
- type CheckboxWidget
- type InputStyle
- type LinearProgress
- type Progress
- type ProgressBar
- type ProgressBarStyle
- type Spinner
- type TextInputWidget
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProgressBarStyle = ProgressBarStyle{ Height: unit.Dp(4), Background: colorProgressBg, Foreground: colorProgressPrimary, }
Functions ¶
Types ¶
type ButtonOptions ¶
type ButtonOptions func(options *buttonOptions)
type ButtonStyle ¶
type ButtonStyle struct {
CornerRadius unit.Dp
Disabled bool
Primary bool
Button *widget.Clickable
}
func (ButtonStyle) Layout ¶
func (b ButtonStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type ButtonWidget ¶
type ButtonWidget struct {
// contains filtered or unexported fields
}
func Button ¶
func Button(t Theme, clickable *widget.Clickable, label string, options ...ButtonOptions) *ButtonWidget
func (*ButtonWidget) Layout ¶
func (b *ButtonWidget) Layout(gtx layout.Context) layout.Dimensions
type CheckboxWidget ¶ added in v0.0.7
type CheckboxWidget struct {
// contains filtered or unexported fields
}
func (CheckboxWidget) Layout ¶ added in v0.0.7
func (c CheckboxWidget) Layout(gtx layout.Context) layout.Dimensions
type InputStyle ¶ added in v0.0.16
func (InputStyle) Layout ¶ added in v0.0.16
func (b InputStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type LinearProgress ¶ added in v0.0.23
type LinearProgress float32
type Progress ¶ added in v0.0.23
type Progress interface {
// contains filtered or unexported methods
}
var IndeterminedProgress Progress
func NewIndeterminedProgress ¶ added in v0.0.23
func NewIndeterminedProgress() Progress
type ProgressBar ¶ added in v0.0.5
type ProgressBar struct {
Progress Progress
Style ProgressBarStyle
// contains filtered or unexported fields
}
func NewProgressBar ¶ added in v0.0.5
func NewProgressBar(th cu.Theme, progress Progress) ProgressBar
func (ProgressBar) Layout ¶ added in v0.0.5
func (p ProgressBar) Layout(gtx layout.Context) layout.Dimensions
type ProgressBarStyle ¶ added in v0.0.23
type TextInputWidget ¶ added in v0.0.16
type TextInputWidget struct {
Editor *widget.Editor
Hint string
Width unit.Dp
Height unit.Dp
// contains filtered or unexported fields
}
func (TextInputWidget) Layout ¶ added in v0.0.16
func (t TextInputWidget) Layout(gtx layout.Context) layout.Dimensions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.