Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andlabs/ui
/ functions
Functions
315 in github.com/andlabs/ui
⨍
Functions
315
◇
Types & classes
74
Function
NewVerticalSeparator
NewVerticalSeparator creates a new vertical Separator.
separator.go:30
Function
NewWindow
NewWindow creates a new Window.
window.go:24
Method
NumPages
NumPages returns the number of pages in the Tab.
tab.go:72
Method
NumRows
(m *ui.TableModel)
examples/table.go:49
Method
OnChanged
OnChanged registers f to be run when the user either selects an item or changes the text in the EditableCombobox. Only one function can be registered
editablecombobox.go:59
Method
OnChanged
OnChanged registers f to be run when the user changes the currently selected color in the ColorButton. Only one function can be registered at a time.
colorbutton.go:52
Method
OnChanged
OnChanged registers f to be run when the user changes the time in the DateTimePicker. Only one function can be registered at a time.
datetimepicker.go:87
Method
OnChanged
OnChanged registers f to be run when the user changes the currently selected font in the FontButton. Only one function can be registered at a time.
fontbutton.go:46
Method
OnChanged
OnChanged registers f to be run when the user makes a change to the MultilineEntry. Only one function can be registered at a time.
multilineentry.go:74
Method
OnSelected
OnSelected registers f to be run when the user selects an option in the RadioButtons. Only one function can be registered at a time.
radiobuttons.go:53
Function
OnShouldQuit
OnShouldQuit schedules f to be exeucted when the OS wants the program to quit or when a Quit menu item has been clicked. Only one function may be regi
main.go:115
Method
OnToggled
OnToggled registers f to be run when the user clicks the Checkbox. Only one function can be registered at a time.
checkbox.go:53
Function
OpenFile
(w *Window)
stddialogs.go:17
Method
Padded
Padded returns whether there is space between each control of the Grid.
grid.go:87
Method
Padded
Padded returns whether there is space between each control of the Form.
form.go:62
Method
Padded
Padded returns whether there is space between each control of the Box.
box.go:76
Function
Quit
Quit queues a return from Main. It does not exit the program. It also does not immediately cause Main to return; Main will return when it next can. Qu
main.go:48
Method
ReadOnly
ReadOnly returns whether the Entry can be changed.
entry.go:83
Method
ReadOnly
ReadOnly returns whether the MultilineEntry can be changed.
multilineentry.go:87
Method
Restore
TODO
draw.go:452
Method
Rotate
TODO
draw.go:382
Method
RowDeleted
RowDeleted tells any Tables associated with m that the row at index index has been deleted. You call this function when the number of rows in your mod
tablemodel.go:223
Method
RowInserted
RowInserted tells any Tables associated with m that a new row has been added to m at index index. You call this method when the number of rows in your
tablemodel.go:207
Method
Save
TODO
draw.go:447
Function
SaveFile
(w *Window)
stddialogs.go:26
Method
Scale
TODO
draw.go:373
Method
ScrollTo
ScrollTo scrolls the Area to show the given rectangle; what this means is implementation-defined, but you can safely assume that as much of the given
area.go:103
Method
Selected
Selected returns the index of the currently selected option in the RadioButtons, or -1 if no item is selected.
radiobuttons.go:41
Method
SetBorderless
SetBorderless sets the Window to be borderless or not.
window.go:97
Method
SetCellValue
(m *ui.TableModel, row, column int, value ui.TableValue)
examples/table.go:111
Method
SetChecked
SetChecked sets whether the Checkbox is checked.
checkbox.go:71
Method
SetReadOnly
SetReadOnly sets whether the MultilineEntry can be changed.
multilineentry.go:92
Method
SetSelected
SetSelected sets the currently selected option in the RadioButtons to index.
radiobuttons.go:47
Method
SetSize
SetSize sets the size of a scrolling Area to the given size, in points. SetSize panics if called on a non-scrolling Area.
area.go:84
Method
SetText
SetText sets the text in the entry of the EditableCombobox.
editablecombobox.go:50
Method
SetText
SetText sets the Button's text to text.
button.go:44
Method
SetText
SetText sets the Checkbox's text to text.
checkbox.go:45
Method
SetText
SetText sets the MultilineEntry's text to text.
multilineentry.go:58
Method
SetTime
SetTime sets the time in the DateTimePicker to t. t's components are read as-is via t.Date() and t.Clock(); no time zone manipulations are done.
datetimepicker.go:69
Method
SetTitle
SetTitle sets the Window's title to title.
window.go:58
Method
SetTitle
SetTitle sets the Group's title to title.
group.go:53
Method
Show
()
control.go:107
Method
Skew
TODO
draw.go:389
Method
Text
Text returns the text in the entry of the EditableCombobox, which could be one of the choices in the list if the user has selected one.
editablecombobox.go:42
Method
Text
Text draws tl in c with the top-left point of tl at (x, y).
drawtext.go:508
Method
Text
Text returns the Button's text.
button.go:36
Method
Text
Text returns the Checkbox's text.
checkbox.go:37
Method
Text
Text returns the MultilineEntry's text.
multilineentry.go:50
Method
Time
Time returns the time stored in the uiDateTimePicker. The time is assumed to be local time.
datetimepicker.go:52
Method
Title
Title returns the Window's title.
window.go:50
Method
Title
Title returns the Group's title.
group.go:45
Function
ToOpenTypeTag
ToOpenTypeTag converts the four characters a, b, c, and d into an OpenTypeTag.
drawtext.go:257
Method
TransformPoint
TODO unimplemented
draw.go:425
Method
TransformSize
TODO unimplemented
draw.go:430
Method
Value
Value returns the value currently shown in the ProgressBar.
progressbar.go:30
Method
Visible
Visible returns whether the Control is visible.
control.go:36
Method
Visible
()
control.go:103
Function
attributeFromLibui
(a *C.uiAttribute)
drawtext.go:264
Function
init
make sure main() runs on the first thread created by the OS if main() calls Main(), things will just work on macOS, where the first thread created by
main.go:19
Function
main
()
examples/table.go:193
Function
main
()
examples/drawtext.go:166
Function
main
()
examples/controlgallery.go:221
Function
main
()
examples/histogram.go:252
Function
main
()
examples/updateui.go:111
Function
pkguiAlloc
export pkguiAlloc
util.go:13
Function
pkguiDoAreaHandlerDragBroken
export pkguiDoAreaHandlerDragBroken
areahandler.go:217
Function
pkguiDoAreaHandlerDraw
export pkguiDoAreaHandlerDraw
areahandler.go:140
Function
pkguiDoAreaHandlerKeyEvent
export pkguiDoAreaHandlerKeyEvent
areahandler.go:233
Function
pkguiDoAreaHandlerMouseCrossed
export pkguiDoAreaHandlerMouseCrossed
areahandler.go:210
Function
pkguiDoAreaHandlerMouseEvent
export pkguiDoAreaHandlerMouseEvent
areahandler.go:191
Function
pkguiDoButtonOnClicked
export pkguiDoButtonOnClicked
button.go:57
Function
pkguiDoCheckboxOnToggled
export pkguiDoCheckboxOnToggled
checkbox.go:58
Function
pkguiDoColorButtonOnChanged
export pkguiDoColorButtonOnChanged
colorbutton.go:57
Function
pkguiDoComboboxOnSelected
export pkguiDoComboboxOnSelected
combobox.go:59
Function
pkguiDoDateTimePickerOnChanged
export pkguiDoDateTimePickerOnChanged
datetimepicker.go:92
Function
pkguiDoEditableComboboxOnChanged
export pkguiDoEditableComboboxOnChanged
editablecombobox.go:64
Function
pkguiDoEntryOnChanged
export pkguiDoEntryOnChanged
entry.go:75
Function
pkguiDoFontButtonOnChanged
export pkguiDoFontButtonOnChanged
fontbutton.go:51
Function
pkguiDoMultilineEntryOnChanged
export pkguiDoMultilineEntryOnChanged
multilineentry.go:79
Function
pkguiDoOnShouldQuit
export pkguiDoOnShouldQuit
main.go:120
Function
pkguiDoQueueMain
export pkguiDoQueueMain
main.go:92
Function
pkguiDoRadioButtonsOnSelected
export pkguiDoRadioButtonsOnSelected
radiobuttons.go:58
Function
pkguiDoSliderOnChanged
export pkguiDoSliderOnChanged
slider.go:50
Function
pkguiDoSpinboxOnChanged
export pkguiDoSpinboxOnChanged
spinbox.go:50
Function
pkguiDoTableModelCellValue
export pkguiDoTableModelCellValue
tablemodel.go:169
Function
pkguiDoTableModelColumnType
export pkguiDoTableModelColumnType
tablemodel.go:146
Function
pkguiDoTableModelNumColumns
export pkguiDoTableModelNumColumns
tablemodel.go:140
Function
pkguiDoTableModelNumRows
export pkguiDoTableModelNumRows
tablemodel.go:163
Function
pkguiDoTableModelSetCellValue
export pkguiDoTableModelSetCellValue
tablemodel.go:179
Function
pkguiDoWindowOnClosing
export pkguiDoWindowOnClosing
window.go:80
Function
setupUI
()
examples/table.go:143
Function
setupUI
()
examples/drawtext.go:114
Function
setupUI
()
examples/controlgallery.go:194
Function
setupUI
()
examples/histogram.go:202
Function
setupUI
()
examples/updateui.go:18
Method
toLibui
()
tablemodel.go:18
Method
toLibui
()
tablemodel.go:31
Method
toLibui
()
tablemodel.go:46
Method
toLibui
()
tablemodel.go:58
Method
toLibui
()
draw.go:225
← previous
next →
201–300 of 315, ranked by callers