widget

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 15 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 InputStyle added in v0.0.16

type InputStyle struct {
	CornerRadius unit.Dp
	Editor       *widget.Editor
	Width        unit.Dp
}

func (InputStyle) Layout added in v0.0.16

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

type TextInputWidget added in v0.0.16

type TextInputWidget struct {
	Editor *widget.Editor
	Hint   string
	// contains filtered or unexported fields
}

func TextInput added in v0.0.16

func TextInput(th *cu.Theme, editor *widget.Editor, hint string, width unit.Dp) TextInputWidget

func (TextInputWidget) Layout added in v0.0.16

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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