gui

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowErrorDialogAndRun

func ShowErrorDialogAndRun(err error)

ShowErrorDialogAndRun will create a new error window displaying the text of the error. Takes in an error, and an optional link. If the link is added, a hyperlink will be created at the bottom so the user can click on it.

func ShowErrorDialogAndRunWithLink(err error, link string)

ShowErrorDialogAndRunWithLink will create a new error window displaying the text of the error. Takes in an error, and an optional link. If the link is added, a hyperlink will be created at the bottom so the user can click on it.

func ShowPressedAnimation

func ShowPressedAnimation(delay time.Duration, btn *widget.Button)

ShowPressedAnimation will change the color of the button for the delay given

Types

type GUI

type GUI struct {
	Size    fyne.Size
	App     fyne.App
	RootWin fyne.Window
	// contains filtered or unexported fields
}

GUI

func NewGUI

func NewGUI(mm *macro.MacroManager) *GUI

Create a new GUI, given a MacroManager ptr

func (*GUI) ListenForDisplayButtonPress

func (g *GUI) ListenForDisplayButtonPress(displayBtnch chan string, quitch chan struct{})

ListenForDisplayButtonPress will listen for a button press then visibly update the button so it looks like it was pressed

func (*GUI) SetContent

func (g *GUI) SetContent(c fyne.CanvasObject)
Helpers

Add content to the GUI.RootWin

func (*GUI) ShowAndRun

func (g *GUI) ShowAndRun()

Run GUI.RootWin.ShowAndRun()

Jump to

Keyboard shortcuts

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