gui

package
v0.0.0-...-f5beb5c Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ColumnWidth int = 9

Variables

This section is empty.

Functions

func MakeToolbar

func MakeToolbar(myWindow fyne.Window, soundConfig *sound.SoundConfig,
	guiButtons chan common.ALight, eventsForLaunchPad chan common.ALight, config *usbdmx.ControllerConfig, launchPadName string) *widget.Toolbar

MakeToolbar generates a tool bar at the top of the main window.

Types

type Button

type Button struct {
	// contains filtered or unexported fields
}

type Device

type Device struct {
	Name   string
	Status bool
}

type MyPanel

type MyPanel struct {
	Buttons          [][]Button
	SpeedLabel       *widget.Label
	ShiftLabel       *widget.Label
	SizeLabel        *widget.Label
	FadeLabel        *widget.Label
	VersionLabel     *widget.Button
	TiltLabel        *widget.Label
	RedLabel         *widget.Label
	GreenLabel       *widget.Label
	BlueLabel        *widget.Label
	SensitivityLabel *widget.Label
	MasterLabel      *widget.Label
}

func NewPanel

func NewPanel() MyPanel

func (*MyPanel) ConvertButtonImageToIcon

func (panel *MyPanel) ConvertButtonImageToIcon(filename string) []byte

func (*MyPanel) GenerateRow

func (panel *MyPanel) GenerateRow(myWindow fyne.Window, rowNumber int,
	sequences []*common.Sequence,
	this *buttons.CurrentState,
	eventsForLauchpad chan common.ALight,
	guiButtons chan common.ALight,
	dmxController *ft232.DMXController,
	fixturesConfig *fixture.Fixtures,
	commandChannels []chan common.Command,
	replyChannels []chan common.Sequence,
	updateChannels []chan common.Sequence,
	dmxInterfacePresent bool) *fyne.Container

func (*MyPanel) GetButtonColor

func (panel *MyPanel) GetButtonColor(X int, Y int) color.Color

func (*MyPanel) LabelRightHandButtons

func (panel *MyPanel) LabelRightHandButtons()

func (*MyPanel) ListenAndSendToGUI

func (panel *MyPanel) ListenAndSendToGUI(guiButtons chan common.ALight, GuiFlashButtons [][]common.ALight)

func (*MyPanel) PopupNotFoundMessage

func (panel *MyPanel) PopupNotFoundMessage(myWindow fyne.Window, dmxInterface Device, launchPad Device) (modal *widget.PopUp)

func (*MyPanel) UpdateButtonColor

func (panel *MyPanel) UpdateButtonColor(alight common.ALight, GuiFlashButtons [][]common.ALight)

func (*MyPanel) UpdateButtonLabel

func (panel *MyPanel) UpdateButtonLabel(X int, Y int, label string)

func (*MyPanel) UpdateStatusBar

func (panel *MyPanel) UpdateStatusBar(label string, hide bool, which string)

Jump to

Keyboard shortcuts

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