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
↓ 1 callers
Function
freeStrokeParams
(csp *C.uiDrawStrokeParams)
draw.go:293
↓ 1 callers
Method
fromLibui
(fd *C.uiFontDescriptor)
drawtext.go:428
↓ 1 callers
Function
inPoint
(x, y float64, xtest, ytest float64)
examples/histogram.go:163
↓ 1 callers
Function
makeAttributedString
()
examples/drawtext.go:30
↓ 1 callers
Function
makeBasicControlsPage
()
examples/controlgallery.go:14
↓ 1 callers
Function
makeDataChoosersPage
()
examples/controlgallery.go:108
↓ 1 callers
Function
makeNumbersPage
()
examples/controlgallery.go:48
↓ 1 callers
Function
newModelHandler
()
examples/table.go:28
↓ 1 callers
Function
tableValueFromLibui
(value *C.uiTableValue)
tablemodel.go:62
↓ 1 callers
Method
toLibui
()
tablemodel.go:11
↓ 1 callers
Function
unregisterAreaHandler
(uah *C.uiAreaHandler)
areahandler.go:107
Method
Append
Append adds the given image as a representation of the Image.
image.go:50
Method
Append
Append adds text to the end of the MultilineEntry's text. TODO selection and scroll behavior
multilineentry.go:66
Method
AppendCheckboxTextColumn
AppendCheckboxTextColumn appends a column to t that contains both a checkbox and text.
table.go:129
Method
AppendImageColumn
AppendImageColumn appends an image column to t. Images are drawn at icon size, appropriate to the pixel density of the screen showing the Table.
table.go:101
Method
ArcTo
ArcTo adds a circular arc to the current figure of the DrawPath. You pass it the center of the arc, its radius in radians, the starting angle (couterc
draw.go:106
Method
BezierTo
BezierTo adds a cubic Bezier curve to the current figure of the DrawPath. Its start point is the current point. c1x and c1y are the first control poin
draw.go:119
Method
Borderless
Borderless returns whether the Window is borderless.
window.go:92
Method
CellValue
(m *ui.TableModel, row, column int)
examples/table.go:55
Method
Checked
Checked returns whether the Checkbox is checked.
checkbox.go:66
Method
Clip
TODO
draw.go:442
Method
ColumnTypes
(m *ui.TableModel)
examples/table.go:35
Method
Delete
Delete deletes the characters and attributes of s in the byte range [start, end).
drawtext.go:402
Method
Destroy
Destroy destroys the Group. If the Group has a child, Destroy calls Destroy on that as well.
group.go:35
Method
Destroy
Destroy destroys the Form. If the Form has children, Destroy calls Destroy on those Controls as well.
form.go:36
Method
Destroy
Destroy destroys the Box. If the Box has children, Destroy calls Destroy on those Controls as well.
box.go:48
Method
Destroy
Destroy destroys the Tab. If the Tab has pages, Destroy calls Destroy on the pages's Controls as well.
tab.go:33
Method
Destroy
Destroy destroys the Area.
area.go:77
Method
Destroy
()
control.go:94
Method
Disable
Disable disables the Control.
control.go:53
Method
Disable
()
control.go:123
Method
DragBroken
(a *ui.Area)
examples/drawtext.go:105
Method
DragBroken
(a *ui.Area)
examples/histogram.go:193
Method
Draw
(a *ui.Area, p *ui.AreaDrawParams)
examples/drawtext.go:86
Method
Draw
(a *ui.Area, p *ui.AreaDrawParams)
examples/histogram.go:94
Function
DrawNewMatrix
TODO identity matrix
draw.go:328
Function
DrawNewPath
DrawNewPath creates a new DrawPath with the given fill mode.
draw.go:53
Function
DrawNewTextLayout
DrawNewTextLayout() creates a new DrawTextLayout from the given parameters.
drawtext.go:489
Method
Enable
Enable enables the Control.
control.go:50
Method
Enable
()
control.go:119
Method
Enabled
Enabled returns whether the Control is enabled.
control.go:47
Method
Enabled
()
control.go:115
Method
Free
Free frees m. It is an error to Free any models associated with a Table.
tablemodel.go:197
Method
Free
Free destroys a DrawPath. After calling Free the DrawPath cannot be used.
draw.go:71
Method
Free
Free destroys s.
drawtext.go:374
Method
Free
Free frees tl. The underlying AttributedString is not freed.
drawtext.go:503
Method
Handle
Handle returns the OS-level handle that backs the Control. On OSs that use reference counting for controls, Handle does not increment the reference co
control.go:33
Method
Handle
()
control.go:99
Method
Hide
()
control.go:111
Method
InsertAt
InsertAt adds the given control to the Grid relative to an existing control.
grid.go:76
Method
InsertAtUnattributed
InsertAtUnattributed adds str to s at the byte position specified by at. The new substring will be unattributed; existing attributes will be moved alo
drawtext.go:394
Method
Invert
TODO If m is not invertible, false is returned and m is left unchanged.
draw.go:417
Method
Invertible
TODO
draw.go:407
Method
KeyEvent
(a *ui.Area, ke *ui.AreaKeyEvent)
examples/drawtext.go:109
Method
KeyEvent
(a *ui.Area, ke *ui.AreaKeyEvent)
examples/histogram.go:197
Method
LibuiControl
()
control.go:90
Function
LibuiFreeText
LibuiFreeText allows implementations of Control to call the libui function uiFreeText.
control.go:143
Function
Main
Main initializes package ui, runs f to set up the program, and executes the GUI main loop. f should set up the program's initial state: open the main
main.go:30
Method
Margined
Margined returns whether the Window has margins around its child.
window.go:113
Method
Margined
Margined returns whether the Group has margins around its child.
group.go:71
Method
Margined
Margined returns whether page n (starting at 0) of the Tab has margins around its child.
tab.go:78
Method
MouseCrossed
(a *ui.Area, left bool)
examples/drawtext.go:101
Method
MouseCrossed
(a *ui.Area, left bool)
examples/histogram.go:189
Method
MouseEvent
(a *ui.Area, me *ui.AreaMouseEvent)
examples/drawtext.go:97
Method
MouseEvent
(a *ui.Area, me *ui.AreaMouseEvent)
examples/histogram.go:173
Function
MsgBox
(w *Window, title string, description string)
stddialogs.go:35
Function
MsgBoxError
TODO
stddialogs.go:9
Method
Multiply
TODO
draw.go:398
Function
NewArea
NewArea creates a new non-scrolling Area.
area.go:52
Function
NewAttributedString
NewAttributedString creates a new AttributedString from initialString. The string will be entirely unattributed.
drawtext.go:365
Function
NewButton
NewButton creates a new Button with the given text as its label.
button.go:22
Function
NewCheckbox
NewCheckbox creates a new Checkbox with the given text as its label.
checkbox.go:23
Function
NewColorButton
NewColorButton creates a new ColorButton.
colorbutton.go:21
Function
NewCombobox
NewCombobox creates a new Combobox.
combobox.go:22
Function
NewDatePicker
NewDatePicker creates a new DateTimePicker that shows only a date.
datetimepicker.go:40
Function
NewDateTimePicker
NewDateTimePicker creates a new DateTimePicker that shows both a date and a time.
datetimepicker.go:34
Function
NewEditableCombobox
NewEditableCombobox creates a new EditableCombobox.
editablecombobox.go:22
Function
NewEntry
NewEntry creates a new Entry.
entry.go:36
Function
NewFontButton
NewFontButton creates a new FontButton.
fontbutton.go:21
Function
NewForm
NewForm creates a new horizontal Form.
form.go:25
Function
NewGrid
NewGrid creates a new Grid.
grid.go:53
Function
NewGroup
NewGroup creates a new Group.
group.go:22
Function
NewHorizontalBox
NewHorizontalBox creates a new horizontal Box.
box.go:27
Function
NewHorizontalSeparator
NewHorizontalSeparator creates a new horizontal Separator.
separator.go:20
Function
NewImage
NewImage creates a new Image with the given width and height. This width and height should be the size in points of the image in the device-independen
image.go:38
Function
NewLabel
NewLabel creates a new Label with the given text.
label.go:20
Function
NewMultilineEntry
NewMultilineEntry creates a new MultilineEntry. The MultilineEntry soft-word-wraps and has no horizontal scrollbar.
multilineentry.go:38
Function
NewNonWrappingMultilineEntry
NewNonWrappingMultilineEntry creates a new MultilineEntry. The MultilineEntry does not word-wrap and thus has horizontal scrollbar.
multilineentry.go:45
Function
NewPasswordEntry
NewPasswordEntry creates a new Entry whose contents are visibly obfuscated, suitable for passwords.
entry.go:42
Function
NewProgressBar
NewProgressBar creates a new ProgressBar.
progressbar.go:20
Function
NewRadioButtons
NewRadioButtons creates a new RadioButtons.
radiobuttons.go:21
Function
NewScrollingArea
NewScrollingArea creates a new scrolling Area of the given size, in points.
area.go:65
Function
NewSearchEntry
NewSearchEntry creates a new Entry suitable for searching with. Changed events may, depending on the system, be delayed with a search Entry, to produc
entry.go:49
Function
NewSlider
NewSlider creates a new Slider. If min >= max, they are swapped.
slider.go:22
Function
NewSpinbox
NewSpinbox creates a new Spinbox. If min >= max, they are swapped.
spinbox.go:22
Function
NewTab
NewTab creates a new Tab.
tab.go:22
Function
NewTable
NewTable creates a new Table with the specified parameters.
table.go:74
Function
NewTableModel
NewTableModel creates a new TableModel.
tablemodel.go:186
Function
NewTimePicker
NewTimePicker creates a new DateTimePicker that shows only a time.
datetimepicker.go:46
Function
NewVerticalBox
NewVerticalBox creates a new vertical Box.
box.go:37
← previous
next →
101–200 of 315, ranked by callers