gui

package
v0.0.0-...-9225a19 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_TITLE = "Button Pad"
)

Variables

This section is empty.

Functions

func LayerSelector

func LayerSelector(callback func(button *gtk.Button)) (grid *gtk.Grid, err error)

func LayerTemplate

func LayerTemplate(li int, callback func(button *gtk.Button)) (grid *gtk.Grid, err error)

func MacroAppForm

func MacroAppForm() (form *gtk.Grid, err error)

func MacroCodeForm

func MacroCodeForm() (form *gtk.Grid, err error)

func MacroSequenceForm

func MacroSequenceForm() (form *gtk.Grid, err error)

func MacroTextForm

func MacroTextForm() (form *gtk.Grid, err error)

func MacroUpdateContainer

func MacroUpdateContainer() (container *gtk.Grid, err error)

Types

type MacroUpdate

type MacroUpdate struct {
	Type    int
	Layer   byte
	MacroId byte
	Label   string
	Payload []byte
}

type UI

type UI struct {
	OnConfirm     func(confirm bool)
	OnChangeMacro func(layer, macro int, typ byte, label string, payload []byte)
	// contains filtered or unexported fields
}

func NewUiController

func NewUiController(
	confirm func(confirm bool),
	change func(layer, macro int, typ byte, label string, payload []byte),
) *UI

create a new app ui instance

func (*UI) NewWindow

func (ui *UI) NewWindow(title string, content gtk.IWidget, width, height int) (win *gtk.Window, err error)

expose createWindow to the rest of the app in a more useful format

func (*UI) Start

func (ui *UI) Start()

start the application

Jump to

Keyboard shortcuts

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