gui

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CANCELED = 0
	OK       = 1
	YES      = 1
	CANCEL   = 2
	NO       = 2
)
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 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 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)

func YesNo

func YesNo(title, bodyText, iconSvg string, textSize int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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