Versions in this module Expand all Collapse all v1 v1.0.10 Sep 10, 2021 Changes in this version type Control + func (c *Control) IsVisibleRec() bool v1.0.9 Apr 6, 2021 Changes in this version type TextBox + func (c *TextBox) SetIsPassword(isPassword bool) v1.0.8 Mar 14, 2021 v1.0.7 Mar 14, 2021 Changes in this version type TabControl + OnPageSelected func(index int) v1.0.6 Mar 7, 2021 v1.0.5 Mar 7, 2021 Changes in this version type Control + func (c *Control) IsTabPlate() bool + func (c *Control) SetIsTabPlate(isTabPlate bool) + func (c *Control) SetTabIndex(index int) + func (c *Control) Widgets() []uiinterfaces.Widget type Dialog + func NewDialog(parent uiinterfaces.Widget, title string, width, height int) *Dialog v1.0.4 Feb 26, 2021 v1.0.3 Feb 26, 2021 v1.0.2 Feb 24, 2021 v1.0.0 Feb 24, 2021 Changes in this version + const ANCHOR_ALL + const ANCHOR_BOTTOM + const ANCHOR_HOR + const ANCHOR_LEFT + const ANCHOR_RIGHT + const ANCHOR_TOP + const MAX_HEIGHT + const MAX_WIDTH + const MaxInt + const MaxUint + const MenuBarItemMargin + const MenuBarItemMinWidth + const MinInt + const MinUint + const PopupMenuItemHeight + func AddPropertyToWidget(w uiinterfaces.Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property + func AddUnstyledPropertyToWidget(w uiinterfaces.Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property + func NewDialogHeader(parent uiinterfaces.Widget) *dialogHeader + func ShowErrorMessage(parent uiinterfaces.Widget, text string, header string) + func ShowInformationMessage(parent uiinterfaces.Widget, text string, header string) + func ShowQuestionMessageOKCancel(parent uiinterfaces.Widget, text string, header string, onOK func(), ...) + func ShowQuestionMessageYesNoCancel(parent uiinterfaces.Widget, text string, header string, onYes func(), ...) + type Button struct + func NewButton(parent uiinterfaces.Widget, text string, onPress func(event *uievents.Event)) *Button + func (c *Button) ControlType() string + func (c *Button) Draw(ctx ui.DrawContext) + func (c *Button) DrawBackground(ctx ui.DrawContext) + func (c *Button) EnabledChanged(enabled bool) + func (c *Button) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *Button) KeyDown(event *uievents.KeyDownEvent) bool + func (c *Button) MouseDown(event *uievents.MouseDownEvent) + func (c *Button) MouseEnter() + func (c *Button) MouseLeave() + func (c *Button) MouseUp(event *uievents.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 *uievents.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) TabStop() bool + func (c *Button) Text() string + func (c *Button) TextHAlign() canvas.HAlign + func (c *Button) TextVAlign() canvas.VAlign + type CheckBox struct + OnCheckedChanged func(checkBox *CheckBox, checked bool) + func NewCheckBox(parent uiinterfaces.Widget, text string) *CheckBox + func (c *CheckBox) ControlType() string + func (c *CheckBox) Dispose() + func (c *CheckBox) EnabledChanged(enabled bool) + func (c *CheckBox) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget) + func (c *CheckBox) IsChecked() bool + func (c *CheckBox) MouseClick(event *uievents.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 uiinterfaces.Widget) *ColorPalette + func (c *ColorPalette) Color() color.Color + func (c *ColorPalette) ControlType() string + func (c *ColorPalette) Dispose() + func (c *ColorPalette) Draw(ctx ui.DrawContext) + func (c *ColorPalette) MouseDown(event *uievents.MouseDownEvent) + func (c *ColorPalette) MouseUp(event *uievents.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 uiinterfaces.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 uiinterfaces.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 uiinterfaces.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 ui.DrawContext) + func (c *ComboBox) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *ComboBox) KeyDown(event *uievents.KeyDownEvent) bool + func (c *ComboBox) MouseDown(event *uievents.MouseDownEvent) + func (c *ComboBox) MouseUp(event *uievents.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 []uiinterfaces.Widget + PopupWidgets []uiinterfaces.Widget + func (c *Container) AddWidget(w uiinterfaces.Widget) + func (c *Container) AddWidgetOnGrid(w uiinterfaces.Widget, x int, y int) + func (c *Container) AppendPopupWidget(w uiinterfaces.Widget) + func (c *Container) ClearFocus() + func (c *Container) ClearHover() + func (c *Container) ClearLayoutCache() + func (c *Container) ClearRadioButtons() + func (c *Container) CloseAfterPopupWidget(w uiinterfaces.Widget) + func (c *Container) CloseAllPopup() + func (c *Container) CloseTopPopup() + func (c *Container) ControlType() string + func (c *Container) Dispose() + func (c *Container) Draw(ctx ui.DrawContext) + func (c *Container) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *Container) FirstFocusControl() uiinterfaces.Widget + func (c *Container) InitControl(parent uiinterfaces.Widget, w uiinterfaces.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 *uievents.MouseClickEvent) + func (c *Container) MouseDown(event *uievents.MouseDownEvent) + func (c *Container) MouseDrop(event *uievents.MouseDropEvent) + func (c *Container) MouseMove(event *uievents.MouseMoveEvent) + func (c *Container) MouseUp(event *uievents.MouseUpEvent) + func (c *Container) MouseValidateDrop(event *uievents.MouseValidateDropEvent) + func (c *Container) MouseWheel(event *uievents.MouseWheelEvent) + func (c *Container) NextFocusControl() uiinterfaces.Widget + func (c *Container) RemoveAllWidgets() + func (c *Container) RemoveWidget(w uiinterfaces.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() []uiinterfaces.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) uiinterfaces.Menu + OnMouseDrop func(droppedValue interface{}, x, y int) + OwnWindow uiinterfaces.Window + VScroll Rect + func NewControl(parent uiinterfaces.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() uiinterfaces.Menu + 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 ui.DrawContext) + func (c *Control) DrawBackground(ctx ui.DrawContext) + func (c *Control) DrawBorders(ctx ui.DrawContext) + func (c *Control) DrawControl(ctx ui.DrawContext) + func (c *Control) DrawScrollBars(ctx ui.DrawContext) + func (c *Control) EnabledChanged(enabled bool) + func (c *Control) EndUpdate() + func (c *Control) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *Control) FirstFocusControl() uiinterfaces.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 uiinterfaces.Widget, w uiinterfaces.Widget) + func (c *Control) Initialized() bool + func (c *Control) InnerHeight() int + func (c *Control) InnerWidth() int + func (c *Control) IsVisible() bool + func (c *Control) KeyChar(event *uievents.KeyCharEvent) + func (c *Control) KeyDown(event *uievents.KeyDownEvent) bool + func (c *Control) KeyUp(event *uievents.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 *uievents.MouseClickEvent) + func (c *Control) MouseCursor() ui.MouseCursor + func (c *Control) MouseDblClick(event *uievents.MouseDblClickEvent) + func (c *Control) MouseDown(event *uievents.MouseDownEvent) + func (c *Control) MouseDrop(event *uievents.MouseDropEvent) + func (c *Control) MouseEnter() + func (c *Control) MouseLeave() + func (c *Control) MouseMove(event *uievents.MouseMoveEvent) + func (c *Control) MouseUp(event *uievents.MouseUpEvent) + func (c *Control) MouseValidateDrop(event *uievents.MouseValidateDropEvent) + func (c *Control) MouseWheel(event *uievents.MouseWheelEvent) + func (c *Control) Name() string + func (c *Control) NextFocusControl() uiinterfaces.Widget + func (c *Control) OnInit() + func (c *Control) OnScroll(scrollPositionX int, scrollPositionY int) + func (c *Control) Parent() uiinterfaces.Widget + func (c *Control) ProcessFindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *Control) ProcessKeyChar(event *uievents.KeyCharEvent) + func (c *Control) ProcessKeyDown(event *uievents.KeyDownEvent) bool + func (c *Control) ProcessKeyUp(event *uievents.KeyUpEvent) + func (c *Control) ProcessMouseClick(event *uievents.MouseClickEvent) + func (c *Control) ProcessMouseDblClick(event *uievents.MouseDblClickEvent) + func (c *Control) ProcessMouseDown(event *uievents.MouseDownEvent) + func (c *Control) ProcessMouseMove(event *uievents.MouseMoveEvent) + func (c *Control) ProcessMouseUp(event *uievents.MouseUpEvent) + func (c *Control) ProcessMouseWheel(event *uievents.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 uiinterfaces.Menu) + 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) 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 ui.MouseCursor) + func (c *Control) SetName(name string) + func (c *Control) SetOnKeyDown(callback func(event *uievents.KeyDownEvent) bool) + func (c *Control) SetParent(p uiinterfaces.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) 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 uiinterfaces.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) TabStop() bool + 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) Width() int + func (c *Control) Window() uiinterfaces.Window + func (c *Control) X() int + func (c *Control) XExpandable() bool + func (c *Control) Y() int + func (c *Control) YExpandable() bool + type DateTimePicker struct + DateTimeChanged func(event *uievents.Event) + Image image.Image + func NewDateTimePicker(parent uiinterfaces.Widget) *DateTimePicker + func (c *DateTimePicker) ControlType() string + func (c *DateTimePicker) DateTime() time.Time + func (c *DateTimePicker) DateTimeToString() string + func (c *DateTimePicker) Draw(ctx ui.DrawContext) + func (c *DateTimePicker) KeyDown(event *uievents.KeyDownEvent) bool + func (c *DateTimePicker) MouseClick(event *uievents.MouseClickEvent) + func (c *DateTimePicker) MouseDown(event *uievents.MouseDownEvent) + func (c *DateTimePicker) MouseEnter() + func (c *DateTimePicker) MouseLeave() + func (c *DateTimePicker) MouseUp(event *uievents.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 uiinterfaces.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 uiinterfaces.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 (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 *uievents.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 GroupBox struct + func NewGroupBox(parent uiinterfaces.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 uiinterfaces.Widget) *HSpacer + func (c *HSpacer) ControlType() string + func (c *HSpacer) Draw(ctx ui.DrawContext) + func (c *HSpacer) Subclass() string + func (c *HSpacer) TabStop() bool + type ImageBox struct + func NewImageBox(parent uiinterfaces.Widget, img image.Image) *ImageBox + func NewImageBoxBytes(parent uiinterfaces.Widget, data []byte) *ImageBox + func (c *ImageBox) ControlType() string + func (c *ImageBox) Draw(ctx ui.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 ListView struct + OnItemClicked func(item *ListViewItem) + OnSelectionChanged func() + func NewListView(parent uiinterfaces.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 ui.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 uiinterfaces.Widget, x int, y int, width int, height int) *ListViewContent + func (c *ListViewContent) ControlType() string + func (c *ListViewContent) Draw(ctx ui.DrawContext) + func (c *ListViewContent) KeyDown(event *uievents.KeyDownEvent) bool + func (c *ListViewContent) MouseClick(event *uievents.MouseClickEvent) + type ListViewHeader struct + func NewListViewHeader(parent uiinterfaces.Widget, x int, y int, width int, height int) *ListViewHeader + func (c *ListViewHeader) ControlType() string + func (c *ListViewHeader) Draw(ctx ui.DrawContext) + func (c *ListViewHeader) MinHeight() int + func (c *ListViewHeader) MinWidth() int + func (c *ListViewHeader) MouseDown(event *uievents.MouseDownEvent) + func (c *ListViewHeader) MouseLeave() + func (c *ListViewHeader) MouseMove(event *uievents.MouseMoveEvent) + func (c *ListViewHeader) MouseUp(event *uievents.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 uiinterfaces.Widget) *Menu + func (c *Menu) AddItem(text string) *MenuItem + func (c *Menu) ControlType() string + func (c *Menu) Draw(ctx ui.DrawContext) + func (c *Menu) FocusChanged(focus bool) + func (c *Menu) IsVisible() bool + func (c *Menu) MouseClick(event *uievents.MouseClickEvent) + func (c *Menu) MouseLeave() + func (c *Menu) MouseMove(event *uievents.MouseMoveEvent) + func (c *Menu) SetVisible(visible bool) + func (c *Menu) ShowSubmenu(item *MenuItem) + type MenuItem struct + OnClick func(*uievents.Event) + Text string + func (c *MenuItem) AddItem(text string, menu *Menu) + func (c *MenuItem) Draw(ctx ui.DrawContext) + type MessageBox struct + func NewMessageBox(parent uiinterfaces.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 uiinterfaces.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 Panel struct + func NewPanel(parent uiinterfaces.Widget) *Panel + func NewRootPanel(parentWindow uiinterfaces.Window) *Panel + func (c *Panel) AddButtonOnGrid(gridX int, gridY int, text string, onPress func(event *uievents.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 uiinterfaces.Widget, w uiinterfaces.Widget) + func (c *Panel) SetEnabled(enabled bool) + func (c *Panel) UpdateStyle() + type PopupMenu struct + CloseEvent func() + func NewPopupMenu(parent uiinterfaces.Widget) *PopupMenu + func (c *PopupMenu) AddItem(text string, onClick func(event *uievents.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 *uievents.Event), img []byte, ...) *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 *uievents.Event) + func (c *PopupMenuItem) ControlType() string + func (c *PopupMenuItem) Dispose() + func (c *PopupMenuItem) Draw(ctx ui.DrawContext) + func (c *PopupMenuItem) MouseClick(event *uievents.MouseClickEvent) + func (c *PopupMenuItem) MouseEnter() + func (c *PopupMenuItem) MouseLeave() + func (c *PopupMenuItem) MouseMove(event *uievents.MouseMoveEvent) + func (c *PopupMenuItem) OnInit() + func (c *PopupMenuItem) SetInnerMenu(menu *PopupMenu) + func (c *PopupMenuItem) SetText(text string) + type ProgressBar struct + func NewProgressBar(parent uiinterfaces.Widget) *ProgressBar + func (c *ProgressBar) ControlType() string + func (c *ProgressBar) Draw(ctx ui.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 uiinterfaces.Widget, text string) *RadioButton + func (c *RadioButton) ClearRadioButtons() + func (c *RadioButton) ControlType() string + func (c *RadioButton) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget) + func (c *RadioButton) IsChecked() bool + func (c *RadioButton) MouseClick(event *uievents.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 uiinterfaces.Widget) *Space + func (c *Space) ControlType() string + func (c *Space) Draw(ctx ui.DrawContext) + func (c *Space) Subclass() string + func (c *Space) TabStop() bool + type SpinBox struct + OnValueChanged func(spinBox *SpinBox, value float64) + func NewSpinBox(parent uiinterfaces.Widget) *SpinBox + func (c *SpinBox) Dispose() + func (c *SpinBox) MouseWheel(event *uievents.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 uiinterfaces.Widget) *SplitContainer + func (c *SplitContainer) ControlType() string + func (c *SplitContainer) Dispose() + func (c *SplitContainer) Draw(ctx ui.DrawContext) + func (c *SplitContainer) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget + func (c *SplitContainer) MouseDown(event *uievents.MouseDownEvent) + func (c *SplitContainer) MouseMove(event *uievents.MouseMoveEvent) + func (c *SplitContainer) MouseUp(event *uievents.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 uiinterfaces.Window) + func (c *SplitContainer) XExpandable() bool + func (c *SplitContainer) YExpandable() bool + type TabControl struct + OnAddButtonPressed func() + OnNeedClose func(index int) + func NewTabControl(parent uiinterfaces.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 *uievents.MouseMoveEvent) + func (c *TabPage) SetText(text string) + func (c *TabPage) SetVisible(visible bool) + type Table struct + func NewTable(parent uiinterfaces.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 ui.DrawContext) + func (c *Table) KeyChar(event *uievents.KeyCharEvent) + func (c *Table) KeyDown(event *uievents.KeyDownEvent) bool + func (c *Table) KeyUp(event *uievents.KeyUpEvent) + func (c *Table) MouseClick(event *uievents.MouseClickEvent) + func (c *Table) MouseDown(event *uievents.MouseDownEvent) + func (c *Table) MouseMove(event *uievents.MouseMoveEvent) + func (c *Table) MouseUp(event *uievents.MouseUpEvent) + type TableColumn struct + Name string + Width int + type TableRow struct + Cells []uiinterfaces.Widget + Height int + Name string + type TextBlock struct + OnClick func(ev *uievents.Event) + TextHAlign canvas.HAlign + TextVAlign canvas.VAlign + func NewTextBlock(parent uiinterfaces.Widget, text string) *TextBlock + func (c *TextBlock) ControlType() string + func (c *TextBlock) Draw(ctx ui.DrawContext) + func (c *TextBlock) MinHeight() int + func (c *TextBlock) MinWidth() int + func (c *TextBlock) MouseDown(event *uievents.MouseDownEvent) + func (c *TextBlock) MouseUp(event *uievents.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 uiinterfaces.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 ui.DrawContext) + func (c *TextBox) KeyChar(event *uievents.KeyCharEvent) + func (c *TextBox) KeyDown(event *uievents.KeyDownEvent) bool + func (c *TextBox) KeyUp(event *uievents.KeyUpEvent) + func (c *TextBox) MinHeight() int + func (c *TextBox) MouseDown(event *uievents.MouseDownEvent) + func (c *TextBox) MouseMove(event *uievents.MouseMoveEvent) + func (c *TextBox) MouseUp(event *uievents.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) 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 uiinterfaces.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 uiinterfaces.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 uiinterfaces.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 *uievents.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 uiinterfaces.Widget) *TreeViewContent + func (c *TreeViewContent) Draw(ctx ui.DrawContext) + func (c *TreeViewContent) MouseClick(event *uievents.MouseClickEvent) + func (c *TreeViewContent) MouseDown(event *uievents.MouseDownEvent) + func (c *TreeViewContent) MouseDrop(event *uievents.MouseDropEvent) + func (c *TreeViewContent) MouseMove(event *uievents.MouseMoveEvent) + func (c *TreeViewContent) MouseUp(event *uievents.MouseUpEvent) + func (c *TreeViewContent) OnScroll(scrollPositionX int, scrollPositionY int) + func (c *TreeViewContent) Tooltip() string + type TreeViewHeader struct + func NewTreeViewHeader(parent uiinterfaces.Widget) *TreeViewHeader + func (c *TreeViewHeader) ControlType() string + func (c *TreeViewHeader) Draw(ctx ui.DrawContext) + func (c *TreeViewHeader) MinHeight() int + func (c *TreeViewHeader) MinWidth() int + func (c *TreeViewHeader) MouseDown(event *uievents.MouseDownEvent) + func (c *TreeViewHeader) MouseLeave() + func (c *TreeViewHeader) MouseMove(event *uievents.MouseMoveEvent) + func (c *TreeViewHeader) MouseUp(event *uievents.MouseUpEvent) + type VSpacer struct + func NewVSpacer(parent uiinterfaces.Widget) *VSpacer + func (c *VSpacer) ControlType() string + func (c *VSpacer) Draw(ctx ui.DrawContext) + func (c *VSpacer) Subclass() string + func (c *VSpacer) TabStop() bool