gui

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUTTON_ONE   = 1
	BUTTON_TWO   = 2
	BUTTON_THREE = 3
)
View Source
const (
	ButtonHeight       = 32
	ToolbuttonIconSize = 24
	LabelWidth         = 60
	ButtonWidth        = LabelWidth + (LabelWidth / 2)
	ReturnButtonWidth  = ButtonWidth + Pad
	Pad                = 5
	Border             = 8
)

Variables

This section is empty.

Functions

func AboutYear added in v0.2.4

func AboutYear(year int) string

func AddWindowIcon

func AddWindowIcon(window *fltk.Window, svgText string)

func Ask added in v1.2.1

func Ask(title, bodyText, iconSvg string, textSize int, text1,
	text2, text3 string) int

func DescHtml added in v0.2.4

func DescHtml(appName, version, desc, url, author, year string) string

func ImageForSvgText

func ImageForSvgText(svgText string, size int) *fltk.RgbImage

func MakeAccelLabel added in v0.2.3

func MakeAccelLabel(width, height int, label string) *fltk.Button

func MakeHBox

func MakeHBox(x, y, width, height, spacing int) *fltk.Flex

func MakeInfoForm added in v0.2.9

func MakeInfoForm(title, appName, descHtml, iconSvg string, width, height,
	textSize int, resizable bool) *fltk.Window

func MakeMenuItem added in v0.7.0

func MakeMenuItem(menuBar *fltk.MenuBar, item MenuItem)

func MakeSep added in v0.2.7

func MakeSep(y int, hbox *fltk.Flex)

func MakeToolbutton

func MakeToolbutton(svgText string) *fltk.Button

func MakeVBox

func MakeVBox(x, y, width, height, spacing int) *fltk.Flex

func ShowAbout added in v0.2.2

func ShowAbout(appName, descHtml, iconSvg string, textSize int)

Types

type MenuItem struct {
	Text     string
	Shortcut int
	Method   func()
	Divider  bool
}

func NewMenuItem added in v0.7.0

func NewMenuItem(Text string, Shortcut int, Method func(),
	Divider bool) MenuItem

Jump to

Keyboard shortcuts

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