Documentation
¶
Index ¶
- func ApplyTemplate(o fyne.CanvasObject) fyne.CanvasObject
- func IsCheckboxChecked(ch chan<- CheckboxAction) bool
- func IsCheckboxDisabled(ch chan<- CheckboxAction) bool
- func IsProgressBarHidden(pbCh chan<- ProgressBarAction) bool
- func NewButton(renderQueue chan<- func(w fyne.Window), label string, opts ...ButtonOption) (*widget.Button, chan<- ButtonAction)
- func NewCheckbox(renderQueue chan<- func(w fyne.Window), label string, opts ...CheckboxOption) (*widget.Check, chan<- CheckboxAction)
- func NewEntry(renderQueue chan<- func(w fyne.Window), opts ...EntryOption) (*entry, chan<- string, <-chan string)
- func NewImmutableText(text string, opts ...TextOption) *canvas.Text
- func NewIntEntry(renderQueue chan<- func(w fyne.Window), opts ...EntryOption) (*entry, chan<- int, <-chan int)
- func NewProgressBar(renderQueue chan<- func(w fyne.Window), opts ...ProgressBarOption) (*widget.ProgressBar, chan<- ProgressBarAction)
- func NewText(renderQueue chan<- func(w fyne.Window), text string, opts ...TextOption) (*canvas.Text, chan<- string)
- func NewWrappedText(renderQueue chan<- func(w fyne.Window), text string, width int, ...) (fyne.CanvasObject, chan<- string)
- type ButtonAction
- type ButtonOption
- func ButtonOptionAlignment(alignment widget.ButtonAlign) ButtonOption
- func ButtonOptionIcon(icon fyne.Resource) ButtonOption
- func ButtonOptionIconPlacement(placement widget.ButtonIconPlacement) ButtonOption
- func ButtonOptionImportance(importance widget.ButtonImportance) ButtonOption
- func ButtonOptionOnTapped(fn func()) ButtonOption
- type CheckboxAction
- type CheckboxOption
- type EntryOption
- type HeadingLevel
- type ProgressBarAction
- type ProgressBarOption
- type RenderFunc
- type TextOption
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 NewWrappedText ¶
func NewWrappedText(renderQueue chan<- func(w fyne.Window), text string, width int, opts ...TextOption) (fyne.CanvasObject, chan<- string)
Types ¶
type ButtonAction ¶
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 ¶
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 ¶
func CheckboxActionDisable ¶
func CheckboxActionDisable() CheckboxAction
func CheckboxActionEnable ¶
func CheckboxActionEnable() CheckboxAction
func CheckboxActionSetChecked ¶
func CheckboxActionSetChecked(checked bool) CheckboxAction
type CheckboxOption ¶
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 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 TextOption ¶
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
Click to show internal directories.
Click to hide internal directories.