toggle

package
v0.0.0-...-1368b33 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Toggle

type Toggle struct {
	widget.DisableableWidget

	Checked bool

	OnChanged func(bool)
	// contains filtered or unexported fields
}

func NewToggle

func NewToggle(changed func(bool), opts ...ToggleOpt) *Toggle

func (*Toggle) CreateRenderer

func (t *Toggle) CreateRenderer() fyne.WidgetRenderer

func (*Toggle) Cursor

func (t *Toggle) Cursor() desktop.Cursor

func (*Toggle) Disable

func (t *Toggle) Disable()

func (*Toggle) Tapped

func (t *Toggle) Tapped(event *fyne.PointEvent)

type ToggleOpt

type ToggleOpt = func(s *Toggle) error

func SetImageHeight

func SetImageHeight(height float32) ToggleOpt

func SetImagePadding

func SetImagePadding(padding float32) ToggleOpt

func SetImageWidth

func SetImageWidth(width float32) ToggleOpt

Jump to

Keyboard shortcuts

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