Versions in this module Expand all Collapse all v0 v0.9.0 Oct 31, 2021 v0.8.0 May 1, 2020 Changes in this version + func DialogSendKey(key uint) + func MessageDialog(handle *Window, text string, title string, icon byte) + func OpenPanel(handle *Window, filename string) string + func SavePanel(handle *Window, filename string) string + type Button struct + func NewButton(window *View, title string) *Button + func NewCheckButton(window *View, title string, value bool) *Button + func (w *Button) Callbacks() (func(), func(bool), func(), func()) + func (w *Button) Close() + func (w *Button) IsDefault() bool + func (w *Button) PerformClick() + func (w *Button) SetCallbacks(onclick func(), onchange func(bool), onfocus func(), onblur func()) + func (w *Button) SetDefault(value bool) + func (w *Button) SetState(value bool) + func (w *Button) SetTitle(title string) + func (w *Button) State() bool + func (w *Button) Title() string + type Control struct + func (c *Control) IntrinsicContentSize() (int, int) + func (c *Control) IsEnabled() bool + func (c *Control) MakeFirstResponder() bool + func (c *Control) SendKey(key uint) + func (c *Control) SetEnabled(enabled bool) + type Decoration struct + func NewDecoration(window *View, fill color.Color, stroke color.Color, rx, ry int) *Decoration + func (w *Decoration) BorderRadius() (int, int) + func (w *Decoration) Close() + func (w *Decoration) FillColor() color.RGBA + func (w *Decoration) SetBorderRadius(x, y int) + func (w *Decoration) SetFillColor(fill color.Color) + func (w *Decoration) SetStrokeColor(fill color.Color) + func (w *Decoration) StrokeColor() color.RGBA + type HR struct + func NewHR(window *View) *HR + type ImageView struct + func NewImageView(window *View, prop image.Image) (*ImageView, error) + func (w *ImageView) Image() image.Image + func (w *ImageView) SetImage(prop image.Image) error + type IntField struct + func NewIntField(window *View, value, min, max int64) *IntField + func (c *IntField) SetFrame(x, y, dx, dy int) + func (w *IntField) Callbacks() (func(int64), func(), func()) + func (w *IntField) Close() + func (w *IntField) IsEditable() bool + func (w *IntField) Max() int64 + func (w *IntField) Min() int64 + func (w *IntField) Placeholder() string + func (w *IntField) SetCallbacks(onchange func(int64), onfocus func(), onblur func()) + func (w *IntField) SetEditable(value bool) + func (w *IntField) SetPlaceholder(text string) + func (w *IntField) SetValue(value, min, max int64) + func (w *IntField) Value() int64 + type PopUpButton struct + func NewPopUpButton(window *View) *PopUpButton + func (w *PopUpButton) AddItem(text string) + func (w *PopUpButton) Callbacks() (func(int), func(), func()) + func (w *PopUpButton) Close() + func (w *PopUpButton) ItemAtIndex(index int) string + func (w *PopUpButton) NumberOfItems() int + func (w *PopUpButton) RemoveAllItems() + func (w *PopUpButton) SetCallbacks(onchange func(int), onfocus func(), onblur func()) + func (w *PopUpButton) SetValue(value int, unset bool) + func (w *PopUpButton) Value() int + type Progress struct + func NewProgress(window *View, min, value, max float64) *Progress + func (w *Progress) Max() float64 + func (w *Progress) Min() float64 + func (w *Progress) Update(min, value, max float64) + func (w *Progress) Value() float64 + type Slider struct + func NewSlider(window *View, min, value, max float64) *Slider + func (w *Slider) Callbacks() (func(float64), func(), func()) + func (w *Slider) Max() float64 + func (w *Slider) Min() float64 + func (w *Slider) SetCallbacks(onchange func(float64), onfocus func(), onblur func()) + func (w *Slider) Update(min, value, max float64) + func (w *Slider) Value() float64 + type TabView struct + func NewTabView(window *View) *TabView + func (w *TabView) AddItem(text string) + func (w *TabView) Close() + func (w *TabView) ContentInsets() (int, int) + func (w *TabView) ContentView(index int) *View + func (w *TabView) ItemAtIndex(index int) string + func (w *TabView) NumberOfItems() int + func (w *TabView) RemoveItemAtIndex(index int) + func (w *TabView) SelectItem(index int) + func (w *TabView) SetItemAtIndex(index int, text string) + func (w *TabView) SetOnChange(cb func(int)) + type Text struct + func NewText(window *View, title string) *Text + func (w *Text) Alignment() int + func (w *Text) EightyEms() int + func (w *Text) MinHeight(width int) int + func (w *Text) MinWidth() int + func (w *Text) SetAlignment(align int) + func (w *Text) SetText(text string) + func (w *Text) Text() string + type TextField struct + func NewTextField(window *View, title string, password bool) *TextField + func (w *TextField) Callbacks() (func(string), func(), func(), func(string)) + func (w *TextField) Close() + func (w *TextField) IsEditable() bool + func (w *TextField) IsPassword() bool + func (w *TextField) Placeholder() string + func (w *TextField) SetCallbacks(onchange func(string), onfocus func(), onblur func(), onenterkey func(string)) + func (w *TextField) SetEditable(value bool) + func (w *TextField) SetPlaceholder(text string) + func (w *TextField) SetValue(text string) + func (w *TextField) Value() string + type View struct + func (c *View) Close() + func (c *View) SetFrame(x, y, dx, dy int) + type Window struct + func NewWindow(title string, width, height uint) *Window + func (w *Window) Close() + func (w *Window) ContentSize() (int, int) + func (w *Window) ContentView() *View + func (w *Window) MakeFirstResponder(c *Control) + func (w *Window) Screenshot() image.Image + func (w *Window) SetCallbacks(cb WindowCallbacks) + func (w *Window) SetContentSize(width, height int) + func (w *Window) SetIcon(img image.Image) error + func (w *Window) SetMinSize(width, height int) + func (w *Window) SetScrollVisible(horz, vert bool) + func (w *Window) SetTitle(title string) + func (w *Window) Title() string + type WindowCallbacks interface + OnDidResize func() + OnShouldClose func() bool + OnWillClose func()