Documentation ¶
Index ¶
- Constants
- 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
- 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) Text() string
- func (c *Button) TextHAlign() canvas.HAlign
- func (c *Button) TextVAlign() canvas.VAlign
- type 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
- 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
- type ColorSelector
- type 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
- type ComboBoxItem
- type Container
- 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) 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) 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
- type ContainerGridRowInfo
- type 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) IsTabPlate() bool
- 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) 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 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) 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 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) 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() []uiinterfaces.Widget
- 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
- 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
- type 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
- 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
- type HSpacer
- type 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
- type 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
- type ListViewContent
- type 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
- type 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
- type MessageBox
- type 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
- 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
- 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
- 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
- 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
- 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
- type Space
- type 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
- 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
- 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
- type 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
- type TableRow
- type 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
- 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
- type TextBoxSelection
- type ToolPanel
- type TreeColumn
- type TreeNode
- type 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
- 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
- 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
Constants ¶
View Source
const ANCHOR_ALL = 0xF
View Source
const ANCHOR_BOTTOM = 8
View Source
const ANCHOR_HOR = ANCHOR_TOP | ANCHOR_LEFT | ANCHOR_RIGHT
View Source
const ANCHOR_LEFT = 1
View Source
const ANCHOR_RIGHT = 4
View Source
const ANCHOR_TOP = 2
View Source
const MAX_HEIGHT = 100000
View Source
const MAX_WIDTH = 100000
View Source
const MaxInt = int(^uint(0) >> 1)
View Source
const MaxUint = ^uint(0)
View Source
const MenuBarItemMargin = 10
View Source
const MenuBarItemMinWidth = 30
View Source
const MinInt = -MaxInt - 1
View Source
const MinUint = 0
View Source
const PopupMenuItemHeight = 32
Variables ¶
This section is empty.
Functions ¶
func AddPropertyToWidget ¶
func AddPropertyToWidget(w uiinterfaces.Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
func AddUnstyledPropertyToWidget ¶
func AddUnstyledPropertyToWidget(w uiinterfaces.Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
func NewDialogHeader ¶
func NewDialogHeader(parent uiinterfaces.Widget) *dialogHeader
func ShowErrorMessage ¶
func ShowErrorMessage(parent uiinterfaces.Widget, text string, header string)
func ShowInformationMessage ¶
func ShowInformationMessage(parent uiinterfaces.Widget, text string, header string)
func ShowQuestionMessageOKCancel ¶
func ShowQuestionMessageOKCancel(parent uiinterfaces.Widget, text string, header string, onOK func(), onCancel func())
func ShowQuestionMessageYesNoCancel ¶
func ShowQuestionMessageYesNoCancel(parent uiinterfaces.Widget, text string, header string, onYes func(), onNo func(), onCancel func())
Types ¶
type Button ¶
type Button struct { Container // contains filtered or unexported fields }
func (*Button) ControlType ¶
func (*Button) Draw ¶
func (c *Button) Draw(ctx ui.DrawContext)
func (*Button) DrawBackground ¶
func (c *Button) DrawBackground(ctx ui.DrawContext)
func (*Button) EnabledChanged ¶
func (*Button) FindWidgetUnderPointer ¶
func (c *Button) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*Button) MouseDown ¶
func (c *Button) MouseDown(event *uievents.MouseDownEvent)
func (*Button) MouseEnter ¶
func (c *Button) MouseEnter()
func (*Button) MouseLeave ¶
func (c *Button) MouseLeave()
func (*Button) MouseUp ¶
func (c *Button) MouseUp(event *uievents.MouseUpEvent)
func (*Button) SetChecked ¶
func (*Button) SetDrawBackground ¶
func (*Button) SetEnabled ¶
func (*Button) SetForeColor ¶
func (*Button) SetImageDisabled ¶
func (*Button) SetImageSize ¶
func (*Button) SetOnPress ¶
func (*Button) SetPadding ¶
func (*Button) SetShowImage ¶
func (*Button) SetShowText ¶
func (*Button) SetTextHAlign ¶
func (*Button) SetTextImageVerticalOrientation ¶
func (*Button) SetTextVAlign ¶
func (*Button) TextHAlign ¶
func (*Button) TextVAlign ¶
type CheckBox ¶
type CheckBox struct { Container OnCheckedChanged func(checkBox *CheckBox, checked bool) // contains filtered or unexported fields }
func NewCheckBox ¶
func NewCheckBox(parent uiinterfaces.Widget, text string) *CheckBox
func (*CheckBox) ControlType ¶
func (*CheckBox) EnabledChanged ¶
func (*CheckBox) InitControl ¶
func (c *CheckBox) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget)
func (*CheckBox) MouseClick ¶
func (c *CheckBox) MouseClick(event *uievents.MouseClickEvent)
func (*CheckBox) SetChecked ¶
func (*CheckBox) SetEnabled ¶
type ColorPalette ¶
type ColorPalette struct { Control OnColorChanged func(colorPicker *ColorPalette, color color.Color) // contains filtered or unexported fields }
func NewColorPalette ¶
func NewColorPalette(parent uiinterfaces.Widget) *ColorPalette
func (*ColorPalette) Color ¶
func (c *ColorPalette) Color() color.Color
func (*ColorPalette) ControlType ¶
func (c *ColorPalette) ControlType() string
func (*ColorPalette) Dispose ¶
func (c *ColorPalette) Dispose()
func (*ColorPalette) Draw ¶
func (c *ColorPalette) Draw(ctx ui.DrawContext)
func (*ColorPalette) MouseDown ¶
func (c *ColorPalette) MouseDown(event *uievents.MouseDownEvent)
func (*ColorPalette) MouseUp ¶
func (c *ColorPalette) MouseUp(event *uievents.MouseUpEvent)
func (*ColorPalette) SetColor ¶
func (c *ColorPalette) SetColor(color color.Color)
func (*ColorPalette) Subclass ¶
func (c *ColorPalette) Subclass() string
func (*ColorPalette) TabStop ¶
func (c *ColorPalette) TabStop() bool
type ColorPicker ¶
type ColorPicker struct { Panel OnColorChanged func(colorPicker *ColorPicker, color color.Color) // contains filtered or unexported fields }
func NewColorPicker ¶
func NewColorPicker(parent uiinterfaces.Widget) *ColorPicker
func (*ColorPicker) Color ¶
func (c *ColorPicker) Color() color.Color
func (*ColorPicker) Dispose ¶
func (c *ColorPicker) Dispose()
func (*ColorPicker) SetColor ¶
func (c *ColorPicker) SetColor(color color.Color)
type ColorSelector ¶
type ColorSelector struct { Dialog OnColorSelected func(col color.Color) // contains filtered or unexported fields }
func NewColorSelector ¶
func NewColorSelector(parent uiinterfaces.Widget, col color.Color) *ColorSelector
func (*ColorSelector) Color ¶
func (c *ColorSelector) Color() color.Color
func (*ColorSelector) NotifyColorSelection ¶
func (c *ColorSelector) NotifyColorSelection()
func (*ColorSelector) OnInit ¶
func (c *ColorSelector) OnInit()
func (*ColorSelector) ResColor ¶
func (c *ColorSelector) ResColor() color.Color
func (*ColorSelector) SetColor ¶
func (c *ColorSelector) SetColor(col color.Color)
type ComboBox ¶
type ComboBox struct { Container CurrentItemIndex int Items []*ComboBoxItem OnCurrentIndexChanged func(event *ComboBoxEvent) // contains filtered or unexported fields }
func NewComboBox ¶
func NewComboBox(parent uiinterfaces.Widget) *ComboBox
func (*ComboBox) ClosePopup ¶
func (c *ComboBox) ClosePopup()
func (*ComboBox) ControlType ¶
func (*ComboBox) CurrentItemKey ¶
func (c *ComboBox) CurrentItemKey() interface{}
func (*ComboBox) Draw ¶
func (c *ComboBox) Draw(ctx ui.DrawContext)
func (*ComboBox) FindWidgetUnderPointer ¶
func (c *ComboBox) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*ComboBox) MouseDown ¶
func (c *ComboBox) MouseDown(event *uievents.MouseDownEvent)
func (*ComboBox) MouseUp ¶
func (c *ComboBox) MouseUp(event *uievents.MouseUpEvent)
func (*ComboBox) SetCurrentItemIndex ¶
func (*ComboBox) SetCurrentItemKey ¶
func (*ComboBox) ShowPopupForm ¶
func (c *ComboBox) ShowPopupForm()
func (*ComboBox) UpdateStyle ¶
func (c *ComboBox) UpdateStyle()
type ComboBoxEvent ¶
type ComboBoxEvent struct { uievents.Event CurrentIndex int Item *ComboBoxItem }
type ComboBoxItem ¶
type ComboBoxItem struct { uievents.UserDataContainer Text string }
type Container ¶
type Container struct { Control Controls []uiinterfaces.Widget PopupWidgets []uiinterfaces.Widget // contains filtered or unexported fields }
func (*Container) AddWidget ¶
func (c *Container) AddWidget(w uiinterfaces.Widget)
func (*Container) AddWidgetOnGrid ¶
func (c *Container) AddWidgetOnGrid(w uiinterfaces.Widget, x int, y int)
func (*Container) AppendPopupWidget ¶
func (c *Container) AppendPopupWidget(w uiinterfaces.Widget)
func (*Container) ClearFocus ¶
func (c *Container) ClearFocus()
func (*Container) ClearHover ¶
func (c *Container) ClearHover()
func (*Container) ClearLayoutCache ¶
func (c *Container) ClearLayoutCache()
func (*Container) ClearRadioButtons ¶
func (c *Container) ClearRadioButtons()
func (*Container) CloseAfterPopupWidget ¶
func (c *Container) CloseAfterPopupWidget(w uiinterfaces.Widget)
func (*Container) CloseAllPopup ¶
func (c *Container) CloseAllPopup()
func (*Container) CloseTopPopup ¶
func (c *Container) CloseTopPopup()
func (*Container) ControlType ¶
func (*Container) Draw ¶
func (c *Container) Draw(ctx ui.DrawContext)
func (*Container) FindWidgetUnderPointer ¶
func (c *Container) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*Container) InitControl ¶
func (c *Container) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget)
func (*Container) MouseClick ¶
func (c *Container) MouseClick(event *uievents.MouseClickEvent)
func (*Container) MouseDown ¶
func (c *Container) MouseDown(event *uievents.MouseDownEvent)
func (*Container) MouseDrop ¶
func (c *Container) MouseDrop(event *uievents.MouseDropEvent)
func (*Container) MouseMove ¶
func (c *Container) MouseMove(event *uievents.MouseMoveEvent)
func (*Container) MouseUp ¶
func (c *Container) MouseUp(event *uievents.MouseUpEvent)
func (*Container) MouseValidateDrop ¶
func (c *Container) MouseValidateDrop(event *uievents.MouseValidateDropEvent)
func (*Container) MouseWheel ¶
func (c *Container) MouseWheel(event *uievents.MouseWheelEvent)
func (*Container) RemoveAllWidgets ¶
func (c *Container) RemoveAllWidgets()
func (*Container) RemoveWidget ¶
func (c *Container) RemoveWidget(w uiinterfaces.Widget)
func (*Container) SetAbsolutePositioning ¶
func (*Container) SetCellPadding ¶
func (*Container) SetPanelPadding ¶
func (*Container) UpdateLayout ¶
func (c *Container) UpdateLayout()
func (*Container) UpdateStyle ¶
func (c *Container) UpdateStyle()
func (*Container) Widgets ¶
func (c *Container) Widgets() []uiinterfaces.Widget
func (*Container) XExpandable ¶
func (*Container) YExpandable ¶
type ContainerGridColumnInfo ¶
type ContainerGridColumnInfo struct {
// contains filtered or unexported fields
}
type ContainerGridRowInfo ¶
type ContainerGridRowInfo struct {
// contains filtered or unexported fields
}
type Control ¶
type Control struct { stats.Obj uievents.UserDataContainer HScroll Rect VScroll Rect OwnWindow uiinterfaces.Window OnContextMenuNeed func(x, y int) uiinterfaces.Menu OnMouseDrop func(droppedValue interface{}, x, y int) // contains filtered or unexported fields }
func NewControl ¶
func NewControl(parent uiinterfaces.Widget) *Control
func (*Control) AccentColor ¶
func (*Control) AcceptsReturn ¶
func (*Control) AcceptsTab ¶
func (*Control) AddProperty ¶
func (c *Control) AddProperty(name string, prop *uiproperties.Property)
func (*Control) ApplyStyleLine ¶
func (*Control) BeginUpdate ¶
func (c *Control) BeginUpdate()
func (*Control) BorderColors ¶
func (*Control) BottomBorderWidth ¶
func (*Control) ClearFocus ¶
func (c *Control) ClearFocus()
func (*Control) ClearHover ¶
func (c *Control) ClearHover()
func (*Control) ClearLayoutCache ¶
func (c *Control) ClearLayoutCache()
func (*Control) ClearRadioButtons ¶
func (c *Control) ClearRadioButtons()
func (*Control) ClientHeight ¶
func (*Control) ClientWidth ¶
func (*Control) ClosePopup ¶
func (c *Control) ClosePopup()
func (*Control) CloseTopPopup ¶
func (c *Control) CloseTopPopup()
func (*Control) ContextMenu ¶
func (c *Control) ContextMenu() uiinterfaces.Menu
func (*Control) ControlType ¶
func (*Control) CurrentStyleValueScore ¶
func (*Control) Draw ¶
func (c *Control) Draw(ctx ui.DrawContext)
func (*Control) DrawBackground ¶
func (c *Control) DrawBackground(ctx ui.DrawContext)
func (*Control) DrawBorders ¶
func (c *Control) DrawBorders(ctx ui.DrawContext)
func (*Control) DrawControl ¶
func (c *Control) DrawControl(ctx ui.DrawContext)
func (*Control) DrawScrollBars ¶
func (c *Control) DrawScrollBars(ctx ui.DrawContext)
func (*Control) EnabledChanged ¶
func (*Control) FindWidgetUnderPointer ¶
func (c *Control) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*Control) FirstFocusControl ¶
func (c *Control) FirstFocusControl() uiinterfaces.Widget
func (*Control) FocusChanged ¶
func (*Control) FontFamily ¶
func (*Control) FontItalic ¶
func (*Control) InactiveColor ¶
func (*Control) InitControl ¶
func (c *Control) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget)
func (*Control) Initialized ¶
func (*Control) InnerHeight ¶
func (*Control) InnerWidth ¶
func (*Control) IsTabPlate ¶ added in v1.0.5
func (*Control) KeyChar ¶
func (c *Control) KeyChar(event *uievents.KeyCharEvent)
func (*Control) KeyUp ¶
func (c *Control) KeyUp(event *uievents.KeyUpEvent)
func (*Control) LeftBorderWidth ¶
func (*Control) MouseClick ¶
func (c *Control) MouseClick(event *uievents.MouseClickEvent)
func (*Control) MouseCursor ¶
func (c *Control) MouseCursor() ui.MouseCursor
func (*Control) MouseDblClick ¶
func (c *Control) MouseDblClick(event *uievents.MouseDblClickEvent)
func (*Control) MouseDown ¶
func (c *Control) MouseDown(event *uievents.MouseDownEvent)
func (*Control) MouseDrop ¶
func (c *Control) MouseDrop(event *uievents.MouseDropEvent)
func (*Control) MouseEnter ¶
func (c *Control) MouseEnter()
func (*Control) MouseLeave ¶
func (c *Control) MouseLeave()
func (*Control) MouseMove ¶
func (c *Control) MouseMove(event *uievents.MouseMoveEvent)
func (*Control) MouseUp ¶
func (c *Control) MouseUp(event *uievents.MouseUpEvent)
func (*Control) MouseValidateDrop ¶
func (c *Control) MouseValidateDrop(event *uievents.MouseValidateDropEvent)
func (*Control) MouseWheel ¶
func (c *Control) MouseWheel(event *uievents.MouseWheelEvent)
func (*Control) NextFocusControl ¶
func (c *Control) NextFocusControl() uiinterfaces.Widget
func (*Control) Parent ¶
func (c *Control) Parent() uiinterfaces.Widget
func (*Control) ProcessFindWidgetUnderPointer ¶
func (c *Control) ProcessFindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*Control) ProcessKeyChar ¶
func (c *Control) ProcessKeyChar(event *uievents.KeyCharEvent)
func (*Control) ProcessKeyDown ¶
func (c *Control) ProcessKeyDown(event *uievents.KeyDownEvent) bool
func (*Control) ProcessKeyUp ¶
func (c *Control) ProcessKeyUp(event *uievents.KeyUpEvent)
func (*Control) ProcessMouseClick ¶
func (c *Control) ProcessMouseClick(event *uievents.MouseClickEvent)
func (*Control) ProcessMouseDblClick ¶
func (c *Control) ProcessMouseDblClick(event *uievents.MouseDblClickEvent)
func (*Control) ProcessMouseDown ¶
func (c *Control) ProcessMouseDown(event *uievents.MouseDownEvent)
func (*Control) ProcessMouseMove ¶
func (c *Control) ProcessMouseMove(event *uievents.MouseMoveEvent)
func (*Control) ProcessMouseUp ¶
func (c *Control) ProcessMouseUp(event *uievents.MouseUpEvent)
func (*Control) ProcessMouseWheel ¶
func (c *Control) ProcessMouseWheel(event *uievents.MouseWheelEvent)
func (*Control) RectClientAreaOnWindow ¶
func (*Control) RectOnWindow ¶
func (*Control) ResetInnerSizeDirect ¶
func (c *Control) ResetInnerSizeDirect()
func (*Control) RightBorderWidth ¶
func (*Control) ScrollEnsureVisible ¶
func (*Control) ScrollOffsetX ¶
func (*Control) ScrollOffsetY ¶
func (*Control) SetAnchors ¶
func (*Control) SetBackColor ¶
func (*Control) SetContextMenu ¶
func (c *Control) SetContextMenu(menu uiinterfaces.Menu)
func (*Control) SetEnabled ¶
func (*Control) SetFixedSize ¶
func (*Control) SetFontSize ¶
func (*Control) SetForeColor ¶
func (*Control) SetGridPos ¶
func (*Control) SetHorizontalScrollVisible ¶
func (*Control) SetInnerSizeDirect ¶
func (*Control) SetIsTabPlate ¶ added in v1.0.5
func (*Control) SetMaxHeight ¶
func (*Control) SetMaxWidth ¶
func (*Control) SetMinHeight ¶
func (*Control) SetMinWidth ¶
func (*Control) SetMouseCursor ¶
func (c *Control) SetMouseCursor(cursor ui.MouseCursor)
func (*Control) SetOnKeyDown ¶
func (c *Control) SetOnKeyDown(callback func(event *uievents.KeyDownEvent) bool)
func (*Control) SetParent ¶
func (c *Control) SetParent(p uiinterfaces.Widget)
func (*Control) SetStyledValue ¶
func (*Control) SetTabIndex ¶ added in v1.0.5
func (*Control) SetTooltip ¶
func (*Control) SetVerticalScrollVisible ¶
func (*Control) SetVisible ¶
func (*Control) SetWindow ¶
func (c *Control) SetWindow(w uiinterfaces.Window)
func (*Control) SetXExpandable ¶
func (*Control) SetYExpandable ¶
func (*Control) StyledValue ¶
func (*Control) TopBorderWidth ¶
func (*Control) TranslateX ¶
func (*Control) TranslateY ¶
func (*Control) UpdateLayout ¶
func (c *Control) UpdateLayout()
func (*Control) UpdateStyle ¶
func (c *Control) UpdateStyle()
func (*Control) VisibleInnerRect ¶
func (*Control) Widgets ¶ added in v1.0.5
func (c *Control) Widgets() []uiinterfaces.Widget
func (*Control) Window ¶
func (c *Control) Window() uiinterfaces.Window
func (*Control) XExpandable ¶
func (*Control) YExpandable ¶
type DateTimePicker ¶
type DateTimePicker struct { Control Image image.Image DateTimeChanged func(event *uievents.Event) // contains filtered or unexported fields }
func NewDateTimePicker ¶
func NewDateTimePicker(parent uiinterfaces.Widget) *DateTimePicker
func (*DateTimePicker) ControlType ¶
func (c *DateTimePicker) ControlType() string
func (*DateTimePicker) DateTime ¶
func (c *DateTimePicker) DateTime() time.Time
func (*DateTimePicker) DateTimeToString ¶
func (c *DateTimePicker) DateTimeToString() string
func (*DateTimePicker) Draw ¶
func (c *DateTimePicker) Draw(ctx ui.DrawContext)
func (*DateTimePicker) KeyDown ¶
func (c *DateTimePicker) KeyDown(event *uievents.KeyDownEvent) bool
func (*DateTimePicker) MouseClick ¶
func (c *DateTimePicker) MouseClick(event *uievents.MouseClickEvent)
func (*DateTimePicker) MouseDown ¶
func (c *DateTimePicker) MouseDown(event *uievents.MouseDownEvent)
func (*DateTimePicker) MouseEnter ¶
func (c *DateTimePicker) MouseEnter()
func (*DateTimePicker) MouseLeave ¶
func (c *DateTimePicker) MouseLeave()
func (*DateTimePicker) MouseUp ¶
func (c *DateTimePicker) MouseUp(event *uievents.MouseUpEvent)
func (*DateTimePicker) Press ¶
func (c *DateTimePicker) Press()
func (*DateTimePicker) SetChecked ¶
func (c *DateTimePicker) SetChecked(checked bool)
func (*DateTimePicker) SetDateTime ¶
func (c *DateTimePicker) SetDateTime(dateTime time.Time)
func (*DateTimePicker) SetEnabled ¶
func (c *DateTimePicker) SetEnabled(enabled bool)
func (*DateTimePicker) Subclass ¶
func (c *DateTimePicker) Subclass() string
func (*DateTimePicker) TabStop ¶
func (c *DateTimePicker) TabStop() bool
type DateTimePickerDialog ¶
type DateTimePickerDialog struct { Dialog // contains filtered or unexported fields }
func NewDateTimePickerDialog ¶
func NewDateTimePickerDialog(parent uiinterfaces.Widget) *DateTimePickerDialog
func (*DateTimePickerDialog) DateTime ¶
func (c *DateTimePickerDialog) DateTime() time.Time
func (*DateTimePickerDialog) OnInit ¶
func (c *DateTimePickerDialog) OnInit()
func (*DateTimePickerDialog) SetDateTime ¶
func (c *DateTimePickerDialog) SetDateTime(dateTime time.Time)
type DayOfMonthSelector ¶
type DayOfMonthSelector struct { Container Image image.Image DayChanged func() // contains filtered or unexported fields }
func NewDayOfMonthSelector ¶
func NewDayOfMonthSelector(parent uiinterfaces.Widget) *DayOfMonthSelector
func (*DayOfMonthSelector) ControlType ¶
func (c *DayOfMonthSelector) ControlType() string
func (*DayOfMonthSelector) Day ¶
func (c *DayOfMonthSelector) Day() int
func (*DayOfMonthSelector) SelectedDay ¶
func (c *DayOfMonthSelector) SelectedDay() int
func (*DayOfMonthSelector) SetDay ¶
func (c *DayOfMonthSelector) SetDay(day int)
func (*DayOfMonthSelector) SetEnabled ¶
func (c *DayOfMonthSelector) SetEnabled(enabled bool)
func (*DayOfMonthSelector) SetYearAndMonth ¶
func (c *DayOfMonthSelector) SetYearAndMonth(year, month int)
func (*DayOfMonthSelector) Subclass ¶
func (c *DayOfMonthSelector) Subclass() string
func (*DayOfMonthSelector) XExpandable ¶
func (c *DayOfMonthSelector) XExpandable() bool
func (*DayOfMonthSelector) YExpandable ¶
func (c *DayOfMonthSelector) YExpandable() bool
type Dialog ¶
type Dialog struct { Panel CloseEvent func() OnAccept func() OnReject func() TryAccept func() bool OnShow func() // contains filtered or unexported fields }
func NewDialog ¶ added in v1.0.5
func NewDialog(parent uiinterfaces.Widget, title string, width, height int) *Dialog
func (*Dialog) ClosePopup ¶
func (c *Dialog) ClosePopup()
func (*Dialog) ContentPanel ¶
func (*Dialog) ControlType ¶
func (*Dialog) SetAcceptButton ¶
func (*Dialog) SetRejectButton ¶
func (*Dialog) ShowDialog ¶
func (c *Dialog) ShowDialog()
func (*Dialog) ShowDialogAtPos ¶
type GroupBox ¶
type GroupBox struct { Container // contains filtered or unexported fields }
func NewGroupBox ¶
func NewGroupBox(parent uiinterfaces.Widget, title string) *GroupBox
func (*GroupBox) ControlType ¶
type HSpacer ¶
type HSpacer struct {
Control
}
func NewHSpacer ¶
func NewHSpacer(parent uiinterfaces.Widget) *HSpacer
func (*HSpacer) ControlType ¶
func (*HSpacer) Draw ¶
func (c *HSpacer) Draw(ctx ui.DrawContext)
type ImageBox ¶
type ImageBox struct { Control // contains filtered or unexported fields }
func NewImageBox ¶
func NewImageBox(parent uiinterfaces.Widget, img image.Image) *ImageBox
func NewImageBoxBytes ¶
func NewImageBoxBytes(parent uiinterfaces.Widget, data []byte) *ImageBox
func (*ImageBox) ControlType ¶
func (*ImageBox) Draw ¶
func (c *ImageBox) Draw(ctx ui.DrawContext)
func (*ImageBox) SetScaling ¶
func (c *ImageBox) SetScaling(scaling ImageBoxScale)
type ImageBoxScale ¶
type ImageBoxScale int
const ( ImageBoxScaleNoScaleAdjustBox ImageBoxScale = 0 ImageBoxScaleNoScaleImageInLeftTop ImageBoxScale = 1 ImageBoxScaleNoScaleImageInCenter ImageBoxScale = 2 ImageBoxScaleStretchImage ImageBoxScale = 3 ImageBoxScaleAdjustImageKeepAspectRatio ImageBoxScale = 4 )
type ListView ¶
type ListView struct { Container OnItemClicked func(item *ListViewItem) OnSelectionChanged func() // contains filtered or unexported fields }
func NewListView ¶
func NewListView(parent uiinterfaces.Widget) *ListView
func (*ListView) AddItem ¶
func (c *ListView) AddItem(text string) *ListViewItem
func (*ListView) AddItem3 ¶
func (c *ListView) AddItem3(col0 string, col1 string, col2 string) *ListViewItem
func (*ListView) ClearSelection ¶
func (c *ListView) ClearSelection()
func (*ListView) ControlType ¶
func (*ListView) Draw ¶
func (c *ListView) Draw(ctx ui.DrawContext)
func (*ListView) EnabledChanged ¶
func (*ListView) EnsureVisibleItem ¶
func (*ListView) IsHeaderVisible ¶
func (*ListView) Item ¶
func (c *ListView) Item(rowIndex int) *ListViewItem
func (*ListView) ItemsCount ¶
func (*ListView) RemoveColumns ¶
func (c *ListView) RemoveColumns()
func (*ListView) RemoveItems ¶
func (c *ListView) RemoveItems()
func (*ListView) SelectAllItems ¶
func (c *ListView) SelectAllItems()
func (*ListView) SelectItem ¶
func (*ListView) SelectItemSelection ¶
func (*ListView) SelectedItem ¶
func (c *ListView) SelectedItem() *ListViewItem
func (*ListView) SelectedItemIndex ¶
func (*ListView) SelectedItems ¶
func (c *ListView) SelectedItems() []*ListViewItem
func (*ListView) SelectedItemsIndexes ¶
func (*ListView) SetColumnTextAlign ¶
func (*ListView) SetColumnWidth ¶
func (*ListView) SetCurrentRow ¶
func (*ListView) SetHeaderVisible ¶
func (*ListView) SetItemValue ¶
func (*ListView) UnselectAllItems ¶
func (c *ListView) UnselectAllItems()
func (*ListView) UpdateStyle ¶
func (c *ListView) UpdateStyle()
func (*ListView) VisibleItems ¶
func (c *ListView) VisibleItems() []*ListViewItem
type ListViewColumn ¶
type ListViewColumn struct {
// contains filtered or unexported fields
}
type ListViewContent ¶
type ListViewContent struct { Control // contains filtered or unexported fields }
func NewListViewContent ¶
func NewListViewContent(parent uiinterfaces.Widget, x int, y int, width int, height int) *ListViewContent
func (*ListViewContent) ControlType ¶
func (c *ListViewContent) ControlType() string
func (*ListViewContent) Draw ¶
func (c *ListViewContent) Draw(ctx ui.DrawContext)
func (*ListViewContent) KeyDown ¶
func (c *ListViewContent) KeyDown(event *uievents.KeyDownEvent) bool
func (*ListViewContent) MouseClick ¶
func (c *ListViewContent) MouseClick(event *uievents.MouseClickEvent)
type ListViewHeader ¶
type ListViewHeader struct { Control // contains filtered or unexported fields }
func NewListViewHeader ¶
func NewListViewHeader(parent uiinterfaces.Widget, x int, y int, width int, height int) *ListViewHeader
func (*ListViewHeader) ControlType ¶
func (c *ListViewHeader) ControlType() string
func (*ListViewHeader) Draw ¶
func (c *ListViewHeader) Draw(ctx ui.DrawContext)
func (*ListViewHeader) MinHeight ¶
func (c *ListViewHeader) MinHeight() int
func (*ListViewHeader) MinWidth ¶
func (c *ListViewHeader) MinWidth() int
func (*ListViewHeader) MouseDown ¶
func (c *ListViewHeader) MouseDown(event *uievents.MouseDownEvent)
func (*ListViewHeader) MouseLeave ¶
func (c *ListViewHeader) MouseLeave()
func (*ListViewHeader) MouseMove ¶
func (c *ListViewHeader) MouseMove(event *uievents.MouseMoveEvent)
func (*ListViewHeader) MouseUp ¶
func (c *ListViewHeader) MouseUp(event *uievents.MouseUpEvent)
type ListViewItem ¶
type ListViewItem struct { uievents.UserDataContainer // contains filtered or unexported fields }
func (*ListViewItem) SetForeColorForCell ¶
func (c *ListViewItem) SetForeColorForCell(colIndex int, color color.Color)
func (*ListViewItem) SetForeColorForRow ¶
func (c *ListViewItem) SetForeColorForRow(color color.Color)
func (*ListViewItem) SetValue ¶
func (c *ListViewItem) SetValue(column int, text string)
func (*ListViewItem) Value ¶
func (c *ListViewItem) Value(column int) string
type Menu ¶
type Menu struct { Control // contains filtered or unexported fields }
func NewMenu ¶
func NewMenu(parent uiinterfaces.Widget) *Menu
func (*Menu) ControlType ¶
func (*Menu) Draw ¶
func (c *Menu) Draw(ctx ui.DrawContext)
func (*Menu) FocusChanged ¶
func (*Menu) MouseClick ¶
func (c *Menu) MouseClick(event *uievents.MouseClickEvent)
func (*Menu) MouseLeave ¶
func (c *Menu) MouseLeave()
func (*Menu) MouseMove ¶
func (c *Menu) MouseMove(event *uievents.MouseMoveEvent)
func (*Menu) SetVisible ¶
func (*Menu) ShowSubmenu ¶
type MenuItem ¶
type MenuItem struct { Text string OnClick func(*uievents.Event) // contains filtered or unexported fields }
func (*MenuItem) Draw ¶
func (c *MenuItem) Draw(ctx ui.DrawContext)
type MessageBox ¶
type MessageBox struct { Dialog // contains filtered or unexported fields }
func NewMessageBox ¶
func NewMessageBox(parent uiinterfaces.Widget, typeOfDialog string) *MessageBox
func (*MessageBox) OnInit ¶
func (c *MessageBox) OnInit()
func (*MessageBox) SetHeader ¶
func (c *MessageBox) SetHeader(header string)
func (*MessageBox) SetText ¶
func (c *MessageBox) SetText(text string)
type MonthSelector ¶
type MonthSelector struct { Container Image image.Image MonthChanged func() // contains filtered or unexported fields }
func NewMonthSelector ¶
func NewMonthSelector(parent uiinterfaces.Widget) *MonthSelector
func (*MonthSelector) ControlType ¶
func (c *MonthSelector) ControlType() string
func (*MonthSelector) Month ¶
func (c *MonthSelector) Month() int
func (*MonthSelector) SetEnabled ¶
func (c *MonthSelector) SetEnabled(enabled bool)
func (*MonthSelector) SetMonth ¶
func (c *MonthSelector) SetMonth(month int)
func (*MonthSelector) Subclass ¶
func (c *MonthSelector) Subclass() string
func (*MonthSelector) UpdateStyle ¶
func (c *MonthSelector) UpdateStyle()
func (*MonthSelector) XExpandable ¶
func (c *MonthSelector) XExpandable() bool
func (*MonthSelector) YExpandable ¶
func (c *MonthSelector) YExpandable() bool
type Panel ¶
type Panel struct {
Container
}
func NewPanel ¶
func NewPanel(parent uiinterfaces.Widget) *Panel
func NewRootPanel ¶
func NewRootPanel(parentWindow uiinterfaces.Window) *Panel
func (*Panel) AddButtonOnGrid ¶
func (*Panel) AddCheckBoxOnGrid ¶
func (*Panel) AddColorPickerOnGrid ¶
func (c *Panel) AddColorPickerOnGrid(gridX int, gridY int) *ColorPicker
func (*Panel) AddDateTimePickerOnGrid ¶
func (c *Panel) AddDateTimePickerOnGrid(gridX int, gridY int) *DateTimePicker
func (*Panel) AddGroupBoxOnGrid ¶
func (*Panel) AddImageBoxOnGrid ¶
func (*Panel) AddProgressBarOnGrid ¶
func (c *Panel) AddProgressBarOnGrid(gridX int, gridY int) *ProgressBar
func (*Panel) AddRadioButtonOnGrid ¶
func (c *Panel) AddRadioButtonOnGrid(gridX int, gridY int, text string, onCheckChanged func(checkBox *RadioButton, checked bool)) *RadioButton
func (*Panel) AddSplitContainerOnGrid ¶
func (c *Panel) AddSplitContainerOnGrid(gridX int, gridY int) *SplitContainer
func (*Panel) AddTabControlOnGrid ¶
func (c *Panel) AddTabControlOnGrid(gridX int, gridY int) *TabControl
func (*Panel) AddTextBlockOnGrid ¶
func (*Panel) AddTextBoxExtOnGrid ¶
func (c *Panel) AddTextBoxExtOnGrid(gridX int, gridY int, text string, onSelect func(textBoxExt *TextBoxExt)) *TextBoxExt
func (*Panel) ControlType ¶
func (*Panel) InitControl ¶
func (c *Panel) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget)
func (*Panel) SetEnabled ¶
func (*Panel) UpdateStyle ¶
func (c *Panel) UpdateStyle()
type PopupMenu ¶
type PopupMenu struct { Panel CloseEvent func() // contains filtered or unexported fields }
func NewPopupMenu ¶
func NewPopupMenu(parent uiinterfaces.Widget) *PopupMenu
func (*PopupMenu) AddItemWithSubmenu ¶
func (*PopupMenu) AddItemWithUiResImage ¶
func (*PopupMenu) ClosePopup ¶
func (c *PopupMenu) ClosePopup()
func (*PopupMenu) ControlType ¶
func (*PopupMenu) DisposeMenu ¶
func (c *PopupMenu) DisposeMenu()
func (*PopupMenu) RemoveAllItems ¶
func (c *PopupMenu) RemoveAllItems()
type PopupMenuItem ¶
type PopupMenuItem struct { Control OnClick func(event *uievents.Event) Image image.Image ImageResource []byte KeyCombination string AdjustColorForImage bool // contains filtered or unexported fields }
func (*PopupMenuItem) ControlType ¶
func (c *PopupMenuItem) ControlType() string
func (*PopupMenuItem) Dispose ¶
func (c *PopupMenuItem) Dispose()
func (*PopupMenuItem) Draw ¶
func (c *PopupMenuItem) Draw(ctx ui.DrawContext)
func (*PopupMenuItem) MouseClick ¶
func (c *PopupMenuItem) MouseClick(event *uievents.MouseClickEvent)
func (*PopupMenuItem) MouseEnter ¶
func (c *PopupMenuItem) MouseEnter()
func (*PopupMenuItem) MouseLeave ¶
func (c *PopupMenuItem) MouseLeave()
func (*PopupMenuItem) MouseMove ¶
func (c *PopupMenuItem) MouseMove(event *uievents.MouseMoveEvent)
func (*PopupMenuItem) OnInit ¶
func (c *PopupMenuItem) OnInit()
func (*PopupMenuItem) SetInnerMenu ¶
func (c *PopupMenuItem) SetInnerMenu(menu *PopupMenu)
func (*PopupMenuItem) SetText ¶
func (c *PopupMenuItem) SetText(text string)
type ProgressBar ¶
type ProgressBar struct { TextBlock // contains filtered or unexported fields }
func NewProgressBar ¶
func NewProgressBar(parent uiinterfaces.Widget) *ProgressBar
func (*ProgressBar) ControlType ¶
func (c *ProgressBar) ControlType() string
func (*ProgressBar) Draw ¶
func (c *ProgressBar) Draw(ctx ui.DrawContext)
func (*ProgressBar) OnInit ¶
func (c *ProgressBar) OnInit()
func (*ProgressBar) SetMax ¶
func (c *ProgressBar) SetMax(max int)
func (*ProgressBar) SetMin ¶
func (c *ProgressBar) SetMin(min int)
func (*ProgressBar) SetMinMax ¶
func (c *ProgressBar) SetMinMax(min int, max int)
func (*ProgressBar) SetValue ¶
func (c *ProgressBar) SetValue(value int)
func (*ProgressBar) Subclass ¶
func (c *ProgressBar) Subclass() string
type RadioButton ¶
type RadioButton struct { Container OnCheckedChanged func(checkBox *RadioButton, checked bool) // contains filtered or unexported fields }
func NewRadioButton ¶
func NewRadioButton(parent uiinterfaces.Widget, text string) *RadioButton
func (*RadioButton) ClearRadioButtons ¶
func (c *RadioButton) ClearRadioButtons()
func (*RadioButton) ControlType ¶
func (c *RadioButton) ControlType() string
func (*RadioButton) InitControl ¶
func (c *RadioButton) InitControl(parent uiinterfaces.Widget, w uiinterfaces.Widget)
func (*RadioButton) IsChecked ¶
func (c *RadioButton) IsChecked() bool
func (*RadioButton) MouseClick ¶
func (c *RadioButton) MouseClick(event *uievents.MouseClickEvent)
func (*RadioButton) SetChecked ¶
func (c *RadioButton) SetChecked(isChecked bool)
type Space ¶
type Space struct { Control // contains filtered or unexported fields }
func NewSpace ¶
func NewSpace(parent uiinterfaces.Widget) *Space
func (*Space) ControlType ¶
func (*Space) Draw ¶
func (c *Space) Draw(ctx ui.DrawContext)
type SpinBox ¶
type SpinBox struct { Container OnValueChanged func(spinBox *SpinBox, value float64) // contains filtered or unexported fields }
func NewSpinBox ¶
func NewSpinBox(parent uiinterfaces.Widget) *SpinBox
func (*SpinBox) MouseWheel ¶
func (c *SpinBox) MouseWheel(event *uievents.MouseWheelEvent)
func (*SpinBox) SetIncrement ¶
func (*SpinBox) SetMaxValue ¶
func (*SpinBox) SetMinValue ¶
func (*SpinBox) SetPrecision ¶
type SplitContainer ¶
type SplitContainer struct { Panel Panel1 *Panel Panel2 *Panel // contains filtered or unexported fields }
func NewSplitContainer ¶
func NewSplitContainer(parent uiinterfaces.Widget) *SplitContainer
func (*SplitContainer) ControlType ¶
func (c *SplitContainer) ControlType() string
func (*SplitContainer) Dispose ¶
func (c *SplitContainer) Dispose()
func (*SplitContainer) Draw ¶
func (c *SplitContainer) Draw(ctx ui.DrawContext)
func (*SplitContainer) FindWidgetUnderPointer ¶
func (c *SplitContainer) FindWidgetUnderPointer(x, y int) uiinterfaces.Widget
func (*SplitContainer) MouseDown ¶
func (c *SplitContainer) MouseDown(event *uievents.MouseDownEvent)
func (*SplitContainer) MouseMove ¶
func (c *SplitContainer) MouseMove(event *uievents.MouseMoveEvent)
func (*SplitContainer) MouseUp ¶
func (c *SplitContainer) MouseUp(event *uievents.MouseUpEvent)
func (*SplitContainer) SetHeight ¶
func (c *SplitContainer) SetHeight(height int)
func (*SplitContainer) SetLeftCollapsed ¶
func (c *SplitContainer) SetLeftCollapsed(collapsed bool)
func (*SplitContainer) SetPosition ¶
func (c *SplitContainer) SetPosition(pos int)
func (*SplitContainer) SetPositionRelative ¶
func (c *SplitContainer) SetPositionRelative(pos float64)
func (*SplitContainer) SetRightCollapsed ¶
func (c *SplitContainer) SetRightCollapsed(collapsed bool)
func (*SplitContainer) SetWidth ¶
func (c *SplitContainer) SetWidth(height int)
func (*SplitContainer) SetWindow ¶
func (c *SplitContainer) SetWindow(w uiinterfaces.Window)
func (*SplitContainer) XExpandable ¶
func (c *SplitContainer) XExpandable() bool
func (*SplitContainer) YExpandable ¶
func (c *SplitContainer) YExpandable() bool
type TabControl ¶
type TabControl struct { Container OnNeedClose func(index int) OnAddButtonPressed func() // contains filtered or unexported fields }
func NewTabControl ¶
func NewTabControl(parent uiinterfaces.Widget) *TabControl
func (*TabControl) AddPage ¶
func (c *TabControl) AddPage() *TabPage
func (*TabControl) ControlType ¶
func (c *TabControl) ControlType() string
func (*TabControl) Dispose ¶
func (c *TabControl) Dispose()
func (*TabControl) Page ¶
func (c *TabControl) Page(index int) *TabPage
func (*TabControl) PagesCount ¶
func (c *TabControl) PagesCount() int
func (*TabControl) RemovePage ¶
func (c *TabControl) RemovePage(index int)
func (*TabControl) SetCurrentPage ¶
func (c *TabControl) SetCurrentPage(index int)
func (*TabControl) SetShowAddButton ¶
func (c *TabControl) SetShowAddButton(showAddButton bool)
func (*TabControl) Tooltip ¶
func (c *TabControl) Tooltip() string
type TabPage ¶
type TabPage struct { Panel ShowImage bool ShowText bool Img image.Image ShowCloseButton bool // contains filtered or unexported fields }
func (*TabPage) ControlType ¶
func (*TabPage) MouseMove ¶
func (c *TabPage) MouseMove(event *uievents.MouseMoveEvent)
func (*TabPage) SetVisible ¶
type Table ¶
type Table struct { Control // contains filtered or unexported fields }
func (*Table) Draw ¶
func (c *Table) Draw(ctx ui.DrawContext)
func (*Table) KeyChar ¶
func (c *Table) KeyChar(event *uievents.KeyCharEvent)
func (*Table) KeyUp ¶
func (c *Table) KeyUp(event *uievents.KeyUpEvent)
func (*Table) MouseClick ¶
func (c *Table) MouseClick(event *uievents.MouseClickEvent)
func (*Table) MouseDown ¶
func (c *Table) MouseDown(event *uievents.MouseDownEvent)
func (*Table) MouseMove ¶
func (c *Table) MouseMove(event *uievents.MouseMoveEvent)
func (*Table) MouseUp ¶
func (c *Table) MouseUp(event *uievents.MouseUpEvent)
type TableColumn ¶
type TableRow ¶
type TableRow struct { Name string Height int Cells []uiinterfaces.Widget // contains filtered or unexported fields }
type TextBlock ¶
type TextBlock struct { Control OnClick func(ev *uievents.Event) TextVAlign canvas.VAlign TextHAlign canvas.HAlign // contains filtered or unexported fields }
func NewTextBlock ¶
func NewTextBlock(parent uiinterfaces.Widget, text string) *TextBlock
func (*TextBlock) ControlType ¶
func (*TextBlock) Draw ¶
func (c *TextBlock) Draw(ctx ui.DrawContext)
func (*TextBlock) MouseDown ¶
func (c *TextBlock) MouseDown(event *uievents.MouseDownEvent)
func (*TextBlock) MouseUp ¶
func (c *TextBlock) MouseUp(event *uievents.MouseUpEvent)
func (*TextBlock) SetUnderline ¶
type TextBox ¶
type TextBox struct { Control OnTextChanged func(txtBox *TextBox, oldValue string, newValue string) // contains filtered or unexported fields }
func NewTextBox ¶
func NewTextBox(parent uiinterfaces.Widget) *TextBox
func (*TextBox) AcceptsReturn ¶
func (*TextBox) AssemblyText ¶
func (*TextBox) ControlType ¶
func (*TextBox) Draw ¶
func (c *TextBox) Draw(ctx ui.DrawContext)
func (*TextBox) KeyChar ¶
func (c *TextBox) KeyChar(event *uievents.KeyCharEvent)
func (*TextBox) KeyUp ¶
func (c *TextBox) KeyUp(event *uievents.KeyUpEvent)
func (*TextBox) MouseDown ¶
func (c *TextBox) MouseDown(event *uievents.MouseDownEvent)
func (*TextBox) MouseMove ¶
func (c *TextBox) MouseMove(event *uievents.MouseMoveEvent)
func (*TextBox) MouseUp ¶
func (c *TextBox) MouseUp(event *uievents.MouseUpEvent)
func (*TextBox) OneLineHeight ¶
func (*TextBox) ScrollToBegin ¶
func (c *TextBox) ScrollToBegin()
func (*TextBox) SelectAllText ¶
func (c *TextBox) SelectAllText()
func (*TextBox) SelectedText ¶
func (*TextBox) SetEmptyText ¶
func (*TextBox) SetMultiline ¶
func (*TextBox) SetReadOnly ¶
type TextBoxExt ¶
type TextBoxExt struct { Container CurrentItemIndex int OnSelect func(textBoxExt *TextBoxExt) OnTextChanged func(txtBox *TextBoxExt, oldValue string, newValue string) // contains filtered or unexported fields }
func NewTextBoxExt ¶
func NewTextBoxExt(parent uiinterfaces.Widget, text string, onSelect func(textBoxExt *TextBoxExt)) *TextBoxExt
func (*TextBoxExt) ControlType ¶
func (c *TextBoxExt) ControlType() string
func (*TextBoxExt) SetText ¶
func (c *TextBoxExt) SetText(text string)
func (*TextBoxExt) Text ¶
func (c *TextBoxExt) Text() string
type TextBoxSelection ¶
type ToolPanel ¶
type ToolPanel struct { Panel // contains filtered or unexported fields }
func NewToolPanel ¶
func NewToolPanel(parent uiinterfaces.Widget, title string) *ToolPanel
func (*ToolPanel) XExpandable ¶
func (*ToolPanel) YExpandable ¶
type TreeColumn ¶
type TreeColumn struct {
// contains filtered or unexported fields
}
type TreeNode ¶
type TreeView ¶
type TreeView struct { Container OnExpand func(treeView *TreeView, node *TreeNode) OnSelectedNode func(treeView *TreeView, node *TreeNode) OnBeginDrag func(treeView *TreeView, node *TreeNode) interface{} OnDropOnNode func(treeView *TreeView, node *TreeNode, parameter interface{}) // contains filtered or unexported fields }
func NewTreeView ¶
func NewTreeView(parent uiinterfaces.Widget) *TreeView
func (*TreeView) CollapseNode ¶
func (*TreeView) ControlType ¶
func (*TreeView) EnsureVisibleDisplayedNode ¶
func (c *TreeView) EnsureVisibleDisplayedNode(node *displayedNode)
func (*TreeView) EnsureVisibleNode ¶
func (*TreeView) ExpandNode ¶
func (*TreeView) GetNodeIndexInParent ¶
func (*TreeView) IsHeaderVisible ¶
func (*TreeView) RemoveAllNodes ¶
func (c *TreeView) RemoveAllNodes()
func (*TreeView) RemoveNode ¶
func (*TreeView) RemoveNodes ¶
func (*TreeView) SelectNode ¶
func (*TreeView) SelectedNode ¶
func (*TreeView) SetColumnWidth ¶
func (*TreeView) SetHeaderVisible ¶
func (*TreeView) SetNodeValue ¶
func (*TreeView) VisibleNodes ¶
type TreeViewContent ¶
type TreeViewContent struct { Control // contains filtered or unexported fields }
func NewTreeViewContent ¶
func NewTreeViewContent(parent uiinterfaces.Widget) *TreeViewContent
func (*TreeViewContent) Draw ¶
func (c *TreeViewContent) Draw(ctx ui.DrawContext)
func (*TreeViewContent) MouseClick ¶
func (c *TreeViewContent) MouseClick(event *uievents.MouseClickEvent)
func (*TreeViewContent) MouseDown ¶
func (c *TreeViewContent) MouseDown(event *uievents.MouseDownEvent)
func (*TreeViewContent) MouseDrop ¶
func (c *TreeViewContent) MouseDrop(event *uievents.MouseDropEvent)
func (*TreeViewContent) MouseMove ¶
func (c *TreeViewContent) MouseMove(event *uievents.MouseMoveEvent)
func (*TreeViewContent) MouseUp ¶
func (c *TreeViewContent) MouseUp(event *uievents.MouseUpEvent)
func (*TreeViewContent) OnScroll ¶
func (c *TreeViewContent) OnScroll(scrollPositionX int, scrollPositionY int)
func (*TreeViewContent) Tooltip ¶
func (c *TreeViewContent) Tooltip() string
type TreeViewHeader ¶
type TreeViewHeader struct { Control // contains filtered or unexported fields }
func NewTreeViewHeader ¶
func NewTreeViewHeader(parent uiinterfaces.Widget) *TreeViewHeader
func (*TreeViewHeader) ControlType ¶
func (c *TreeViewHeader) ControlType() string
func (*TreeViewHeader) Draw ¶
func (c *TreeViewHeader) Draw(ctx ui.DrawContext)
func (*TreeViewHeader) MinHeight ¶
func (c *TreeViewHeader) MinHeight() int
func (*TreeViewHeader) MinWidth ¶
func (c *TreeViewHeader) MinWidth() int
func (*TreeViewHeader) MouseDown ¶
func (c *TreeViewHeader) MouseDown(event *uievents.MouseDownEvent)
func (*TreeViewHeader) MouseLeave ¶
func (c *TreeViewHeader) MouseLeave()
func (*TreeViewHeader) MouseMove ¶
func (c *TreeViewHeader) MouseMove(event *uievents.MouseMoveEvent)
func (*TreeViewHeader) MouseUp ¶
func (c *TreeViewHeader) MouseUp(event *uievents.MouseUpEvent)
type VSpacer ¶
type VSpacer struct {
Control
}
func NewVSpacer ¶
func NewVSpacer(parent uiinterfaces.Widget) *VSpacer
func (*VSpacer) ControlType ¶
func (*VSpacer) Draw ¶
func (c *VSpacer) Draw(ctx ui.DrawContext)
Source Files ¶
- button.go
- checkbox.go
- color_selector.go
- colorpalette.go
- colorpicker.go
- combobox.go
- container.go
- control.go
- datetimepicker.go
- datetimepickerdialog.go
- dayofmonthselector.go
- dialog.go
- filebrowser.go
- groupbox.go
- hspacer.go
- imagebox.go
- listview.go
- menu.go
- messagebox.go
- modaldialog.go
- monthselector.go
- panel.go
- popupmenu.go
- popupmenuitem.go
- progressbar.go
- radiobutton.go
- space.go
- spinbox.go
- splitcontainer.go
- tabcontrol.go
- table.go
- textblock.go
- textbox.go
- textboxex.go
- toolpanel.go
- treeview.go
- vspacer.go
Click to show internal directories.
Click to hide internal directories.