Versions in this module Expand all Collapse all v1 v1.0.9 Jun 30, 2023 v1.0.8 Jun 27, 2023 Changes in this version type Control + InnerHeightOverloaded int + InnerSizeOverloaded bool + InnerWidthOverloaded int v1.0.7 Jun 26, 2023 Changes in this version type ListView + AllowDeselectItems bool + OnMouseDown func() + OnMouseUp func() v1.0.6 Jun 20, 2023 Changes in this version type ListView + func (c *ListView) Construct() v1.0.5 Jun 20, 2023 Changes in this version type Form + OnKeyDown func(event *KeyDownEvent) bool v1.0.4 Jun 18, 2023 Changes in this version type Panel + func (c *Panel) AddWidget(w Widget) v1.0.3 Jun 15, 2023 Changes in this version + const StyleDarkWhite + func DecodeImage(bs []byte) image.Image + func InitDarkWhite(w Widget) type Button + OnPress func(event *Event) + func (c *Button) SetImageBeforeText(imageBeforeText bool) type Panel + func NewHPanel(parent Widget) *Panel + func NewVPanel(parent Widget) *Panel + func (c *Panel) AddButton(text string, onPress func(event *Event)) *Button + func (c *Panel) AddCheckBox(text string) *CheckBox + func (c *Panel) AddComboBox() *ComboBox + func (c *Panel) AddGroupBox(title string) *GroupBox + func (c *Panel) AddHPanel() *Panel + func (c *Panel) AddHSpacer() *HSpacer + func (c *Panel) AddImageBox(img image.Image) *ImageBox + func (c *Panel) AddListView() *ListView + func (c *Panel) AddProgressBar() *ProgressBar + func (c *Panel) AddTabControl() *TabControl + func (c *Panel) AddTextBlock(text string) *TextBlock + func (c *Panel) AddTextBox() *TextBox + func (c *Panel) AddVPanel() *Panel + func (c *Panel) AddVSpacer() *VSpacer type ProgressBar + func (c *ProgressBar) IsZero(value float64) bool + func (c *ProgressBar) SetMaxValue(max float64) + func (c *ProgressBar) SetMinMaxValue(min float64, max float64) + func (c *ProgressBar) SetMinValue(min float64) + func (c *ProgressBar) SetValueAndText(value float64, text string) v1.0.2 May 1, 2023 Changes in this version + const ANCHOR_ALL + const ANCHOR_BOTTOM + const ANCHOR_HOR + const ANCHOR_LEFT + const ANCHOR_RIGHT + const ANCHOR_TOP + const DefaultWindowHeight + const DefaultWindowWidth + const MAX_HEIGHT + const MAX_WIDTH + const MaxInt + const MaxUint + const MenuBarItemMargin + const MenuBarItemMinWidth + const MinInt + const MinUint + const PopupMenuItemHeight + const StyleDarkBlue + const StyleLight + var CurrentStyle = StyleDarkBlue + var DefaultBackColor color.Color + func AddPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property + func AddUnstyledPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property + func ColorWithAlpha(col color.Color, alpha uint8) color.Color + func CreateForm(form Window) + func InitDarkBlue(w Widget) + func InitDarkGreen(w Widget) + func InitDefaultStyle(w Widget) + func InitLight(w Widget) + func NewDialogHeader(parent Widget) *dialogHeader + func OnMouseButtonCallback(w *glfw.Window, button glfw.MouseButton, action glfw.Action, ...) + func OnWindowCharCallback(w *glfw.Window, char rune) + func OnWindowClose(w *glfw.Window) + func OnWindowCursorPosCallback(w *glfw.Window, xpos float64, ypos float64) + func OnWindowFocusCallback(w *glfw.Window, focused bool) + func OnWindowKeyCallback(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...) + func OnWindowScrollCallback(w *glfw.Window, xoff float64, yoff float64) + func OnWindowSizeCallback(w *glfw.Window, width int, height int) + func ShowErrorMessage(parent Widget, text string, header string) + func ShowInformationMessage(parent Widget, text string, header string) + func ShowQuestionMessageOKCancel(parent Widget, text string, header string, onOK func(), onCancel func()) + func ShowQuestionMessageYesNoCancel(parent Widget, text string, header string, onYes func(), onNo func(), ...) + func StartMainForm(window Window) + func StartModalForm(parent Window, window Window) + func UnInitUI() + type Button struct + func NewButton(parent Widget, text string, onPress func(event *Event)) *Button + func (c *Button) ControlType() string + func (c *Button) Draw(ctx DrawContext) + func (c *Button) DrawBackground(ctx DrawContext) + func (c *Button) EnabledChanged(enabled bool) + func (c *Button) FindWidgetUnderPointer(x, y int) Widget + func (c *Button) KeyDown(event *KeyDownEvent) bool + func (c *Button) MouseDown(event *MouseDownEvent) + func (c *Button) MouseEnter() + func (c *Button) MouseLeave() + func (c *Button) MouseUp(event *MouseUpEvent) + func (c *Button) Press() + func (c *Button) SetChecked(checked bool) + func (c *Button) SetDrawBackground(drawBackground bool) + func (c *Button) SetEnabled(enabled bool) + func (c *Button) SetForeColor(foreColor color.Color) + func (c *Button) SetImage(img image.Image) + func (c *Button) SetImageDisabled(img image.Image) + func (c *Button) SetImageSize(width, height int) + func (c *Button) SetOnPress(onPress func(ev *Event)) + func (c *Button) SetPadding(padding int) + func (c *Button) SetShowImage(showImage bool) + func (c *Button) SetShowText(showText bool) + func (c *Button) SetText(text string) + func (c *Button) SetTextHAlign(textHAlign canvas.HAlign) + func (c *Button) SetTextImageVerticalOrientation(textImageVerticalOrientation bool) + func (c *Button) SetTextVAlign(textVAlign canvas.VAlign) + func (c *Button) Subclass() string + func (c *Button) Text() string + func (c *Button) TextHAlign() canvas.HAlign + func (c *Button) TextVAlign() canvas.VAlign + type CSS struct + func (c *CSS) Parse(cssText string) + type CSSLine struct + type CSSProperty struct + type CheckBox struct + OnCheckedChanged func(checkBox *CheckBox, checked bool) + func NewCheckBox(parent Widget, text string) *CheckBox + func (c *CheckBox) ControlType() string + func (c *CheckBox) Dispose() + func (c *CheckBox) EnabledChanged(enabled bool) + func (c *CheckBox) InitControl(parent Widget, w Widget) + func (c *CheckBox) IsChecked() bool + func (c *CheckBox) MouseClick(event *MouseClickEvent) + func (c *CheckBox) SetChecked(isChecked bool) + func (c *CheckBox) SetEnabled(enabled bool) + func (c *CheckBox) SetText(text string) + func (c *CheckBox) Text() string + type ColorPalette struct + OnColorChanged func(colorPicker *ColorPalette, color color.Color) + func NewColorPalette(parent Widget) *ColorPalette + func (c *ColorPalette) Color() color.Color + func (c *ColorPalette) ControlType() string + func (c *ColorPalette) Dispose() + func (c *ColorPalette) Draw(ctx DrawContext) + func (c *ColorPalette) MouseDown(event *MouseDownEvent) + func (c *ColorPalette) MouseUp(event *MouseUpEvent) + func (c *ColorPalette) SetColor(color color.Color) + func (c *ColorPalette) Subclass() string + func (c *ColorPalette) TabStop() bool + type ColorPicker struct + OnColorChanged func(colorPicker *ColorPicker, color color.Color) + func NewColorPicker(parent Widget) *ColorPicker + func (c *ColorPicker) Color() color.Color + func (c *ColorPicker) Dispose() + func (c *ColorPicker) SetColor(color color.Color) + type ColorSelector struct + OnColorSelected func(col color.Color) + func NewColorSelector(parent Widget, col color.Color) *ColorSelector + func (c *ColorSelector) Color() color.Color + func (c *ColorSelector) NotifyColorSelection() + func (c *ColorSelector) OnInit() + func (c *ColorSelector) ResColor() color.Color + func (c *ColorSelector) SetColor(col color.Color) + type ComboBox struct + CurrentItemIndex int + Items []*ComboBoxItem + OnCurrentIndexChanged func(event *ComboBoxEvent) + func NewComboBox(parent Widget) *ComboBox + func (c *ComboBox) AddItem(text string, userData interface{}) + func (c *ComboBox) ClosePopup() + func (c *ComboBox) ControlType() string + func (c *ComboBox) CurrentItemKey() interface{} + func (c *ComboBox) Draw(ctx DrawContext) + func (c *ComboBox) FindWidgetUnderPointer(x, y int) Widget + func (c *ComboBox) KeyDown(event *KeyDownEvent) bool + func (c *ComboBox) MouseDown(event *MouseDownEvent) + func (c *ComboBox) MouseUp(event *MouseUpEvent) + func (c *ComboBox) Press() + func (c *ComboBox) SetCurrentItemIndex(index int) + func (c *ComboBox) SetCurrentItemKey(key string) + func (c *ComboBox) ShowPopupForm() + func (c *ComboBox) TabStop() bool + func (c *ComboBox) UpdateStyle() + type ComboBoxEvent struct + CurrentIndex int + Item *ComboBoxItem + type ComboBoxItem struct + Text string + type Container struct + Controls []Widget + PopupWidgets []Widget + func (c *Container) AddWidget(w Widget) + func (c *Container) AddWidgetOnGrid(w Widget, x int, y int) + func (c *Container) AppendPopupWidget(w Widget) + func (c *Container) ClearFocus() + func (c *Container) ClearHover() + func (c *Container) ClearLayoutCache() + func (c *Container) ClearRadioButtons() + func (c *Container) CloseAfterPopupWidget(w Widget) + func (c *Container) CloseAllPopup() + func (c *Container) CloseTopPopup() + func (c *Container) ControlType() string + func (c *Container) Dispose() + func (c *Container) Draw(ctx DrawContext) + func (c *Container) FindWidgetUnderPointer(x, y int) Widget + func (c *Container) InitControl(parent Widget, w Widget) + func (c *Container) MaxHeight() int + func (c *Container) MaxWidth() int + func (c *Container) MinHeight() int + func (c *Container) MinWidth() int + func (c *Container) MouseClick(event *MouseClickEvent) + func (c *Container) MouseDown(event *MouseDownEvent) + func (c *Container) MouseDrop(event *MouseDropEvent) + func (c *Container) MouseMove(event *MouseMoveEvent) + func (c *Container) MouseUp(event *MouseUpEvent) + func (c *Container) MouseValidateDrop(event *MouseValidateDropEvent) + func (c *Container) MouseWheel(event *MouseWheelEvent) + func (c *Container) RemoveAllWidgets() + func (c *Container) RemoveWidget(w Widget) + func (c *Container) SetAbsolutePositioning(absolutePositioning bool) + func (c *Container) SetCellPadding(cellPadding int) + func (c *Container) SetHeight(height int) + func (c *Container) SetPanelPadding(panelPadding int) + func (c *Container) SetSize(width int, height int) + func (c *Container) SetWidth(width int) + func (c *Container) String(level int) string + func (c *Container) UpdateLayout() + func (c *Container) UpdateStyle() + func (c *Container) Widgets() []Widget + func (c *Container) XExpandable() bool + func (c *Container) YExpandable() bool + type ContainerGridColumnInfo struct + type ContainerGridRowInfo struct + type Control struct + HScroll Rect + OnContextMenuNeed func(x, y int) IMenu + OnMouseDrop func(droppedValue interface{}, x, y int) + OwnWindow Window + VScroll Rect + func NewControl(parent Widget) *Control + func (c *Control) AccentColor() color.Color + func (c *Control) AcceptsReturn() bool + func (c *Control) AcceptsTab() bool + func (c *Control) AddProperty(name string, prop *uiproperties.Property) + func (c *Control) Anchors() int + func (c *Control) ApplyStyleLine(controlName string, controlType string, styleClass string, ...) + func (c *Control) BackColor() color.Color + func (c *Control) BeginDrag(draggingObject interface{}) + func (c *Control) BeginUpdate() + func (c *Control) BorderColors() (color.Color, color.Color, color.Color, color.Color) + func (c *Control) BottomBorderWidth() int + func (c *Control) Classes() []string + func (c *Control) ClearFocus() + func (c *Control) ClearHover() + func (c *Control) ClearLayoutCache() + func (c *Control) ClearRadioButtons() + func (c *Control) ClientHeight() int + func (c *Control) ClientWidth() int + func (c *Control) ClosePopup() + func (c *Control) CloseTopPopup() + func (c *Control) ContextMenu() IMenu + func (c *Control) ControlType() string + func (c *Control) CurrentStyleValueScore(subclass string, propertyName string) int + func (c *Control) Dispose() + func (c *Control) Disposed() bool + func (c *Control) Draw(ctx DrawContext) + func (c *Control) DrawBackground(ctx DrawContext) + func (c *Control) DrawBorders(ctx DrawContext) + func (c *Control) DrawControl(ctx DrawContext) + func (c *Control) DrawScrollBars(ctx DrawContext) + func (c *Control) EnabledChanged(enabled bool) + func (c *Control) EndUpdate() + func (c *Control) FindWidgetUnderPointer(x, y int) Widget + func (c *Control) FirstFocusControl() Widget + func (c *Control) Focus() + func (c *Control) FocusChanged(focus bool) + func (c *Control) FontBold() bool + func (c *Control) FontFamily() string + func (c *Control) FontItalic() bool + func (c *Control) FontSize() float64 + func (c *Control) ForeColor() color.Color + func (c *Control) FullPath() string + func (c *Control) GridX() int + func (c *Control) GridY() int + func (c *Control) HasFocus() bool + func (c *Control) Height() int + func (c *Control) Hover() bool + func (c *Control) InactiveColor() color.Color + func (c *Control) Init() + func (c *Control) InitControl(parent Widget, w Widget) + func (c *Control) Initialized() bool + func (c *Control) InnerHeight() int + func (c *Control) InnerWidth() int + func (c *Control) IsTabPlate() bool + func (c *Control) IsVisible() bool + func (c *Control) IsVisibleRec() bool + func (c *Control) KeyChar(event *KeyCharEvent) + func (c *Control) KeyDown(event *KeyDownEvent) bool + func (c *Control) KeyUp(event *KeyUpEvent) + func (c *Control) LeftBorderWidth() int + func (c *Control) MaxHeight() int + func (c *Control) MaxWidth() int + func (c *Control) MinHeight() int + func (c *Control) MinWidth() int + func (c *Control) MouseClick(event *MouseClickEvent) + func (c *Control) MouseCursor() MouseCursor + func (c *Control) MouseDblClick(event *MouseDblClickEvent) + func (c *Control) MouseDown(event *MouseDownEvent) + func (c *Control) MouseDrop(event *MouseDropEvent) + func (c *Control) MouseEnter() + func (c *Control) MouseLeave() + func (c *Control) MouseMove(event *MouseMoveEvent) + func (c *Control) MouseUp(event *MouseUpEvent) + func (c *Control) MouseValidateDrop(event *MouseValidateDropEvent) + func (c *Control) MouseWheel(event *MouseWheelEvent) + func (c *Control) Name() string + func (c *Control) NextFocusControl() Widget + func (c *Control) OnInit() + func (c *Control) OnScroll(scrollPositionX int, scrollPositionY int) + func (c *Control) Parent() Widget + func (c *Control) ProcessFindWidgetUnderPointer(x, y int) Widget + func (c *Control) ProcessKeyChar(event *KeyCharEvent) + func (c *Control) ProcessKeyDown(event *KeyDownEvent) bool + func (c *Control) ProcessKeyUp(event *KeyUpEvent) + func (c *Control) ProcessMouseClick(event *MouseClickEvent) + func (c *Control) ProcessMouseDblClick(event *MouseDblClickEvent) + func (c *Control) ProcessMouseDown(event *MouseDownEvent) + func (c *Control) ProcessMouseMove(event *MouseMoveEvent) + func (c *Control) ProcessMouseUp(event *MouseUpEvent) + func (c *Control) ProcessMouseWheel(event *MouseWheelEvent) + func (c *Control) RectClientAreaOnWindow() (int, int) + func (c *Control) RectOnWindow() (int, int) + func (c *Control) ResetInnerSizeDirect() + func (c *Control) RightBorderWidth() int + func (c *Control) ScrollEnsureVisible(x1, y1 int) + func (c *Control) ScrollOffsetX() int + func (c *Control) ScrollOffsetY() int + func (c *Control) SetAnchors(anchors int) + func (c *Control) SetBackColor(backColor color.Color) + func (c *Control) SetBorderBottom(width int, col color.Color) + func (c *Control) SetBorderLeft(width int, col color.Color) + func (c *Control) SetBorderRight(width int, col color.Color) + func (c *Control) SetBorderTop(width int, col color.Color) + func (c *Control) SetBorders(width int, col color.Color) + func (c *Control) SetContextMenu(menu IMenu) + func (c *Control) SetEnabled(enabled bool) + func (c *Control) SetFixedSize(w int, h int) + func (c *Control) SetFocus(focus bool) + func (c *Control) SetFontSize(fontSize float64) + func (c *Control) SetForeColor(foreColor color.Color) + func (c *Control) SetGridPos(x int, y int) + func (c *Control) SetGridX(gridX int) + func (c *Control) SetGridY(gridY int) + func (c *Control) SetHeight(height int) + func (c *Control) SetHorizontalScrollVisible(horizontalScrollVisible bool) + func (c *Control) SetHover(hover bool) + func (c *Control) SetInnerSizeDirect(w int, h int) + func (c *Control) SetIsTabPlate(isTabPlate bool) + func (c *Control) SetMaxHeight(maxHeight int) + func (c *Control) SetMaxWidth(maxWidth int) + func (c *Control) SetMinHeight(minHeight int) + func (c *Control) SetMinWidth(minWidth int) + func (c *Control) SetMouseCursor(cursor MouseCursor) + func (c *Control) SetName(name string) + func (c *Control) SetOnKeyDown(callback func(event *KeyDownEvent) bool) + func (c *Control) SetParent(p Widget) + func (c *Control) SetPos(x, y int) + func (c *Control) SetSize(w, h int) + func (c *Control) SetStyledValue(subclass string, propertyName string, value string, score int) + func (c *Control) SetTabIndex(index int) + func (c *Control) SetTheme(theme string) + func (c *Control) SetTooltip(text string) + func (c *Control) SetVerticalScrollVisible(verticalScrollVisible bool) + func (c *Control) SetVisible(visible bool) + func (c *Control) SetWidth(width int) + func (c *Control) SetWindow(w Window) + func (c *Control) SetX(x int) + func (c *Control) SetXExpandable(xExpandable bool) + func (c *Control) SetY(y int) + func (c *Control) SetYExpandable(yExpandable bool) + func (c *Control) String(level int) string + func (c *Control) StyledValue(subclass string, propertyName string) interface{} + func (c *Control) Subclass() string + func (c *Control) TabIndex() int + func (c *Control) Text() string + func (c *Control) Theme() string + func (c *Control) Tooltip() string + func (c *Control) TopBorderWidth() int + func (c *Control) TranslateX(x int) int + func (c *Control) TranslateY(y int) int + func (c *Control) Update(source string) + func (c *Control) UpdateLayout() + func (c *Control) UpdateStyle() + func (c *Control) VisibleInnerRect() Rect + func (c *Control) Widgets() []Widget + func (c *Control) Width() int + func (c *Control) Window() Window + func (c *Control) X() int + func (c *Control) XExpandable() bool + func (c *Control) Y() int + func (c *Control) YExpandable() bool + type CoordinateTranslator interface + TranslateX func(x int) int + TranslateY func(y int) int + type DateTimePicker struct + DateTimeChanged func(event *Event) + Image image.Image + func NewDateTimePicker(parent Widget) *DateTimePicker + func (c *DateTimePicker) ControlType() string + func (c *DateTimePicker) DateTime() time.Time + func (c *DateTimePicker) DateTimeToString() string + func (c *DateTimePicker) Draw(ctx DrawContext) + func (c *DateTimePicker) KeyDown(event *KeyDownEvent) bool + func (c *DateTimePicker) MouseClick(event *MouseClickEvent) + func (c *DateTimePicker) MouseDown(event *MouseDownEvent) + func (c *DateTimePicker) MouseEnter() + func (c *DateTimePicker) MouseLeave() + func (c *DateTimePicker) MouseUp(event *MouseUpEvent) + func (c *DateTimePicker) Press() + func (c *DateTimePicker) SetChecked(checked bool) + func (c *DateTimePicker) SetDateTime(dateTime time.Time) + func (c *DateTimePicker) SetEnabled(enabled bool) + func (c *DateTimePicker) Subclass() string + func (c *DateTimePicker) TabStop() bool + type DateTimePickerDialog struct + func NewDateTimePickerDialog(parent Widget) *DateTimePickerDialog + func (c *DateTimePickerDialog) DateTime() time.Time + func (c *DateTimePickerDialog) OnInit() + func (c *DateTimePickerDialog) SetDateTime(dateTime time.Time) + type DayOfMonthSelector struct + DayChanged func() + Image image.Image + func NewDayOfMonthSelector(parent Widget) *DayOfMonthSelector + func (c *DayOfMonthSelector) ControlType() string + func (c *DayOfMonthSelector) Day() int + func (c *DayOfMonthSelector) SelectedDay() int + func (c *DayOfMonthSelector) SetDay(day int) + func (c *DayOfMonthSelector) SetEnabled(enabled bool) + func (c *DayOfMonthSelector) SetYearAndMonth(year, month int) + func (c *DayOfMonthSelector) Subclass() string + func (c *DayOfMonthSelector) XExpandable() bool + func (c *DayOfMonthSelector) YExpandable() bool + type Dialog struct + CloseEvent func() + OnAccept func() + OnReject func() + OnShow func() + TryAccept func() bool + func NewDialog(parent Widget, title string, width, height int) *Dialog + func (c *Dialog) Accept() + func (c *Dialog) Close() + func (c *Dialog) ClosePopup() + func (c *Dialog) ContentPanel() *Panel + func (c *Dialog) ControlType() string + func (c *Dialog) Dispose() + func (c *Dialog) KeyDown(event *KeyDownEvent) bool + func (c *Dialog) OnInit() + func (c *Dialog) Reject() + func (c *Dialog) Resize(w, h int) + func (c *Dialog) SetAcceptButton(acceptButton *Button) + func (c *Dialog) SetRejectButton(rejectButton *Button) + func (c *Dialog) SetTitle(title string) + func (c *Dialog) ShowDialog() + func (c *Dialog) ShowDialogAtPos(x, y int) + type Event struct + Ignore bool + Modifiers KeyModifiers + Sender interface{} + func NewEvent(sender interface{}) *Event + func (c *Event) PosX() int + func (c *Event) PosY() int + func (c *Event) SetPosX(x int) + func (c *Event) SetPosY(y int) + type Form struct + func NewForm() *Form + func (c *Form) Accept() + func (c *Form) AcceptButton(ev *Event) + func (c *Form) AddWidget(w Widget) + func (c *Form) AppendPopup(w Widget) + func (c *Form) BeginDrag(draggingObject interface{}) + func (c *Form) CentralWidget() Widget + func (c *Form) Close() + func (c *Form) CloseAfterPopupWidget(w Widget) + func (c *Form) CloseAllPopup() + func (c *Form) CloseTopPopup() + func (c *Form) ControlRemoved() + func (c *Form) CreateModalForm(window Window) + func (c *Form) CurrentDraggingObject() interface{} + func (c *Form) DialogResult() bool + func (c *Form) Dispose() + func (c *Form) Draw() bool + func (c *Form) FocusedWidget() Widget + func (c *Form) Height() int + func (c *Form) Id() int + func (c *Form) Init() + func (c *Form) IsMainWindow() bool + func (c *Form) KeyModifiers() KeyModifiers + func (c *Form) LoopUI() + func (c *Form) LoopUI_OpenGL() + func (c *Form) MainTimer() + func (c *Form) MakeTimerAndStart(period int64, handler func(timer *FormTimer)) *FormTimer + func (c *Form) Maximize() + func (c *Form) Menu() Menu + func (c *Form) Modal() bool + func (c *Form) Move(x, y int) + func (c *Form) NewTimer(period int64, handler func()) *FormTimer + func (c *Form) OnClose() bool + func (c *Form) OnInit() + func (c *Form) OpenFileDialog() string + func (c *Form) Panel() *Panel + func (c *Form) Parent() Window + func (c *Form) Popup() bool + func (c *Form) Position() Point + func (c *Form) ProcessCharInput(ch rune) + func (c *Form) ProcessClick(x, y int, button MouseButton) + func (c *Form) ProcessFocus() + func (c *Form) ProcessKeyDown(key glfw.Key) + func (c *Form) ProcessKeyModifiers(shift bool, control bool, alt bool) + func (c *Form) ProcessKeyUp(key glfw.Key) + func (c *Form) ProcessMouseDown(button MouseButton) + func (c *Form) ProcessMouseMove(x, y int) + func (c *Form) ProcessMouseUp(button MouseButton) + func (c *Form) ProcessMouseWheel(delta int) + func (c *Form) ProcessReturnDown() bool + func (c *Form) ProcessReturnUp() + func (c *Form) ProcessTabDown() + func (c *Form) ProcessTabUp() + func (c *Form) ProcessWindowMove(x, y int) + func (c *Form) ProcessWindowResize(width, height int) + func (c *Form) Reject() + func (c *Form) RejectButton(ev *Event) + func (c *Form) RemoveTimer(timer *FormTimer) + func (c *Form) Resize(width, height int) + func (c *Form) SelectColorDialog(col color.Color, onColorChanged func(color color.Color)) (bool, color.Color) + func (c *Form) SetAcceptButton(acceptButton *Button) + func (c *Form) SetFocusForWidget(w Widget) + func (c *Form) SetIcon(img image.Image) + func (c *Form) SetId(id int) + func (c *Form) SetIsMainWindow(isMainWindow bool) + func (c *Form) SetModal(modal bool) + func (c *Form) SetMouseCursor(cur MouseCursor) + func (c *Form) SetParent(window Window) + func (c *Form) SetPopup(popup bool) + func (c *Form) SetRejectButton(rejectButton *Button) + func (c *Form) SetShowMaximazed(maximazed bool) + func (c *Form) SetTheme(theme string) + func (c *Form) SetTitle(title string) + func (c *Form) SetWindow(w *glfw.Window) + func (c *Form) Show() + func (c *Form) ShowMaximazed() bool + func (c *Form) ShowTooltip(x, y int, text string) + func (c *Form) String() string + func (c *Form) Title() string + func (c *Form) UpdateLayout() + func (c *Form) UpdateMenu() + func (c *Form) UpdateStyle() + func (c *Form) UpdateWindow(source string) + func (c *Form) Width() int + func (c *Form) Window() *glfw.Window + type FormSizeChangedEvent struct + Height int + Width int + type FormTimer struct + Enabled bool + Handler func() + LastElapsedDTMSec int64 + Period int64 + func (c *FormTimer) StartTimer() + func (c *FormTimer) StopTimer() + type GroupBox struct + func NewGroupBox(parent Widget, title string) *GroupBox + func (c *GroupBox) ControlType() string + func (c *GroupBox) Dispose() + func (c *GroupBox) Panel() *Panel + func (c *GroupBox) SetTitle(title string) + func (c *GroupBox) Title() string + type HSpacer struct + func NewHSpacer(parent Widget) *HSpacer + func (c *HSpacer) ControlType() string + func (c *HSpacer) Draw(ctx DrawContext) + func (c *HSpacer) Subclass() string + func (c *HSpacer) TabStop() bool + type IEvent interface + PosX func() int + PosY func() int + SetPosX func(x int) + SetPosY func(y int) + type IMenu interface + DisposeMenu func() + ShowMenu func(x int, y int) + type ImageBox struct + func NewImageBox(parent Widget, img image.Image) *ImageBox + func NewImageBoxBytes(parent Widget, data []byte) *ImageBox + func (c *ImageBox) ControlType() string + func (c *ImageBox) Draw(ctx DrawContext) + func (c *ImageBox) MaxHeight() int + func (c *ImageBox) MaxWidth() int + func (c *ImageBox) MinHeight() int + func (c *ImageBox) MinWidth() int + func (c *ImageBox) SetImage(img image.Image) + func (c *ImageBox) SetScaling(scaling ImageBoxScale) + type ImageBoxScale int + const ImageBoxScaleAdjustImageKeepAspectRatio + const ImageBoxScaleNoScaleAdjustBox + const ImageBoxScaleNoScaleImageInCenter + const ImageBoxScaleNoScaleImageInLeftTop + const ImageBoxScaleStretchImage + type KeyCharEvent struct + Ch rune + type KeyDownEvent struct + Key glfw.Key + type KeyModifiers struct + Alt bool + Control bool + Shift bool + type KeyUpEvent struct + Key glfw.Key + type ListView struct + OnItemClicked func(item *ListViewItem) + OnSelectionChanged func() + func NewListView(parent Widget) *ListView + func (c *ListView) AddColumn(text string, width int) *ListViewColumn + func (c *ListView) AddItem(text string) *ListViewItem + func (c *ListView) AddItem2(col0 string, col1 string) *ListViewItem + func (c *ListView) AddItem3(col0 string, col1 string, col2 string) *ListViewItem + func (c *ListView) ClearSelection() + func (c *ListView) ControlType() string + func (c *ListView) Dispose() + func (c *ListView) Draw(ctx DrawContext) + func (c *ListView) EnabledChanged(enabled bool) + func (c *ListView) EnsureVisibleItem(index int) + func (c *ListView) Focus() + func (c *ListView) IsHeaderVisible() bool + func (c *ListView) Item(rowIndex int) *ListViewItem + func (c *ListView) ItemsCount() int + func (c *ListView) OnInit() + func (c *ListView) RemoveColumns() + func (c *ListView) RemoveItems() + func (c *ListView) SelectAllItems() + func (c *ListView) SelectItem(rowIndex int) + func (c *ListView) SelectItemSelection(rowIndex int, selected bool) + func (c *ListView) SelectedItem() *ListViewItem + func (c *ListView) SelectedItemIndex() int + func (c *ListView) SelectedItems() []*ListViewItem + func (c *ListView) SelectedItemsIndexes() []int + func (c *ListView) SetColumnTextAlign(columnIndex int, hAlign canvas.HAlign) + func (c *ListView) SetColumnWidth(colIndex int, width int) + func (c *ListView) SetCurrentRow(row int, byMouse bool) + func (c *ListView) SetHeaderVisible(visible bool) + func (c *ListView) SetItemValue(rowIndex int, columnIndex int, text string) + func (c *ListView) TabStop() bool + func (c *ListView) UnselectAllItems() + func (c *ListView) UpdateStyle() + func (c *ListView) VisibleItems() []*ListViewItem + type ListViewColumn struct + type ListViewContent struct + func NewListViewContent(parent Widget, x int, y int, width int, height int) *ListViewContent + func (c *ListViewContent) ControlType() string + func (c *ListViewContent) Draw(ctx DrawContext) + func (c *ListViewContent) KeyDown(event *KeyDownEvent) bool + func (c *ListViewContent) MouseClick(event *MouseClickEvent) + type ListViewHeader struct + func NewListViewHeader(parent Widget, x int, y int, width int, height int) *ListViewHeader + func (c *ListViewHeader) ControlType() string + func (c *ListViewHeader) Draw(ctx DrawContext) + func (c *ListViewHeader) MinHeight() int + func (c *ListViewHeader) MinWidth() int + func (c *ListViewHeader) MouseDown(event *MouseDownEvent) + func (c *ListViewHeader) MouseLeave() + func (c *ListViewHeader) MouseMove(event *MouseMoveEvent) + func (c *ListViewHeader) MouseUp(event *MouseUpEvent) + type ListViewItem struct + func (c *ListViewItem) SetForeColorForCell(colIndex int, color color.Color) + func (c *ListViewItem) SetForeColorForRow(color color.Color) + func (c *ListViewItem) SetValue(column int, text string) + func (c *ListViewItem) Value(column int) string + type Menu struct + func NewMenu(parent Widget) *Menu + func (c *Menu) AddItem(text string) *MenuItem + func (c *Menu) ControlType() string + func (c *Menu) Draw(ctx DrawContext) + func (c *Menu) FocusChanged(focus bool) + func (c *Menu) IsVisible() bool + func (c *Menu) MouseClick(event *MouseClickEvent) + func (c *Menu) MouseLeave() + func (c *Menu) MouseMove(event *MouseMoveEvent) + func (c *Menu) SetVisible(visible bool) + func (c *Menu) ShowSubmenu(item *MenuItem) + type MenuItem struct + OnClick func(*Event) + Text string + func (c *MenuItem) AddItem(text string, menu *Menu) + func (c *MenuItem) Draw(ctx DrawContext) + type MessageBox struct + func NewMessageBox(parent Widget, typeOfDialog string) *MessageBox + func (c *MessageBox) OnInit() + func (c *MessageBox) SetHeader(header string) + func (c *MessageBox) SetText(text string) + type MonthSelector struct + Image image.Image + MonthChanged func() + func NewMonthSelector(parent Widget) *MonthSelector + func (c *MonthSelector) ControlType() string + func (c *MonthSelector) Month() int + func (c *MonthSelector) SetEnabled(enabled bool) + func (c *MonthSelector) SetMonth(month int) + func (c *MonthSelector) Subclass() string + func (c *MonthSelector) UpdateStyle() + func (c *MonthSelector) XExpandable() bool + func (c *MonthSelector) YExpandable() bool + type MouseButton int + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonRight + type MouseClickEvent struct + Button MouseButton + func (event *MouseClickEvent) Translate(w CoordinateTranslator) *MouseClickEvent + type MouseDblClickEvent struct + Button MouseButton + func (event *MouseDblClickEvent) Translate(w CoordinateTranslator) *MouseDblClickEvent + type MouseDownEvent struct + Button MouseButton + func NewMouseDownEvent(x, y int, button MouseButton, modifiers KeyModifiers) *MouseDownEvent + func (event *MouseDownEvent) Translate(w CoordinateTranslator) *MouseDownEvent + type MouseDropEvent struct + Button MouseButton + DroppingObject interface{} + func NewMouseDropEvent(x, y int, button MouseButton, modifiers KeyModifiers, ...) *MouseDropEvent + func (event *MouseDropEvent) Translate(w CoordinateTranslator) *MouseDropEvent + type MouseEvent struct + X int + Y int + func (c *MouseEvent) PosX() int + func (c *MouseEvent) PosY() int + func (c *MouseEvent) SetPosX(x int) + func (c *MouseEvent) SetPosY(y int) + type MouseMoveEvent struct + func (event *MouseMoveEvent) Translate(w CoordinateTranslator) *MouseMoveEvent + type MouseUpEvent struct + Button MouseButton + func (event *MouseUpEvent) Translate(w CoordinateTranslator) *MouseUpEvent + type MouseValidateDropEvent struct + AllowDrop bool + Button MouseButton + DroppingObject interface{} + func NewMouseValidateDropEvent(x, y int, button MouseButton, modifiers KeyModifiers, ...) *MouseValidateDropEvent + func (event *MouseValidateDropEvent) Translate(w CoordinateTranslator) *MouseValidateDropEvent + type MouseWheelEvent struct + Delta int + func (event *MouseWheelEvent) Translate(w CoordinateTranslator) *MouseWheelEvent + type Panel struct + func NewPanel(parent Widget) *Panel + func NewRootPanel(parentWindow Window) *Panel + func (c *Panel) AddButtonOnGrid(gridX int, gridY int, text string, onPress func(event *Event)) *Button + func (c *Panel) AddCheckBoxOnGrid(gridX int, gridY int, text string) *CheckBox + func (c *Panel) AddColorPickerOnGrid(gridX int, gridY int) *ColorPicker + func (c *Panel) AddComboBoxOnGrid(gridX int, gridY int) *ComboBox + func (c *Panel) AddDateTimePickerOnGrid(gridX int, gridY int) *DateTimePicker + func (c *Panel) AddGroupBoxOnGrid(gridX int, gridY int, title string) *GroupBox + func (c *Panel) AddHSpacerOnGrid(gridX int, gridY int) *HSpacer + func (c *Panel) AddImageBoxOnGrid(gridX int, gridY int, img image.Image) *ImageBox + func (c *Panel) AddListViewOnGrid(gridX int, gridY int) *ListView + func (c *Panel) AddPanelOnGrid(gridX int, gridY int) *Panel + func (c *Panel) AddProgressBarOnGrid(gridX int, gridY int) *ProgressBar + func (c *Panel) AddRadioButtonOnGrid(gridX int, gridY int, text string, ...) *RadioButton + func (c *Panel) AddSpinBoxOnGrid(gridX int, gridY int) *SpinBox + func (c *Panel) AddSplitContainerOnGrid(gridX int, gridY int) *SplitContainer + func (c *Panel) AddTabControlOnGrid(gridX int, gridY int) *TabControl + func (c *Panel) AddTableOnGrid(gridX int, gridY int) *Table + func (c *Panel) AddTextBlockOnGrid(gridX int, gridY int, text string) *TextBlock + func (c *Panel) AddTextBoxExtOnGrid(gridX int, gridY int, text string, onSelect func(textBoxExt *TextBoxExt)) *TextBoxExt + func (c *Panel) AddTextBoxOnGrid(gridX int, gridY int) *TextBox + func (c *Panel) AddTreeViewOnGrid(gridX int, gridY int) *TreeView + func (c *Panel) AddVSpacerOnGrid(gridX int, gridY int) *VSpacer + func (c *Panel) ControlType() string + func (c *Panel) Dispose() + func (c *Panel) InitControl(parent Widget, w Widget) + func (c *Panel) SetEnabled(enabled bool) + func (c *Panel) UpdateStyle() + type PopupMenu struct + CloseEvent func() + func NewPopupMenu(parent Widget) *PopupMenu + func (c *PopupMenu) AddItem(text string, onClick func(event *Event), img image.Image, ...) *PopupMenuItem + func (c *PopupMenu) AddItemWithSubmenu(text string, img image.Image, innerMenu *PopupMenu) *PopupMenuItem + func (c *PopupMenu) AddItemWithUiResImage(text string, onClick func(event *Event), img []byte, keyCombination string) *PopupMenuItem + func (c *PopupMenu) ClosePopup() + func (c *PopupMenu) ControlType() string + func (c *PopupMenu) Dispose() + func (c *PopupMenu) DisposeMenu() + func (c *PopupMenu) OnInit() + func (c *PopupMenu) RemoveAllItems() + func (c *PopupMenu) ShowMenu(x int, y int) + type PopupMenuItem struct + AdjustColorForImage bool + Image image.Image + ImageResource []byte + KeyCombination string + OnClick func(event *Event) + func (c *PopupMenuItem) ControlType() string + func (c *PopupMenuItem) Dispose() + func (c *PopupMenuItem) Draw(ctx DrawContext) + func (c *PopupMenuItem) MouseClick(event *MouseClickEvent) + func (c *PopupMenuItem) MouseEnter() + func (c *PopupMenuItem) MouseLeave() + func (c *PopupMenuItem) MouseMove(event *MouseMoveEvent) + func (c *PopupMenuItem) OnInit() + func (c *PopupMenuItem) SetInnerMenu(menu *PopupMenu) + func (c *PopupMenuItem) SetText(text string) + type ProgressBar struct + func NewProgressBar(parent Widget) *ProgressBar + func (c *ProgressBar) ControlType() string + func (c *ProgressBar) Draw(ctx DrawContext) + func (c *ProgressBar) OnInit() + func (c *ProgressBar) SetMax(max int) + func (c *ProgressBar) SetMin(min int) + func (c *ProgressBar) SetMinMax(min int, max int) + func (c *ProgressBar) SetValue(value int) + func (c *ProgressBar) Subclass() string + type RadioButton struct + OnCheckedChanged func(checkBox *RadioButton, checked bool) + func NewRadioButton(parent Widget, text string) *RadioButton + func (c *RadioButton) ClearRadioButtons() + func (c *RadioButton) ControlType() string + func (c *RadioButton) InitControl(parent Widget, w Widget) + func (c *RadioButton) IsChecked() bool + func (c *RadioButton) MouseClick(event *MouseClickEvent) + func (c *RadioButton) SetChecked(isChecked bool) + type Rect struct + Height int + Width int + X int + Y int + func (c *Rect) Contains(x, y int) bool + type Space struct + func NewSpace(parent Widget) *Space + func (c *Space) ControlType() string + func (c *Space) Draw(ctx DrawContext) + func (c *Space) Subclass() string + func (c *Space) TabStop() bool + type SpinBox struct + OnValueChanged func(spinBox *SpinBox, value float64) + func NewSpinBox(parent Widget) *SpinBox + func (c *SpinBox) Dispose() + func (c *SpinBox) MouseWheel(event *MouseWheelEvent) + func (c *SpinBox) SetIncrement(increment float64) + func (c *SpinBox) SetMaxValue(maxValue float64) + func (c *SpinBox) SetMinValue(minValue float64) + func (c *SpinBox) SetPrecision(precision int) + func (c *SpinBox) SetValue(value float64) + func (c *SpinBox) Value() float64 + type SplitContainer struct + Panel1 *Panel + Panel2 *Panel + func NewSplitContainer(parent Widget) *SplitContainer + func (c *SplitContainer) ControlType() string + func (c *SplitContainer) Dispose() + func (c *SplitContainer) Draw(ctx DrawContext) + func (c *SplitContainer) FindWidgetUnderPointer(x, y int) Widget + func (c *SplitContainer) MouseDown(event *MouseDownEvent) + func (c *SplitContainer) MouseMove(event *MouseMoveEvent) + func (c *SplitContainer) MouseUp(event *MouseUpEvent) + func (c *SplitContainer) SetHeight(height int) + func (c *SplitContainer) SetLeftCollapsed(collapsed bool) + func (c *SplitContainer) SetPosition(pos int) + func (c *SplitContainer) SetPositionRelative(pos float64) + func (c *SplitContainer) SetRightCollapsed(collapsed bool) + func (c *SplitContainer) SetWidth(height int) + func (c *SplitContainer) SetWindow(w Window) + func (c *SplitContainer) XExpandable() bool + func (c *SplitContainer) YExpandable() bool + type Style int + type TabControl struct + OnAddButtonPressed func() + OnNeedClose func(index int) + OnPageSelected func(index int) + func NewTabControl(parent Widget) *TabControl + func (c *TabControl) AddPage() *TabPage + func (c *TabControl) ControlType() string + func (c *TabControl) Dispose() + func (c *TabControl) Page(index int) *TabPage + func (c *TabControl) PagesCount() int + func (c *TabControl) RemovePage(index int) + func (c *TabControl) SetCurrentPage(index int) + func (c *TabControl) SetShowAddButton(showAddButton bool) + func (c *TabControl) Tooltip() string + type TabPage struct + Img image.Image + ShowCloseButton bool + ShowImage bool + ShowText bool + func (c *TabPage) ControlType() string + func (c *TabPage) Dispose() + func (c *TabPage) MouseMove(event *MouseMoveEvent) + func (c *TabPage) SetText(text string) + func (c *TabPage) SetVisible(visible bool) + type Table struct + func NewTable(parent Widget, x int, y int, width int, height int) *Table + func (c *Table) AddColumn(name string) + func (c *Table) AddRow(name string) + func (c *Table) Draw(ctx DrawContext) + func (c *Table) KeyChar(event *KeyCharEvent) + func (c *Table) KeyDown(event *KeyDownEvent) bool + func (c *Table) KeyUp(event *KeyUpEvent) + func (c *Table) MouseClick(event *MouseClickEvent) + func (c *Table) MouseDown(event *MouseDownEvent) + func (c *Table) MouseMove(event *MouseMoveEvent) + func (c *Table) MouseUp(event *MouseUpEvent) + type TableColumn struct + Name string + Width int + type TableRow struct + Cells []Widget + Height int + Name string + type TextBlock struct + OnClick func(ev *Event) + TextHAlign canvas.HAlign + TextVAlign canvas.VAlign + func NewTextBlock(parent Widget, text string) *TextBlock + func (c *TextBlock) ControlType() string + func (c *TextBlock) Draw(ctx DrawContext) + func (c *TextBlock) MinHeight() int + func (c *TextBlock) MinWidth() int + func (c *TextBlock) MouseDown(event *MouseDownEvent) + func (c *TextBlock) MouseUp(event *MouseUpEvent) + func (c *TextBlock) SetText(text string) + func (c *TextBlock) SetUnderline(underline bool) + func (c *TextBlock) Text() string + type TextBox struct + OnTextChanged func(txtBox *TextBox, oldValue string, newValue string) + func NewTextBox(parent Widget) *TextBox + func (c *TextBox) AcceptsReturn() bool + func (c *TextBox) AssemblyText(lines []string) string + func (c *TextBox) ControlType() string + func (c *TextBox) Dispose() + func (c *TextBox) Draw(ctx DrawContext) + func (c *TextBox) KeyChar(event *KeyCharEvent) + func (c *TextBox) KeyDown(event *KeyDownEvent) bool + func (c *TextBox) KeyUp(event *KeyUpEvent) + func (c *TextBox) MinHeight() int + func (c *TextBox) MouseDown(event *MouseDownEvent) + func (c *TextBox) MouseMove(event *MouseMoveEvent) + func (c *TextBox) MouseUp(event *MouseUpEvent) + func (c *TextBox) OnInit() + func (c *TextBox) OneLineHeight() int + func (c *TextBox) ScrollToBegin() + func (c *TextBox) SelectAllText() + func (c *TextBox) SelectedText() string + func (c *TextBox) SetEmptyText(text string) + func (c *TextBox) SetIsPassword(isPassword bool) + func (c *TextBox) SetMultiline(multiline bool) + func (c *TextBox) SetReadOnly(readonly bool) + func (c *TextBox) SetText(text string) + func (c *TextBox) Text() string + type TextBoxExt struct + CurrentItemIndex int + OnSelect func(textBoxExt *TextBoxExt) + OnTextChanged func(txtBox *TextBoxExt, oldValue string, newValue string) + func NewTextBoxExt(parent Widget, text string, onSelect func(textBoxExt *TextBoxExt)) *TextBoxExt + func (c *TextBoxExt) ControlType() string + func (c *TextBoxExt) SetText(text string) + func (c *TextBoxExt) Text() string + type TextBoxSelection struct + Text string + X1 int + X2 int + Y1 int + Y2 int + type ToolPanel struct + func NewToolPanel(parent Widget, title string) *ToolPanel + func (c *ToolPanel) AddButton(text string, img image.Image, onClick func()) + func (c *ToolPanel) AddSpace() + func (c *ToolPanel) Dispose() + func (c *ToolPanel) SetImage(img image.Image) + func (c *ToolPanel) XExpandable() bool + func (c *ToolPanel) YExpandable() bool + type TreeColumn struct + type TreeNode struct + Icon image.Image + ParentNode *TreeNode + TextColor color.Color + ToolTip string + UserData interface{} + func (c *TreeNode) Text() string + type TreeView struct + OnBeginDrag func(treeView *TreeView, node *TreeNode) interface{} + OnDropOnNode func(treeView *TreeView, node *TreeNode, parameter interface{}) + OnExpand func(treeView *TreeView, node *TreeNode) + OnSelectedNode func(treeView *TreeView, node *TreeNode) + func NewTreeView(parent Widget) *TreeView + func (c *TreeView) AddColumn(text string, width int) *TreeColumn + func (c *TreeView) AddNode(parentNode *TreeNode, text string) *TreeNode + func (c *TreeView) Children(node *TreeNode) []*TreeNode + func (c *TreeView) CollapseNode(node *TreeNode) + func (c *TreeView) ControlType() string + func (c *TreeView) Dispose() + func (c *TreeView) EnsureVisibleDisplayedNode(node *displayedNode) + func (c *TreeView) EnsureVisibleNode(node *TreeNode) + func (c *TreeView) ExpandNode(node *TreeNode) + func (c *TreeView) GetNodeIndexInParent(node *TreeNode) int + func (c *TreeView) IsHeaderVisible() bool + func (c *TreeView) KeyDown(event *KeyDownEvent) bool + func (c *TreeView) Nodes() []*TreeNode + func (c *TreeView) RemoveAllNodes() + func (c *TreeView) RemoveNode(node *TreeNode) + func (c *TreeView) RemoveNodes(node *TreeNode) + func (c *TreeView) SelectNode(node *TreeNode) + func (c *TreeView) SelectedNode() *TreeNode + func (c *TreeView) SetColumnWidth(colIndex int, width int) + func (c *TreeView) SetHeaderVisible(visible bool) + func (c *TreeView) SetNodeValue(node *TreeNode, columnIndex int, text string) + func (c *TreeView) TabStop() bool + func (c *TreeView) VisibleNodes() []*TreeNode + type TreeViewContent struct + func NewTreeViewContent(parent Widget) *TreeViewContent + func (c *TreeViewContent) Draw(ctx DrawContext) + func (c *TreeViewContent) MouseClick(event *MouseClickEvent) + func (c *TreeViewContent) MouseDown(event *MouseDownEvent) + func (c *TreeViewContent) MouseDrop(event *MouseDropEvent) + func (c *TreeViewContent) MouseMove(event *MouseMoveEvent) + func (c *TreeViewContent) MouseUp(event *MouseUpEvent) + func (c *TreeViewContent) OnScroll(scrollPositionX int, scrollPositionY int) + func (c *TreeViewContent) Tooltip() string + type TreeViewHeader struct + func NewTreeViewHeader(parent Widget) *TreeViewHeader + func (c *TreeViewHeader) ControlType() string + func (c *TreeViewHeader) Draw(ctx DrawContext) + func (c *TreeViewHeader) MinHeight() int + func (c *TreeViewHeader) MinWidth() int + func (c *TreeViewHeader) MouseDown(event *MouseDownEvent) + func (c *TreeViewHeader) MouseLeave() + func (c *TreeViewHeader) MouseMove(event *MouseMoveEvent) + func (c *TreeViewHeader) MouseUp(event *MouseUpEvent) + type UserDataContainer struct + TempData string + func (c *UserDataContainer) AllUserData() interface{} + func (c *UserDataContainer) Dispose() + func (c *UserDataContainer) InitDataContainer() + func (c *UserDataContainer) SetUserData(key string, data interface{}) + func (c *UserDataContainer) UserData(key string) interface{} + type VSpacer struct + func NewVSpacer(parent Widget) *VSpacer + func (c *VSpacer) ControlType() string + func (c *VSpacer) Draw(ctx DrawContext) + func (c *VSpacer) Subclass() string + func (c *VSpacer) TabStop() bool + type Widget interface + AccentColor func() color.Color + AcceptsReturn func() bool + AcceptsTab func() bool + AddProperty func(name string, prop *uiproperties.Property) + Anchors func() int + ApplyStyleLine func(controlName string, controlType string, styleClass string, ...) + BackColor func() color.Color + BeginUpdate func() + BottomBorderWidth func() int + Classes func() []string + ClearFocus func() + ClearHover func() + ClearLayoutCache func() + ClearRadioButtons func() + ClientHeight func() int + ClientWidth func() int + ClosePopup func() + ContextMenu func() IMenu + ControlType func() string + CurrentStyleValueScore func(subclass string, propertyName string) int + Dispose func() + Disposed func() bool + Draw func(ctx DrawContext) + DrawBackground func(ctx DrawContext) + DrawBorders func(ctx DrawContext) + DrawControl func(ctx DrawContext) + DrawScrollBars func(ctx DrawContext) + EnabledChanged func(enabled bool) + EndUpdate func() + FindWidgetUnderPointer func(x, y int) Widget + FirstFocusControl func() Widget + Focus func() + FocusChanged func(focus bool) + FontBold func() bool + FontFamily func() string + FontItalic func() bool + FontSize func() float64 + ForeColor func() color.Color + FullPath func() string + GridX func() int + GridY func() int + HasFocus func() bool + Height func() int + Hover func() bool + InactiveColor func() color.Color + Init func() + InitControl func(parent Widget, w Widget) + Initialized func() bool + InnerHeight func() int + InnerWidth func() int + IsTabPlate func() bool + IsVisible func() bool + IsVisibleRec func() bool + KeyChar func(event *KeyCharEvent) + KeyDown func(event *KeyDownEvent) bool + KeyUp func(event *KeyUpEvent) + LeftBorderWidth func() int + MaxHeight func() int + MaxWidth func() int + MinHeight func() int + MinWidth func() int + MouseClick func(event *MouseClickEvent) + MouseCursor func() MouseCursor + MouseDblClick func(event *MouseDblClickEvent) + MouseDown func(event *MouseDownEvent) + MouseDrop func(event *MouseDropEvent) + MouseEnter func() + MouseLeave func() + MouseMove func(event *MouseMoveEvent) + MouseUp func(event *MouseUpEvent) + MouseValidateDrop func(event *MouseValidateDropEvent) + MouseWheel func(event *MouseWheelEvent) + Name func() string + NextFocusControl func() Widget + OnInit func() + OnScroll func(scrollPositionX int, scrollPositionY int) + Parent func() Widget + ProcessFindWidgetUnderPointer func(x, y int) Widget + ProcessKeyChar func(event *KeyCharEvent) + ProcessKeyDown func(event *KeyDownEvent) bool + ProcessKeyUp func(event *KeyUpEvent) + ProcessMouseClick func(event *MouseClickEvent) + ProcessMouseDblClick func(event *MouseDblClickEvent) + ProcessMouseDown func(event *MouseDownEvent) + ProcessMouseMove func(event *MouseMoveEvent) + ProcessMouseUp func(event *MouseUpEvent) + ProcessMouseWheel func(event *MouseWheelEvent) + RectClientAreaOnWindow func() (int, int) + RectOnWindow func() (int, int) + RightBorderWidth func() int + ScrollEnsureVisible func(x, y int) + ScrollOffsetX func() int + ScrollOffsetY func() int + SetAnchors func(anchors int) + SetBorderBottom func(width int, col color.Color) + SetBorderLeft func(width int, col color.Color) + SetBorderRight func(width int, col color.Color) + SetBorderTop func(width int, col color.Color) + SetBorders func(width int, col color.Color) + SetContextMenu func(menu IMenu) + SetEnabled func(enabled bool) + SetFixedSize func(w int, h int) + SetFocus func(focus bool) + SetGridPos func(x int, y int) + SetGridX func(x int) + SetGridY func(y int) + SetHeight func(height int) + SetHover func(hover bool) + SetMaxHeight func(maxHeight int) + SetMaxWidth func(maxWidth int) + SetMinHeight func(minHeight int) + SetMinWidth func(minWidth int) + SetName func(name string) + SetParent func(p Widget) + SetPos func(x, y int) + SetSize func(w, h int) + SetStyledValue func(subclass string, propertyName string, value string, score int) + SetTooltip func(text string) + SetUserData func(key string, data interface{}) + SetVisible func(visible bool) + SetWidth func(width int) + SetWindow func(window Window) + SetX func(x int) + SetXExpandable func(xExpandable bool) + SetY func(y int) + SetYExpandable func(yExpandable bool) + String func(level int) string + StyledValue func(subclass string, propertyName string) interface{} + Subclass func() string + TabIndex func() int + Text func() string + Tooltip func() string + TopBorderWidth func() int + TranslateX func(x int) int + TranslateY func(y int) int + Update func(source string) + UpdateLayout func() + UpdateStyle func() + UserData func(key string) interface{} + Widgets func() []Widget + Width func() int + Window func() Window + X func() int + XExpandable func() bool + Y func() int + YExpandable func() bool + type Window interface + Accept func() + AppendPopup func(c Widget) + BeginDrag func(object interface{}) + CentralWidget func() Widget + Close func() + CloseAfterPopupWidget func(w Widget) + CloseAllPopup func() + CloseTopPopup func() + ControlRemoved func() + CreateModalForm func(window Window) + CurrentDraggingObject func() interface{} + DialogResult func() bool + Draw func() bool + FocusedWidget func() Widget + Height func() int + Id func() int + Init func() + IsMainWindow func() bool + KeyModifiers func() KeyModifiers + LoopUI func() + MainTimer func() + Maximize func() + Menu func() Menu + Modal func() bool + NewTimer func(period int64, handler func()) *FormTimer + OnClose func() bool + OnInit func() + Parent func() Window + Popup func() bool + Position func() Point + ProcessCharInput func(ch rune) + ProcessClick func(x, y int, button MouseButton) + ProcessFocus func() + ProcessKeyDown func(key glfw.Key) + ProcessKeyModifiers func(shift bool, control bool, alt bool) + ProcessKeyUp func(key glfw.Key) + ProcessMouseDown func(button MouseButton) + ProcessMouseMove func(x, y int) + ProcessMouseUp func(button MouseButton) + ProcessMouseWheel func(delta int) + ProcessTabDown func() + ProcessWindowMove func(x, y int) + ProcessWindowResize func(width, height int) + RemoveTimer func(timer *FormTimer) + Resize func(width, height int) + SetFocusForWidget func(c Widget) + SetId func(id int) + SetIsMainWindow func(isMainWindow bool) + SetModal func(modal bool) + SetMouseCursor func(cur MouseCursor) + SetParent func(window Window) + SetPopup func(popup bool) + SetTitle func(title string) + SetWindow func(w *glfw.Window) + Show func() + ShowMaximazed func() bool + ShowTooltip func(x, y int, text string) + Title func() string + UpdateLayout func() + UpdateMenu func() + UpdateWindow func(source string) + Width func() int + Window func() *glfw.Window + var MainForm Window v1.0.1 May 1, 2023 Changes in this version + var CursorArrow *glfw.Cursor + var CursorIBeam *glfw.Cursor + var CursorPointer *glfw.Cursor + var CursorResizeHor *glfw.Cursor + var CursorResizeVer *glfw.Cursor + var ServiceDrawBorders = false + var SimpleProgram uint32 = 0 + var SimpleProgramFragment = ... + var SimpleProgramLoaded = false + var SimpleProgramVertex = ... + var UseOpenGL33 bool = false + func InitOpenGL33() + func InitUI() error + func InitUISystem() + type ClipSettings struct + type DrawContext interface + ClipIn func(x, y, width, height int) + ClippedRegion func() (int, int, int, int) + DrawEllipse func(x, y, width, height int) + DrawImage func(x, y, width, height int, img image.Image) + DrawLine func(x1, y1, x2, y2 int) + DrawRect func(x, y, width, height int) + DrawText func(x, y, width, height int, text string) + FillRect func(x, y, width, height int) + Finish func() + GG func() *gg.Context + GraphContextImage func() *image.RGBA + Init func() + Load func() + MeasureText func(text string) (int, int) + Save func() + SetColor func(col color.Color) + SetFontFamily func(fontFamily string) + SetFontSize func(s float64) + SetStrokeWidth func(w int) + SetTextAlign func(h canvas.HAlign, v canvas.VAlign) + SetUnderline func(underline bool) + State func() canvas.CanvasDirectState + Translate func(x, y int) + TranslatedX func() int + TranslatedY func() int + type DrawContextBase struct + CurrentClipSettings ClipSettings + CurrentColor color.Color + FontFamily string + FontSize float64 + StackClipSettings stack.Stack + StrokeWidth int + TextHAlign canvas.HAlign + TextVAlign canvas.VAlign + UnderLine bool + Window *glfw.Window + WindowHeight int + WindowHeightScale float32 + WindowWidth int + WindowWidthScale float32 + func (c *DrawContextBase) Finish() + func (c *DrawContextBase) InitBase() + func (c *DrawContextBase) Load() + func (c *DrawContextBase) Save() + func (c *DrawContextBase) SetColor(col color.Color) + func (c *DrawContextBase) SetFontFamily(fontFamily string) + func (c *DrawContextBase) SetFontSize(s float64) + func (c *DrawContextBase) SetStrokeWidth(w int) + func (c *DrawContextBase) SetTextAlign(h canvas.HAlign, v canvas.VAlign) + func (c *DrawContextBase) SetUnderline(underline bool) + func (c *DrawContextBase) TranslateAndClip(x, y, width, height int) + type DrawContextGL struct + func NewDrawContext(windowWidth, windowHeight int) *DrawContextGL + func (c *DrawContextGL) Clip(x, y, width, height int) + func (c *DrawContextGL) DrawEllipse(x, y, width, height int) + func (c *DrawContextGL) DrawPolygon(x, y, width, height int) + func (c *DrawContextGL) DrawText(x, y, width, height int, text string) + func (c *DrawContextGL) SetColor(col color.Color) + func (c *DrawContextGL) SetFont(fontFamily string, fontSize float64, bold, italic, underline bool) + func (c *DrawContextGL) UnClip() + type DrawContextOpenGL struct + func NewDrawContextOpenGL(window *glfw.Window) *DrawContextOpenGL + func (c *DrawContextOpenGL) Clip(x, y, width, height int) + func (c *DrawContextOpenGL) ClipIn(x, y, width, height int) + func (c *DrawContextOpenGL) ClippedRegion() (int, int, int, int) + func (c *DrawContextOpenGL) DrawEllipse(x, y, width, height int) + func (c *DrawContextOpenGL) DrawImage(x, y, width, height int, img image.Image) + func (c *DrawContextOpenGL) DrawLine(x1, y1, x2, y2 int) + func (c *DrawContextOpenGL) DrawRect(x, y, width, height int) + func (c *DrawContextOpenGL) DrawText(x, y, width, height int, text string) + func (c *DrawContextOpenGL) FillRect(x, y, width, height int) + func (c *DrawContextOpenGL) Finish() + func (c *DrawContextOpenGL) GG() *gg.Context + func (c *DrawContextOpenGL) GraphContextImage() *image.RGBA + func (c *DrawContextOpenGL) Init() + func (c *DrawContextOpenGL) Load() + func (c *DrawContextOpenGL) MeasureText(text string) (int, int) + func (c *DrawContextOpenGL) Save() + func (c *DrawContextOpenGL) State() canvas.CanvasDirectState + func (c *DrawContextOpenGL) Translate(x, y int) + func (c *DrawContextOpenGL) TranslatedX() int + func (c *DrawContextOpenGL) TranslatedY() int + type DrawContextSW struct + func NewDrawContextSW(window *glfw.Window) *DrawContextSW + func NewDrawContextSWSpecial(width, height int) *DrawContextSW + func (c *DrawContextSW) ClipIn(x, y, width, height int) + func (c *DrawContextSW) ClippedRegion() (int, int, int, int) + func (c *DrawContextSW) DrawEllipse(x, y, width, height int) + func (c *DrawContextSW) DrawImage(x, y, width, height int, img image.Image) + func (c *DrawContextSW) DrawLine(x1, y1, x2, y2 int) + func (c *DrawContextSW) DrawRect(x, y, width, height int) + func (c *DrawContextSW) DrawText(x, y, width, height int, text string) + func (c *DrawContextSW) FillRect(x, y, width, height int) + func (c *DrawContextSW) Finish() + func (c *DrawContextSW) GG() *gg.Context + func (c *DrawContextSW) GraphContextImage() *image.RGBA + func (c *DrawContextSW) Init() + func (c *DrawContextSW) Load() + func (c *DrawContextSW) MeasureText(text string) (int, int) + func (c *DrawContextSW) Save() + func (c *DrawContextSW) State() canvas.CanvasDirectState + func (c *DrawContextSW) Translate(x, y int) + func (c *DrawContextSW) TranslatedX() int + func (c *DrawContextSW) TranslatedY() int + type ImageCache struct + func NewImageCache(name string) *ImageCache + func (c *ImageCache) Clear() + func (c *ImageCache) ClearXY(x, y int) + func (c *ImageCache) GetXY(x, y int) *canvas.CanvasDirect + func (c *ImageCache) SetXY(x, y int, cnv *canvas.CanvasDirect) + type MouseCursor int + const MouseCursorArrow + const MouseCursorIBeam + const MouseCursorNotDefined + const MouseCursorPointer + const MouseCursorResizeHor + const MouseCursorResizeVer + type Point struct + X int + Y int + type StateStruct struct + CurrentClipSettings ClipSettings + CurrentColor color.Color + FontFamily string + FontSize float64 + StrokeWidth int + TextHAlign canvas.HAlign + TextVAlign canvas.VAlign + UnderLine bool + type WidgetEvent struct + func (c *WidgetEvent) AddListener(l func()) int + func (c *WidgetEvent) Invoke() + func (c *WidgetEvent) RemoveAllListeners() + func (c *WidgetEvent) RemoveListener(id int)