Documentation
¶
Index ¶
- Constants
- Variables
- func AddPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
- func AddUnstyledPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
- func ColorWithAlpha(col color.Color, alpha uint8) color.Color
- func CreateForm(form Window)
- func DecodeImage(bs []byte) image.Image
- func InitDarkBlue(w Widget)
- func InitDarkGreen(w Widget)
- func InitDarkWhite(w Widget)
- func InitDefaultStyle(w Widget)
- func InitLight(w Widget)
- func NewDialogHeader(parent Widget) *dialogHeader
- func OnWindowCharCallback(w nui.Window, char rune)
- func OnWindowClose(w nui.Window)
- func OnWindowCursorPosCallback(w nui.Window, xpos float64, ypos float64)
- func OnWindowFocusCallback(w nui.Window, focused bool)
- func OnWindowScrollCallback(w nui.Window, xoff float64, yoff float64)
- func OnWindowSizeCallback(w nui.Window, width int, height int)
- func ShowErrorMessage(parent Widget, text string, header string)
- func ShowInformationMessage(parent Widget, text string, header string)
- func ShowQuestionMessageOKCancel(parent Widget, text string, header string, onOK func(), onCancel func())
- func ShowQuestionMessageYesNoCancel(parent Widget, text string, header string, onYes func(), onNo func(), ...)
- func StartMainForm(window Window)
- func StartModalForm(parent Window, window Window)
- func UnInitUI()
- type Button
- func (c *Button) ControlType() string
- func (c *Button) Draw(ctx DrawContext)
- func (c *Button) DrawBackground(ctx DrawContext)
- func (c *Button) EnabledChanged(enabled bool)
- func (c *Button) FindWidgetUnderPointer(x, y int) Widget
- func (c *Button) KeyDown(event *KeyDownEvent) bool
- func (c *Button) MouseDown(event *MouseDownEvent)
- func (c *Button) MouseEnter()
- func (c *Button) MouseLeave()
- func (c *Button) MouseUp(event *MouseUpEvent)
- func (c *Button) Press() bool
- 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) SetImageBeforeText(imageBeforeText bool)
- func (c *Button) SetImageDisabled(img image.Image)
- func (c *Button) SetImageSize(width, height int)
- func (c *Button) SetPadding(padding int)
- func (c *Button) SetShowImage(showImage bool)
- func (c *Button) SetShowText(showText bool)
- func (c *Button) SetText(text string)
- func (c *Button) SetTextHAlign(textHAlign canvas.HAlign)
- func (c *Button) SetTextImageVerticalOrientation(textImageVerticalOrientation bool)
- func (c *Button) SetTextVAlign(textVAlign canvas.VAlign)
- func (c *Button) Subclass() string
- func (c *Button) Text() string
- func (c *Button) TextHAlign() canvas.HAlign
- func (c *Button) TextVAlign() canvas.VAlign
- type CSS
- type CSSLine
- type CSSProperty
- type CheckBox
- func (c *CheckBox) ControlType() string
- func (c *CheckBox) Dispose()
- func (c *CheckBox) EnabledChanged(enabled bool)
- func (c *CheckBox) InitControl(parent Widget, w Widget)
- func (c *CheckBox) IsChecked() bool
- func (c *CheckBox) MouseClick(event *MouseClickEvent)
- func (c *CheckBox) SetChecked(isChecked bool)
- func (c *CheckBox) SetEnabled(enabled bool)
- func (c *CheckBox) SetText(text string)
- func (c *CheckBox) Text() string
- type ClipSettings
- 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 DrawContext)
- func (c *ComboBox) FindWidgetUnderPointer(x, y int) Widget
- func (c *ComboBox) KeyDown(event *KeyDownEvent) bool
- func (c *ComboBox) MouseDown(event *MouseDownEvent)
- func (c *ComboBox) MouseUp(event *MouseUpEvent)
- func (c *ComboBox) Press()
- func (c *ComboBox) SetCurrentItemIndex(index int)
- func (c *ComboBox) SetCurrentItemKey(key string)
- func (c *ComboBox) ShowPopupForm()
- func (c *ComboBox) TabStop() bool
- func (c *ComboBox) UpdateStyle()
- type ComboBoxEvent
- type ComboBoxItem
- type Container
- func (c *Container) AddWidgetOnGrid(w Widget, x int, y int)
- func (c *Container) AppendPopupWidget(w Widget)
- func (c *Container) ClearFocus()
- func (c *Container) ClearHover()
- func (c *Container) ClearLayoutCache()
- func (c *Container) ClearRadioButtons()
- func (c *Container) CloseAfterPopupWidget(w Widget)
- func (c *Container) CloseAllPopup()
- func (c *Container) CloseTopPopup()
- func (c *Container) ControlType() string
- func (c *Container) Dispose()
- func (c *Container) Draw(ctx DrawContext)
- func (c *Container) FindWidgetUnderPointer(x, y int) Widget
- func (c *Container) InitControl(parent Widget, w Widget)
- func (c *Container) MaxHeight() int
- func (c *Container) MaxWidth() int
- func (c *Container) MinHeight() int
- func (c *Container) MinWidth() int
- func (c *Container) MouseClick(event *MouseClickEvent)
- func (c *Container) MouseDown(event *MouseDownEvent)
- func (c *Container) MouseDrop(event *MouseDropEvent)
- func (c *Container) MouseMove(event *MouseMoveEvent)
- func (c *Container) MouseUp(event *MouseUpEvent)
- func (c *Container) MouseValidateDrop(event *MouseValidateDropEvent)
- func (c *Container) MouseWheel(event *MouseWheelEvent)
- func (c *Container) RemoveAllWidgets()
- func (c *Container) RemoveWidget(w Widget)
- func (c *Container) SetAbsolutePositioning(absolutePositioning bool)
- func (c *Container) SetCellPadding(cellPadding int)
- func (c *Container) SetHeight(height int)
- func (c *Container) SetPanelPadding(panelPadding int)
- func (c *Container) SetSize(width int, height int)
- func (c *Container) SetWidth(width int)
- func (c *Container) String(level int) string
- func (c *Container) UpdateLayout()
- func (c *Container) UpdateStyle()
- func (c *Container) Widgets() []Widget
- func (c *Container) XExpandable() bool
- func (c *Container) YExpandable() bool
- type ContainerGridColumnInfo
- 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() IMenu
- func (c *Control) ControlType() string
- func (c *Control) CurrentStyleValueScore(subclass string, propertyName string) int
- func (c *Control) Dispose()
- func (c *Control) Disposed() bool
- func (c *Control) Draw(ctx DrawContext)
- func (c *Control) DrawBackground(ctx DrawContext)
- func (c *Control) DrawBorders(ctx DrawContext)
- func (c *Control) DrawControl(ctx DrawContext)
- func (c *Control) DrawScrollBars(ctx DrawContext)
- func (c *Control) EnabledChanged(enabled bool)
- func (c *Control) EndUpdate()
- func (c *Control) FindWidgetUnderPointer(x, y int) Widget
- func (c *Control) FirstFocusControl() Widget
- func (c *Control) Focus()
- func (c *Control) FocusChanged(focus bool)
- func (c *Control) FontBold() bool
- func (c *Control) FontFamily() string
- func (c *Control) FontItalic() bool
- func (c *Control) FontSize() float64
- func (c *Control) ForeColor() color.Color
- func (c *Control) FullPath() string
- func (c *Control) GridX() int
- func (c *Control) GridY() int
- func (c *Control) HasFocus() bool
- func (c *Control) Height() int
- func (c *Control) Hover() bool
- func (c *Control) InactiveColor() color.Color
- func (c *Control) Init()
- func (c *Control) InitControl(parent Widget, w Widget)
- func (c *Control) Initialized() bool
- func (c *Control) InnerHeight() int
- func (c *Control) InnerWidth() int
- func (c *Control) IsTabPlate() bool
- func (c *Control) IsVisible() bool
- func (c *Control) IsVisibleRec() bool
- func (c *Control) KeyChar(event *KeyCharEvent)
- func (c *Control) KeyDown(event *KeyDownEvent) bool
- func (c *Control) KeyUp(event *KeyUpEvent)
- func (c *Control) LeftBorderWidth() int
- func (c *Control) MaxHeight() int
- func (c *Control) MaxWidth() int
- func (c *Control) MinHeight() int
- func (c *Control) MinWidth() int
- func (c *Control) MouseClick(event *MouseClickEvent)
- func (c *Control) MouseCursor() nuimouse.MouseCursor
- func (c *Control) MouseDblClick(event *MouseDblClickEvent)
- func (c *Control) MouseDown(event *MouseDownEvent)
- func (c *Control) MouseDrop(event *MouseDropEvent)
- func (c *Control) MouseEnter()
- func (c *Control) MouseLeave()
- func (c *Control) MouseMove(event *MouseMoveEvent)
- func (c *Control) MouseUp(event *MouseUpEvent)
- func (c *Control) MouseValidateDrop(event *MouseValidateDropEvent)
- func (c *Control) MouseWheel(event *MouseWheelEvent)
- func (c *Control) Name() string
- func (c *Control) NextFocusControl() Widget
- func (c *Control) OnInit()
- func (c *Control) OnScroll(scrollPositionX int, scrollPositionY int)
- func (c *Control) Parent() Widget
- func (c *Control) ProcessFindWidgetUnderPointer(x, y int) Widget
- func (c *Control) ProcessKeyChar(event *KeyCharEvent)
- func (c *Control) ProcessKeyDown(event *KeyDownEvent) bool
- func (c *Control) ProcessKeyUp(event *KeyUpEvent)
- func (c *Control) ProcessMouseClick(event *MouseClickEvent)
- func (c *Control) ProcessMouseDblClick(event *MouseDblClickEvent)
- func (c *Control) ProcessMouseDown(event *MouseDownEvent)
- func (c *Control) ProcessMouseMove(event *MouseMoveEvent)
- func (c *Control) ProcessMouseUp(event *MouseUpEvent)
- func (c *Control) ProcessMouseWheel(event *MouseWheelEvent)
- func (c *Control) RectClientAreaOnWindow() (int, int)
- func (c *Control) RectOnWindow() (int, int)
- func (c *Control) ResetInnerSizeDirect()
- func (c *Control) RightBorderWidth() int
- func (c *Control) ScrollEnsureVisible(x1, y1 int)
- func (c *Control) ScrollOffsetX() int
- func (c *Control) ScrollOffsetY() int
- func (c *Control) SetAnchors(anchors int)
- func (c *Control) SetBackColor(backColor color.Color)
- func (c *Control) SetBorderBottom(width int, col color.Color)
- func (c *Control) SetBorderLeft(width int, col color.Color)
- func (c *Control) SetBorderRight(width int, col color.Color)
- func (c *Control) SetBorderTop(width int, col color.Color)
- func (c *Control) SetBorders(width int, col color.Color)
- func (c *Control) SetContextMenu(menu IMenu)
- func (c *Control) SetEnabled(enabled bool)
- func (c *Control) SetFixedSize(w int, h int)
- func (c *Control) SetFocus(focus bool)
- func (c *Control) SetFontSize(fontSize float64)
- func (c *Control) SetForeColor(foreColor color.Color)
- func (c *Control) SetGridPos(x int, y int)
- func (c *Control) SetGridX(gridX int)
- func (c *Control) SetGridY(gridY int)
- func (c *Control) SetHeight(height int)
- func (c *Control) SetHorizontalScrollVisible(horizontalScrollVisible bool)
- func (c *Control) SetHover(hover bool)
- func (c *Control) SetInnerSizeDirect(w int, h int)
- func (c *Control) SetIsTabPlate(isTabPlate bool)
- func (c *Control) SetMaxHeight(maxHeight int)
- func (c *Control) SetMaxWidth(maxWidth int)
- func (c *Control) SetMinHeight(minHeight int)
- func (c *Control) SetMinWidth(minWidth int)
- func (c *Control) SetMouseCursor(cursor nuimouse.MouseCursor)
- func (c *Control) SetName(name string)
- func (c *Control) SetOnKeyDown(callback func(event *KeyDownEvent) bool)
- func (c *Control) SetParent(p Widget)
- func (c *Control) SetPos(x, y int)
- func (c *Control) SetSize(w, h int)
- func (c *Control) SetStyledValue(subclass string, propertyName string, value string, score int)
- func (c *Control) SetTabIndex(index int)
- func (c *Control) SetTheme(theme string)
- func (c *Control) SetTooltip(text string)
- func (c *Control) SetVerticalScrollVisible(verticalScrollVisible bool)
- func (c *Control) SetVisible(visible bool)
- func (c *Control) SetWidth(width int)
- func (c *Control) SetWindow(w Window)
- func (c *Control) SetX(x int)
- func (c *Control) SetXExpandable(xExpandable bool)
- func (c *Control) SetY(y int)
- func (c *Control) SetYExpandable(yExpandable bool)
- func (c *Control) String(level int) string
- func (c *Control) StyledValue(subclass string, propertyName string) interface{}
- func (c *Control) Subclass() string
- func (c *Control) TabIndex() int
- func (c *Control) Text() string
- func (c *Control) Theme() string
- func (c *Control) Tooltip() string
- func (c *Control) TopBorderWidth() int
- func (c *Control) TranslateX(x int) int
- func (c *Control) TranslateY(y int) int
- func (c *Control) Update(source string)
- func (c *Control) UpdateLayout()
- func (c *Control) UpdateStyle()
- func (c *Control) VisibleInnerRect() Rect
- func (c *Control) Widgets() []Widget
- func (c *Control) Width() int
- func (c *Control) Window() Window
- func (c *Control) X() int
- func (c *Control) XExpandable() bool
- func (c *Control) Y() int
- func (c *Control) YExpandable() bool
- type CoordinateTranslator
- 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 *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 DrawContext
- type DrawContextBase
- func (c *DrawContextBase) Finish()
- func (c *DrawContextBase) InitBase()
- func (c *DrawContextBase) Load()
- func (c *DrawContextBase) Save()
- func (c *DrawContextBase) SetColor(col color.Color)
- func (c *DrawContextBase) SetFontFamily(fontFamily string)
- func (c *DrawContextBase) SetFontSize(s float64)
- func (c *DrawContextBase) SetStrokeWidth(w int)
- func (c *DrawContextBase) SetTextAlign(h canvas.HAlign, v canvas.VAlign)
- func (c *DrawContextBase) SetUnderline(underline bool)
- func (c *DrawContextBase) TranslateAndClip(x, y, width, height int)
- type DrawContextGL
- func (c *DrawContextGL) Clip(x, y, width, height int)
- func (c *DrawContextGL) DrawEllipse(x, y, width, height int)
- func (c *DrawContextGL) DrawPolygon(x, y, width, height int)
- func (c *DrawContextGL) DrawText(x, y, width, height int, text string)
- func (c *DrawContextGL) SetColor(col color.Color)
- func (c *DrawContextGL) SetFont(fontFamily string, fontSize float64, bold, italic, underline bool)
- func (c *DrawContextGL) UnClip()
- type DrawContextSW
- func (c *DrawContextSW) ClipIn(x, y, width, height int)
- func (c *DrawContextSW) ClippedRegion() (int, int, int, int)
- func (c *DrawContextSW) DrawEllipse(x, y, width, height int)
- func (c *DrawContextSW) DrawImage(x, y, width, height int, img image.Image)
- func (c *DrawContextSW) DrawLine(x1, y1, x2, y2 int)
- func (c *DrawContextSW) DrawRect(x, y, width, height int)
- func (c *DrawContextSW) DrawText(x, y, width, height int, text string)
- func (c *DrawContextSW) FillRect(x, y, width, height int)
- func (c *DrawContextSW) Finish(rgba *image.RGBA)
- func (c *DrawContextSW) GG() *gg.Context
- func (c *DrawContextSW) GraphContextImage() *image.RGBA
- func (c *DrawContextSW) Init()
- func (c *DrawContextSW) Load()
- func (c *DrawContextSW) MeasureText(text string) (int, int)
- func (c *DrawContextSW) Save()
- func (c *DrawContextSW) State() canvas.CanvasDirectState
- func (c *DrawContextSW) Translate(x, y int)
- func (c *DrawContextSW) TranslatedX() int
- func (c *DrawContextSW) TranslatedY() int
- type Event
- type Form
- func (c *Form) Accept()
- func (c *Form) AcceptButton(ev *Event)
- func (c *Form) AddWidget(w Widget)
- func (c *Form) AppendPopup(w Widget)
- func (c *Form) BeginDrag(draggingObject interface{})
- func (c *Form) CentralWidget() Widget
- func (c *Form) Close()
- func (c *Form) CloseAfterPopupWidget(w Widget)
- func (c *Form) CloseAllPopup()
- func (c *Form) CloseTopPopup()
- func (c *Form) ControlRemoved()
- func (c *Form) CreateModalForm(window Window)
- func (c *Form) CurrentDraggingObject() interface{}
- func (c *Form) DialogResult() bool
- func (c *Form) Dispose()
- func (c *Form) Draw(rgba *image.RGBA) bool
- func (c *Form) FocusedWidget() Widget
- func (c *Form) Height() int
- func (c *Form) Id() int
- func (c *Form) Init()
- func (c *Form) IsMainWindow() bool
- func (c *Form) KeyModifiers() nuikey.KeyModifiers
- func (c *Form) LoopUI()
- func (c *Form) LoopUI_OpenGL()
- func (c *Form) MainTimer()
- func (c *Form) MakeTimerAndStart(period int64, handler func(timer *FormTimer)) *FormTimer
- func (c *Form) Maximize()
- func (c *Form) Menu() Menu
- func (c *Form) Modal() bool
- func (c *Form) Move(x, y int)
- func (c *Form) NewTimer(period int64, handler func()) *FormTimer
- func (c *Form) OnClose() bool
- func (c *Form) OnInit()
- func (c *Form) OpenFileDialog() string
- func (c *Form) Panel() *Panel
- func (c *Form) Parent() Window
- func (c *Form) Popup() bool
- func (c *Form) Position() Point
- func (c *Form) ProcessCharInput(ch rune)
- func (c *Form) ProcessClick(x, y int, button nuimouse.MouseButton)
- func (c *Form) ProcessFocus()
- func (c *Form) ProcessKeyDown(key nuikey.Key)
- func (c *Form) ProcessKeyModifiers(shift bool, control bool, alt bool)
- func (c *Form) ProcessKeyUp(key nuikey.Key)
- func (c *Form) ProcessMouseDown(button nuimouse.MouseButton)
- func (c *Form) ProcessMouseMove(x, y int)
- func (c *Form) ProcessMouseUp(button nuimouse.MouseButton)
- func (c *Form) ProcessMouseWheel(delta int)
- func (c *Form) ProcessReturnDown() bool
- func (c *Form) ProcessReturnUp()
- func (c *Form) ProcessTabDown()
- func (c *Form) ProcessTabUp()
- func (c *Form) ProcessWindowMove(x, y int)
- func (c *Form) ProcessWindowResize(width, height int)
- func (c *Form) Reject()
- func (c *Form) RejectButton(ev *Event)
- func (c *Form) RemoveTimer(timer *FormTimer)
- func (c *Form) Resize(width, height int)
- func (c *Form) SelectColorDialog(col color.Color, onColorChanged func(color color.Color)) (bool, color.Color)
- func (c *Form) SetAcceptButton(acceptButton *Button)
- func (c *Form) SetFocusForWidget(w Widget)
- func (c *Form) SetIcon(img image.Image)
- func (c *Form) SetId(id int)
- func (c *Form) SetIsMainWindow(isMainWindow bool)
- func (c *Form) SetModal(modal bool)
- func (c *Form) SetMouseCursor(cur nuimouse.MouseCursor)
- func (c *Form) SetParent(window Window)
- func (c *Form) SetPopup(popup bool)
- func (c *Form) SetRejectButton(rejectButton *Button)
- func (c *Form) SetShowMaximazed(maximazed bool)
- func (c *Form) SetTheme(theme string)
- func (c *Form) SetTitle(title string)
- func (c *Form) SetWindow(w nui.Window)
- func (c *Form) Show()
- func (c *Form) ShowMaximazed() bool
- func (c *Form) ShowTooltip(x, y int, text string)
- func (c *Form) String() string
- func (c *Form) Title() string
- func (c *Form) UpdateLayout()
- func (c *Form) UpdateMenu()
- func (c *Form) UpdateStyle()
- func (c *Form) UpdateWindow(source string)
- func (c *Form) Width() int
- func (c *Form) Window() nui.Window
- type FormSizeChangedEvent
- type FormTimer
- type GroupBox
- type HSpacer
- type IEvent
- type IMenu
- type ImageBox
- func (c *ImageBox) ControlType() string
- func (c *ImageBox) Draw(ctx DrawContext)
- func (c *ImageBox) MaxHeight() int
- func (c *ImageBox) MaxWidth() int
- func (c *ImageBox) MinHeight() int
- func (c *ImageBox) MinWidth() int
- func (c *ImageBox) SetImage(img image.Image)
- func (c *ImageBox) SetScaling(scaling ImageBoxScale)
- type ImageBoxScale
- type ImageCache
- type KeyCharEvent
- type KeyDownEvent
- type KeyUpEvent
- type LineEdit
- func (c *LineEdit) AcceptsReturn() bool
- func (c *LineEdit) AssemblyText(lines []string) string
- func (c *LineEdit) ControlType() string
- func (c *LineEdit) Dispose()
- func (c *LineEdit) Draw(ctx DrawContext)
- func (c *LineEdit) KeyChar(event *KeyCharEvent)
- func (c *LineEdit) KeyDown(event *KeyDownEvent) bool
- func (c *LineEdit) KeyUp(event *KeyUpEvent)
- func (c *LineEdit) MinHeight() int
- func (c *LineEdit) MouseDown(event *MouseDownEvent)
- func (c *LineEdit) MouseMove(event *MouseMoveEvent)
- func (c *LineEdit) MouseUp(event *MouseUpEvent)
- func (c *LineEdit) OnInit()
- func (c *LineEdit) OneLineHeight() int
- func (c *LineEdit) ScrollToBegin()
- func (c *LineEdit) SelectAllText()
- func (c *LineEdit) SelectedText() string
- func (c *LineEdit) SetEmptyText(text string)
- func (c *LineEdit) SetIsPassword(isPassword bool)
- func (c *LineEdit) SetReadOnly(readonly bool)
- func (c *LineEdit) SetText(text string)
- func (c *LineEdit) Text() string
- type LineEditSelection
- 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) Construct()
- func (c *ListView) ControlType() string
- func (c *ListView) Dispose()
- func (c *ListView) Draw(ctx DrawContext)
- func (c *ListView) EnabledChanged(enabled bool)
- func (c *ListView) EnsureVisibleItem(index int)
- func (c *ListView) Focus()
- func (c *ListView) IsHeaderVisible() bool
- func (c *ListView) Item(rowIndex int) *ListViewItem
- func (c *ListView) ItemsCount() int
- func (c *ListView) OnInit()
- func (c *ListView) RemoveColumns()
- func (c *ListView) RemoveItems()
- func (c *ListView) SelectAllItems()
- func (c *ListView) SelectItem(rowIndex int)
- func (c *ListView) SelectItemSelection(rowIndex int, selected bool)
- func (c *ListView) SelectedItem() *ListViewItem
- func (c *ListView) SelectedItemIndex() int
- func (c *ListView) SelectedItems() []*ListViewItem
- func (c *ListView) SelectedItemsIndexes() []int
- func (c *ListView) SetColumnTextAlign(columnIndex int, hAlign canvas.HAlign)
- func (c *ListView) SetColumnWidth(colIndex int, width int)
- func (c *ListView) SetCurrentRow(row int, byMouse bool)
- func (c *ListView) SetHeaderVisible(visible bool)
- func (c *ListView) SetItemValue(rowIndex int, columnIndex int, text string)
- func (c *ListView) TabStop() bool
- func (c *ListView) UnselectAllItems()
- func (c *ListView) UpdateStyle()
- func (c *ListView) VisibleItems() []*ListViewItem
- type ListViewColumn
- type ListViewContent
- type ListViewHeader
- func (c *ListViewHeader) ControlType() string
- func (c *ListViewHeader) Draw(ctx DrawContext)
- func (c *ListViewHeader) MinHeight() int
- func (c *ListViewHeader) MinWidth() int
- func (c *ListViewHeader) MouseDown(event *MouseDownEvent)
- func (c *ListViewHeader) MouseLeave()
- func (c *ListViewHeader) MouseMove(event *MouseMoveEvent)
- func (c *ListViewHeader) MouseUp(event *MouseUpEvent)
- type ListViewItem
- type Menu
- func (c *Menu) AddItem(text string) *MenuItem
- func (c *Menu) ControlType() string
- func (c *Menu) Draw(ctx DrawContext)
- func (c *Menu) FocusChanged(focus bool)
- func (c *Menu) IsVisible() bool
- func (c *Menu) MouseClick(event *MouseClickEvent)
- func (c *Menu) MouseLeave()
- func (c *Menu) MouseMove(event *MouseMoveEvent)
- func (c *Menu) SetVisible(visible bool)
- func (c *Menu) ShowSubmenu(item *MenuItem)
- type MenuItem
- type MessageBox
- type MouseClickEvent
- type MouseDblClickEvent
- type MouseDownEvent
- type MouseDropEvent
- type MouseEvent
- type MouseMoveEvent
- type MouseUpEvent
- type MouseValidateDropEvent
- type MouseWheelEvent
- type Panel
- func (c *Panel) AddButton(text string, onPress func(event *Event)) *Button
- func (c *Panel) AddButtonOnGrid(gridX int, gridY int, text string, onPress func(event *Event)) *Button
- func (c *Panel) AddCheckBox(text string) *CheckBox
- func (c *Panel) AddCheckBoxOnGrid(gridX int, gridY int, text string) *CheckBox
- func (c *Panel) AddComboBox() *ComboBox
- func (c *Panel) AddComboBoxOnGrid(gridX int, gridY int) *ComboBox
- func (c *Panel) AddGroupBox(title string) *GroupBox
- func (c *Panel) AddGroupBoxOnGrid(gridX int, gridY int, title string) *GroupBox
- func (c *Panel) AddHPanel() *Panel
- func (c *Panel) AddHSpacer() *HSpacer
- func (c *Panel) AddHSpacerOnGrid(gridX int, gridY int) *HSpacer
- func (c *Panel) AddImageBox(img image.Image) *ImageBox
- func (c *Panel) AddImageBoxOnGrid(gridX int, gridY int, img image.Image) *ImageBox
- func (c *Panel) AddListView() *ListView
- func (c *Panel) AddListViewOnGrid(gridX int, gridY int) *ListView
- func (c *Panel) AddPanelOnGrid(gridX int, gridY int) *Panel
- func (c *Panel) AddProgressBar() *ProgressBar
- 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) AddTabControl() *TabControl
- func (c *Panel) AddTabControlOnGrid(gridX int, gridY int) *TabControl
- func (c *Panel) AddTableOnGrid(gridX int, gridY int) *Table
- func (c *Panel) AddTextBlock(text string) *TextBlock
- func (c *Panel) AddTextBlockOnGrid(gridX int, gridY int, text string) *TextBlock
- func (c *Panel) AddTextBox() *TextBox
- func (c *Panel) AddTextBoxOnGrid(gridX int, gridY int) *TextBox
- func (c *Panel) AddVPanel() *Panel
- func (c *Panel) AddVSpacer() *VSpacer
- func (c *Panel) AddVSpacerOnGrid(gridX int, gridY int) *VSpacer
- func (c *Panel) AddWidget(w Widget)
- func (c *Panel) ControlType() string
- func (c *Panel) Dispose()
- func (c *Panel) InitControl(parent Widget, w Widget)
- func (c *Panel) SetEnabled(enabled bool)
- func (c *Panel) UpdateStyle()
- type Point
- type PopupMenu
- func (c *PopupMenu) AddItem(text string, onClick func(event *Event), img image.Image, ...) *PopupMenuItem
- func (c *PopupMenu) AddItemWithSubmenu(text string, img image.Image, innerMenu *PopupMenu) *PopupMenuItem
- func (c *PopupMenu) AddItemWithUiResImage(text string, onClick func(event *Event), img []byte, keyCombination string) *PopupMenuItem
- func (c *PopupMenu) ClosePopup()
- func (c *PopupMenu) ControlType() string
- func (c *PopupMenu) Dispose()
- func (c *PopupMenu) DisposeMenu()
- func (c *PopupMenu) OnInit()
- func (c *PopupMenu) RemoveAllItems()
- func (c *PopupMenu) ShowMenu(x int, y int)
- type PopupMenuItem
- func (c *PopupMenuItem) ControlType() string
- func (c *PopupMenuItem) Dispose()
- func (c *PopupMenuItem) Draw(ctx DrawContext)
- func (c *PopupMenuItem) MouseClick(event *MouseClickEvent)
- func (c *PopupMenuItem) MouseEnter()
- func (c *PopupMenuItem) MouseLeave()
- func (c *PopupMenuItem) MouseMove(event *MouseMoveEvent)
- func (c *PopupMenuItem) OnInit()
- func (c *PopupMenuItem) SetInnerMenu(menu *PopupMenu)
- func (c *PopupMenuItem) SetText(text string)
- type ProgressBar
- func (c *ProgressBar) ControlType() string
- func (c *ProgressBar) Draw(ctx DrawContext)
- func (c *ProgressBar) IsZero(value float64) bool
- func (c *ProgressBar) OnInit()
- func (c *ProgressBar) SetMaxValue(max float64)
- func (c *ProgressBar) SetMinMaxValue(min float64, max float64)
- func (c *ProgressBar) SetMinValue(min float64)
- func (c *ProgressBar) SetValue(value float64)
- func (c *ProgressBar) SetValueAndText(value float64, text string)
- func (c *ProgressBar) Subclass() string
- type RadioButton
- type Rect
- type SpinBox
- func (c *SpinBox) Dispose()
- func (c *SpinBox) MouseWheel(event *MouseWheelEvent)
- func (c *SpinBox) SetIncrement(increment float64)
- func (c *SpinBox) SetMaxValue(maxValue float64)
- func (c *SpinBox) SetMinValue(minValue float64)
- func (c *SpinBox) SetPrecision(precision int)
- func (c *SpinBox) SetValue(value float64)
- func (c *SpinBox) Value() float64
- type SplitContainer
- func (c *SplitContainer) ControlType() string
- func (c *SplitContainer) Dispose()
- func (c *SplitContainer) Draw(ctx DrawContext)
- func (c *SplitContainer) FindWidgetUnderPointer(x, y int) Widget
- func (c *SplitContainer) MouseDown(event *MouseDownEvent)
- func (c *SplitContainer) MouseMove(event *MouseMoveEvent)
- func (c *SplitContainer) MouseUp(event *MouseUpEvent)
- func (c *SplitContainer) SetHeight(height int)
- func (c *SplitContainer) SetLeftCollapsed(collapsed bool)
- func (c *SplitContainer) SetPosition(pos int)
- func (c *SplitContainer) SetPositionRelative(pos float64)
- func (c *SplitContainer) SetRightCollapsed(collapsed bool)
- func (c *SplitContainer) SetWidth(height int)
- func (c *SplitContainer) SetWindow(w Window)
- func (c *SplitContainer) XExpandable() bool
- func (c *SplitContainer) YExpandable() bool
- type StateStruct
- type Style
- 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 DrawContext)
- func (c *Table) KeyChar(event *KeyCharEvent)
- func (c *Table) KeyDown(event *KeyDownEvent) bool
- func (c *Table) KeyUp(event *KeyUpEvent)
- func (c *Table) MouseClick(event *MouseClickEvent)
- func (c *Table) MouseDown(event *MouseDownEvent)
- func (c *Table) MouseMove(event *MouseMoveEvent)
- func (c *Table) MouseUp(event *MouseUpEvent)
- type TableColumn
- type TableRow
- type TextBlock
- func (c *TextBlock) ControlType() string
- func (c *TextBlock) Draw(ctx DrawContext)
- func (c *TextBlock) MinHeight() int
- func (c *TextBlock) MinWidth() int
- func (c *TextBlock) MouseDown(event *MouseDownEvent)
- func (c *TextBlock) MouseUp(event *MouseUpEvent)
- func (c *TextBlock) SetText(text string)
- func (c *TextBlock) SetUnderline(underline bool)
- func (c *TextBlock) Text() string
- type TextBox
- func (c *TextBox) AcceptsReturn() bool
- func (c *TextBox) AssemblyText(lines []string) string
- func (c *TextBox) ControlType() string
- func (c *TextBox) Dispose()
- func (c *TextBox) Draw(ctx DrawContext)
- func (c *TextBox) KeyChar(event *KeyCharEvent)
- func (c *TextBox) KeyDown(event *KeyDownEvent) bool
- func (c *TextBox) KeyUp(event *KeyUpEvent)
- func (c *TextBox) MinHeight() int
- func (c *TextBox) MouseDown(event *MouseDownEvent)
- func (c *TextBox) MouseMove(event *MouseMoveEvent)
- func (c *TextBox) MouseUp(event *MouseUpEvent)
- func (c *TextBox) OnInit()
- func (c *TextBox) OneLineHeight() int
- func (c *TextBox) ScrollToBegin()
- func (c *TextBox) SelectAllText()
- func (c *TextBox) SelectedText() string
- func (c *TextBox) SetEmptyText(text string)
- func (c *TextBox) SetIsPassword(isPassword bool)
- func (c *TextBox) SetMultiline(multiline bool)
- func (c *TextBox) SetReadOnly(readonly bool)
- func (c *TextBox) SetText(text string)
- func (c *TextBox) Text() string
- type TextBoxSelection
- type ToolPanel
- type UserDataContainer
- type VSpacer
- type Widget
- type WidgetEvent
- type Window
Constants ¶
View Source
const ( StyleLight = 0 StyleDarkBlue = 1 StyleDarkWhite = 2 )
View Source
const ( DefaultWindowWidth = 640 DefaultWindowHeight = 480 )
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 ¶
View Source
var CurrentStyle = StyleDarkWhite
View Source
var DefaultBackColor color.Color
View Source
var ServiceDrawBorders = false
Functions ¶
func AddPropertyToWidget ¶ added in v1.0.2
func AddPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
func AddUnstyledPropertyToWidget ¶ added in v1.0.2
func AddUnstyledPropertyToWidget(w Widget, name string, propertyType uiproperties.PropertyType) *uiproperties.Property
func CreateForm ¶ added in v1.0.2
func CreateForm(form Window)
func DecodeImage ¶ added in v1.0.3
func InitDarkBlue ¶ added in v1.0.2
func InitDarkBlue(w Widget)
func InitDarkGreen ¶ added in v1.0.2
func InitDarkGreen(w Widget)
func InitDarkWhite ¶ added in v1.0.3
func InitDarkWhite(w Widget)
func InitDefaultStyle ¶ added in v1.0.2
func InitDefaultStyle(w Widget)
func NewDialogHeader ¶ added in v1.0.2
func NewDialogHeader(parent Widget) *dialogHeader
func OnWindowCharCallback ¶ added in v1.0.2
func OnWindowClose ¶ added in v1.0.2
func OnWindowCursorPosCallback ¶ added in v1.0.2
func OnWindowFocusCallback ¶ added in v1.0.2
func OnWindowScrollCallback ¶ added in v1.0.2
func OnWindowSizeCallback ¶ added in v1.0.2
func ShowErrorMessage ¶ added in v1.0.2
func ShowInformationMessage ¶ added in v1.0.2
func ShowQuestionMessageOKCancel ¶ added in v1.0.2
func ShowQuestionMessageYesNoCancel ¶ added in v1.0.2
func StartMainForm ¶ added in v1.0.2
func StartMainForm(window Window)
func StartModalForm ¶ added in v1.0.2
Types ¶
type Button ¶ added in v1.0.2
type Button struct {
Container
// Events
OnPress func(event *Event)
// contains filtered or unexported fields
}
func (*Button) ControlType ¶ added in v1.0.2
func (*Button) Draw ¶ added in v1.0.2
func (c *Button) Draw(ctx DrawContext)
func (*Button) DrawBackground ¶ added in v1.0.2
func (c *Button) DrawBackground(ctx DrawContext)
func (*Button) EnabledChanged ¶ added in v1.0.2
func (*Button) FindWidgetUnderPointer ¶ added in v1.0.2
func (*Button) KeyDown ¶ added in v1.0.2
func (c *Button) KeyDown(event *KeyDownEvent) bool
func (*Button) MouseDown ¶ added in v1.0.2
func (c *Button) MouseDown(event *MouseDownEvent)
func (*Button) MouseEnter ¶ added in v1.0.2
func (c *Button) MouseEnter()
func (*Button) MouseLeave ¶ added in v1.0.2
func (c *Button) MouseLeave()
func (*Button) MouseUp ¶ added in v1.0.2
func (c *Button) MouseUp(event *MouseUpEvent)
func (*Button) SetChecked ¶ added in v1.0.2
func (*Button) SetDrawBackground ¶ added in v1.0.2
func (*Button) SetEnabled ¶ added in v1.0.2
func (*Button) SetForeColor ¶ added in v1.0.2
func (*Button) SetImageBeforeText ¶ added in v1.0.3
func (*Button) SetImageDisabled ¶ added in v1.0.2
func (*Button) SetImageSize ¶ added in v1.0.2
func (*Button) SetPadding ¶ added in v1.0.2
func (*Button) SetShowImage ¶ added in v1.0.2
func (*Button) SetShowText ¶ added in v1.0.2
func (*Button) SetTextHAlign ¶ added in v1.0.2
func (*Button) SetTextImageVerticalOrientation ¶ added in v1.0.2
func (*Button) SetTextVAlign ¶ added in v1.0.2
func (*Button) TextHAlign ¶ added in v1.0.2
func (*Button) TextVAlign ¶ added in v1.0.2
type CSSProperty ¶ added in v1.0.2
type CSSProperty struct {
// contains filtered or unexported fields
}
type CheckBox ¶ added in v1.0.2
type CheckBox struct {
Container
OnCheckedChanged func(checkBox *CheckBox, checked bool)
// contains filtered or unexported fields
}
func NewCheckBox ¶ added in v1.0.2
func (*CheckBox) ControlType ¶ added in v1.0.2
func (*CheckBox) EnabledChanged ¶ added in v1.0.2
func (*CheckBox) InitControl ¶ added in v1.0.2
func (*CheckBox) MouseClick ¶ added in v1.0.2
func (c *CheckBox) MouseClick(event *MouseClickEvent)
func (*CheckBox) SetChecked ¶ added in v1.0.2
func (*CheckBox) SetEnabled ¶ added in v1.0.2
type ClipSettings ¶
type ClipSettings struct {
// contains filtered or unexported fields
}
type ComboBox ¶ added in v1.0.2
type ComboBox struct {
Container
CurrentItemIndex int
Items []*ComboBoxItem
OnCurrentIndexChanged func(event *ComboBoxEvent)
// contains filtered or unexported fields
}
func NewComboBox ¶ added in v1.0.2
func (*ComboBox) ClosePopup ¶ added in v1.0.2
func (c *ComboBox) ClosePopup()
func (*ComboBox) ControlType ¶ added in v1.0.2
func (*ComboBox) CurrentItemKey ¶ added in v1.0.2
func (c *ComboBox) CurrentItemKey() interface{}
func (*ComboBox) Draw ¶ added in v1.0.2
func (c *ComboBox) Draw(ctx DrawContext)
func (*ComboBox) FindWidgetUnderPointer ¶ added in v1.0.2
func (*ComboBox) KeyDown ¶ added in v1.0.2
func (c *ComboBox) KeyDown(event *KeyDownEvent) bool
func (*ComboBox) MouseDown ¶ added in v1.0.2
func (c *ComboBox) MouseDown(event *MouseDownEvent)
func (*ComboBox) MouseUp ¶ added in v1.0.2
func (c *ComboBox) MouseUp(event *MouseUpEvent)
func (*ComboBox) SetCurrentItemIndex ¶ added in v1.0.2
func (*ComboBox) SetCurrentItemKey ¶ added in v1.0.2
func (*ComboBox) ShowPopupForm ¶ added in v1.0.2
func (c *ComboBox) ShowPopupForm()
func (*ComboBox) UpdateStyle ¶ added in v1.0.2
func (c *ComboBox) UpdateStyle()
type ComboBoxEvent ¶ added in v1.0.2
type ComboBoxEvent struct {
Event
CurrentIndex int
Item *ComboBoxItem
}
type ComboBoxItem ¶ added in v1.0.2
type ComboBoxItem struct {
UserDataContainer
Text string
}
type Container ¶ added in v1.0.2
type Container struct {
Control
Controls []Widget
PopupWidgets []Widget
// contains filtered or unexported fields
}
func (*Container) AddWidgetOnGrid ¶ added in v1.0.2
func (*Container) AppendPopupWidget ¶ added in v1.0.2
func (*Container) ClearFocus ¶ added in v1.0.2
func (c *Container) ClearFocus()
func (*Container) ClearHover ¶ added in v1.0.2
func (c *Container) ClearHover()
func (*Container) ClearLayoutCache ¶ added in v1.0.2
func (c *Container) ClearLayoutCache()
func (*Container) ClearRadioButtons ¶ added in v1.0.2
func (c *Container) ClearRadioButtons()
func (*Container) CloseAfterPopupWidget ¶ added in v1.0.2
func (*Container) CloseAllPopup ¶ added in v1.0.2
func (c *Container) CloseAllPopup()
func (*Container) CloseTopPopup ¶ added in v1.0.2
func (c *Container) CloseTopPopup()
func (*Container) ControlType ¶ added in v1.0.2
func (*Container) Draw ¶ added in v1.0.2
func (c *Container) Draw(ctx DrawContext)
func (*Container) FindWidgetUnderPointer ¶ added in v1.0.2
func (*Container) InitControl ¶ added in v1.0.2
func (*Container) MouseClick ¶ added in v1.0.2
func (c *Container) MouseClick(event *MouseClickEvent)
func (*Container) MouseDown ¶ added in v1.0.2
func (c *Container) MouseDown(event *MouseDownEvent)
func (*Container) MouseDrop ¶ added in v1.0.2
func (c *Container) MouseDrop(event *MouseDropEvent)
func (*Container) MouseMove ¶ added in v1.0.2
func (c *Container) MouseMove(event *MouseMoveEvent)
func (*Container) MouseUp ¶ added in v1.0.2
func (c *Container) MouseUp(event *MouseUpEvent)
func (*Container) MouseValidateDrop ¶ added in v1.0.2
func (c *Container) MouseValidateDrop(event *MouseValidateDropEvent)
func (*Container) MouseWheel ¶ added in v1.0.2
func (c *Container) MouseWheel(event *MouseWheelEvent)
func (*Container) RemoveAllWidgets ¶ added in v1.0.2
func (c *Container) RemoveAllWidgets()
func (*Container) RemoveWidget ¶ added in v1.0.2
func (*Container) SetAbsolutePositioning ¶ added in v1.0.2
func (*Container) SetCellPadding ¶ added in v1.0.2
func (*Container) SetPanelPadding ¶ added in v1.0.2
func (*Container) UpdateLayout ¶ added in v1.0.2
func (c *Container) UpdateLayout()
func (*Container) UpdateStyle ¶ added in v1.0.2
func (c *Container) UpdateStyle()
func (*Container) XExpandable ¶ added in v1.0.2
func (*Container) YExpandable ¶ added in v1.0.2
type ContainerGridColumnInfo ¶ added in v1.0.2
type ContainerGridColumnInfo struct {
// contains filtered or unexported fields
}
type ContainerGridRowInfo ¶ added in v1.0.2
type ContainerGridRowInfo struct {
// contains filtered or unexported fields
}
type Control ¶ added in v1.0.2
type Control struct {
utils.Obj
UserDataContainer
InnerSizeOverloaded bool
InnerWidthOverloaded int
InnerHeightOverloaded int
OnContextMenuNeed func(x, y int) IMenu
OnMouseDrop func(droppedValue interface{}, x, y int)
// contains filtered or unexported fields
}
func NewControl ¶ added in v1.0.2
func (*Control) AccentColor ¶ added in v1.0.2
func (*Control) AcceptsReturn ¶ added in v1.0.2
func (*Control) AcceptsTab ¶ added in v1.0.2
func (*Control) AddProperty ¶ added in v1.0.2
func (c *Control) AddProperty(name string, prop *uiproperties.Property)
func (*Control) ApplyStyleLine ¶ added in v1.0.2
func (*Control) BeginUpdate ¶ added in v1.0.2
func (c *Control) BeginUpdate()
func (*Control) BorderColors ¶ added in v1.0.2
func (*Control) BottomBorderWidth ¶ added in v1.0.2
func (*Control) ClearFocus ¶ added in v1.0.2
func (c *Control) ClearFocus()
func (*Control) ClearHover ¶ added in v1.0.2
func (c *Control) ClearHover()
func (*Control) ClearLayoutCache ¶ added in v1.0.2
func (c *Control) ClearLayoutCache()
func (*Control) ClearRadioButtons ¶ added in v1.0.2
func (c *Control) ClearRadioButtons()
func (*Control) ClientHeight ¶ added in v1.0.2
func (*Control) ClientWidth ¶ added in v1.0.2
func (*Control) ClosePopup ¶ added in v1.0.2
func (c *Control) ClosePopup()
func (*Control) CloseTopPopup ¶ added in v1.0.2
func (c *Control) CloseTopPopup()
func (*Control) ContextMenu ¶ added in v1.0.2
func (*Control) ControlType ¶ added in v1.0.2
func (*Control) CurrentStyleValueScore ¶ added in v1.0.2
func (*Control) Draw ¶ added in v1.0.2
func (c *Control) Draw(ctx DrawContext)
func (*Control) DrawBackground ¶ added in v1.0.2
func (c *Control) DrawBackground(ctx DrawContext)
func (*Control) DrawBorders ¶ added in v1.0.2
func (c *Control) DrawBorders(ctx DrawContext)
func (*Control) DrawControl ¶ added in v1.0.2
func (c *Control) DrawControl(ctx DrawContext)
func (*Control) DrawScrollBars ¶ added in v1.0.2
func (c *Control) DrawScrollBars(ctx DrawContext)
func (*Control) EnabledChanged ¶ added in v1.0.2
func (*Control) FindWidgetUnderPointer ¶ added in v1.0.2
func (*Control) FirstFocusControl ¶ added in v1.0.2
func (*Control) FocusChanged ¶ added in v1.0.2
func (*Control) FontFamily ¶ added in v1.0.2
func (*Control) FontItalic ¶ added in v1.0.2
func (*Control) InactiveColor ¶ added in v1.0.2
func (*Control) InitControl ¶ added in v1.0.2
func (*Control) Initialized ¶ added in v1.0.2
func (*Control) InnerHeight ¶ added in v1.0.2
func (*Control) InnerWidth ¶ added in v1.0.2
func (*Control) IsTabPlate ¶ added in v1.0.2
func (*Control) IsVisibleRec ¶ added in v1.0.2
func (*Control) KeyChar ¶ added in v1.0.2
func (c *Control) KeyChar(event *KeyCharEvent)
func (*Control) KeyDown ¶ added in v1.0.2
func (c *Control) KeyDown(event *KeyDownEvent) bool
func (*Control) KeyUp ¶ added in v1.0.2
func (c *Control) KeyUp(event *KeyUpEvent)
func (*Control) LeftBorderWidth ¶ added in v1.0.2
func (*Control) MouseClick ¶ added in v1.0.2
func (c *Control) MouseClick(event *MouseClickEvent)
func (*Control) MouseCursor ¶ added in v1.0.2
func (c *Control) MouseCursor() nuimouse.MouseCursor
func (*Control) MouseDblClick ¶ added in v1.0.2
func (c *Control) MouseDblClick(event *MouseDblClickEvent)
func (*Control) MouseDown ¶ added in v1.0.2
func (c *Control) MouseDown(event *MouseDownEvent)
func (*Control) MouseDrop ¶ added in v1.0.2
func (c *Control) MouseDrop(event *MouseDropEvent)
func (*Control) MouseEnter ¶ added in v1.0.2
func (c *Control) MouseEnter()
func (*Control) MouseLeave ¶ added in v1.0.2
func (c *Control) MouseLeave()
func (*Control) MouseMove ¶ added in v1.0.2
func (c *Control) MouseMove(event *MouseMoveEvent)
func (*Control) MouseUp ¶ added in v1.0.2
func (c *Control) MouseUp(event *MouseUpEvent)
func (*Control) MouseValidateDrop ¶ added in v1.0.2
func (c *Control) MouseValidateDrop(event *MouseValidateDropEvent)
func (*Control) MouseWheel ¶ added in v1.0.2
func (c *Control) MouseWheel(event *MouseWheelEvent)
func (*Control) NextFocusControl ¶ added in v1.0.2
func (*Control) ProcessFindWidgetUnderPointer ¶ added in v1.0.2
func (*Control) ProcessKeyChar ¶ added in v1.0.2
func (c *Control) ProcessKeyChar(event *KeyCharEvent)
func (*Control) ProcessKeyDown ¶ added in v1.0.2
func (c *Control) ProcessKeyDown(event *KeyDownEvent) bool
func (*Control) ProcessKeyUp ¶ added in v1.0.2
func (c *Control) ProcessKeyUp(event *KeyUpEvent)
func (*Control) ProcessMouseClick ¶ added in v1.0.2
func (c *Control) ProcessMouseClick(event *MouseClickEvent)
func (*Control) ProcessMouseDblClick ¶ added in v1.0.2
func (c *Control) ProcessMouseDblClick(event *MouseDblClickEvent)
func (*Control) ProcessMouseDown ¶ added in v1.0.2
func (c *Control) ProcessMouseDown(event *MouseDownEvent)
func (*Control) ProcessMouseMove ¶ added in v1.0.2
func (c *Control) ProcessMouseMove(event *MouseMoveEvent)
func (*Control) ProcessMouseUp ¶ added in v1.0.2
func (c *Control) ProcessMouseUp(event *MouseUpEvent)
func (*Control) ProcessMouseWheel ¶ added in v1.0.2
func (c *Control) ProcessMouseWheel(event *MouseWheelEvent)
func (*Control) RectClientAreaOnWindow ¶ added in v1.0.2
func (*Control) RectOnWindow ¶ added in v1.0.2
func (*Control) ResetInnerSizeDirect ¶ added in v1.0.2
func (c *Control) ResetInnerSizeDirect()
func (*Control) RightBorderWidth ¶ added in v1.0.2
func (*Control) ScrollEnsureVisible ¶ added in v1.0.2
func (*Control) ScrollOffsetX ¶ added in v1.0.2
func (*Control) ScrollOffsetY ¶ added in v1.0.2
func (*Control) SetAnchors ¶ added in v1.0.2
func (*Control) SetBackColor ¶ added in v1.0.2
func (*Control) SetBorderBottom ¶ added in v1.0.2
func (*Control) SetBorderLeft ¶ added in v1.0.2
func (*Control) SetBorderRight ¶ added in v1.0.2
func (*Control) SetBorderTop ¶ added in v1.0.2
func (*Control) SetBorders ¶ added in v1.0.2
func (*Control) SetContextMenu ¶ added in v1.0.2
func (*Control) SetEnabled ¶ added in v1.0.2
func (*Control) SetFixedSize ¶ added in v1.0.2
func (*Control) SetFontSize ¶ added in v1.0.2
func (*Control) SetForeColor ¶ added in v1.0.2
func (*Control) SetGridPos ¶ added in v1.0.2
func (*Control) SetHorizontalScrollVisible ¶ added in v1.0.2
func (*Control) SetInnerSizeDirect ¶ added in v1.0.2
func (*Control) SetIsTabPlate ¶ added in v1.0.2
func (*Control) SetMaxHeight ¶ added in v1.0.2
func (*Control) SetMaxWidth ¶ added in v1.0.2
func (*Control) SetMinHeight ¶ added in v1.0.2
func (*Control) SetMinWidth ¶ added in v1.0.2
func (*Control) SetMouseCursor ¶ added in v1.0.2
func (c *Control) SetMouseCursor(cursor nuimouse.MouseCursor)
func (*Control) SetOnKeyDown ¶ added in v1.0.2
func (c *Control) SetOnKeyDown(callback func(event *KeyDownEvent) bool)
func (*Control) SetStyledValue ¶ added in v1.0.2
func (*Control) SetTabIndex ¶ added in v1.0.2
func (*Control) SetTooltip ¶ added in v1.0.2
func (*Control) SetVerticalScrollVisible ¶ added in v1.0.2
func (*Control) SetVisible ¶ added in v1.0.2
func (*Control) SetXExpandable ¶ added in v1.0.2
func (*Control) SetYExpandable ¶ added in v1.0.2
func (*Control) StyledValue ¶ added in v1.0.2
func (*Control) TopBorderWidth ¶ added in v1.0.2
func (*Control) TranslateX ¶ added in v1.0.2
func (*Control) TranslateY ¶ added in v1.0.2
func (*Control) UpdateLayout ¶ added in v1.0.2
func (c *Control) UpdateLayout()
func (*Control) UpdateStyle ¶ added in v1.0.2
func (c *Control) UpdateStyle()
func (*Control) VisibleInnerRect ¶ added in v1.0.2
func (*Control) XExpandable ¶ added in v1.0.2
func (*Control) YExpandable ¶ added in v1.0.2
type CoordinateTranslator ¶ added in v1.0.2
type Dialog ¶ added in v1.0.2
type Dialog struct {
Panel
//menuWidth int
//menuHeight int
CloseEvent func()
OnAccept func()
OnReject func()
TryAccept func() bool
OnShow func()
// contains filtered or unexported fields
}
func (*Dialog) ClosePopup ¶ added in v1.0.2
func (c *Dialog) ClosePopup()
func (*Dialog) ContentPanel ¶ added in v1.0.2
func (*Dialog) ControlType ¶ added in v1.0.2
func (*Dialog) KeyDown ¶ added in v1.0.2
func (c *Dialog) KeyDown(event *KeyDownEvent) bool
func (*Dialog) SetAcceptButton ¶ added in v1.0.2
func (*Dialog) SetRejectButton ¶ added in v1.0.2
func (*Dialog) ShowDialog ¶ added in v1.0.2
func (c *Dialog) ShowDialog()
func (*Dialog) ShowDialogAtPos ¶ added in v1.0.2
type DrawContext ¶
type DrawContext interface {
Init()
SetColor(col color.Color)
SetStrokeWidth(w int)
SetFontFamily(fontFamily string)
SetFontSize(s float64)
SetTextAlign(h canvas.HAlign, v canvas.VAlign)
SetUnderline(underline bool)
DrawLine(x1, y1, x2, y2 int)
DrawEllipse(x, y, width, height int)
DrawRect(x, y, width, height int)
FillRect(x, y, width, height int)
Save()
Load()
Translate(x, y int)
//Clip(x, y, width, height int)
ClipIn(x, y, width, height int)
DrawImage(x, y, width, height int, img image.Image)
DrawText(x, y, width, height int, text string)
MeasureText(text string) (int, int)
TranslatedX() int
TranslatedY() int
ClippedRegion() (int, int, int, int)
GraphContextImage() *image.RGBA
GG() *gg.Context
State() canvas.CanvasDirectState
Finish(rgba *image.RGBA)
}
type DrawContextBase ¶
type DrawContextBase struct {
// Current settings
CurrentColor color.Color
StrokeWidth int
FontFamily string
FontSize float64
UnderLine bool
TextHAlign canvas.HAlign
TextVAlign canvas.VAlign
CurrentClipSettings ClipSettings
StackClipSettings stack.Stack
WindowWidth int
WindowHeight int
Window nui.Window
}
func (*DrawContextBase) Finish ¶
func (c *DrawContextBase) Finish()
func (*DrawContextBase) InitBase ¶
func (c *DrawContextBase) InitBase()
func (*DrawContextBase) Load ¶
func (c *DrawContextBase) Load()
func (*DrawContextBase) Save ¶
func (c *DrawContextBase) Save()
func (*DrawContextBase) SetColor ¶
func (c *DrawContextBase) SetColor(col color.Color)
func (*DrawContextBase) SetFontFamily ¶
func (c *DrawContextBase) SetFontFamily(fontFamily string)
func (*DrawContextBase) SetFontSize ¶
func (c *DrawContextBase) SetFontSize(s float64)
func (*DrawContextBase) SetStrokeWidth ¶
func (c *DrawContextBase) SetStrokeWidth(w int)
func (*DrawContextBase) SetTextAlign ¶
func (c *DrawContextBase) SetTextAlign(h canvas.HAlign, v canvas.VAlign)
func (*DrawContextBase) SetUnderline ¶
func (c *DrawContextBase) SetUnderline(underline bool)
func (*DrawContextBase) TranslateAndClip ¶
func (c *DrawContextBase) TranslateAndClip(x, y, width, height int)
type DrawContextGL ¶
type DrawContextGL struct {
// contains filtered or unexported fields
}
func NewDrawContext ¶
func NewDrawContext(windowWidth, windowHeight int) *DrawContextGL
func NewDrawContextForRGBA ¶ added in v1.0.10
func NewDrawContextForRGBA(rgba *image.RGBA) *DrawContextGL
func (*DrawContextGL) Clip ¶
func (c *DrawContextGL) Clip(x, y, width, height int)
func (*DrawContextGL) DrawEllipse ¶
func (c *DrawContextGL) DrawEllipse(x, y, width, height int)
func (*DrawContextGL) DrawPolygon ¶
func (c *DrawContextGL) DrawPolygon(x, y, width, height int)
func (*DrawContextGL) DrawText ¶
func (c *DrawContextGL) DrawText(x, y, width, height int, text string)
func (*DrawContextGL) SetColor ¶
func (c *DrawContextGL) SetColor(col color.Color)
func (*DrawContextGL) SetFont ¶
func (c *DrawContextGL) SetFont(fontFamily string, fontSize float64, bold, italic, underline bool)
func (*DrawContextGL) UnClip ¶
func (c *DrawContextGL) UnClip()
type DrawContextSW ¶
type DrawContextSW struct {
DrawContextBase
// contains filtered or unexported fields
}
func NewDrawContextSW ¶
func NewDrawContextSW(window nui.Window) *DrawContextSW
func NewDrawContextSWRGBA ¶ added in v1.0.10
func NewDrawContextSWRGBA(window nui.Window, rgba *image.RGBA) *DrawContextSW
func NewDrawContextSWSpecial ¶
func NewDrawContextSWSpecial(width, height int) *DrawContextSW
func (*DrawContextSW) ClipIn ¶
func (c *DrawContextSW) ClipIn(x, y, width, height int)
func (*DrawContextSW) ClippedRegion ¶
func (c *DrawContextSW) ClippedRegion() (int, int, int, int)
func (*DrawContextSW) DrawEllipse ¶
func (c *DrawContextSW) DrawEllipse(x, y, width, height int)
func (*DrawContextSW) DrawImage ¶
func (c *DrawContextSW) DrawImage(x, y, width, height int, img image.Image)
func (*DrawContextSW) DrawLine ¶
func (c *DrawContextSW) DrawLine(x1, y1, x2, y2 int)
func (*DrawContextSW) DrawRect ¶
func (c *DrawContextSW) DrawRect(x, y, width, height int)
func (*DrawContextSW) DrawText ¶
func (c *DrawContextSW) DrawText(x, y, width, height int, text string)
func (*DrawContextSW) FillRect ¶
func (c *DrawContextSW) FillRect(x, y, width, height int)
func (*DrawContextSW) Finish ¶
func (c *DrawContextSW) Finish(rgba *image.RGBA)
func (*DrawContextSW) GG ¶
func (c *DrawContextSW) GG() *gg.Context
func (*DrawContextSW) GraphContextImage ¶
func (c *DrawContextSW) GraphContextImage() *image.RGBA
func (*DrawContextSW) Init ¶
func (c *DrawContextSW) Init()
func (*DrawContextSW) Load ¶
func (c *DrawContextSW) Load()
func (*DrawContextSW) MeasureText ¶
func (c *DrawContextSW) MeasureText(text string) (int, int)
func (*DrawContextSW) Save ¶
func (c *DrawContextSW) Save()
func (*DrawContextSW) State ¶
func (c *DrawContextSW) State() canvas.CanvasDirectState
func (*DrawContextSW) Translate ¶
func (c *DrawContextSW) Translate(x, y int)
func (*DrawContextSW) TranslatedX ¶
func (c *DrawContextSW) TranslatedX() int
func (*DrawContextSW) TranslatedY ¶
func (c *DrawContextSW) TranslatedY() int
type Event ¶ added in v1.0.2
type Event struct {
UserDataContainer
Sender interface{}
Modifiers nuikey.KeyModifiers
Ignore bool
}
type Form ¶ added in v1.0.2
type Form struct {
utils.Obj
OnKeyDown func(event *KeyDownEvent) bool
// contains filtered or unexported fields
}
func (*Form) AcceptButton ¶ added in v1.0.2
func (*Form) AppendPopup ¶ added in v1.0.2
func (*Form) CentralWidget ¶ added in v1.0.2
func (*Form) CloseAfterPopupWidget ¶ added in v1.0.2
func (*Form) CloseAllPopup ¶ added in v1.0.2
func (c *Form) CloseAllPopup()
func (*Form) CloseTopPopup ¶ added in v1.0.2
func (c *Form) CloseTopPopup()
func (*Form) ControlRemoved ¶ added in v1.0.2
func (c *Form) ControlRemoved()
func (*Form) CreateModalForm ¶ added in v1.0.2
func (*Form) CurrentDraggingObject ¶ added in v1.0.2
func (c *Form) CurrentDraggingObject() interface{}
func (*Form) DialogResult ¶ added in v1.0.2
func (*Form) FocusedWidget ¶ added in v1.0.2
func (*Form) IsMainWindow ¶ added in v1.0.2
func (*Form) KeyModifiers ¶ added in v1.0.2
func (c *Form) KeyModifiers() nuikey.KeyModifiers
func (*Form) LoopUI_OpenGL ¶ added in v1.0.2
func (c *Form) LoopUI_OpenGL()
func (*Form) MakeTimerAndStart ¶ added in v1.0.2
func (*Form) OpenFileDialog ¶ added in v1.0.2
func (*Form) ProcessCharInput ¶ added in v1.0.2
func (*Form) ProcessClick ¶ added in v1.0.2
func (c *Form) ProcessClick(x, y int, button nuimouse.MouseButton)
func (*Form) ProcessFocus ¶ added in v1.0.2
func (c *Form) ProcessFocus()
func (*Form) ProcessKeyDown ¶ added in v1.0.2
func (*Form) ProcessKeyModifiers ¶ added in v1.0.2
func (*Form) ProcessKeyUp ¶ added in v1.0.2
func (*Form) ProcessMouseDown ¶ added in v1.0.2
func (c *Form) ProcessMouseDown(button nuimouse.MouseButton)
func (*Form) ProcessMouseMove ¶ added in v1.0.2
func (*Form) ProcessMouseUp ¶ added in v1.0.2
func (c *Form) ProcessMouseUp(button nuimouse.MouseButton)
func (*Form) ProcessMouseWheel ¶ added in v1.0.2
func (*Form) ProcessReturnDown ¶ added in v1.0.2
func (*Form) ProcessReturnUp ¶ added in v1.0.2
func (c *Form) ProcessReturnUp()
func (*Form) ProcessTabDown ¶ added in v1.0.2
func (c *Form) ProcessTabDown()
func (*Form) ProcessTabUp ¶ added in v1.0.2
func (c *Form) ProcessTabUp()
func (*Form) ProcessWindowMove ¶ added in v1.0.2
func (*Form) ProcessWindowResize ¶ added in v1.0.2
func (*Form) RejectButton ¶ added in v1.0.2
func (*Form) RemoveTimer ¶ added in v1.0.2
func (*Form) SelectColorDialog ¶ added in v1.0.2
func (*Form) SetAcceptButton ¶ added in v1.0.2
func (*Form) SetFocusForWidget ¶ added in v1.0.2
func (*Form) SetIsMainWindow ¶ added in v1.0.2
func (*Form) SetMouseCursor ¶ added in v1.0.2
func (c *Form) SetMouseCursor(cur nuimouse.MouseCursor)
func (*Form) SetRejectButton ¶ added in v1.0.2
func (*Form) SetShowMaximazed ¶ added in v1.0.2
func (*Form) ShowMaximazed ¶ added in v1.0.2
func (*Form) ShowTooltip ¶ added in v1.0.2
func (*Form) UpdateLayout ¶ added in v1.0.2
func (c *Form) UpdateLayout()
func (*Form) UpdateMenu ¶ added in v1.0.2
func (c *Form) UpdateMenu()
func (*Form) UpdateStyle ¶ added in v1.0.2
func (c *Form) UpdateStyle()
func (*Form) UpdateWindow ¶ added in v1.0.2
type FormSizeChangedEvent ¶ added in v1.0.2
type FormTimer ¶ added in v1.0.2
func (*FormTimer) RestartTimer ¶ added in v1.0.10
func (c *FormTimer) RestartTimer()
func (*FormTimer) StartTimer ¶ added in v1.0.2
func (c *FormTimer) StartTimer()
type GroupBox ¶ added in v1.0.2
type GroupBox struct {
Container
// contains filtered or unexported fields
}
func NewGroupBox ¶ added in v1.0.2
func (*GroupBox) ControlType ¶ added in v1.0.2
type HSpacer ¶ added in v1.0.2
type HSpacer struct {
Control
}
func NewHSpacer ¶ added in v1.0.2
func (*HSpacer) ControlType ¶ added in v1.0.2
func (*HSpacer) Draw ¶ added in v1.0.2
func (c *HSpacer) Draw(ctx DrawContext)
type ImageBox ¶ added in v1.0.2
type ImageBox struct {
Control
// contains filtered or unexported fields
}
func NewImageBoxBytes ¶ added in v1.0.2
func (*ImageBox) ControlType ¶ added in v1.0.2
func (*ImageBox) Draw ¶ added in v1.0.2
func (c *ImageBox) Draw(ctx DrawContext)
func (*ImageBox) SetScaling ¶ added in v1.0.2
func (c *ImageBox) SetScaling(scaling ImageBoxScale)
type ImageBoxScale ¶ added in v1.0.2
type ImageBoxScale int
const ( ImageBoxScaleNoScaleAdjustBox ImageBoxScale = 0 ImageBoxScaleNoScaleImageInLeftTop ImageBoxScale = 1 ImageBoxScaleNoScaleImageInCenter ImageBoxScale = 2 ImageBoxScaleStretchImage ImageBoxScale = 3 ImageBoxScaleAdjustImageKeepAspectRatio ImageBoxScale = 4 )
type ImageCache ¶
func NewImageCache ¶
func NewImageCache(name string) *ImageCache
func (*ImageCache) Clear ¶
func (c *ImageCache) Clear()
func (*ImageCache) ClearXY ¶
func (c *ImageCache) ClearXY(x, y int)
func (*ImageCache) GetXY ¶
func (c *ImageCache) GetXY(x, y int) *canvas.CanvasDirect
func (*ImageCache) SetXY ¶
func (c *ImageCache) SetXY(x, y int, cnv *canvas.CanvasDirect)
type KeyCharEvent ¶ added in v1.0.2
type KeyDownEvent ¶ added in v1.0.2
type KeyUpEvent ¶ added in v1.0.2
type LineEdit ¶ added in v1.0.10
type LineEdit struct {
Control
OnTextChanged func(txtBox *LineEdit, oldValue string, newValue string)
// contains filtered or unexported fields
}
func NewLineEdit ¶ added in v1.0.10
func (*LineEdit) AcceptsReturn ¶ added in v1.0.10
func (*LineEdit) AssemblyText ¶ added in v1.0.10
func (*LineEdit) ControlType ¶ added in v1.0.10
func (*LineEdit) Draw ¶ added in v1.0.10
func (c *LineEdit) Draw(ctx DrawContext)
func (*LineEdit) KeyChar ¶ added in v1.0.10
func (c *LineEdit) KeyChar(event *KeyCharEvent)
func (*LineEdit) KeyDown ¶ added in v1.0.10
func (c *LineEdit) KeyDown(event *KeyDownEvent) bool
func (*LineEdit) KeyUp ¶ added in v1.0.10
func (c *LineEdit) KeyUp(event *KeyUpEvent)
func (*LineEdit) MouseDown ¶ added in v1.0.10
func (c *LineEdit) MouseDown(event *MouseDownEvent)
func (*LineEdit) MouseMove ¶ added in v1.0.10
func (c *LineEdit) MouseMove(event *MouseMoveEvent)
func (*LineEdit) MouseUp ¶ added in v1.0.10
func (c *LineEdit) MouseUp(event *MouseUpEvent)
func (*LineEdit) OneLineHeight ¶ added in v1.0.10
func (*LineEdit) ScrollToBegin ¶ added in v1.0.10
func (c *LineEdit) ScrollToBegin()
func (*LineEdit) SelectAllText ¶ added in v1.0.10
func (c *LineEdit) SelectAllText()
func (*LineEdit) SelectedText ¶ added in v1.0.10
func (*LineEdit) SetEmptyText ¶ added in v1.0.10
func (*LineEdit) SetIsPassword ¶ added in v1.0.10
func (*LineEdit) SetReadOnly ¶ added in v1.0.10
type LineEditSelection ¶ added in v1.0.10
type ListView ¶ added in v1.0.2
type ListView struct {
Container
OnItemClicked func(item *ListViewItem)
OnSelectionChanged func()
AllowDeselectItems bool
OnMouseDown func()
OnMouseUp func()
// contains filtered or unexported fields
}
func NewListView ¶ added in v1.0.2
func (*ListView) AddColumn ¶ added in v1.0.2
func (c *ListView) AddColumn(text string, width int) *ListViewColumn
func (*ListView) AddItem ¶ added in v1.0.2
func (c *ListView) AddItem(text string) *ListViewItem
func (*ListView) AddItem2 ¶ added in v1.0.2
func (c *ListView) AddItem2(col0 string, col1 string) *ListViewItem
func (*ListView) AddItem3 ¶ added in v1.0.2
func (c *ListView) AddItem3(col0 string, col1 string, col2 string) *ListViewItem
func (*ListView) ClearSelection ¶ added in v1.0.2
func (c *ListView) ClearSelection()
func (*ListView) ControlType ¶ added in v1.0.2
func (*ListView) Draw ¶ added in v1.0.2
func (c *ListView) Draw(ctx DrawContext)
func (*ListView) EnabledChanged ¶ added in v1.0.2
func (*ListView) EnsureVisibleItem ¶ added in v1.0.2
func (*ListView) IsHeaderVisible ¶ added in v1.0.2
func (*ListView) Item ¶ added in v1.0.2
func (c *ListView) Item(rowIndex int) *ListViewItem
func (*ListView) ItemsCount ¶ added in v1.0.2
func (*ListView) RemoveColumns ¶ added in v1.0.2
func (c *ListView) RemoveColumns()
func (*ListView) RemoveItems ¶ added in v1.0.2
func (c *ListView) RemoveItems()
func (*ListView) SelectAllItems ¶ added in v1.0.2
func (c *ListView) SelectAllItems()
func (*ListView) SelectItem ¶ added in v1.0.2
func (*ListView) SelectItemSelection ¶ added in v1.0.2
func (*ListView) SelectedItem ¶ added in v1.0.2
func (c *ListView) SelectedItem() *ListViewItem
func (*ListView) SelectedItemIndex ¶ added in v1.0.2
func (*ListView) SelectedItems ¶ added in v1.0.2
func (c *ListView) SelectedItems() []*ListViewItem
func (*ListView) SelectedItemsIndexes ¶ added in v1.0.2
func (*ListView) SetColumnTextAlign ¶ added in v1.0.2
func (*ListView) SetColumnWidth ¶ added in v1.0.2
func (*ListView) SetCurrentRow ¶ added in v1.0.2
func (*ListView) SetHeaderVisible ¶ added in v1.0.2
func (*ListView) SetItemValue ¶ added in v1.0.2
func (*ListView) UnselectAllItems ¶ added in v1.0.2
func (c *ListView) UnselectAllItems()
func (*ListView) UpdateStyle ¶ added in v1.0.2
func (c *ListView) UpdateStyle()
func (*ListView) VisibleItems ¶ added in v1.0.2
func (c *ListView) VisibleItems() []*ListViewItem
type ListViewColumn ¶ added in v1.0.2
type ListViewColumn struct {
// contains filtered or unexported fields
}
type ListViewContent ¶ added in v1.0.2
type ListViewContent struct {
Control
// contains filtered or unexported fields
}
func NewListViewContent ¶ added in v1.0.2
func (*ListViewContent) ControlType ¶ added in v1.0.2
func (c *ListViewContent) ControlType() string
func (*ListViewContent) Draw ¶ added in v1.0.2
func (c *ListViewContent) Draw(ctx DrawContext)
func (*ListViewContent) KeyDown ¶ added in v1.0.2
func (c *ListViewContent) KeyDown(event *KeyDownEvent) bool
func (*ListViewContent) MouseClick ¶ added in v1.0.2
func (c *ListViewContent) MouseClick(event *MouseClickEvent)
type ListViewHeader ¶ added in v1.0.2
type ListViewHeader struct {
Control
// contains filtered or unexported fields
}
func NewListViewHeader ¶ added in v1.0.2
func (*ListViewHeader) ControlType ¶ added in v1.0.2
func (c *ListViewHeader) ControlType() string
func (*ListViewHeader) Draw ¶ added in v1.0.2
func (c *ListViewHeader) Draw(ctx DrawContext)
func (*ListViewHeader) MinHeight ¶ added in v1.0.2
func (c *ListViewHeader) MinHeight() int
func (*ListViewHeader) MinWidth ¶ added in v1.0.2
func (c *ListViewHeader) MinWidth() int
func (*ListViewHeader) MouseDown ¶ added in v1.0.2
func (c *ListViewHeader) MouseDown(event *MouseDownEvent)
func (*ListViewHeader) MouseLeave ¶ added in v1.0.2
func (c *ListViewHeader) MouseLeave()
func (*ListViewHeader) MouseMove ¶ added in v1.0.2
func (c *ListViewHeader) MouseMove(event *MouseMoveEvent)
func (*ListViewHeader) MouseUp ¶ added in v1.0.2
func (c *ListViewHeader) MouseUp(event *MouseUpEvent)
type ListViewItem ¶ added in v1.0.2
type ListViewItem struct {
UserDataContainer
// contains filtered or unexported fields
}
func (*ListViewItem) SetForeColorForCell ¶ added in v1.0.2
func (c *ListViewItem) SetForeColorForCell(colIndex int, color color.Color)
func (*ListViewItem) SetForeColorForRow ¶ added in v1.0.2
func (c *ListViewItem) SetForeColorForRow(color color.Color)
func (*ListViewItem) SetValue ¶ added in v1.0.2
func (c *ListViewItem) SetValue(column int, text string)
func (*ListViewItem) Value ¶ added in v1.0.2
func (c *ListViewItem) Value(column int) string
type Menu ¶ added in v1.0.2
type Menu struct {
Control
// contains filtered or unexported fields
}
func (*Menu) ControlType ¶ added in v1.0.2
func (*Menu) Draw ¶ added in v1.0.2
func (c *Menu) Draw(ctx DrawContext)
func (*Menu) FocusChanged ¶ added in v1.0.2
func (*Menu) MouseClick ¶ added in v1.0.2
func (c *Menu) MouseClick(event *MouseClickEvent)
func (*Menu) MouseLeave ¶ added in v1.0.2
func (c *Menu) MouseLeave()
func (*Menu) MouseMove ¶ added in v1.0.2
func (c *Menu) MouseMove(event *MouseMoveEvent)
func (*Menu) SetVisible ¶ added in v1.0.2
func (*Menu) ShowSubmenu ¶ added in v1.0.2
type MenuItem ¶ added in v1.0.2
func (*MenuItem) Draw ¶ added in v1.0.2
func (c *MenuItem) Draw(ctx DrawContext)
type MessageBox ¶ added in v1.0.2
type MessageBox struct {
Dialog
// contains filtered or unexported fields
}
func NewMessageBox ¶ added in v1.0.2
func NewMessageBox(parent Widget, typeOfDialog string) *MessageBox
func (*MessageBox) OnInit ¶ added in v1.0.2
func (c *MessageBox) OnInit()
func (*MessageBox) SetHeader ¶ added in v1.0.2
func (c *MessageBox) SetHeader(header string)
func (*MessageBox) SetText ¶ added in v1.0.2
func (c *MessageBox) SetText(text string)
type MouseClickEvent ¶ added in v1.0.2
type MouseClickEvent struct {
MouseEvent
Button nuimouse.MouseButton
}
func (*MouseClickEvent) Translate ¶ added in v1.0.2
func (event *MouseClickEvent) Translate(w CoordinateTranslator) *MouseClickEvent
type MouseDblClickEvent ¶ added in v1.0.2
type MouseDblClickEvent struct {
MouseEvent
Button nuimouse.MouseButton
}
func (*MouseDblClickEvent) Translate ¶ added in v1.0.2
func (event *MouseDblClickEvent) Translate(w CoordinateTranslator) *MouseDblClickEvent
type MouseDownEvent ¶ added in v1.0.2
type MouseDownEvent struct {
MouseEvent
Button nuimouse.MouseButton
}
func NewMouseDownEvent ¶ added in v1.0.2
func NewMouseDownEvent(x, y int, button nuimouse.MouseButton, modifiers nuikey.KeyModifiers) *MouseDownEvent
func (*MouseDownEvent) Translate ¶ added in v1.0.2
func (event *MouseDownEvent) Translate(w CoordinateTranslator) *MouseDownEvent
type MouseDropEvent ¶ added in v1.0.2
type MouseDropEvent struct {
MouseEvent
Button nuimouse.MouseButton
DroppingObject interface{}
}
func NewMouseDropEvent ¶ added in v1.0.2
func NewMouseDropEvent(x, y int, button nuimouse.MouseButton, modifiers nuikey.KeyModifiers, droppingObject interface{}) *MouseDropEvent
func (*MouseDropEvent) Translate ¶ added in v1.0.2
func (event *MouseDropEvent) Translate(w CoordinateTranslator) *MouseDropEvent
type MouseEvent ¶ added in v1.0.2
func (*MouseEvent) PosX ¶ added in v1.0.2
func (c *MouseEvent) PosX() int
func (*MouseEvent) PosY ¶ added in v1.0.2
func (c *MouseEvent) PosY() int
func (*MouseEvent) SetPosX ¶ added in v1.0.2
func (c *MouseEvent) SetPosX(x int)
func (*MouseEvent) SetPosY ¶ added in v1.0.2
func (c *MouseEvent) SetPosY(y int)
type MouseMoveEvent ¶ added in v1.0.2
type MouseMoveEvent struct {
MouseEvent
}
func (*MouseMoveEvent) Translate ¶ added in v1.0.2
func (event *MouseMoveEvent) Translate(w CoordinateTranslator) *MouseMoveEvent
type MouseUpEvent ¶ added in v1.0.2
type MouseUpEvent struct {
MouseEvent
Button nuimouse.MouseButton
}
func (*MouseUpEvent) Translate ¶ added in v1.0.2
func (event *MouseUpEvent) Translate(w CoordinateTranslator) *MouseUpEvent
type MouseValidateDropEvent ¶ added in v1.0.2
type MouseValidateDropEvent struct {
MouseEvent
Button nuimouse.MouseButton
DroppingObject interface{}
AllowDrop bool
}
func NewMouseValidateDropEvent ¶ added in v1.0.2
func NewMouseValidateDropEvent(x, y int, button nuimouse.MouseButton, modifiers nuikey.KeyModifiers, droppingObject interface{}) *MouseValidateDropEvent
func (*MouseValidateDropEvent) Translate ¶ added in v1.0.2
func (event *MouseValidateDropEvent) Translate(w CoordinateTranslator) *MouseValidateDropEvent
type MouseWheelEvent ¶ added in v1.0.2
type MouseWheelEvent struct {
MouseEvent
Delta int
}
func (*MouseWheelEvent) Translate ¶ added in v1.0.2
func (event *MouseWheelEvent) Translate(w CoordinateTranslator) *MouseWheelEvent
type Panel ¶ added in v1.0.2
type Panel struct {
Container
// contains filtered or unexported fields
}
func NewRootPanel ¶ added in v1.0.2
func (*Panel) AddButtonOnGrid ¶ added in v1.0.2
func (*Panel) AddCheckBox ¶ added in v1.0.3
func (*Panel) AddCheckBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddComboBox ¶ added in v1.0.3
func (*Panel) AddComboBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddGroupBox ¶ added in v1.0.3
func (*Panel) AddGroupBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddHSpacer ¶ added in v1.0.3
func (*Panel) AddHSpacerOnGrid ¶ added in v1.0.2
func (*Panel) AddImageBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddListView ¶ added in v1.0.3
func (*Panel) AddListViewOnGrid ¶ added in v1.0.2
func (*Panel) AddPanelOnGrid ¶ added in v1.0.2
func (*Panel) AddProgressBar ¶ added in v1.0.3
func (c *Panel) AddProgressBar() *ProgressBar
func (*Panel) AddProgressBarOnGrid ¶ added in v1.0.2
func (c *Panel) AddProgressBarOnGrid(gridX int, gridY int) *ProgressBar
func (*Panel) AddRadioButtonOnGrid ¶ added in v1.0.2
func (c *Panel) AddRadioButtonOnGrid(gridX int, gridY int, text string, onCheckChanged func(checkBox *RadioButton, checked bool)) *RadioButton
func (*Panel) AddSpinBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddSplitContainerOnGrid ¶ added in v1.0.2
func (c *Panel) AddSplitContainerOnGrid(gridX int, gridY int) *SplitContainer
func (*Panel) AddTabControl ¶ added in v1.0.3
func (c *Panel) AddTabControl() *TabControl
func (*Panel) AddTabControlOnGrid ¶ added in v1.0.2
func (c *Panel) AddTabControlOnGrid(gridX int, gridY int) *TabControl
func (*Panel) AddTableOnGrid ¶ added in v1.0.2
func (*Panel) AddTextBlock ¶ added in v1.0.3
func (*Panel) AddTextBlockOnGrid ¶ added in v1.0.2
func (*Panel) AddTextBox ¶ added in v1.0.3
func (*Panel) AddTextBoxOnGrid ¶ added in v1.0.2
func (*Panel) AddVSpacer ¶ added in v1.0.3
func (*Panel) AddVSpacerOnGrid ¶ added in v1.0.2
func (*Panel) ControlType ¶ added in v1.0.2
func (*Panel) InitControl ¶ added in v1.0.2
func (*Panel) SetEnabled ¶ added in v1.0.2
func (*Panel) UpdateStyle ¶ added in v1.0.2
func (c *Panel) UpdateStyle()
type PopupMenu ¶ added in v1.0.2
type PopupMenu struct {
Panel
CloseEvent func()
// contains filtered or unexported fields
}
func NewPopupMenu ¶ added in v1.0.2
func (*PopupMenu) AddItemWithSubmenu ¶ added in v1.0.2
func (*PopupMenu) AddItemWithUiResImage ¶ added in v1.0.2
func (*PopupMenu) ClosePopup ¶ added in v1.0.2
func (c *PopupMenu) ClosePopup()
func (*PopupMenu) ControlType ¶ added in v1.0.2
func (*PopupMenu) DisposeMenu ¶ added in v1.0.2
func (c *PopupMenu) DisposeMenu()
func (*PopupMenu) RemoveAllItems ¶ added in v1.0.2
func (c *PopupMenu) RemoveAllItems()
type PopupMenuItem ¶ added in v1.0.2
type PopupMenuItem struct {
Control
OnClick func(event *Event)
Image image.Image
ImageResource []byte
KeyCombination string
AdjustColorForImage bool
// contains filtered or unexported fields
}
func (*PopupMenuItem) ControlType ¶ added in v1.0.2
func (c *PopupMenuItem) ControlType() string
func (*PopupMenuItem) Dispose ¶ added in v1.0.2
func (c *PopupMenuItem) Dispose()
func (*PopupMenuItem) Draw ¶ added in v1.0.2
func (c *PopupMenuItem) Draw(ctx DrawContext)
func (*PopupMenuItem) MouseClick ¶ added in v1.0.2
func (c *PopupMenuItem) MouseClick(event *MouseClickEvent)
func (*PopupMenuItem) MouseEnter ¶ added in v1.0.2
func (c *PopupMenuItem) MouseEnter()
func (*PopupMenuItem) MouseLeave ¶ added in v1.0.2
func (c *PopupMenuItem) MouseLeave()
func (*PopupMenuItem) MouseMove ¶ added in v1.0.2
func (c *PopupMenuItem) MouseMove(event *MouseMoveEvent)
func (*PopupMenuItem) OnInit ¶ added in v1.0.2
func (c *PopupMenuItem) OnInit()
func (*PopupMenuItem) SetInnerMenu ¶ added in v1.0.2
func (c *PopupMenuItem) SetInnerMenu(menu *PopupMenu)
func (*PopupMenuItem) SetText ¶ added in v1.0.2
func (c *PopupMenuItem) SetText(text string)
type ProgressBar ¶ added in v1.0.2
type ProgressBar struct {
TextBlock
// contains filtered or unexported fields
}
func NewProgressBar ¶ added in v1.0.2
func NewProgressBar(parent Widget) *ProgressBar
func (*ProgressBar) ControlType ¶ added in v1.0.2
func (c *ProgressBar) ControlType() string
func (*ProgressBar) Draw ¶ added in v1.0.2
func (c *ProgressBar) Draw(ctx DrawContext)
func (*ProgressBar) IsZero ¶ added in v1.0.3
func (c *ProgressBar) IsZero(value float64) bool
func (*ProgressBar) OnInit ¶ added in v1.0.2
func (c *ProgressBar) OnInit()
func (*ProgressBar) SetMaxValue ¶ added in v1.0.3
func (c *ProgressBar) SetMaxValue(max float64)
func (*ProgressBar) SetMinMaxValue ¶ added in v1.0.3
func (c *ProgressBar) SetMinMaxValue(min float64, max float64)
func (*ProgressBar) SetMinValue ¶ added in v1.0.3
func (c *ProgressBar) SetMinValue(min float64)
func (*ProgressBar) SetValue ¶ added in v1.0.2
func (c *ProgressBar) SetValue(value float64)
func (*ProgressBar) SetValueAndText ¶ added in v1.0.3
func (c *ProgressBar) SetValueAndText(value float64, text string)
func (*ProgressBar) Subclass ¶ added in v1.0.2
func (c *ProgressBar) Subclass() string
type RadioButton ¶ added in v1.0.2
type RadioButton struct {
Container
OnCheckedChanged func(checkBox *RadioButton, checked bool)
// contains filtered or unexported fields
}
func NewRadioButton ¶ added in v1.0.2
func NewRadioButton(parent Widget, text string) *RadioButton
func (*RadioButton) ClearRadioButtons ¶ added in v1.0.2
func (c *RadioButton) ClearRadioButtons()
func (*RadioButton) ControlType ¶ added in v1.0.2
func (c *RadioButton) ControlType() string
func (*RadioButton) InitControl ¶ added in v1.0.2
func (c *RadioButton) InitControl(parent Widget, w Widget)
func (*RadioButton) IsChecked ¶ added in v1.0.2
func (c *RadioButton) IsChecked() bool
func (*RadioButton) MouseClick ¶ added in v1.0.2
func (c *RadioButton) MouseClick(event *MouseClickEvent)
func (*RadioButton) SetChecked ¶ added in v1.0.2
func (c *RadioButton) SetChecked(isChecked bool)
type SpinBox ¶ added in v1.0.2
type SpinBox struct {
Container
OnValueChanged func(spinBox *SpinBox, value float64)
// contains filtered or unexported fields
}
func NewSpinBox ¶ added in v1.0.2
func (*SpinBox) MouseWheel ¶ added in v1.0.2
func (c *SpinBox) MouseWheel(event *MouseWheelEvent)
func (*SpinBox) SetIncrement ¶ added in v1.0.2
func (*SpinBox) SetMaxValue ¶ added in v1.0.2
func (*SpinBox) SetMinValue ¶ added in v1.0.2
func (*SpinBox) SetPrecision ¶ added in v1.0.2
type SplitContainer ¶ added in v1.0.2
type SplitContainer struct {
Panel
Panel1 *Panel
Panel2 *Panel
// contains filtered or unexported fields
}
func NewSplitContainer ¶ added in v1.0.2
func NewSplitContainer(parent Widget) *SplitContainer
func (*SplitContainer) ControlType ¶ added in v1.0.2
func (c *SplitContainer) ControlType() string
func (*SplitContainer) Dispose ¶ added in v1.0.2
func (c *SplitContainer) Dispose()
func (*SplitContainer) Draw ¶ added in v1.0.2
func (c *SplitContainer) Draw(ctx DrawContext)
func (*SplitContainer) FindWidgetUnderPointer ¶ added in v1.0.2
func (c *SplitContainer) FindWidgetUnderPointer(x, y int) Widget
func (*SplitContainer) MouseDown ¶ added in v1.0.2
func (c *SplitContainer) MouseDown(event *MouseDownEvent)
func (*SplitContainer) MouseMove ¶ added in v1.0.2
func (c *SplitContainer) MouseMove(event *MouseMoveEvent)
func (*SplitContainer) MouseUp ¶ added in v1.0.2
func (c *SplitContainer) MouseUp(event *MouseUpEvent)
func (*SplitContainer) SetHeight ¶ added in v1.0.2
func (c *SplitContainer) SetHeight(height int)
func (*SplitContainer) SetLeftCollapsed ¶ added in v1.0.2
func (c *SplitContainer) SetLeftCollapsed(collapsed bool)
func (*SplitContainer) SetPosition ¶ added in v1.0.2
func (c *SplitContainer) SetPosition(pos int)
func (*SplitContainer) SetPositionRelative ¶ added in v1.0.2
func (c *SplitContainer) SetPositionRelative(pos float64)
func (*SplitContainer) SetRightCollapsed ¶ added in v1.0.2
func (c *SplitContainer) SetRightCollapsed(collapsed bool)
func (*SplitContainer) SetWidth ¶ added in v1.0.2
func (c *SplitContainer) SetWidth(height int)
func (*SplitContainer) SetWindow ¶ added in v1.0.2
func (c *SplitContainer) SetWindow(w Window)
func (*SplitContainer) XExpandable ¶ added in v1.0.2
func (c *SplitContainer) XExpandable() bool
func (*SplitContainer) YExpandable ¶ added in v1.0.2
func (c *SplitContainer) YExpandable() bool
type StateStruct ¶
type TabControl ¶ added in v1.0.2
type TabControl struct {
Container
OnPageSelected func(index int)
OnNeedClose func(index int)
OnAddButtonPressed func()
// contains filtered or unexported fields
}
func NewTabControl ¶ added in v1.0.2
func NewTabControl(parent Widget) *TabControl
func (*TabControl) AddPage ¶ added in v1.0.2
func (c *TabControl) AddPage() *TabPage
func (*TabControl) ControlType ¶ added in v1.0.2
func (c *TabControl) ControlType() string
func (*TabControl) Dispose ¶ added in v1.0.2
func (c *TabControl) Dispose()
func (*TabControl) Page ¶ added in v1.0.2
func (c *TabControl) Page(index int) *TabPage
func (*TabControl) PagesCount ¶ added in v1.0.2
func (c *TabControl) PagesCount() int
func (*TabControl) RemovePage ¶ added in v1.0.2
func (c *TabControl) RemovePage(index int)
func (*TabControl) SetCurrentPage ¶ added in v1.0.2
func (c *TabControl) SetCurrentPage(index int)
func (*TabControl) SetShowAddButton ¶ added in v1.0.2
func (c *TabControl) SetShowAddButton(showAddButton bool)
func (*TabControl) Tooltip ¶ added in v1.0.2
func (c *TabControl) Tooltip() string
type TabPage ¶ added in v1.0.2
type TabPage struct {
Panel
ShowImage bool
ShowText bool
Img image.Image
ShowCloseButton bool
// contains filtered or unexported fields
}
func (*TabPage) ControlType ¶ added in v1.0.2
func (*TabPage) MouseMove ¶ added in v1.0.2
func (c *TabPage) MouseMove(event *MouseMoveEvent)
func (*TabPage) SetVisible ¶ added in v1.0.2
type Table ¶ added in v1.0.2
type Table struct {
Control
// contains filtered or unexported fields
}
func (*Table) Draw ¶ added in v1.0.2
func (c *Table) Draw(ctx DrawContext)
func (*Table) KeyChar ¶ added in v1.0.2
func (c *Table) KeyChar(event *KeyCharEvent)
func (*Table) KeyDown ¶ added in v1.0.2
func (c *Table) KeyDown(event *KeyDownEvent) bool
func (*Table) KeyUp ¶ added in v1.0.2
func (c *Table) KeyUp(event *KeyUpEvent)
func (*Table) MouseClick ¶ added in v1.0.2
func (c *Table) MouseClick(event *MouseClickEvent)
func (*Table) MouseDown ¶ added in v1.0.2
func (c *Table) MouseDown(event *MouseDownEvent)
func (*Table) MouseMove ¶ added in v1.0.2
func (c *Table) MouseMove(event *MouseMoveEvent)
func (*Table) MouseUp ¶ added in v1.0.2
func (c *Table) MouseUp(event *MouseUpEvent)
type TableColumn ¶ added in v1.0.2
type TextBlock ¶ added in v1.0.2
type TextBlock struct {
Control
OnClick func(ev *Event)
TextVAlign canvas.VAlign
TextHAlign canvas.HAlign
// contains filtered or unexported fields
}
func NewTextBlock ¶ added in v1.0.2
func (*TextBlock) ControlType ¶ added in v1.0.2
func (*TextBlock) Draw ¶ added in v1.0.2
func (c *TextBlock) Draw(ctx DrawContext)
func (*TextBlock) MouseDown ¶ added in v1.0.2
func (c *TextBlock) MouseDown(event *MouseDownEvent)
func (*TextBlock) MouseUp ¶ added in v1.0.2
func (c *TextBlock) MouseUp(event *MouseUpEvent)
func (*TextBlock) SetUnderline ¶ added in v1.0.2
type TextBox ¶ added in v1.0.2
type TextBox struct {
Control
OnTextChanged func(txtBox *TextBox, oldValue string, newValue string)
// contains filtered or unexported fields
}
func NewTextBox ¶ added in v1.0.2
func (*TextBox) AcceptsReturn ¶ added in v1.0.2
func (*TextBox) AssemblyText ¶ added in v1.0.2
func (*TextBox) ControlType ¶ added in v1.0.2
func (*TextBox) Draw ¶ added in v1.0.2
func (c *TextBox) Draw(ctx DrawContext)
func (*TextBox) KeyChar ¶ added in v1.0.2
func (c *TextBox) KeyChar(event *KeyCharEvent)
func (*TextBox) KeyDown ¶ added in v1.0.2
func (c *TextBox) KeyDown(event *KeyDownEvent) bool
func (*TextBox) KeyUp ¶ added in v1.0.2
func (c *TextBox) KeyUp(event *KeyUpEvent)
func (*TextBox) MouseDown ¶ added in v1.0.2
func (c *TextBox) MouseDown(event *MouseDownEvent)
func (*TextBox) MouseMove ¶ added in v1.0.2
func (c *TextBox) MouseMove(event *MouseMoveEvent)
func (*TextBox) MouseUp ¶ added in v1.0.2
func (c *TextBox) MouseUp(event *MouseUpEvent)
func (*TextBox) OneLineHeight ¶ added in v1.0.2
func (*TextBox) ScrollToBegin ¶ added in v1.0.2
func (c *TextBox) ScrollToBegin()
func (*TextBox) SelectAllText ¶ added in v1.0.2
func (c *TextBox) SelectAllText()
func (*TextBox) SelectedText ¶ added in v1.0.2
func (*TextBox) SetEmptyText ¶ added in v1.0.2
func (*TextBox) SetIsPassword ¶ added in v1.0.2
func (*TextBox) SetMultiline ¶ added in v1.0.2
func (*TextBox) SetReadOnly ¶ added in v1.0.2
type TextBoxSelection ¶ added in v1.0.2
type ToolPanel ¶ added in v1.0.2
type ToolPanel struct {
Panel
// contains filtered or unexported fields
}
func NewToolPanel ¶ added in v1.0.2
func (*ToolPanel) XExpandable ¶ added in v1.0.2
func (*ToolPanel) YExpandable ¶ added in v1.0.2
type UserDataContainer ¶ added in v1.0.2
type UserDataContainer struct {
// contains filtered or unexported fields
}
func (*UserDataContainer) AllUserData ¶ added in v1.0.2
func (c *UserDataContainer) AllUserData() interface{}
func (*UserDataContainer) Dispose ¶ added in v1.0.2
func (c *UserDataContainer) Dispose()
func (*UserDataContainer) InitDataContainer ¶ added in v1.0.2
func (c *UserDataContainer) InitDataContainer()
func (*UserDataContainer) SetUserData ¶ added in v1.0.2
func (c *UserDataContainer) SetUserData(key string, data interface{})
func (*UserDataContainer) UserData ¶ added in v1.0.2
func (c *UserDataContainer) UserData(key string) interface{}
type VSpacer ¶ added in v1.0.2
type VSpacer struct {
Control
}
func NewVSpacer ¶ added in v1.0.2
func (*VSpacer) ControlType ¶ added in v1.0.2
func (*VSpacer) Draw ¶ added in v1.0.2
func (c *VSpacer) Draw(ctx DrawContext)
type Widget ¶ added in v1.0.2
type Widget interface {
Draw(ctx DrawContext)
DrawControl(ctx DrawContext)
Init()
InitControl(parent Widget, w Widget)
SetX(x int)
SetY(y int)
SetWidth(width int)
SetHeight(height int)
SetAnchors(anchors int)
X() int
Y() int
Width() int
Height() int
Anchors() int
SetHover(hover bool)
Hover() bool
Name() string
SetName(name string)
Focus()
SetFocus(focus bool)
HasFocus() bool
Update(source string)
ProcessMouseWheel(event *MouseWheelEvent)
ProcessMouseMove(event *MouseMoveEvent)
ProcessMouseDown(event *MouseDownEvent)
ProcessMouseUp(event *MouseUpEvent)
ProcessMouseClick(event *MouseClickEvent)
ProcessMouseDblClick(event *MouseDblClickEvent)
ProcessKeyChar(event *KeyCharEvent)
ProcessKeyDown(event *KeyDownEvent) bool
ProcessKeyUp(event *KeyUpEvent)
MouseWheel(event *MouseWheelEvent)
MouseMove(event *MouseMoveEvent)
MouseDown(event *MouseDownEvent)
MouseUp(event *MouseUpEvent)
MouseDrop(event *MouseDropEvent)
MouseValidateDrop(event *MouseValidateDropEvent)
MouseClick(event *MouseClickEvent)
MouseDblClick(event *MouseDblClickEvent)
KeyChar(event *KeyCharEvent)
KeyDown(event *KeyDownEvent) bool
KeyUp(event *KeyUpEvent)
MouseEnter()
MouseLeave()
FocusChanged(focus bool)
InnerWidth() int
InnerHeight() int
LeftBorderWidth() int
RightBorderWidth() int
TopBorderWidth() int
BottomBorderWidth() int
ScrollOffsetX() int
ScrollOffsetY() int
ScrollEnsureVisible(x, y int)
BackColor() color.Color
ForeColor() color.Color
AccentColor() color.Color
InactiveColor() color.Color
DrawBorders(ctx DrawContext)
DrawBackground(ctx DrawContext)
DrawScrollBars(ctx DrawContext)
ProcessFindWidgetUnderPointer(x, y int) Widget
FindWidgetUnderPointer(x, y int) Widget
ClearHover()
ClearFocus()
AddProperty(name string, prop *uiproperties.Property)
Classes() []string
Subclass() string
ControlType() string
CurrentStyleValueScore(subclass string, propertyName string) int
SetStyledValue(subclass string, propertyName string, value string, score int)
StyledValue(subclass string, propertyName string) interface{}
ApplyStyleLine(controlName string, controlType string, styleClass string, stylePseudoClass string, propertyName string, value string)
SetBorderLeft(width int, col color.Color)
SetBorderRight(width int, col color.Color)
SetBorderTop(width int, col color.Color)
SetBorderBottom(width int, col color.Color)
SetBorders(width int, col color.Color)
OnInit()
ClearRadioButtons()
SetParent(p Widget)
Parent() Widget
RectOnWindow() (int, int)
RectClientAreaOnWindow() (int, int)
Window() Window
TranslateX(x int) int
TranslateY(y int) int
IsTabPlate() bool
TabIndex() int
AcceptsReturn() bool
AcceptsTab() bool
NextFocusControl() Widget
FirstFocusControl() Widget
FontFamily() string
FontSize() float64
FontBold() bool
FontItalic() bool
SetContextMenu(menu IMenu)
ContextMenu() IMenu
SetWindow(window Window)
MouseCursor() nuimouse.MouseCursor
SetUserData(key string, data interface{})
UserData(key string) interface{}
BeginUpdate()
EndUpdate()
Dispose()
SetTooltip(text string)
Tooltip() string
ClosePopup()
GridX() int
GridY() int
SetGridX(x int)
SetGridY(y int)
SetGridPos(x int, y int)
MinWidth() int
MinHeight() int
MaxWidth() int
MaxHeight() int
XExpandable() bool
YExpandable() bool
SetXExpandable(xExpandable bool)
SetYExpandable(yExpandable bool)
SetMinWidth(minWidth int)
SetMinHeight(minHeight int)
SetMaxWidth(maxWidth int)
SetMaxHeight(maxHeight int)
Disposed() bool
FullPath() string
OnScroll(scrollPositionX int, scrollPositionY int)
IsVisible() bool
IsVisibleRec() bool
SetVisible(visible bool)
SetEnabled(enabled bool)
EnabledChanged(enabled bool)
Initialized() bool
SetFixedSize(w int, h int)
SetSize(w, h int)
SetPos(x, y int)
String(level int) string
UpdateLayout()
ClientWidth() int
ClientHeight() int
Text() string
ClearLayoutCache()
UpdateStyle()
Widgets() []Widget
}
type WidgetEvent ¶
type WidgetEvent struct {
// contains filtered or unexported fields
}
func (*WidgetEvent) AddListener ¶
func (c *WidgetEvent) AddListener(l func()) int
func (*WidgetEvent) Invoke ¶
func (c *WidgetEvent) Invoke()
func (*WidgetEvent) RemoveAllListeners ¶
func (c *WidgetEvent) RemoveAllListeners()
func (*WidgetEvent) RemoveListener ¶
func (c *WidgetEvent) RemoveListener(id int)
type Window ¶ added in v1.0.2
type Window interface {
LoopUI()
Show()
Draw(rgba *image.RGBA) bool
OnInit()
OnClose() bool
Maximize()
Init()
Close()
// process events from OS
// mouse
ProcessMouseMove(x, y int)
ProcessMouseWheel(delta int)
ProcessMouseDown(button nuimouse.MouseButton)
ProcessMouseUp(button nuimouse.MouseButton)
ProcessClick(x, y int, button nuimouse.MouseButton)
// keyboard
ProcessCharInput(ch rune)
ProcessKeyModifiers(shift bool, control bool, alt bool)
ProcessKeyDown(key nuikey.Key)
ProcessKeyUp(key nuikey.Key)
// window
ProcessWindowResize(width, height int)
ProcessWindowMove(x, y int)
ProcessFocus()
KeyModifiers() nuikey.KeyModifiers
// title
Title() string
SetTitle(title string)
// size
Width() int
Height() int
Resize(width, height int)
IsMainWindow() bool
SetIsMainWindow(isMainWindow bool)
Id() int
SetId(id int)
Position() Point
SetParent(window Window)
Parent() Window
Menu() Menu
CreateModalForm(window Window)
Modal() bool
SetModal(modal bool)
Popup() bool
SetPopup(popup bool)
UpdateWindow(source string)
UpdateMenu()
Accept()
DialogResult() bool
NewTimer(period int64, handler func()) *FormTimer
RemoveTimer(timer *FormTimer)
MainTimer()
BeginDrag(object interface{})
CurrentDraggingObject() interface{}
ShowTooltip(x, y int, text string)
SetFocusForWidget(c Widget)
FocusedWidget() Widget
AppendPopup(c Widget)
CloseAllPopup()
CloseAfterPopupWidget(w Widget)
CloseTopPopup()
ProcessTabDown()
ControlRemoved()
ShowMaximazed() bool
UpdateLayout()
SetWindow(w nui.Window)
Window() nui.Window
SetMouseCursor(cur nuimouse.MouseCursor)
CentralWidget() Widget
}
var MainForm Window
Source Files
¶
- Imenu.go
- button.go
- checkbox.go
- combobox.go
- container.go
- context.go
- control.go
- css.go
- default_style.go
- dialog.go
- drawcontext.go
- drawcontext_base.go
- drawcontext_sw.go
- event.go
- form.go
- groupbox.go
- hspacer.go
- imagebox.go
- imagecache.go
- keys.go
- line_edit.go
- listview.go
- main.go
- menu.go
- messagebox.go
- panel.go
- popupmenu.go
- popupmenuitem.go
- progressbar.go
- radiobutton.go
- spinbox.go
- splitcontainer.go
- tabcontrol.go
- table.go
- textblock.go
- textbox.go
- toolpanel.go
- tools.go
- vspacer.go
- widget.go
- widgetevent.go
- window.go
Click to show internal directories.
Click to hide internal directories.