gui

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BUTTON_ONE   = 1
	BUTTON_TWO   = 2
	BUTTON_THREE = 3
)
View Source
const (
	Pad          = 5
	Margin       = 3
	Border       = 8
	ButtonHeight = 36
	LabelWidth   = 84
)

Variables

This section is empty.

Functions

func AboutYear

func AboutYear(year int) string

func AddWindowIcon

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

func Ask

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

func ButtonWidth

func ButtonWidth() int

func DescHtml

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

func ImageForSvgText

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

func Int8ToStr

func Int8ToStr(raw []int8) string

func LabelHeight

func LabelHeight() int

func MakeAccelLabel

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

func MakeHBox

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

func MakeInfoForm

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

func MakeMenuItem

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

func MakeSep

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

func MakeToolbutton

func MakeToolbutton(svgText string) *fltk.Button

func MakeVBox

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

func ReturnButtonWidth

func ReturnButtonWidth() int

func ShowAbout

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

func ToolbuttonIconSize

func ToolbuttonIconSize() int

Types

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

func NewMenuItem

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