MCPcopy Create free account

hub / github.com/andlabs/ui / functions

Functions315 in github.com/andlabs/ui

↓ 44 callersMethodAppend
Append adds the given control to the end of the Box.
box.go:58
↓ 36 callersFunctionfreestr
(str *C.char)
util.go:21
↓ 26 callersFunctionNewControlBase
NewControlBase creates a new ControlBase. See the documentation of ControlBase for an example. NewControl should only be called once per instance of C
control.go:81
↓ 21 callersFunctionfrombool
(b bool)
util.go:29
↓ 18 callersFunctionControlFromLibui
ControlFromLibui returns the Control associated with a libui uiControl. This is intended for implementing event handlers on the Go side, to prevent sh
control.go:131
↓ 17 callersMethodAppendUnattributed
AppendUnattributed adds str to the end of s. The new substring will be unattributed.
drawtext.go:385
↓ 16 callersMethodSetPadded
SetPadded controls whether there is space between each control of the Box. The size of the padding is determined by the OS and its best practices.
box.go:83
↓ 16 callersFunctiontobool
(b C.int)
util.go:25
↓ 13 callersMethodDestroy
Destroy destroys the Control.
control.go:27
↓ 12 callersFunctionappendWithAttributes
(what string, attrs ...ui.Attribute)
examples/drawtext.go:21
↓ 11 callersMethodtoLibui
()
drawtext.go:28
↓ 9 callersMethodSetChild
SetChild sets the Group's child to child. If child is nil, the Group will not have a child.
group.go:61
↓ 8 callersMethodLibuiControl
LibuiControl returns the uiControl pointer for the Control. This is intended for use when adding a control to a container.
control.go:24
↓ 8 callersFunctiontouiControl
(c uintptr)
control.go:137
↓ 7 callersMethodAppend
TODO Destroy Append adds the given control to the Grid, at the given coordinate.
grid.go:65
↓ 7 callersMethodAppend
Append adds the given control to the end of the Form.
form.go:46
↓ 7 callersMethodtoLibui
()
draw.go:344
↓ 6 callersMethodDestroy
Destroy destroys the Window. If the Window has a child, Destroy calls Destroy on that as well.
window.go:39
↓ 6 callersMethodFree
Free frees the Image.
image.go:45
↓ 6 callersMethodOnClicked
OnClicked registers f to be run when the user clicks the Button. Only one function can be registered at a time.
button.go:52
↓ 6 callersMethodSetMargined
SetMargined controls whether the Group has margins around its child. The size of the margins are determined by the OS and its best practices.
group.go:78
↓ 6 callersMethodfromLibui
(cm *C.uiDrawMatrix)
draw.go:355
↓ 5 callersMethodLineTo
LineTo adds a line to the current figure of the DrawPath starting from the current point and ending at the given point. The current point is set to th
draw.go:96
↓ 5 callersMethodOnClosing
TODO ContentSize TODO SetContentSize TODO Fullscreen TODO SetFullscreen TODO OnContentSizeChanged OnClosing registers f to be run when the user clicks
window.go:75
↓ 5 callersMethodQueueRedrawAll
QueueRedrawAll queues the entire Area for redraw. The Area is not redrawn before this function returns; it is redrawn when next possible.
area.go:94
↓ 5 callersMethodSetChild
SetChild sets the Window's child to child. If child is nil, the Window will not have a child.
window.go:103
↓ 5 callersMethodShow
Show shows the Control.
control.go:39
↓ 4 callersMethodEnd
End ends the current DrawPath. You cannot add figures to a DrawPath that has been ended. You cannot draw with a DrawPath that has not been ended.
draw.go:149
↓ 4 callersMethodSetMargined
SetMargined controls whether page n (starting at 0) of the Tab has margins around its child. The size of the margins are determined by the OS and its
tab.go:85
↓ 4 callersFunctionappendImageNamed
(i *ui.Image, which string)
examples/table.go:128
↓ 3 callersMethodAppend
Append adds the named item to the end of the EditableCombobox.
editablecombobox.go:34
↓ 3 callersMethodAppend
Append adds the named button to the end of the RadioButtons.
radiobuttons.go:33
↓ 3 callersMethodAppend
Append adds the given page to the end of the Tab.
tab.go:43
↓ 3 callersMethodAppend
Append adds the named item to the end of the Combobox.
combobox.go:34
↓ 3 callersMethodFill
TODO
draw.go:310
↓ 3 callersMethodOnChanged
OnChanged registers f to be run when the user makes a change to the Entry. Only one function can be registered at a time.
entry.go:70
↓ 3 callersMethodSetMargined
SetMargined controls whether the Window has margins around its child. The size of the margins are determined by the OS and its best practices.
window.go:120
↓ 3 callersMethodSetPadded
SetPadded controls whether there is space between each control of the Form. The size of the padding is determined by the OS and its best practices.
form.go:69
↓ 3 callersMethodSetText
SetText sets the Label's text to text.
label.go:40
↓ 3 callersMethodSetText
SetText sets the Entry's text to text.
entry.go:62
↓ 3 callersMethodSetValue
SetValue sets the ProgressBar's currently displayed percentage to value. value must be between 0 and 100 inclusive, or -1 for an indeterminate progres
progressbar.go:37
↓ 3 callersMethodValue
Value returns the Slider's current value.
slider.go:34
↓ 3 callersFunctionfinishNewDateTimePicker
(dd *C.uiDateTimePicker)
datetimepicker.go:21
↓ 3 callersFunctionfinishNewEntry
(ee *C.uiEntry)
entry.go:24
↓ 3 callersFunctionmkSolidBrush
helper to quickly set a brush color
examples/histogram.go:33
↓ 3 callersFunctionpointLocations
(width, height float64)
examples/histogram.go:54
↓ 2 callersMethodAppendTextColumn
AppendTextColumn appends a text column to t. name is displayed in the table header. textModelColumn is where the text comes from. If a row is editable
table.go:90
↓ 2 callersMethodColumnTypes
ColumnTypes returns a slice of value types of the data stored in the model columns of the TableModel. Each entry in the slice should ideally be a zero
tablemodel.go:116
↓ 2 callersMethodDraw
Draw is sent when a part of the Area needs to be drawn. dp will contain a drawing context to draw on, the rectangle that needs to be drawn in, and (fo
areahandler.go:48
↓ 2 callersMethodNewFigure
NewFigure starts a new figure in the DrawPath. The current point is set to the given point.
draw.go:77
↓ 2 callersMethodRowChanged
RowChanged tells any Tables associated with m that the data in the row at index has changed. You do not need to call this in your SetCellValue handler
tablemodel.go:215
↓ 2 callersMethodSetPadded
SetPadded controls whether there is space between each control of the Grid. The size of the padding is determined by the OS and its best practices.
grid.go:94
↓ 2 callersMethodSetReadOnly
SetReadOnly sets whether the Entry can be changed.
entry.go:88
↓ 2 callersMethodSetValue
SetValue sets the Slider's current value to value.
slider.go:39
↓ 2 callersMethodStroke
TODO
draw.go:301
↓ 2 callersMethodValue
Value returns the Spinbox's current value.
spinbox.go:34
↓ 2 callersFunctionconstructGraph
(width, height float64, extend bool)
examples/histogram.go:68
↓ 2 callersFunctionfinishNewMultilineEntry
(ee *C.uiMultilineEntry)
multilineentry.go:24
↓ 2 callersFunctionfreeBrush
(cb *C.uiDrawBrush)
draw.go:258
↓ 2 callersFunctiongraphSize
(clientWidth, clientHeight float64)
examples/histogram.go:87
↓ 2 callersFunctionregisterAreaHandler
(ah AreaHandler)
areahandler.go:101
↓ 1 callersMethodAddRectangle
AddRectangle creates a new figure in the DrawPath that consists entirely of a rectangle whose top-left corner is at the given point and whose size is
draw.go:142
↓ 1 callersMethodAppendButtonColumn
AppendButtonColumn appends a column to t that shows a button that the user can click on. When the user does click on the button, SetCellValue is calle
table.go:153
↓ 1 callersMethodAppendCheckboxColumn
AppendCheckboxColumn appends a column to t that contains a checkbox that the user can interact with (assuming the checkbox is editable). SetCellValue
table.go:121
↓ 1 callersMethodAppendImageTextColumn
AppendImageTextColumn appends a column to t that shows both an image and text.
table.go:109
↓ 1 callersMethodAppendProgressBarColumn
AppendProgressBarColumn appends a column to t that displays a progress bar. These columns work like ProgressBar: a cell value of 0..100 displays that
table.go:141
↓ 1 callersMethodCellValue
CellValue returns a TableValue corresponding to the model cell at (row, column). The type of the returned TableValue must match column's value type. U
tablemodel.go:127
↓ 1 callersMethodCloseFigure
CloseFigure draws a line segment from the current point of the current figure of the DrawPath back to its initial point. After calling this, the curre
draw.go:133
↓ 1 callersMethodColor
Color returns the color currently selected in the ColorButton. Colors are not alpha-premultiplied. TODO rename b or bl
colorbutton.go:35
↓ 1 callersMethodDelete
Delete deletes the nth control of the Form.
form.go:55
↓ 1 callersMethodDelete
Delete deletes the nth control of the Box.
box.go:69
↓ 1 callersMethodDelete
Delete deletes the nth page of the Tab.
tab.go:66
↓ 1 callersMethodDragBroken
DragBroken is called if a mouse drag is interrupted by the system. As noted above, when a mouse button is held, MouseEvent will continue to be called,
areahandler.go:82
↓ 1 callersMethodFont
Font returns the font currently selected in the FontButton.
fontbutton.go:33
↓ 1 callersMethodHide
Hide shows the Control. Hidden controls do not participate in layout (that is, Box, Grid, etc. does not reserve space for hidden controls).
control.go:44
↓ 1 callersMethodInsertAt
InsertAt adds the given page to the Tab such that it is the nth page of the Tab (starting at 0).
tab.go:49
↓ 1 callersMethodKeyEvent
KeyEvent is called when a key is pressed while the Area has keyboard focus (if the Area has been tabbed into or if the mouse has been clicked on it).
areahandler.go:98
↓ 1 callersMethodMouseCrossed
MouseCrossed is called when the mouse either enters or leaves the Area. It is called even if the mouse buttons are being held (see MouseEvent above).
areahandler.go:68
↓ 1 callersMethodMouseEvent
MouseEvent is called when the mouse moves over the Area or when a mouse button is pressed or released. See AreaMouseEvent for more details. If a mous
areahandler.go:58
↓ 1 callersMethodNewFigureWithArc
NewFigureWithArc starts a new figure in the DrawPath and adds an arc as the first element of the figure. Unlike ArcTo, NewFigureWithArc does not draw
draw.go:85
↓ 1 callersMethodNumRows
NumRows returns the number or rows in the TableModel. This value must be non-negative.
tablemodel.go:120
↓ 1 callersMethodOnChanged
OnChanged registers f to be run when the user changes the value of the Slider. Only one function can be registered at a time.
slider.go:45
↓ 1 callersMethodOnChanged
OnChanged registers f to be run when the user changes the value of the Spinbox. Only one function can be registered at a time.
spinbox.go:45
↓ 1 callersMethodOnSelected
OnSelected registers f to be run when the user selects an item in the Combobox. Only one function can be registered at a time.
combobox.go:54
↓ 1 callersFunctionQueueMain
QueueMain queues f to be executed on the GUI thread when next possible. It returns immediately; that is, it does not wait for the function to actually
main.go:75
↓ 1 callersMethodSelected
Selected returns the index of the currently selected item in the Combobox, or -1 if nothing is selected.
combobox.go:42
↓ 1 callersMethodSetAttribute
SetAttribute sets a in the byte range [start, end) of s. Any existing attributes in that byte range of the same type are removed.
drawtext.go:408
↓ 1 callersMethodSetCellValue
SetCellValue changes the model cell value at (row, column) in the TableModel. Within this function, either do nothing to keep the current cell value o
tablemodel.go:136
↓ 1 callersMethodSetColor
SetColor sets the currently selected color in the ColorButton. Colors are not alpha-premultiplied. TODO rename b or bl
colorbutton.go:45
↓ 1 callersMethodSetIdentity
TODO
draw.go:335
↓ 1 callersMethodSetSelected
SetSelected sets the currently selected item in the Combobox to index. If index is -1 no item will be selected.
combobox.go:48
↓ 1 callersMethodSetValue
SetValue sets the Spinbox's current value to value.
spinbox.go:39
↓ 1 callersMethodString
String returns the textual content of s.
drawtext.go:379
↓ 1 callersMethodText
Text returns the Label's text.
label.go:32
↓ 1 callersMethodText
Text returns the Entry's text.
entry.go:54
↓ 1 callersMethodTransform
TODO
draw.go:435
↓ 1 callersMethodTranslate
TODO
draw.go:366
↓ 1 callersFunctionappendBits
(out []uint, held C.uint64_t)
areahandler.go:178
↓ 1 callersFunctioncounter
()
examples/updateui.go:99
↓ 1 callersFunctionfreeLibuiFontDescriptor
(fd *C.uiFontDescriptor)
drawtext.go:446
next →1–100 of 315, ranked by callers