MCPcopy Create free account

hub / github.com/NV404/gova / functions

Functions609 in github.com/NV404/gova

↓ 83 callersMethodGet
Get returns the current ref value.
state.go:195
↓ 60 callersMethodviewNode
()
view.go:4
↓ 57 callersMethodBackground
(c any)
modifier.go:201
↓ 51 callersMethodSet
Set updates the ref value without triggering a re-render.
state.go:202
↓ 47 callersMethodText
()
testing.go:257
↓ 46 callersFunctionnewScope
newScope creates a fresh scope for a component.
scope.go:69
↓ 39 callersFunctionText
(content any)
text.go:11
↓ 34 callersFunctionrgb
(r, g, b uint8)
style.go:221
↓ 30 callersMethodColor
Color sets the foreground color. Accepts a plain color.Color (fixed) or a semantic color constant (g.Primary, g.Accent, etc.) which resolves against t
modifier.go:196
↓ 30 callersFunctionrgb
(r, g, b uint8)
internal/fyne/theme.go:319
↓ 22 callersMethodFont
(style FontStyle)
modifier.go:170
↓ 22 callersMethodMount
(spec ViewSpec)
internal/fyne/bridge.go:62
↓ 20 callersMethodSpacing
Spacing sets inter-child gap in pixels.
layout.go:70
↓ 18 callersMethodBold
()
modifier.go:175
↓ 18 callersFunctiongetOrCreateState
getOrCreateState retrieves existing state by key, or creates it with the initial value.
scope.go:147
↓ 17 callersMethodPresent
Present shows the picker.
dialog.go:176
↓ 17 callersMethodUpdate
Update applies a transformation to the current value. The callback receives the current value (defensively copied for slices/maps) and must return the
state.go:72
↓ 17 callersFunctionasView
asView converts an argument passed to a layout constructor into a View. Accepts View (returned as-is), Viewable (wrapped), and nil (returned as nil so
component.go:64
↓ 16 callersFunctionDefine
(fn func(*Scope) View)
component.go:33
↓ 16 callersMethodOnCancel
OnCancel is called when the user dismisses the picker without a choice.
dialog.go:164
↓ 16 callersMethodState
State retrieves a state value from the test scope by its caller key.
testing.go:198
↓ 16 callersMethodString
()
internal/devserver/supervisor_test.go:60
↓ 15 callersMethodFindText
FindText returns the nth Text node's value (depth-first).
testing.go:83
↓ 15 callersMethodRefresh
()
internal/fyne/coloredtext.go:185
↓ 14 callersFunctionUseStore
UseStore retrieves a store from the nearest ancestor that Provided it. Returns a *StateValue[T] that can be read and written. Changes trigger re-rende
store.go:45
↓ 14 callersMethoddestroy
destroy cancels the scope's context and invokes effect cleanup functions. Child scopes are destroyed recursively so any effects or subscriptions insid
scope.go:121
↓ 13 callersMethodPadding
(all float32)
modifier.go:98
↓ 12 callersMethodOnPick
OnPick is called with the selected absolute path when the user confirms.
dialog.go:158
↓ 12 callersFunctionProvide
Provide makes a store available to all descendant components in this scope's subtree.
store.go:30
↓ 12 callersMethodRGBA
()
style.go:71
↓ 12 callersMethodnotifyInternal
(v T)
state.go:132
↓ 11 callersMethodSetColor
(name ThemeColorName, c color.Color)
style.go:256
↓ 11 callersFunctionVStack
(children ...any)
layout.go:33
↓ 11 callersFunctiontoSpecWithScope
(node *viewNode, scope *Scope)
render.go:17
↓ 10 callersMethodNodeCount
NodeCount returns the total number of nodes of the given kind.
testing.go:185
↓ 10 callersMethodValue
()
signal.go:11
↓ 10 callersFunctionapplyCurve
(t float32, curve EaseCurve)
animate.go:142
↓ 10 callersFunctionrenderComponent
renderComponent invokes the component's renderFn. If an ErrorBoundary has registered a fallback on this component, panics are recovered and the fallba
component.go:16
↓ 10 callersFunctionrgba
(r, g, b, a uint8)
style.go:222
↓ 10 callersFunctionrgba
(r, g, b, a uint8)
internal/fyne/theme.go:320
↓ 9 callersMethodClose
Close stops the watcher. Safe to call multiple times.
internal/devserver/watcher.go:62
↓ 9 callersMethodEvents
Events returns a receive-only channel that fires once per debounced change.
internal/devserver/watcher.go:59
↓ 9 callersMethodFormat
Format returns a Signal[string] that auto-updates when this state changes. Uses fmt.Sprintf with the provided format string. Memoized by call site +
state.go:90
↓ 9 callersMethodPaddingH
PaddingH sets horizontal padding (leading + trailing).
modifier.go:109
↓ 9 callersMethodchildScopeFor
childScopeFor returns the child scope for a given slot ID, creating it on first access. Slot IDs must be stable across renders for state to persist: t
scope.go:91
↓ 9 callersFunctionchildSpecsWithScope
(node *viewNode, scope *Scope)
render.go:345
↓ 9 callersMethodinnerObject
()
internal/fyne/bridge.go:33
↓ 9 callersFunctionrenderSlot
renderSlot is the single entry point for rendering a node that *might* be a component reference sitting in a named slot (a child position, a scaffold
render.go:358
↓ 8 callersFunctionBuild
Build compiles pkg (a Go package path, e.g. "." or "./cmd/app") to out. It uses `go build` in the provided working directory. Context cancellation kil
internal/devserver/builder.go:29
↓ 8 callersFunctioncallerKey
callerKey returns "file:line" for the caller N frames up the stack. This provides automatic, stable identity for State/Ref calls.
scope.go:37
↓ 7 callersFunctionNewWatcher
NewWatcher starts a watcher on opts.Root. Events is buffered size 1; callers that lag will coalesce further (no missed reloads, just batched).
internal/devserver/watcher.go:35
↓ 7 callersMethodOnConfirm
OnConfirm is called when the user taps the confirm button.
dialog.go:119
↓ 7 callersMethodOnError
OnError is called when the dialog surfaces a system error.
dialog.go:170
↓ 7 callersMethodPaddingV
PaddingV sets vertical padding (top + bottom).
modifier.go:120
↓ 7 callersMethodReconcile
(mounted *MountedNode, newSpec ViewSpec)
internal/fyne/bridge.go:236
↓ 7 callersFunctionTestRender
TestRender renders a component headlessly and returns a RenderedTree for querying and simulating interactions. No Fyne window is created.
testing.go:7
↓ 7 callersFunctionwaitEvent
waitEvent blocks for an event with a deadline. Returns true if one arrived.
internal/devserver/watcher_test.go:11
↓ 6 callersFunctionButton
(label string, handler func())
button.go:11
↓ 6 callersMethodCornerRadius
CornerRadius rounds the view's visual box.
modifier.go:270
↓ 6 callersMethodGrow
Grow marks a child of an HStack/VStack to expand and fill available space on the stack's primary axis. Siblings pack at their natural size. In an HSta
modifier.go:249
↓ 6 callersMethodOnSave
OnSave is called with the selected destination path.
dialog.go:207
↓ 6 callersMethodRestart
Restart stops the current child (if any) and starts a fresh one. Returns the start error if the new process cannot be spawned.
internal/devserver/supervisor.go:38
↓ 6 callersMethodStartDir
StartDir sets the directory the picker opens in.
dialog.go:152
↓ 6 callersMethodStop
Stop terminates the child and does not restart it.
internal/devserver/supervisor.go:46
↓ 6 callersFunctionUseSheet
UseSheet returns (show, dismiss) functions for presenting a sheet overlay. dismiss programmatically closes the most recently shown sheet; it is a no-o
overlay.go:45
↓ 6 callersFunctionpreserveInner
preserveInner records the original widget as node.Inner so reconcilers can still reach it after wrapping. No-op if already set.
internal/fyne/bridge.go:85
↓ 6 callersFunctionrun
(args []string, stdout, stderr io.Writer)
cmd/gova/main.go:28
↓ 6 callersFunctionscopeWithPresenter
scopeWithPresenter returns a scope that has the given presenter published.
dialog_test.go:27
↓ 6 callersFunctionspecColor
(c [4]uint8)
internal/fyne/bridge.go:361
↓ 6 callersFunctionstackNode
(kind viewKind, children []any)
layout.go:53
↓ 6 callersFunctionwalkNodes
walkNodes does depth-first traversal. Callback returns false to stop.
testing.go:280
↓ 6 callersFunctionwriteModule
(t *testing.T, dir, mainBody string)
internal/devserver/builder_test.go:13
↓ 5 callersMethodCleanup
()
internal/fyne/bridge.go:40
↓ 5 callersMethodError
()
internal/devserver/builder.go:17
↓ 5 callersMethodExists
()
testing.go:209
↓ 5 callersMethodLen
Len returns the length of the value if it's a slice. Panics otherwise. Convenience for len(state.Get()) that doesn't require a full Get().
state.go:103
↓ 5 callersMethodOnChange
(fn func(bool))
toggle.go:30
↓ 5 callersMethodOnTap
OnTap makes any view tappable. Panics if applied to a Button (which already has a handler via its constructor).
modifier.go:261
↓ 5 callersFunctionPersistDir
PersistDir overrides the directory where values are written.
persist.go:64
↓ 5 callersFunctionPersistedState
PersistedState behaves like State, but the value round-trips through a file on disk whenever it changes. On first render, if the file already contains
persist.go:24
↓ 5 callersMethodPlaceholder
(p string)
input.go:12
↓ 5 callersMethodPush
Push appends a view to the stack; it becomes the visible screen. Accepts a View or a Viewable (pass a struct literal like DetailView{ID: 42}).
nav.go:81
↓ 5 callersMethodStop
()
animate.go:132
↓ 5 callersMethodWithAccent
(c color.Color)
style.go:251
↓ 5 callersMethodfuncs
()
overlay_test.go:19
↓ 5 callersFunctioninternalSubCount
internalSubCount reports how many callbacks the source state is currently fanning out to. Tests use it to guard against subscriber leaks: repeated ren
gova_test.go:564
↓ 5 callersMethodmountBox
(spec ViewSpec, vertical bool)
internal/fyne/bridge.go:430
↓ 5 callersMethodonChangeInternal
onChangeInternal registers an internal subscriber (used by signals and PersistedState). Returns an unsubscribe function so callers that manage their o
state.go:113
↓ 5 callersFunctionregisterDialogCB
(cb *dialogCallbacks)
dialog_native_darwin.go:49
↓ 5 callersFunctionresolvePresenter
resolvePresenter returns the presenter published on s (or any ancestor), or nil if none has been published.
dialog.go:269
↓ 4 callersMethodAlign
Align sets the cross-axis alignment for VStack/HStack, or full 2D alignment for ZStack.
layout.go:79
↓ 4 callersMethodClick
()
testing.go:220
↓ 4 callersMethodClose
()
dock.go:32
↓ 4 callersMethodFindButton
FindButton returns the nth Button node (depth-first).
testing.go:106
↓ 4 callersMethodRerender
Rerender triggers a re-render of the component and updates the tree.
testing.go:74
↓ 4 callersMethodSetProgress
(fraction float64)
dock.go:29
↓ 4 callersMethodStart
Start begins the animation with the given tick callback. The tick function receives values from 0.0 to 1.0.
animate.go:63
↓ 4 callersFunctionState
State creates or retrieves reactive state for the current component. Identity is determined automatically by the call site (file:line via runtime.Call
state.go:176
↓ 4 callersMethodStroke
Stroke adds a colored border (stroke) around the view's visual box. Named Stroke (not Border) because "Border" was the name of the old layout primitiv
modifier.go:285
↓ 4 callersFunctionTextField
(state *StateValue[string])
input.go:3
next →1–100 of 609, ranked by callers