MCPcopy Create free account

hub / github.com/gioui/gio / functions

Functions3,179 in github.com/gioui/gio

↓ 246 callersFunctionPt
Pt is shorthand for Point{X: x, Y: y}.
f32/f32.go:30
↓ 161 callersMethodPush
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 callersMethodPop
()
op/clip/clip.go:104
↓ 141 callersFunctionevents
(r *Router, n int, filters ...event.Filter)
io/input/pointer_test.go:1373
↓ 136 callersMethodexpect
(x, y int, col color.RGBA)
gpu/internal/rendertest/util_test.go:257
↓ 123 callersMethodAdd
Add the recorded list of operations. Add panics if the Ops containing the recording has been reset.
op/op.go:176
↓ 108 callersMethodRect
()
app/internal/windows/windows.go:980
↓ 103 callersMethodAdd
Add the handler to the operation list to receive drag events.
gesture/gesture.go:374
↓ 92 callersMethodQueue
Queue events to be routed.
io/input/router.go:393
↓ 87 callersFunction_bind
(ctx js.Value, p string)
internal/gl/gl_js.go:215
↓ 82 callersFunctionassertEventPointerTypeSequence
assertEventPointerTypeSequence checks that the provided events match the expected pointer event types in the provided order.
io/input/pointer_test.go:1236
↓ 75 callersMethodGet
Get fetches the value associated with the given key, if any.
text/lru.go:31
↓ 72 callersFunctionassertCaret
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 callersMethodDp
Dp converts v to pixels, rounded to the nearest integer value.
unit/unit.go:44
↓ 65 callersMethodOp
Op returns a clip operation representing the stroke.
op/clip/clip.go:335
↓ 62 callersMethodFrame
Frame draws the graphics operations from op into a viewport of target.
gpu/gpu.go:47
↓ 60 callersFunctionAffineId
AffineId returns an identity transformation matrix that represents no transformation when applied.
f32/affine.go:35
↓ 60 callersMethodMul
Mul returns p scaled by s.
f32/f32.go:45
↓ 58 callersMethodRun
Run a function on the window thread.
app/os.go:205
↓ 57 callersMethodSource
Source returns a Source backed by this Router.
io/input/router.go:170
↓ 56 callersMethodExecute
Execute a command.
io/input/router.go:175
↓ 53 callersFunctionOp
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 callersMethodRound
Round returns the integer point closest to p.
f32/f32.go:55
↓ 52 callersMethodSet
(Left, Top, Right, Bottom int)
app/internal/windows/windows.go:992
↓ 51 callersMethodError
()
internal/vk/vulkan.go:2143
↓ 51 callersMethodMoveCaret
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 callersMethodProcessEvent
ProcessEvent processes an event.
app/os.go:209
↓ 49 callersMethodConvert
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 callersFunctionIUnknownRelease
(obj unsafe.Pointer, releaseMethod uintptr)
internal/d3d11/d3d11_windows.go:1617
↓ 49 callersFunctionvkErr
(res C.VkResult)
internal/vk/vulkan.go:2134
↓ 48 callersMethodFrame
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 callersFunctionOffset
Offset converts an offset to a TransformOp.
op/op.go:184
↓ 44 callersFunctionrun
(t *testing.T, f func(o *op.Ops), c func(r result))
gpu/internal/rendertest/util_test.go:75
↓ 43 callersMethodPush
(handlers map[event.Tag]*handler, state pointerState, e pointer.Event)
io/input/pointer.go:730
↓ 43 callersFunctioncallbackLoad
(k unsafe.Pointer)
app/os_wayland.go:454
↓ 41 callersMethodOffset
Offset the transformation.
f32/affine.go:43
↓ 41 callersFunctionRecord
Record a macro of operations.
op/op.go:148
↓ 41 callersMethodSize
Size returns the total length of the data in bytes.
widget/text.go:31
↓ 40 callersFunctionFillShape
FillShape fills the clip shape with a color.
op/paint/paint.go:155
↓ 40 callersMethodPop
()
io/pointer/pointer.go:247
↓ 37 callersMethodLayout
(gtx layout.Context, w layout.Widget)
widget/bool.go:40
↓ 37 callersFunctionassertEventSequence
assertEventSequence checks that the provided events match the expected ones in the provided order.
io/input/pointer_test.go:1246
↓ 34 callersFunctionExact
Exact returns the Constraints with the minimum and maximum size set to size.
layout/layout.go:75
↓ 34 callersFunctionNewShaper
NewShaper constructs a shaper with the provided options.
text/shaper.go:262
↓ 34 callersMethodSetText
(s string)
widget/editor.go:813
↓ 34 callersMethodStop
Stop ends a previously started recording and returns an operation for replaying it.
op/op.go:162
↓ 34 callersFunctionWithCollection
WithCollection can be used to provide a collection of pre-loaded fonts to the shaper.
text/shaper.go:255
↓ 33 callersFunctiongetMethodID
(env *C.JNIEnv, class C.jclass, method, sig string)
app/os_android.go:349
↓ 32 callersFunctionNoSystemFonts
NoSystemFonts can be used to disable system font loading.
text/shaper.go:248
↓ 32 callersMethodSub
Sub returns the vector p-p2.
f32/f32.go:40
↓ 32 callersMethodTransform
Transform p by returning a*p.
f32/affine.go:111
↓ 32 callersFunctioncallVoidMethod
(env *C.JNIEnv, obj C.jobject, method C.jmethodID, args ...jvalue)
app/os_android.go:1259
↓ 29 callersMethodLineTo
LineTo moves the pen to the absolute point specified, recording a line.
op/clip/clip.go:209
↓ 29 callersMethodNextGlyph
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 callersMethodEqual
(s2 Shader)
internal/gl/types.go:54
↓ 28 callersFunctionParse
Parse constructs a Face from source bytes.
font/opentype/opentype.go:32
↓ 28 callersMethodSub
Sub offsets r with the vector -p.
internal/f32/f32.go:135
↓ 28 callersMethodclosestToRune
(runeIdx int)
widget/text.go:165
↓ 27 callersFunctionAffine
Affine creates a TransformOp representing the transformation a.
op/op.go:190
↓ 25 callersMethodRelease
()
gpu/internal/driver/driver.go:140
↓ 25 callersMethodScale
Scale the transformation around the given origin.
f32/affine.go:51
↓ 24 callersMethodEvent
Event blocks until an event is available and returns it.
app/os.go:182
↓ 24 callersMethodinitBuffer
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 callersMethodEditorState
()
app/window.go:436
↓ 22 callersMethodAdd
(op OpType)
internal/ops/reader.go:56
↓ 22 callersMethodDx
Dx returns r's width.
internal/f32/f32.go:57
↓ 22 callersMethodLayoutString
LayoutString is Layout for strings.
text/shaper.go:288
↓ 22 callersMethodRelease
Release non-Go resources. The GPU is no longer valid after Release.
gpu/gpu.go:43
↓ 22 callersFunctionWrite
(o *Ops, n int)
internal/ops/ops.go:189
↓ 21 callersMethodDuration
()
gpu/internal/driver/driver.go:139
↓ 21 callersMethodLayout
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 callersMethodRotate
Rotate the transformation by the given angle (in radians) counter clockwise around the given origin.
f32/affine.go:61
↓ 21 callersMethodaddEventListener
(this js.Value, event string, f func(this js.Value, args []js.Value) interface{})
app/os_js.go:753
↓ 20 callersMethodAdd
(flt event.Filter)
io/input/router.go:403
↓ 20 callersMethodDy
Dy returns r's Height.
internal/f32/f32.go:62
↓ 20 callersMethodReset
Reset the Ops, preparing it for re-use. Reset invalidates any recorded macros.
op/op.go:143
↓ 20 callersMethodSetCaret
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 callersMethodBegin
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 callersMethodEnd
End returns a PathSpec ready to use in clipping operations.
op/clip/clip.go:157
↓ 19 callersMethodLine
Line moves the pen by the amount specified by delta, recording a line.
op/clip/clip.go:203
↓ 19 callersMethodMoveTo
MoveTo moves the pen to the specified absolute coordinate.
op/clip/clip.go:176
↓ 19 callersMethodText
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 callersFunctioneq
(p1, p2 Point)
f32/affine_test.go:10
↓ 19 callersMethodimeToUTF16
(long handle, int runes)
app/GioView.java:585
↓ 18 callersMethodAdd
(o *op.Ops)
op/paint/paint.go:106
↓ 18 callersFunctionCollection
Regular returns a collection of all available Go font faces.
font/gofont/gofont.go:56
↓ 18 callersFunctionLinearFromSRGB
LinearFromSRGB converts from col in the sRGB colorspace to RGBA.
internal/f32color/rgba.go:55
↓ 18 callersFunctionwindowFor
(h C.uintptr_t)
app/os_macos.go:392
↓ 17 callersMethodClose
()
app/os_darwin.go:194
↓ 17 callersMethodCubeTo
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 callersMethodReset
(r io.Reader, mr rune)
widget/editor.go:133
↓ 17 callersMethodSetComposingRegion
(r key.Range)
app/window.go:440
↓ 17 callersMethodUTF16Index
UTF16Index converts the given index in runes into an index in utf16 characters.
app/ime.go:73
↓ 17 callersFunctionassertFocus
(t *testing.T, router *Router, expected event.Tag)
io/input/key_test.go:320
↓ 17 callersMethodinvalidate
()
widget/text.go:573
↓ 16 callersMethodEnabled
Enabled reports whether the source is enabled. Only enabled Sources deliver events.
io/input/router.go:191
↓ 16 callersFunctionNRGBAToRGBA
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 callersMethodatom
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 callersMethodrelease
()
gpu/gpu.go:254
↓ 15 callersMethodDelete
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