widget

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Big

func Big() func(*buttonOptions)

func Disabled

func Disabled(b bool) func(*buttonOptions)

func Primary

func Primary() func(*buttonOptions)

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

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 Checkbox added in v0.0.7

func Checkbox(th *cu.Theme, ch *widget.Bool, label string) CheckboxWidget

func (CheckboxWidget) Layout added in v0.0.7

type ProgressBar added in v0.0.5

type ProgressBar struct {
	Progress float32
	// contains filtered or unexported fields
}

func NewProgressBar added in v0.0.5

func NewProgressBar(th *cu.Theme, progress float32) ProgressBar

func (ProgressBar) Layout added in v0.0.5

func (p ProgressBar) Layout(gtx layout.Context) layout.Dimensions

type Spinner

type Spinner struct {
	R int
	// contains filtered or unexported fields
}

func (Spinner) Layout

func (s Spinner) Layout(gtx layout.Context) layout.Dimensions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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