controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 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)
}

Jump to

Keyboard shortcuts

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