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
↓ 246 callers
Function
Pt
Pt is shorthand for Point{X: x, Y: y}.
f32/f32.go:30
↓ 161 callers
Method
Push
Push saves the current clip state on the stack and updates the current state to the intersection of the current p.
op/clip/clip.go:43
↓ 160 callers
Method
Pop
()
op/clip/clip.go:104
↓ 141 callers
Function
events
(r *Router, n int, filters ...event.Filter)
io/input/pointer_test.go:1373
↓ 136 callers
Method
expect
(x, y int, col color.RGBA)
gpu/internal/rendertest/util_test.go:257
↓ 123 callers
Method
Add
Add the recorded list of operations. Add panics if the Ops containing the recording has been reset.
op/op.go:176
↓ 108 callers
Method
Rect
()
app/internal/windows/windows.go:980
↓ 103 callers
Method
Add
Add the handler to the operation list to receive drag events.
gesture/gesture.go:374
↓ 92 callers
Method
Queue
Queue events to be routed.
io/input/router.go:393
↓ 87 callers
Function
_bind
(ctx js.Value, p string)
internal/gl/gl_js.go:215
↓ 82 callers
Function
assertEventPointerTypeSequence
assertEventPointerTypeSequence checks that the provided events match the expected pointer event types in the provided order.
io/input/pointer_test.go:1236
↓ 75 callers
Method
Get
Get fetches the value associated with the given key, if any.
text/lru.go:31
↓ 72 callers
Function
assertCaret
assertCaret asserts that the editor caret is at a particular line and column, and that the byte position matches as well.
widget/editor_test.go:529
↓ 66 callers
Method
Dp
Dp converts v to pixels, rounded to the nearest integer value.
unit/unit.go:44
↓ 65 callers
Method
Op
Op returns a clip operation representing the stroke.
op/clip/clip.go:335
↓ 62 callers
Method
Frame
Frame draws the graphics operations from op into a viewport of target.
gpu/gpu.go:47
↓ 60 callers
Function
AffineId
AffineId returns an identity transformation matrix that represents no transformation when applied.
f32/affine.go:35
↓ 60 callers
Method
Mul
Mul returns p scaled by s.
f32/f32.go:45
↓ 58 callers
Method
Run
Run a function on the window thread.
app/os.go:205
↓ 57 callers
Method
Source
Source returns a Source backed by this Router.
io/input/router.go:170
↓ 56 callers
Method
Execute
Execute a command.
io/input/router.go:175
↓ 53 callers
Function
Op
Op declares a tag for input routing at the current transformation and clip area hierarchy. It panics if tag is nil.
io/event/event.go:27
↓ 52 callers
Method
Round
Round returns the integer point closest to p.
f32/f32.go:55
↓ 52 callers
Method
Set
(Left, Top, Right, Bottom int)
app/internal/windows/windows.go:992
↓ 51 callers
Method
Error
()
internal/vk/vulkan.go:2143
↓ 51 callers
Method
MoveCaret
MoveCaret moves the caret (aka selection start) and the selection end relative to their current positions. Positive distances moves forward, negative
widget/text.go:644
↓ 51 callers
Method
ProcessEvent
ProcessEvent processes an event.
app/os.go:209
↓ 49 callers
Method
Convert
Convert a point in (x, y) coordinates to (main, cross) coordinates, or vice versa. Specifically, Convert((x, y)) returns (x, y) unchanged for the hori
layout/layout.go:269
↓ 49 callers
Function
IUnknownRelease
(obj unsafe.Pointer, releaseMethod uintptr)
internal/d3d11/d3d11_windows.go:1617
↓ 49 callers
Function
vkErr
(res C.VkResult)
internal/vk/vulkan.go:2134
↓ 48 callers
Method
Frame
Frame completes the current frame and starts a new with the handlers from the frame argument. Remaining events are discarded, unless they were deferre
io/input/router.go:336
↓ 45 callers
Function
Offset
Offset converts an offset to a TransformOp.
op/op.go:184
↓ 44 callers
Function
run
(t *testing.T, f func(o *op.Ops), c func(r result))
gpu/internal/rendertest/util_test.go:75
↓ 43 callers
Method
Push
(handlers map[event.Tag]*handler, state pointerState, e pointer.Event)
io/input/pointer.go:730
↓ 43 callers
Function
callbackLoad
(k unsafe.Pointer)
app/os_wayland.go:454
↓ 41 callers
Method
Offset
Offset the transformation.
f32/affine.go:43
↓ 41 callers
Function
Record
Record a macro of operations.
op/op.go:148
↓ 41 callers
Method
Size
Size returns the total length of the data in bytes.
widget/text.go:31
↓ 40 callers
Function
FillShape
FillShape fills the clip shape with a color.
op/paint/paint.go:155
↓ 40 callers
Method
Pop
()
io/pointer/pointer.go:247
↓ 37 callers
Method
Layout
(gtx layout.Context, w layout.Widget)
widget/bool.go:40
↓ 37 callers
Function
assertEventSequence
assertEventSequence checks that the provided events match the expected ones in the provided order.
io/input/pointer_test.go:1246
↓ 34 callers
Function
Exact
Exact returns the Constraints with the minimum and maximum size set to size.
layout/layout.go:75
↓ 34 callers
Function
NewShaper
NewShaper constructs a shaper with the provided options.
text/shaper.go:262
↓ 34 callers
Method
SetText
(s string)
widget/editor.go:813
↓ 34 callers
Method
Stop
Stop ends a previously started recording and returns an operation for replaying it.
op/op.go:162
↓ 34 callers
Function
WithCollection
WithCollection can be used to provide a collection of pre-loaded fonts to the shaper.
text/shaper.go:255
↓ 33 callers
Function
getMethodID
(env *C.JNIEnv, class C.jclass, method, sig string)
app/os_android.go:349
↓ 32 callers
Function
NoSystemFonts
NoSystemFonts can be used to disable system font loading.
text/shaper.go:248
↓ 32 callers
Method
Sub
Sub returns the vector p-p2.
f32/f32.go:40
↓ 32 callers
Method
Transform
Transform p by returning a*p.
f32/affine.go:111
↓ 32 callers
Function
callVoidMethod
(env *C.JNIEnv, obj C.jobject, method C.jmethodID, args ...jvalue)
app/os_android.go:1259
↓ 29 callers
Method
LineTo
LineTo moves the pen to the absolute point specified, recording a line.
op/clip/clip.go:209
↓ 29 callers
Method
NextGlyph
NextGlyph returns the next glyph from the most recent shaping operation, if any. If there are no more glyphs, ok will be false.
text/shaper.go:413
↓ 28 callers
Method
Equal
(s2 Shader)
internal/gl/types.go:54
↓ 28 callers
Function
Parse
Parse constructs a Face from source bytes.
font/opentype/opentype.go:32
↓ 28 callers
Method
Sub
Sub offsets r with the vector -p.
internal/f32/f32.go:135
↓ 28 callers
Method
closestToRune
(runeIdx int)
widget/text.go:165
↓ 27 callers
Function
Affine
Affine creates a TransformOp representing the transformation a.
op/op.go:190
↓ 25 callers
Method
Release
()
gpu/internal/driver/driver.go:140
↓ 25 callers
Method
Scale
Scale the transformation around the given origin.
f32/affine.go:51
↓ 24 callers
Method
Event
Event blocks until an event is available and returns it.
app/os.go:182
↓ 24 callers
Method
initBuffer
initBuffer should be invoked first in every exported function that accesses text state. It ensures that the underlying text widget is both ready to us
widget/editor.go:607
↓ 23 callers
Method
EditorState
()
app/window.go:436
↓ 22 callers
Method
Add
(op OpType)
internal/ops/reader.go:56
↓ 22 callers
Method
Dx
Dx returns r's width.
internal/f32/f32.go:57
↓ 22 callers
Method
LayoutString
LayoutString is Layout for strings.
text/shaper.go:288
↓ 22 callers
Method
Release
Release non-Go resources. The GPU is no longer valid after Release.
gpu/gpu.go:43
↓ 22 callers
Function
Write
(o *Ops, n int)
internal/ops/ops.go:189
↓ 21 callers
Method
Duration
()
gpu/internal/driver/driver.go:139
↓ 21 callers
Method
Layout
Layout a list of children. The position of the children are determined by the specified order, but Rigid children are laid out before Flexed children.
layout/flex.go:81
↓ 21 callers
Method
Rotate
Rotate the transformation by the given angle (in radians) counter clockwise around the given origin.
f32/affine.go:61
↓ 21 callers
Method
addEventListener
(this js.Value, event string, f func(this js.Value, args []js.Value) interface{})
app/os_js.go:753
↓ 20 callers
Method
Add
(flt event.Filter)
io/input/router.go:403
↓ 20 callers
Method
Dy
Dy returns r's Height.
internal/f32/f32.go:62
↓ 20 callers
Method
Reset
Reset the Ops, preparing it for re-use. Reset invalidates any recorded macros.
op/op.go:143
↓ 20 callers
Method
SetCaret
SetCaret moves the caret to start, and sets the selection end to end. Then the two ends are clamped to the nearest grapheme cluster boundary. start an
widget/text.go:775
↓ 19 callers
Method
Begin
Begin the path, storing the path data and final Op into ops. Caller must also call End to finish the drawing. Forgetting to call it will result in a
op/clip/clip.go:144
↓ 19 callers
Method
End
End returns a PathSpec ready to use in clipping operations.
op/clip/clip.go:157
↓ 19 callers
Method
Line
Line moves the pen by the amount specified by delta, recording a line.
op/clip/clip.go:203
↓ 19 callers
Method
MoveTo
MoveTo moves the pen to the specified absolute coordinate.
op/clip/clip.go:176
↓ 19 callers
Method
Text
Text returns the contents of the editor. If the provided buf is large enough, it will be filled and returned. Otherwise a new buffer will be allocated
widget/text.go:417
↓ 19 callers
Function
eq
(p1, p2 Point)
f32/affine_test.go:10
↓ 19 callers
Method
imeToUTF16
(long handle, int runes)
app/GioView.java:585
↓ 18 callers
Method
Add
(o *op.Ops)
op/paint/paint.go:106
↓ 18 callers
Function
Collection
Regular returns a collection of all available Go font faces.
font/gofont/gofont.go:56
↓ 18 callers
Function
LinearFromSRGB
LinearFromSRGB converts from col in the sRGB colorspace to RGBA.
internal/f32color/rgba.go:55
↓ 18 callers
Function
windowFor
(h C.uintptr_t)
app/os_macos.go:392
↓ 17 callers
Method
Close
()
app/os_darwin.go:194
↓ 17 callers
Method
CubeTo
CubeTo records a cubic Bézier from the pen through two control points ending in to, with absolute coordinates.
op/clip/clip.go:304
↓ 17 callers
Method
Reset
(r io.Reader, mr rune)
widget/editor.go:133
↓ 17 callers
Method
SetComposingRegion
(r key.Range)
app/window.go:440
↓ 17 callers
Method
UTF16Index
UTF16Index converts the given index in runes into an index in utf16 characters.
app/ime.go:73
↓ 17 callers
Function
assertFocus
(t *testing.T, router *Router, expected event.Tag)
io/input/key_test.go:320
↓ 17 callers
Method
invalidate
()
widget/text.go:573
↓ 16 callers
Method
Enabled
Enabled reports whether the source is enabled. Only enabled Sources deliver events.
io/input/router.go:191
↓ 16 callers
Function
NRGBAToRGBA
NRGBAToRGBA converts from non-premultiplied sRGB color to premultiplied sRGB color. Each component in the result is `sRGBToLinear(c * alpha)`, where
internal/f32color/rgba.go:69
↓ 16 callers
Method
atom
atom is a wrapper around XInternAtom. Callers should cache the result in order to limit round-trips to the X server.
app/os_x11.go:524
↓ 16 callers
Method
release
()
gpu/gpu.go:254
↓ 15 callers
Method
Delete
Delete runes from the caret position. The sign of the argument specifies the direction to delete: positive is forward, negative is backward. If there
widget/editor.go:841
next →
1–100 of 3,179, ranked by callers