components

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(o fyne.CanvasObject) fyne.CanvasObject

func IsCheckboxChecked

func IsCheckboxChecked(ch chan<- CheckboxAction) bool

func IsCheckboxDisabled

func IsCheckboxDisabled(ch chan<- CheckboxAction) bool

func IsProgressBarHidden

func IsProgressBarHidden(pbCh chan<- ProgressBarAction) bool

func NewButton

func NewButton(renderQueue chan<- func(w fyne.Window), label string, opts ...ButtonOption) (*widget.Button, chan<- ButtonAction)

func NewCheckbox

func NewCheckbox(renderQueue chan<- func(w fyne.Window), label string, opts ...CheckboxOption) (*widget.Check, chan<- CheckboxAction)

func NewEntry

func NewEntry(renderQueue chan<- func(w fyne.Window), opts ...EntryOption) (*entry, chan<- string, <-chan string)

func NewImmutableText

func NewImmutableText(text string, opts ...TextOption) *canvas.Text

func NewIntEntry

func NewIntEntry(renderQueue chan<- func(w fyne.Window), opts ...EntryOption) (*entry, chan<- int, <-chan int)

func NewProgressBar

func NewProgressBar(renderQueue chan<- func(w fyne.Window), opts ...ProgressBarOption) (*widget.ProgressBar, chan<- ProgressBarAction)

func NewText

func NewText(renderQueue chan<- func(w fyne.Window), text string, opts ...TextOption) (*canvas.Text, chan<- string)

func NewWrappedText

func NewWrappedText(renderQueue chan<- func(w fyne.Window), text string, width int, opts ...TextOption) (fyne.CanvasObject, chan<- string)

Types

type ButtonAction

type ButtonAction func(b *widget.Button)

func ButtonActionDisable

func ButtonActionDisable() ButtonAction

func ButtonActionEnable

func ButtonActionEnable() ButtonAction

func ButtonActionHide

func ButtonActionHide() ButtonAction

func ButtonActionSetText

func ButtonActionSetText(text string) ButtonAction

func ButtonActionShow

func ButtonActionShow() ButtonAction

type ButtonOption

type ButtonOption func(b *widget.Button)

func ButtonOptionAlignment

func ButtonOptionAlignment(alignment widget.ButtonAlign) ButtonOption

func ButtonOptionIcon

func ButtonOptionIcon(icon fyne.Resource) ButtonOption

func ButtonOptionIconPlacement

func ButtonOptionIconPlacement(placement widget.ButtonIconPlacement) ButtonOption

func ButtonOptionImportance

func ButtonOptionImportance(importance widget.ButtonImportance) ButtonOption

func ButtonOptionOnTapped

func ButtonOptionOnTapped(fn func()) ButtonOption

type CheckboxAction

type CheckboxAction = func(cb *widget.Check)

func CheckboxActionDisable

func CheckboxActionDisable() CheckboxAction

func CheckboxActionEnable

func CheckboxActionEnable() CheckboxAction

func CheckboxActionSetChecked

func CheckboxActionSetChecked(checked bool) CheckboxAction

type CheckboxOption

type CheckboxOption = func(cb *widget.Check)

func CheckboxOptionOnChange

func CheckboxOptionOnChange(fn func(checked bool)) CheckboxOption

type EntryOption

type EntryOption func(e *entry)

func EntryOptionInt

func EntryOptionInt() EntryOption

EntryOptionInt forces input to be a valid int

func EntryOptionMultiline

func EntryOptionMultiline() EntryOption

func EntryOptionOnEnter

func EntryOptionOnEnter(fn func()) EntryOption

func EntryOptionPassword

func EntryOptionPassword() EntryOption

func EntryOptionPlaceholder

func EntryOptionPlaceholder(text string) EntryOption

type HeadingLevel

type HeadingLevel int
const (
	H1 HeadingLevel = iota
	H2
	H3
	H4
	H5
	H6
)

type ProgressBarAction

type ProgressBarAction = func(pb *widget.ProgressBar)

func ProgressBarActionHide

func ProgressBarActionHide() ProgressBarAction

func ProgressBarActionSetComplete

func ProgressBarActionSetComplete() ProgressBarAction

func ProgressBarActionSetValue

func ProgressBarActionSetValue(val float64) ProgressBarAction

func ProgressBarActionShow

func ProgressBarActionShow() ProgressBarAction

type ProgressBarOption

type ProgressBarOption = func(pb *widget.ProgressBar)

type RenderFunc

type RenderFunc func(w fyne.Window)

type TextOption

type TextOption func(t *canvas.Text)

func TextOptionAlignment

func TextOptionAlignment(alignment fyne.TextAlign) TextOption

func TextOptionBold

func TextOptionBold() TextOption

func TextOptionColor

func TextOptionColor(c color.Color) TextOption

func TextOptionHeading

func TextOptionHeading(level HeadingLevel) TextOption

func TextOptionSize

func TextOptionSize(size int) TextOption

func TextOptionStyle

func TextOptionStyle(style fyne.TextStyle) TextOption

Jump to

Keyboard shortcuts

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