MCPcopy Create free account

hub / github.com/aarzilli/nucular / functions

Functions604 in github.com/aarzilli/nucular

↓ 257 callersMethodRow
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 callersMethodDynamic
Starts new row that has cols columns of equal width that automatically resize to fill the available space.
nucular.go:1068
↓ 136 callersMethodLabel
Label draws a text label.
nucular.go:1613
↓ 127 callersFunctionT
(text string)
label/label.go:52
↓ 119 callersMethodButton
Button adds a button
nucular.go:1829
↓ 86 callersMethodStatic
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 callersFunctionMakeItemColor
(col color.RGBA)
style/style.go:905
↓ 57 callersMethodFillRect
(rect rect.Rect, rounding uint16, c color.RGBA)
command/command.go:108
↓ 54 callersMethodAdd
(ws nstyle.WidgetStates, bounds rect.Rect)
nucular.go:185
↓ 46 callersMethodInput
()
masterwindow.go:36
↓ 44 callersMethodMaster
()
nucular.go:198
↓ 43 callersMethodGroupBegin
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 callersMethodGroupEnd
Signals that you are done adding widgets to a group.
nucular.go:3060
↓ 42 callersFunctionFontHeight
(f font.Face)
util.go:147
↓ 41 callersMethodTreePop
TreePop signals that the program is done adding elements to the current collapsable section.
nucular.go:1557
↓ 41 callersMethodTreePush
(type_ TreeType, title string, initialOpen bool)
nucular.go:1393
↓ 40 callersMethodCheckboxText
CheckboxText adds a checkbox button to win. Active will contain the checkbox value. Returns true when value changes.
nucular.go:2256
↓ 38 callersFunctionmax
(a, b int)
util.go:29
↓ 36 callersMethodRectangle
()
rect/rect.go:43
↓ 33 callersMethodlen
()
richtext/rtxt.go:116
↓ 31 callersMethodStyle
()
masterwindow.go:30
↓ 29 callersMethodSelectableLabel
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 callersMethodstyle
()
nucular.go:214
↓ 28 callersMethodDrawImage
(r rect.Rect, img *image.RGBA)
command/command.go:173
↓ 28 callersFunctionFontWidth
(f font.Face, str string)
font.go:37
↓ 28 callersMethodPropertyInt
Same as PropertyFloat but with integer values.
nucular.go:2660
↓ 27 callersMethodClose
()
masterwindow.go:24
↓ 25 callersFunctionTA
(text string, align Align)
label/label.go:56
↓ 23 callersMethodSliderInt
Adds a slider with an integer value to win. Returns true when the slider's value changes.
nucular.go:2377
↓ 23 callersMethodscale
(delta image.Point)
nucular.go:772
↓ 22 callersMethodEdit
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 callersMethodclamp
()
text.go:335
↓ 21 callersMethodDown
(id mouse.Button)
input.go:96
↓ 21 callersMethodMenuItem
MenuItem adds a menu item
nucular.go:2816
↓ 20 callersMethodHoveringRect
(rect rect.Rect)
input.go:81
↓ 20 callersMethodLayoutSpacePush
Sets position and size of the next widgets in a Space row layout
nucular.go:1301
↓ 18 callersMethodSetStyle
(*nstyle.Style)
masterwindow.go:31
↓ 18 callersMethodStrokeLine
(p0, p1 image.Point, line_thickness int, c color.RGBA)
command/command.go:98
↓ 18 callersMethodText
(text []rune)
text.go:509
↓ 17 callersMethodLock
()
masterwindow.go:43
↓ 17 callersMethodUnlock
()
masterwindow.go:44
↓ 17 callersMethodhasSelection
()
text.go:182
↓ 17 callersMethodwidget
()
nucular.go:799
↓ 16 callersMethodCustom
Custom adds a custom widget.
nucular.go:1656
↓ 16 callersMethodOptionText
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 callersMethodProgress
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 callersMethodcontains
(p int32)
richtext/rtxt.go:67
↓ 16 callersFunctionshrinkRect
(r rect.Rect, amount int)
util.go:136
↓ 16 callersFunctionwidgetText
(o *command.Buffer, b rect.Rect, str string, t *textWidget, a label.Align, f font.Face)
gio.go:822
↓ 14 callersMethodPropertyFloat
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 callersMethodSetStyleForSel
SetStyleForSel changes the text style for the specified region.
richtext/rtxt.go:636
↓ 14 callersFunctiondoButton
(win *Window, lbl label.Label, r rect.Rect, style *nstyle.Button, in *Input, repeat bool)
nucular.go:1729
↓ 14 callersFunctionfindSel
(haystack, needle string)
_examples/richtext/main.go:209
↓ 13 callersMethodButtonText
(text string)
nucular.go:1842
↓ 13 callersMethodLine
()
gio.go:733
↓ 13 callersMethodPopupOpen
(title string, flags WindowFlags, rect rect.Rect, scale bool, updateFn UpdateFn)
masterwindow.go:38
↓ 13 callersMethodPrevState
(bounds rect.Rect)
nucular.go:181
↓ 13 callersMethodinputMaybe
(widgetValid bool)
input.go:117
↓ 12 callersMethodCombo
COMBO-BOX Adds a drop-down list to win.
nucular.go:2887
↓ 12 callersMethodContains
(p image.Point)
rect/rect.go:16
↓ 12 callersMethodIntersect
(r1 *Rect)
rect/rect.go:20
↓ 12 callersMethodMetrics
()
font/font_shiny.go:38
↓ 10 callersMethodMax
()
rect/rect.go:28
↓ 10 callersMethodMin
()
rect/rect.go:24
↓ 10 callersMethodRowScaled
Same as Row but with scaled units.
nucular.go:1056
↓ 10 callersFunctionS
(s SymbolType)
label/label.go:72
↓ 10 callersMethodsub
(start, end int32)
richtext/rtxt.go:123
↓ 9 callersMethodCustomState
CustomState returns the widget state of a custom widget.
nucular.go:1643
↓ 9 callersMethodIsClickInRect
(id mouse.Button, b rect.Rect)
input.go:68
↓ 9 callersMethodLayoutSetWidth
LayoutSetWidth adds a new column with the specified width to a static layout.
nucular.go:1240
↓ 9 callersMethodReset
()
context.go:182
↓ 9 callersFunctiondrawFill
(dst *image.RGBA, r image.Rectangle, src *image.Uniform, sp image.Point, op draw.Op)
context.go:637
↓ 9 callersMethodprepSelectionAtCursor
()
text.go:465
↓ 9 callersFunctionstrInsertText
(str []rune, pos int, runes []rune)
text.go:160
↓ 9 callersMethodtoplevel
()
input.go:125
↓ 8 callersMethodContextualOpen
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 callersMethodIsClickDownInRect
(id mouse.Button, b rect.Rect, down bool)
input.go:72
↓ 8 callersMethodPushScissor
(r rect.Rect)
command/command.go:83
↓ 8 callersFunctionasserteq
(t *testing.T, s []rune, tgt []rune)
strinsdel_test.go:7
↓ 8 callersFunctionclampFloat
(i, v, x float64)
util.go:85
↓ 8 callersFunctiondrawSymbolButton
(win *Window, bounds rect.Rect, content rect.Rect, state nstyle.WidgetStates, style *nstyle.Button, symbol lab
drawing.go:294
↓ 8 callersMethodeditDrawText
(out *command.Buffer, style *nstyle.Edit, pos image.Point, x_margin int, text []rune, textOffset int, row_heig
text.go:973
↓ 8 callersFunctionmin
(a, b int)
util.go:22
↓ 8 callersMethodreplace
(str string, changed *bool)
richtext/click.go:500
↓ 8 callersFunctionstrDeleteText
(s []rune, pos int, dlen int)
text.go:176
↓ 7 callersMethodChanged
()
masterwindow.go:23
↓ 7 callersMethodCursor
(r rect.Rect, cursor font.Cursor)
command/command.go:185
↓ 7 callersMethodDeleteSelection
Deletes selection.
text.go:366
↓ 7 callersMethodEnd
()
richtext/rtxt.go:484
↓ 7 callersMethodLayoutFitWidth
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 callersMethodMain
()
masterwindow.go:22
↓ 7 callersMethodScale
(scaling float64)
style/style.go:1049
↓ 7 callersMethodSpacing
Spacing adds empty space
nucular.go:1636
↓ 7 callersMethodclampSel
()
richtext/click.go:477
↓ 7 callersMethodendoff
()
richtext/rtxt.go:199
↓ 7 callersMethodmoveToFirst
()
text.go:394
↓ 7 callersFunctionpanelLayout
(ctx *context, win *Window, height int, cols int, cnt int)
nucular.go:865
↓ 7 callersMethodtowd
Moves to the beginning or end of an alphanumerically delimited word
text.go:445
↓ 6 callersMethodAlign
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 callersMethodDraw
(ops *op.Ops, source input.Source, size image.Point, perf bool, perfString string)
gio.go:440
next →1–100 of 604, ranked by callers