Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gioui/gio
/ functions
Functions
3,179 in github.com/gioui/gio
⨍
Functions
3,179
◇
Types & classes
680
↓ 3 callers
Method
Merge
Merge f2 into f.
io/input/router.go:415
↓ 3 callers
Function
NewDevice
NewDevice creates a new Device given the api. Note that the device does not assume ownership of the resources contained in api; the caller must ensur
gpu/internal/driver/api.go:100
↓ 3 callers
Function
NewTheme
NewTheme constructs a theme (and underlying text shaper).
widget/material/theme.go:56
↓ 3 callers
Method
NewVertexShader
(src shader.Sources)
gpu/internal/driver/driver.go:29
↓ 3 callers
Method
OMSetRenderTargets
(target *RenderTargetView, depthStencil *DepthStencilView)
internal/d3d11/d3d11_windows.go:1477
↓ 3 callers
Function
PushOpacity
PushOpacity creates a drawing layer with an opacity in the range [0;1]. The layer includes every subsequent drawing operation until [OpacityStack.Pop]
op/paint/paint.go:176
↓ 3 callers
Function
Rect
Rect is a shorthand for Rectangle{Point{x0, y0}, Point{x1, y1}}. The returned Rectangle has x0 and y0 swapped if necessary so that it's correctly form
internal/f32/f32.go:38
↓ 3 callers
Method
Release
()
gpu/internal/driver/driver.go:123
↓ 3 callers
Method
ReleaseCurrent
()
internal/egl/egl.go:130
↓ 3 callers
Method
Reset
()
io/input/key.go:98
↓ 3 callers
Method
RevealFocus
RevealFocus scrolls the current focus (if any) into viewport if there are scrollable parent handlers.
io/input/router.go:626
↓ 3 callers
Method
Sample
Sample adds an absolute sample to the estimation.
internal/fling/extrapolation.go:61
↓ 3 callers
Method
SetBlend
(enable bool)
gpu/internal/opengl/opengl.go:838
↓ 3 callers
Method
SetCaret
SetCaret moves the caret to start, and sets the selection end to end. start and end are in runes, and represent offsets into the editor text.
widget/selectable.go:131
↓ 3 callers
Method
SetTransform
(t f32.Affine2D)
gpu/gpu.go:967
↓ 3 callers
Method
Size
()
widget/buffer.go:85
↓ 3 callers
Function
SplitCubic
(from, ctrl0, ctrl1, to f32.Point, quads []QuadSegment)
internal/stroke/stroke.go:678
↓ 3 callers
Method
Start
()
app/os_darwin.go:186
↓ 3 callers
Method
Uniform1i
(dst Uniform, v int)
internal/gl/gl_js.go:679
↓ 3 callers
Method
Update
Update state and report whether a pointer is inside the area.
gesture/gesture.go:45
↓ 3 callers
Method
Update
Update the state of the selectable in response to input events. It returns whether the text selection changed during event processing.
widget/selectable.go:176
↓ 3 callers
Method
Update
Update the draggable and returns the MIME type for which the Draggable was requested to offer data, if any
widget/dnd.go:54
↓ 3 callers
Function
UpdateDescriptorSet
(d Device, write WriteDescriptorSet)
internal/vk/vulkan.go:1760
↓ 3 callers
Method
Upload
(data []byte)
gpu/internal/driver/driver.go:132
↓ 3 callers
Method
Wakeup
()
app/os.go:342
↓ 3 callers
Method
Width
Width returns the minor axis width of the scrollbar in its current configuration (taking padding for the scroll track into account).
widget/material/list.go:128
↓ 3 callers
Method
add
add adds the given rectangle to the atlases and return the allocated position.
gpu/pack.go:26
↓ 3 callers
Method
api
()
app/vulkan.go:93
↓ 3 callers
Method
append
append adds the lines of other to the end of l and ensures they are aligned to the same width.
text/gotext.go:45
↓ 3 callers
Method
arc
(f1, f2 f32.Point, angle float32)
internal/stroke/stroke.go:87
↓ 3 callers
Function
assertActionAt
assertActionAt checks that the router has a system action of the expected type at point.
io/input/pointer_test.go:1318
↓ 3 callers
Function
assertClipboardWriteCmd
(t *testing.T, router *Router, mimeExp, expected string)
io/input/clipboard_test.go:110
↓ 3 callers
Function
assertEventPriorities
assertEventPriorities checks that the pointer.Event priorities of events match prios.
io/input/pointer_test.go:1296
↓ 3 callers
Function
assertEventTypeSequence
assertEventTypeSequence checks that the provided event types match expected.
io/input/pointer_test.go:1260
↓ 3 callers
Method
bindBufferBase
(f *gl.Functions, target gl.Enum, idx int, buf gl.Buffer)
gpu/internal/opengl/opengl.go:538
↓ 3 callers
Method
bindDescriptorSet
(b *Backend, cmdBuf vk.CommandBuffer, bindPoint vk.PipelineBindPoint, texBinds [texUnits]*Texture, bufBinds [s
gpu/internal/vulkan/vulkan.go:735
↓ 3 callers
Method
blur
()
app/os_js.go:513
↓ 3 callers
Method
bounds
()
io/input/pointer.go:1018
↓ 3 callers
Function
cString
(s string)
internal/gl/gl_windows.go:711
↓ 3 callers
Function
clamp1
clamp1 limits v to range [0..1].
widget/material/progressbar.go:66
↓ 3 callers
Method
close
()
internal/stroke/stroke.go:227
↓ 3 callers
Method
closestToLineCol
(lineCol screenPos)
widget/index.go:254
↓ 3 callers
Method
closestToRune
(runeIdx int)
widget/index.go:237
↓ 3 callers
Method
closestToXYGraphemes
(x fixed.Int26_6, y int)
widget/text.go:181
↓ 3 callers
Function
complexGlyph
complexGlyph returns a simple square glyph with the provided cluster value, number of associated runes, and number of glyphs in the cluster.
text/gotext_test.go:234
↓ 3 callers
Method
constraints
constraints returns the constraints for axis a.
layout/layout.go:303
↓ 3 callers
Method
contextView
()
app/os_ios.go:358
↓ 3 callers
Function
coordsFromlParam
(lParam uintptr)
app/os_windows.go:557
↓ 3 callers
Method
crossConstraint
crossConstraint returns the min and max cross constraints for axis a.
layout/layout.go:295
↓ 3 callers
Method
destroy
()
app/os_wayland.go:1888
↓ 3 callers
Function
dist
(a, b fixed.Int26_6)
widget/index.go:295
↓ 3 callers
Function
dot
(V1, V2 []float32)
internal/fling/extrapolation.go:219
↓ 3 callers
Method
draw
(sync bool)
app/os_windows.go:664
↓ 3 callers
Method
draw
(sync bool)
app/os_ios.go:161
↓ 3 callers
Method
emitProcessed
emitProcessed adds a token of the given kind, but transforms its value with the provided closure first.
text/family_parser.go:181
↓ 3 callers
Method
encodeQuadTo
(from, ctrl, to f32.Point)
gpu/clip.go:77
↓ 3 callers
Method
end
()
gpu/timer.go:57
↓ 3 callers
Method
endCmdBuffer
(wait bool)
gpu/internal/metal/metal_darwin.go:536
↓ 3 callers
Method
ensureCmdBuffer
()
gpu/internal/metal/metal_darwin.go:953
↓ 3 callers
Function
eventsToString
(evs []event.Event)
io/input/pointer_test.go:1282
↓ 3 callers
Method
flushOffers
flushOffers remove all wl_data_offers that isn't the clipboard content.
app/os_wayland.go:470
↓ 3 callers
Method
focus
()
app/os_js.go:518
↓ 3 callers
Method
funcOf
funcOf is like js.FuncOf but adds the js.Func to a list of functions to be released during cleanup.
app/os_js.go:763
↓ 3 callers
Function
getStaticMethodID
(env *C.JNIEnv, class C.jclass, method, sig string)
app/os_android.go:361
↓ 3 callers
Function
hasExtension
(exts []string, ext string)
internal/egl/egl.go:157
↓ 3 callers
Method
imeComposingEnd
(long handle)
app/GioView.java:578
↓ 3 callers
Method
imeComposingStart
(long handle)
app/GioView.java:577
↓ 3 callers
Method
imeReplace
(long handle, int start, int end, String text)
app/GioView.java:579
↓ 3 callers
Method
imeSetSnippet
(long handle, int start, int end)
app/GioView.java:572
↓ 3 callers
Function
issue34474KeepAlive
issue34474KeepAlive calls runtime.KeepAlive as a workaround for golang.org/issue/34474.
internal/egl/egl_windows.go:185
↓ 3 callers
Method
mainConstraint
mainConstraint returns the min and max main constraints for axis a.
layout/layout.go:287
↓ 3 callers
Function
makePosTestText
makePosTestText returns two bidi samples of shaped text at the given font size and wrapped to the given line width. The runeLimit, if nonzero, truncat
widget/index_test.go:25
↓ 3 callers
Function
mapSurfaceErr
(err error)
app/vulkan.go:111
↓ 3 callers
Function
mouseClickEvents
(times ...time.Duration)
gesture/gesture_test.go:175
↓ 3 callers
Method
nativeWindow
()
app/os_android.go:828
↓ 3 callers
Function
newDriver
(t *testing.T)
gpu/headless/driver_test.go:165
↓ 3 callers
Function
newMatrix
(rows, cols int)
internal/fling/extrapolation.go:227
↓ 3 callers
Method
newPage
()
gpu/pack.go:39
↓ 3 callers
Method
newShader
(src shader.Sources)
gpu/internal/metal/metal_darwin.go:772
↓ 3 callers
Method
newShader
(src shader.Sources, stage vk.ShaderStageFlags)
gpu/internal/vulkan/vulkan.go:559
↓ 3 callers
Method
newTimer
()
gpu/timer.go:37
↓ 3 callers
Function
newVulkanContext
(inst vk.Instance, surf vk.Surface)
app/vulkan.go:35
↓ 3 callers
Function
normPt
(p f32.Point, l float32)
internal/stroke/stroke.go:329
↓ 3 callers
Method
paintGlyph
paintGlyph buffers up and paints text glyphs. It should be invoked iteratively upon each glyph until it returns false. The line parameter should be a
widget/label.go:204
↓ 3 callers
Method
present
()
app/vulkan.go:143
↓ 3 callers
Function
printGlyphs
(t *testing.T, glyphs []text.Glyph)
widget/index_test.go:658
↓ 3 callers
Function
printPositions
(t *testing.T, positions []combinedPos)
widget/index_test.go:651
↓ 3 callers
Method
put
(key opKey, val opCacheValue)
gpu/caches.go:109
↓ 3 callers
Function
rangeNorm
(r key.Range)
io/input/router.go:610
↓ 3 callers
Method
redo
redo applies the modification at e.history[e.historyIdx] and increments e.historyIdx.
widget/editor.go:913
↓ 3 callers
Method
refresh
(surf vk.Surface, width, height int)
app/vulkan.go:168
↓ 3 callers
Method
resize
(ctx driver.Device, format driver.TextureFormat, sizes []image.Point)
gpu/path.go:250
↓ 3 callers
Method
resize
()
app/os_js.go:966
↓ 3 callers
Method
reverse
()
internal/stroke/stroke.go:259
↓ 3 callers
Function
runOnMain
runOnMain runs the function on the main thread.
app/os_darwin.go:83
↓ 3 callers
Function
sRGBToLinear
sRGBToLinear transforms color value from sRGB to linear.
internal/f32color/rgba.go:130
↓ 3 callers
Function
saveImage
(file string, img image.Image)
gpu/headless/driver_test.go:202
↓ 3 callers
Function
searchTag
(tags []event.Tag, tag event.Tag)
io/input/pointer.go:971
↓ 3 callers
Method
semIDFor
(virtID C.jint)
app/os_android.go:797
↓ 3 callers
Method
setClearColor
(f *gl.Functions, r, g, b, a float32)
gpu/internal/opengl/opengl.go:604
← previous
next →
501–600 of 3,179, ranked by callers