menu

package
v0.0.0-...-0583f8e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Visible bool
)

Functions

func AddButton

func AddButton(lbl string, callback func())

func AddButtonCond

func AddButtonCond(lbl string, cond func() bool, callback func())

func Draw

func Draw(gtx layout.Context) layout.Dimensions

func Hide

func Hide()

func Show

func Show()

Types

type Button

type Button struct {
	Label       string
	OnClick     func()
	VisibleCond func() bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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