Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aarzilli/nucular
/ functions
Functions
604 in github.com/aarzilli/nucular
⨍
Functions
604
◇
Types & classes
126
↓ 257 callers
Method
Row
Changes row layout and starts a new row. Use the returned value to configure the new row layout: win.Row(10).Static(100, 120, 100) If height == 0 a
nucular.go:1050
↓ 165 callers
Method
Dynamic
Starts new row that has cols columns of equal width that automatically resize to fill the available space.
nucular.go:1068
↓ 136 callers
Method
Label
Label draws a text label.
nucular.go:1613
↓ 127 callers
Function
T
(text string)
label/label.go:52
↓ 119 callers
Method
Button
Button adds a button
nucular.go:1829
↓ 86 callers
Method
Static
Starts new row with a fixed number of columns with the specfieid widths. If no widths are specified the row will never autowrap and the width of the n
nucular.go:1107
↓ 82 callers
Function
MakeItemColor
(col color.RGBA)
style/style.go:905
↓ 57 callers
Method
FillRect
(rect rect.Rect, rounding uint16, c color.RGBA)
command/command.go:108
↓ 54 callers
Method
Add
(ws nstyle.WidgetStates, bounds rect.Rect)
nucular.go:185
↓ 46 callers
Method
Input
()
masterwindow.go:36
↓ 44 callers
Method
Master
()
nucular.go:198
↓ 43 callers
Method
GroupBegin
GROUPS Creates a group of widgets. Group are useful for creating lists as well as splitting a main window into tiled subwindows. Items that you want
nucular.go:3018
↓ 43 callers
Method
GroupEnd
Signals that you are done adding widgets to a group.
nucular.go:3060
↓ 42 callers
Function
FontHeight
(f font.Face)
util.go:147
↓ 41 callers
Method
TreePop
TreePop signals that the program is done adding elements to the current collapsable section.
nucular.go:1557
↓ 41 callers
Method
TreePush
(type_ TreeType, title string, initialOpen bool)
nucular.go:1393
↓ 40 callers
Method
CheckboxText
CheckboxText adds a checkbox button to win. Active will contain the checkbox value. Returns true when value changes.
nucular.go:2256
↓ 38 callers
Function
max
(a, b int)
util.go:29
↓ 36 callers
Method
Rectangle
()
rect/rect.go:43
↓ 33 callers
Method
len
()
richtext/rtxt.go:116
↓ 31 callers
Method
Style
()
masterwindow.go:30
↓ 29 callers
Method
SelectableLabel
SelectableLabel adds a selectable label. Value is a pointer to a flag that will be changed to reflect the selected state of this label. Returns true w
nucular.go:1882
↓ 29 callers
Method
style
()
nucular.go:214
↓ 28 callers
Method
DrawImage
(r rect.Rect, img *image.RGBA)
command/command.go:173
↓ 28 callers
Function
FontWidth
(f font.Face, str string)
font.go:37
↓ 28 callers
Method
PropertyInt
Same as PropertyFloat but with integer values.
nucular.go:2660
↓ 27 callers
Method
Close
()
masterwindow.go:24
↓ 25 callers
Function
TA
(text string, align Align)
label/label.go:56
↓ 23 callers
Method
SliderInt
Adds a slider with an integer value to win. Returns true when the slider's value changes.
nucular.go:2377
↓ 23 callers
Method
scale
(delta image.Point)
nucular.go:772
↓ 22 callers
Method
Edit
Adds text editor edit to win. Initial contents of the text editor will be set to text. If alwaysSet is specified the contents of the editor will be re
text.go:1666
↓ 22 callers
Method
clamp
()
text.go:335
↓ 21 callers
Method
Down
(id mouse.Button)
input.go:96
↓ 21 callers
Method
MenuItem
MenuItem adds a menu item
nucular.go:2816
↓ 20 callers
Method
HoveringRect
(rect rect.Rect)
input.go:81
↓ 20 callers
Method
LayoutSpacePush
Sets position and size of the next widgets in a Space row layout
nucular.go:1301
↓ 18 callers
Method
SetStyle
(*nstyle.Style)
masterwindow.go:31
↓ 18 callers
Method
StrokeLine
(p0, p1 image.Point, line_thickness int, c color.RGBA)
command/command.go:98
↓ 18 callers
Method
Text
(text []rune)
text.go:509
↓ 17 callers
Method
Lock
()
masterwindow.go:43
↓ 17 callers
Method
Unlock
()
masterwindow.go:44
↓ 17 callers
Method
hasSelection
()
text.go:182
↓ 17 callers
Method
widget
()
nucular.go:799
↓ 16 callers
Method
Custom
Custom adds a custom widget.
nucular.go:1656
↓ 16 callers
Method
OptionText
OptionText adds a radio button to win. If is_active is true the radio button will be drawn selected. Returns true when the button is clicked once. You
nucular.go:2239
↓ 16 callers
Method
Progress
Adds a progress bar to win. if is_modifiable is true the progress bar will be user modifiable through click-and-drag. Returns true when the progress b
nucular.go:2439
↓ 16 callers
Method
contains
(p int32)
richtext/rtxt.go:67
↓ 16 callers
Function
shrinkRect
(r rect.Rect, amount int)
util.go:136
↓ 16 callers
Function
widgetText
(o *command.Buffer, b rect.Rect, str string, t *textWidget, a label.Align, f font.Face)
gio.go:822
↓ 14 callers
Method
PropertyFloat
Adds a property widget to win for floating point properties. A property widget will display a text label, a small text editor for the property value a
nucular.go:2631
↓ 14 callers
Method
SetStyleForSel
SetStyleForSel changes the text style for the specified region.
richtext/rtxt.go:636
↓ 14 callers
Function
doButton
(win *Window, lbl label.Label, r rect.Rect, style *nstyle.Button, in *Input, repeat bool)
nucular.go:1729
↓ 14 callers
Function
findSel
(haystack, needle string)
_examples/richtext/main.go:209
↓ 13 callers
Method
ButtonText
(text string)
nucular.go:1842
↓ 13 callers
Method
Line
()
gio.go:733
↓ 13 callers
Method
PopupOpen
(title string, flags WindowFlags, rect rect.Rect, scale bool, updateFn UpdateFn)
masterwindow.go:38
↓ 13 callers
Method
PrevState
(bounds rect.Rect)
nucular.go:181
↓ 13 callers
Method
inputMaybe
(widgetValid bool)
input.go:117
↓ 12 callers
Method
Combo
COMBO-BOX Adds a drop-down list to win.
nucular.go:2887
↓ 12 callers
Method
Contains
(p image.Point)
rect/rect.go:16
↓ 12 callers
Method
Intersect
(r1 *Rect)
rect/rect.go:20
↓ 12 callers
Method
Metrics
()
font/font_shiny.go:38
↓ 10 callers
Method
Max
()
rect/rect.go:28
↓ 10 callers
Method
Min
()
rect/rect.go:24
↓ 10 callers
Method
RowScaled
Same as Row but with scaled units.
nucular.go:1056
↓ 10 callers
Function
S
(s SymbolType)
label/label.go:72
↓ 10 callers
Method
sub
(start, end int32)
richtext/rtxt.go:123
↓ 9 callers
Method
CustomState
CustomState returns the widget state of a custom widget.
nucular.go:1643
↓ 9 callers
Method
IsClickInRect
(id mouse.Button, b rect.Rect)
input.go:68
↓ 9 callers
Method
LayoutSetWidth
LayoutSetWidth adds a new column with the specified width to a static layout.
nucular.go:1240
↓ 9 callers
Method
Reset
()
context.go:182
↓ 9 callers
Function
drawFill
(dst *image.RGBA, r image.Rectangle, src *image.Uniform, sp image.Point, op draw.Op)
context.go:637
↓ 9 callers
Method
prepSelectionAtCursor
()
text.go:465
↓ 9 callers
Function
strInsertText
(str []rune, pos int, runes []rune)
text.go:160
↓ 9 callers
Method
toplevel
()
input.go:125
↓ 8 callers
Method
ContextualOpen
CONTEXTUAL Opens a contextual menu with maximum size equal to 'size'. Specify size == image.Point{} if you want a menu big enough to fit its larges
nucular.go:2780
↓ 8 callers
Method
IsClickDownInRect
(id mouse.Button, b rect.Rect, down bool)
input.go:72
↓ 8 callers
Method
PushScissor
(r rect.Rect)
command/command.go:83
↓ 8 callers
Function
asserteq
(t *testing.T, s []rune, tgt []rune)
strinsdel_test.go:7
↓ 8 callers
Function
clampFloat
(i, v, x float64)
util.go:85
↓ 8 callers
Function
drawSymbolButton
(win *Window, bounds rect.Rect, content rect.Rect, state nstyle.WidgetStates, style *nstyle.Button, symbol lab
drawing.go:294
↓ 8 callers
Method
editDrawText
(out *command.Buffer, style *nstyle.Edit, pos image.Point, x_margin int, text []rune, textOffset int, row_heig
text.go:973
↓ 8 callers
Function
min
(a, b int)
util.go:22
↓ 8 callers
Method
replace
(str string, changed *bool)
richtext/click.go:500
↓ 8 callers
Function
strDeleteText
(s []rune, pos int, dlen int)
text.go:176
↓ 7 callers
Method
Changed
()
masterwindow.go:23
↓ 7 callers
Method
Cursor
(r rect.Rect, cursor font.Cursor)
command/command.go:185
↓ 7 callers
Method
DeleteSelection
Deletes selection.
text.go:366
↓ 7 callers
Method
End
()
richtext/rtxt.go:484
↓ 7 callers
Method
LayoutFitWidth
LayoutFitWidth adds a new column to a static layout. The width of the column will be large enough to fit the largest widget exactly. The largest widge
nucular.go:1266
↓ 7 callers
Method
Main
()
masterwindow.go:22
↓ 7 callers
Method
Scale
(scaling float64)
style/style.go:1049
↓ 7 callers
Method
Spacing
Spacing adds empty space
nucular.go:1636
↓ 7 callers
Method
clampSel
()
richtext/click.go:477
↓ 7 callers
Method
endoff
()
richtext/rtxt.go:199
↓ 7 callers
Method
moveToFirst
()
text.go:394
↓ 7 callers
Function
panelLayout
(ctx *context, win *Window, height int, cols int, cnt int)
nucular.go:865
↓ 7 callers
Method
towd
Moves to the beginning or end of an alphanumerically delimited word
text.go:445
↓ 6 callers
Method
Align
Align changes current text alignment. It is only legal to call Align before inserting text or after a newline character is inserted.
richtext/rtxt.go:521
↓ 6 callers
Method
Draw
(ops *op.Ops, source input.Source, size image.Point, perf bool, perfString string)
gio.go:440
next →
1–100 of 604, ranked by callers