widget

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProgressBarStyle = ProgressBarStyle{
	Height:     unit.Dp(4),
	Background: colorProgressBg,
	Foreground: colorProgressPrimary,
}

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
	Height       unit.Dp
}

func (InputStyle) Layout added in v0.0.16

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 ProgressBarStyle struct {
	Background color.NRGBA
	Foreground color.NRGBA
	Height     unit.Dp
}

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

	Width  unit.Dp
	Height unit.Dp
	// 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, height unit.Dp) TextInputWidget

func (TextInputWidget) Layout added in v0.0.16

Directories

Path Synopsis
testapp command

Jump to

Keyboard shortcuts

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