fyne

package
v0.0.0-...-c4467fc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomizedMenuItem

func NewCustomizedMenuItem(label string, fn func(), opts ...MenuOption) *fyne.MenuItem

NewCustomizedMenuItem creates a fyne.MenuItem with the provided label and fn, and applies all of the MenuOption(s) to it.

Types

type MenuOption func(*fyne.MenuItem)

MenuOption is used to customize the behaviour and properties of a fyne.MenuItem

func Checked

func Checked(b bool, onChange func()) MenuOption

Checked allows toggling the state of a fyne.MenuItem, calling onChange with the value whenever the fyne.MenuItem is clicked/tapped.

func Gated

func Gated(b bool) MenuOption

Gated disables the fyne.MenuItem from being interactable when b is false. The menu should be recreated whenever these conditions change (TODO make it so u dont)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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