controller

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Controlled

	*gtk.MenuButton
	Icon *gtk.Image
}

func (*Button) SetActive

func (b *Button) SetActive(active bool)

func (*Button) ToggleActive

func (b *Button) ToggleActive()

type Container

type Container struct {
	*gtk.Box
	Buttons []*Button
}

func New

func New() *Container

func (*Container) Add

func (c *Container) Add(icon string, ctrl Controlled, active bool) *Button

type Controlled

type Controlled interface {
	OnClick(b *Button)
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL