driver

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

NoClipBounds is the open clip rectangle walkObjectTree starts with: an object reached with this clip size has crossed no clipping ancestor.

Functions

func AbsolutePositionForObject

func AbsolutePositionForObject(object core.CanvasObject, trees []core.CanvasObject) geo.Position

AbsolutePositionForObject returns the absolute position of an object in a set of object trees. If the object is not part of any of the trees, the position (0,0) is returned.

It is the position from layout, the sum of the positions of the object and its ancestors, and ignores transforms (#1003). AbsolutePositionForPoint and PositionForAbsolutePoint follow the world transform.

func AbsolutePositionForPoint added in v1.3.0

func AbsolutePositionForPoint(object core.CanvasObject, pos geo.Position, trees []core.CanvasObject) geo.Position

AbsolutePositionForPoint returns where pos, in object's own coordinates, is drawn within the trees: pos mapped through object's world transform. When object is not in the trees it returns pos, as AbsolutePositionForObject's (0,0) plus pos would.

func ClipBoundsForObject

func ClipBoundsForObject(object core.CanvasObject, trees []core.CanvasObject) (geo.Rectangle, bool)

ClipBoundsForObject returns the region object's clipping ancestors leave visible, within the given trees, in absolute canvas coordinates: the bounds of the nearest one, intersected with those of the ones above it (#566), and empty when they do not overlap. ok is false when object is not found, or when no ancestor clips it (it is drawn against the full canvas). A clipping ancestor is one IsClip reports — a event.Scrollable, a bellui.Container with ClipToBounds, or a widget whose renderer clips. It reuses the same clip tracking the hit-test walk uses, so a caller can size content (e.g. a popover) to the region that will actually be visible rather than overflowing into a clipped area.

func DestroyRenderers added in v1.3.0

func DestroyRenderers(o core.CanvasObject)

DestroyRenderers destroys the cached renderers of o and of every widget under it, hidden ones included. It never creates a renderer: the walk reads only cached ones, so a widget without a renderer is skipped, and so is everything only its renderer would have held.

A widget calls it on objects it built and drops without showing, such as an item template it only measures: no window holds them, so nothing else would release their renderers before the cache expiry (#722).

func DirectionIndexStats added in v1.3.0

func DirectionIndexStats() (builds, lookups int64)

DirectionIndexStats reports how many times the direction cache was rebuilt, and how many lookups reached it, in this process; benchmarks and tests read it.

func DirectionOf added in v1.3.0

func DirectionOf(obj core.CanvasObject) (bellui.Direction, bool)

DirectionOf reports the layout direction that applies to obj where it sits: the innermost direction scope enclosing it on its canvas (or the direction an overlay inherited from the widget that opened it), else the canvas' own direction (Canvas.SetDirection). ok is false when neither applies, or obj is on no canvas, and the caller falls back to the process-global direction. A scope's own direction applies to its content, not to itself, so for a scope this is the direction it sits in.

A layout or paint walk pushes the scopes it crosses, and while a direction can differ anywhere it pushes the canvas' resolved direction at its root (see uidir), so inside a walk the ambient direction is returned without a lookup. Elsewhere — an event handler, a Refresh from a timer, an animation or a data binding — the answer comes from a cache of the objects inside scopes on every window, rebuilt at most once per frame and after a change that can move an object between scopes (dirhook.Changed); see dirIndex.

func DropsInertDrag added in v1.3.0

func DropsInertDrag(obj core.CanvasObject, inert bool) bool

DropsInertDrag reports whether a drag that lands on obj, which lies inside a disabled widget (inert), is dropped: a scrolling object keeps its drag, so a touch scroll inside disabled content behaves as the wheel does.

func EnterDirectionOf added in v1.3.0

func EnterDirectionOf(obj core.CanvasObject) bool

EnterDirectionOf makes obj's direction the ambient one, and reports whether it pushed one; the caller pops it with uidir.PopTop. Inside a walk, or another InDirectionOf, a direction is already ambient and nothing is pushed, unless obj is a scope or an overlay that inherited a direction: those push their own, as the walk does around their subtree. While no direction other than the global one can apply anywhere (dirhook.InUse) it pushes nothing, keeping uidir's no-scope fast path for the text measured meanwhile. Otherwise it pushes the resolved direction even when that is the global one, so the objects refreshed meanwhile find it ambient instead of looking themselves up.

It is the hook the root package's Container and the widget bases reach through internal/dirhook.

func FindEnabledObjectAtPositionMatching added in v1.3.0

func FindEnabledObjectAtPositionMatching(mouse geo.Position, matches func(object core.CanvasObject) bool, overlays []core.CanvasObject, roots ...core.CanvasObject) (core.CanvasObject, geo.Position, int, bool)

FindEnabledObjectAtPositionMatching is FindObjectAtPositionMatching that also reports whether the object found lies inside a disabled widget, and so takes no pointer input there (InertUnder, #1378).

func FindObjectAtPositionMatching

func FindObjectAtPositionMatching(mouse geo.Position, matches func(object core.CanvasObject) bool, overlays []core.CanvasObject, roots ...core.CanvasObject) (core.CanvasObject, geo.Position, int)

FindObjectAtPositionMatching is used to find an object in a canvas at the specified position. The matches function determines of the type of object that is found at this position is of a suitable type. The various canvas roots and overlays that can be searched are also passed in.

func GlobalDirection added in v1.3.0

func GlobalDirection() bellui.Direction

GlobalDirection is the direction lang.IsRTLDirection reports, as a concrete direction: outside a walk, the process-global one.

func HandleEscape

func HandleEscape(c core.Canvas) bool

HandleEscape gives the Escape key its default meaning — close the innermost pop-up, menu or dialog — and reports whether it consumed the key. Drivers call it before delivering the key press, so a canvas-hosted dialog dismisses even though nothing inside it is focused.

The focused widget gets first refusal through event.EscapeHandler: while a text field is composing, or a cell is being edited in place, Escape belongs to that widget and no overlay closes. Everything else falls through, which is why a focused text field inside a dialog does not trap the user in it.

func InDirectionOf added in v1.3.0

func InDirectionOf(obj core.CanvasObject, f func())

InDirectionOf runs f with obj's direction as the ambient one, so a layout f performs outside a layout walk — a Refresh that re-lays a widget out after a tap, a timer or a binding, a Container's Add, a widget resized by hand — mirrors as the walk would (#696, #749). See EnterDirectionOf.

func InertUnder added in v1.3.0

func InertUnder(hit core.CanvasObject, ancestors func(yield func(core.CanvasObject) bool)) bool

InertUnder reports whether hit, found under the ancestors given nearest first, takes no pointer input because one of them is disabled (#1378).

func InheritDirection added in v1.3.0

func InheritDirection[T any, P interface {
	*T
	core.CanvasObject
}](overlay P, opener core.CanvasObject,
)

InheritDirection makes overlay, which a widget is about to show, take the direction opener sits in: a popup opened from inside a DirectionScope lays out and paints in the scope's direction although overlays are outside the content tree (#749). Nothing is recorded when opener is in the global direction. The overlay stack forgets the overlay when it is removed.

func IsClip

func IsClip(o core.CanvasObject) bool

func IsPathClip

func IsPathClip(o core.CanvasObject) (any, bool)

IsPathClip checks if a canvas object's renderer implements path-based stencil clipping. Returns the clip path (as any to avoid import cycles) and true if the renderer supports path clipping.

func IsRTLAt added in v1.3.0

func IsRTLAt(obj core.CanvasObject) bool

IsRTLAt reports whether obj sits in a right-to-left layout: DirectionOf, else the process-global direction (lang.IsRTLDirection). It is the reading for code outside a layout or paint walk — an event handler, a Refresh that re-lays-out — where lang.IsRTLDirection alone sees only the global direction.

func IsRepaintBoundary

func IsRepaintBoundary(o core.CanvasObject) bool

IsRepaintBoundary checks if a canvas object's renderer implements the RepaintBoundary marker interface, indicating its subtree should be rendered into a cached FBO for dirty-region isolation.

func IsRoundedClip

func IsRoundedClip(o core.CanvasObject) (bool, float32)

IsRoundedClip checks if a canvas object's renderer implements rounded-corner stencil clipping. Returns the corner radius if so.

func LocalHitPoint added in v1.3.0

func LocalHitPoint(wt geo.Matrix, mouse geo.Position, w, h float32) (geo.Position, bool)

LocalHitPoint maps mouse, in canvas coordinates, into the coordinates of an object of size w×h whose world transform is wt, and reports whether it falls inside the object, [0, w) × [0, h). The world transform carries the object's position, so a translation, a pivot or a transformed ancestor moves where it is hit as it moves where it is drawn (#997).

func MoveTabFocus added in v1.1.0

func MoveTabFocus(c TabFocuser, mods event.KeyModifier) bool

MoveTabFocus moves c's focus as TabDirection says for a Tab press with mods, and reports whether it did. A press it reports false for belongs to the focused widget or the shortcut path.

func PopDirectionScope

func PopDirectionScope(obj core.CanvasObject)

PopDirectionScope balances PushDirectionScope for obj: it pops what obj pushed there, so a scope's direction or an overlay's inherited one changed while the walk was inside obj (a popup re-shown or dismissed from a layout) cannot unbalance the stack. A non-scope obj is a no-op.

func PositionForAbsolutePoint added in v1.3.0

func PositionForAbsolutePoint(object core.CanvasObject, abs geo.Position, trees []core.CanvasObject) (geo.Position, bool)

PositionForAbsolutePoint maps abs, a position within the trees, into object's own coordinates through the inverse of its world transform, the mapping the hit-test uses (LocalHitPoint). ok is false when object is not in the trees or its transform cannot be inverted (a zero scale); abs is then returned unchanged.

func PushDirectionScope

func PushDirectionScope(obj core.CanvasObject)

PushDirectionScope pushes obj's ambient layout direction onto the per-goroutine uidir stack when obj is a direction scope (or an overlay that inherited its opener's direction, see InheritDirection), so layout, paint-time text base direction and leading/trailing alignment inside the subtree resolve against the scope rather than the process-global direction. The layout walk (common.Canvas.EnsureMinSize), the paint walks and the theme re-layout call it, balanced by PopDirectionScope in the matching after-children callback. Any other obj is a no-op.

func RepaintBoundaryStatus added in v1.2.0

func RepaintBoundaryStatus(o core.CanvasObject) (boundary, settled bool)

RepaintBoundaryStatus is IsRepaintBoundary, and also reports whether the answer is settled: false for a widget whose renderer does not exist yet, which may turn out to be a boundary once it does. A walk can keep a settled answer rather than look the renderer up again on every visit (#487).

func ResolvedDirectionOf added in v1.3.0

func ResolvedDirectionOf(obj core.CanvasObject) bellui.Direction

ResolvedDirectionOf is DirectionOf resolved to a concrete direction, falling back to the process-global one: always DirectionLTR or DirectionRTL.

func ReverseWalkVisibleObjectTree

func ReverseWalkVisibleObjectTree(
	obj core.CanvasObject,
	beforeChildren func(core.CanvasObject, geo.Position, geo.Position, geo.Size) bool,
	afterChildren func(core.CanvasObject, geo.Position, core.CanvasObject),
) bool

ReverseWalkVisibleObjectTree will walk an object tree in reverse order for all visible objects executing the passed functions following the following rules: - beforeChildren is called for the start obj before traversing its children - the obj's children are traversed by calling walkObjects on each of the visible items - afterChildren is called for the obj after traversing the obj's children The walk can be aborted by returning true in one of the functions:

  • if beforeChildren returns true, further traversing is stopped immediately, the after function will not be called for the obj where the walk stopped, however, it will be called for all its parents

func RootDirection added in v1.3.0

func RootDirection(d bellui.Direction) bellui.Direction

RootDirection is the direction a walk of a canvas whose own direction is d pushes at its root: d itself, or, while a direction other than the global one can apply somewhere (dirhook.InUse), the resolved global direction, so that a Refresh or Resize inside the walk finds a direction ambient and never looks itself up (#760). DirectionAuto pushes nothing, keeping uidir's no-scope fast path for an app without scopes.

func ScopeDirection added in v1.3.0

func ScopeDirection(obj core.CanvasObject) (bellui.Direction, bool)

ScopeDirection is the direction obj applies to its subtree: a direction scope's own, or the one an overlay inherited from its opener. ok is false for any other object, and for an automatic scope.

func TabDirection added in v1.1.0

func TabDirection(focused event.Focusable, mods event.KeyModifier) int

TabDirection reports how a Tab key press moves window focus: 1 to the next focusable object, -1 to the previous one, or 0 to leave focus alone so the key reaches the focused widget or the shortcut path.

Plain Tab and Shift+Tab move focus, unless the focused object keeps Tab for itself (an event.Tabbable whose AcceptsTab reports true, such as a multi-line Entry or a DAG canvas). Such an object would otherwise trap a keyboard user, so for it Ctrl+Tab and Ctrl+Shift+Tab move focus instead. On any other object Ctrl+Tab is left alone, so an app can still bind it as a shortcut. Alt and Super never move focus.

func WalkCompleteObjectTree

func WalkCompleteObjectTree(
	obj core.CanvasObject,
	beforeChildren func(core.CanvasObject, geo.Position, geo.Position, geo.Size) bool,
	afterChildren func(core.CanvasObject, geo.Position, core.CanvasObject),
) bool

WalkCompleteObjectTree will walk an object tree for all objects (ignoring visible state) executing the passed functions following the following rules: - beforeChildren is called for the start obj before traversing its children - the obj's children are traversed by calling walkObjects on each of the items - afterChildren is called for the obj after traversing the obj's children The walk can be aborted by returning true in one of the functions:

  • if beforeChildren returns true, further traversing is stopped immediately, the after function will not be called for the obj where the walk stopped, however, it will be called for all its parents

func WalkVisibleObjectTree

func WalkVisibleObjectTree(
	obj core.CanvasObject,
	beforeChildren func(core.CanvasObject, geo.Position, geo.Position, geo.Size) bool,
	afterChildren func(core.CanvasObject, geo.Position, core.CanvasObject),
) bool

WalkVisibleObjectTree will walk an object tree for all visible objects executing the passed functions following the following rules: - beforeChildren is called for the start obj before traversing its children - the obj's children are traversed by calling walkObjects on each of the visible items - afterChildren is called for the obj after traversing the obj's children The walk can be aborted by returning true in one of the functions:

  • if beforeChildren returns true, further traversing is stopped immediately, the after function will not be called for the obj where the walk stopped, however, it will be called for all its parents

func WalkVisibleObjectTreeCulled added in v1.2.0

func WalkVisibleObjectTreeCulled(
	obj core.CanvasObject,
	cull CullFunc,
	beforeChildren func(core.CanvasObject, geo.Position, geo.Position, geo.Size) bool,
	afterChildren func(core.CanvasObject, geo.Position, core.CanvasObject),
) bool

WalkVisibleObjectTreeCulled walks as WalkVisibleObjectTree does, except that an object cull reports as drawing nothing visible is visited without its children: beforeChildren and afterChildren run for it, so a caller that mirrors the tree stays in step, but its children are neither built nor walked (#464). Culling stops below an object with a transform, whose children's positions no longer match the clip's.

func WalkVisibleSubtreeCulled added in v1.2.0

func WalkVisibleSubtreeCulled(
	obj, parent core.CanvasObject,
	offset, clipPos geo.Position,
	clipSize geo.Size,
	xf geo.Matrix,
	cull CullFunc,
	hidden func(obj, parent core.CanvasObject),
	beforeChildren func(core.CanvasObject, geo.Position, geo.Position, geo.Size) bool,
	afterChildren func(core.CanvasObject, geo.Position, core.CanvasObject),
) bool

WalkVisibleSubtreeCulled walks as WalkVisibleObjectTreeCulled does, from obj inside a tree rather than from the tree's root: parent is obj's parent, offset its position on the canvas and (clipPos, clipSize) the clip obj sits in, as a walk from the root would have passed them. cull is nil below an object with a transform, as the walk from the root would have it; the caller passes nil when an ancestor of obj has one. xf is what the transforms above obj do to walk positions, the identity when there are none (see walkObjectTree). hidden, if set, is called for each hidden object the walk skips, with the object it belongs to.

func WorldTransformForObject added in v1.3.0

func WorldTransformForObject(object core.CanvasObject, trees []core.CanvasObject) (wt geo.Matrix, ok bool)

WorldTransformForObject returns the world transform of object within the trees, composed the way the painters and the hit-test compose it: parent · Translate(Position()) · Transform() (core.Transformable). ok is false when object is not in any of the trees.

Types

type Clips added in v1.2.0

type Clips struct {
	Rect    bool    // clips to its bounds, as IsClip
	Rounded bool    // stencil-clips to rounded corners of Radius, as IsRoundedClip
	Radius  float32 // the rounded clip's corner radius
	Path    any     // the clip path, as IsPathClip, when non-nil
}

Clips is what an object establishes to clip its children. IsClip, IsRoundedClip and IsPathClip each look the renderer up; a paint walk asks all three for every object, twice, so ClipsOf answers them from one lookup (#492).

func ClipsOf added in v1.2.0

func ClipsOf(o core.CanvasObject) Clips

ClipsOf reports the clips an object establishes for its children.

type CullFunc added in v1.2.0

type CullFunc func(obj core.CanvasObject, pos, clipPos geo.Position, clipSize geo.Size) bool

CullFunc reports whether obj, at the absolute position pos, draws nothing inside the clip (clipPos, clipSize) its parent applies.

type InputPassThrough

type InputPassThrough interface {
	PassesInputThrough() bool
}

InputPassThrough is implemented by overlay roots that must not block input to the content beneath them — a tooltip, not a dialog. When the top overlay reports true, hit-testing falls through to the lower roots wherever the overlay itself has no match at the position.

type InputPassThroughAt added in v1.3.0

type InputPassThroughAt interface {
	PassesInputThroughAt(pos geo.Position) bool
}

InputPassThroughAt is implemented by overlay roots that leave part of the canvas to the content beneath them: a drawer that opens below a header (#1171). Where it reports true for a canvas position, hit-testing skips the overlay as if it were not there; elsewhere the overlay is what it otherwise is, a modal one a barrier.

type ObjectAtPosition

type ObjectAtPosition struct {
	Object   core.CanvasObject
	Position geo.Position
}

ObjectAtPosition holds an object found at a position along with the mouse position relative to it.

func FindAllInOverlaysAt added in v1.3.0

func FindAllInOverlaysAt(mouse geo.Position, matches func(object core.CanvasObject) bool, overlays []core.CanvasObject) (found []ObjectAtPosition, blocked bool)

FindAllInOverlaysAt walks the overlay stack top-down the way FindObjectAtPositionMatching does for taps, and returns every object matching at mouse in the first overlay that has one, innermost first. An input-pass-through overlay with no match there, or one that leaves mouse to the content (InputPassThroughAt), lets the search continue downward. The first other overlay is a barrier: blocked reports that it stopped the search with nothing found, so the caller must not fall through to the content (a scroll over a modal scrim, #1173).

func FindAllObjectsAtPositionMatching

func FindAllObjectsAtPositionMatching(mouse geo.Position, matches func(object core.CanvasObject) bool, overlay core.CanvasObject, roots ...core.CanvasObject) []ObjectAtPosition

FindAllObjectsAtPositionMatching is like FindObjectAtPositionMatching but returns ALL matching objects at the position, ordered from deepest (innermost) to shallowest (outermost). This is used for scroll event propagation where the deepest scrollable gets first chance to handle the event, and if it doesn't consume it, the next parent scrollable tries.

type OpacityStack added in v1.3.0

type OpacityStack struct {
	// contains filtered or unexported fields
}

OpacityStack is a paint walk's group opacity: the product of the core.OpacityGroup objects and the disabled widgets the walk is inside. Push it for every node on the way down and Pop it for every node on the way up, both unconditionally, so the pairs survive every early return a walk takes for culling and boundaries.

A disabled widget is dimmed unless it draws its own disabled look (core.DisabledLook). Every walk, desktop, mobile and software, dims the same way, so a widget looks the same on every platform and in test captures (#1223).

Under a disabled widget, what a widget with no disabled look of its own draws is dimmed too (#1393). A container that draws its own disabled look (AppTabs, List, a Form) disables only its Disableable children, so the content an app puts in it, a label in a tab or a list row, a link, a widget of its own, stayed at full colour while it took no input (#1378). The rule dims drawn objects, not subtrees: a text, rectangle or image is dimmed when the nearest widget above it does not draw its own disabled look, so a Button in the same tab, which does, is not dimmed twice, and containers and scrolls pass through. A widget whose owner draws it in the disabled colours already says so with core.DisabledLook.

A RepaintBoundary's subtree is cached in a texture and blitted. EnterBoundary starts the cached content at full opacity, and ExitBoundary returns to the ancestors' opacity before the blit, so the ancestors' opacity is applied once, when the texture is drawn, and changing it does not stale the cache.

func (*OpacityStack) Current added in v1.3.0

func (s *OpacityStack) Current() float32

Current is the opacity draws are multiplied by now.

func (*OpacityStack) EnterBoundary added in v1.3.0

func (s *OpacityStack) EnterBoundary(p opacityPainter)

EnterBoundary starts a boundary's cached content at full opacity. Whether it is inert or already dimmed carries in, so the cached content is not dimmed twice.

func (*OpacityStack) ExitBoundary added in v1.3.0

func (s *OpacityStack) ExitBoundary(p opacityPainter)

ExitBoundary returns to the opacity the boundary's texture is drawn with.

func (*OpacityStack) Pop added in v1.3.0

func (s *OpacityStack) Pop(p opacityPainter)

Pop leaves the last node pushed.

func (*OpacityStack) Push added in v1.3.0

func (s *OpacityStack) Push(p opacityPainter, obj core.CanvasObject)

Push enters obj, multiplying in its own opacity.

func (*OpacityStack) Transparent added in v1.3.0

func (s *OpacityStack) Transparent() bool

Transparent reports whether draws now would show nothing. The painters read a group opacity of 0 as unset, so a walk must skip its draws instead.

type ScrollConsumer

type ScrollConsumer interface {
	event.Scrollable
	TryScrolled(ev *event.ScrollEvent) bool
}

ScrollConsumer is an optional interface for Scrollable objects that can report whether a scroll event was consumed. If TryScrolled returns false, the scroll event may propagate to a parent scrollable.

type TabEscape added in v1.2.0

type TabEscape struct {
	// contains filtered or unexported fields
}

TabEscape is a window's second way out of a widget that keeps Tab: Escape, then Tab or Shift+Tab, as in CodeMirror and Monaco. Ctrl+Tab is the first way, but browsers keep Ctrl+Tab for switching their own tabs and never deliver it to the page, so on the web it cannot work (#357).

An Escape arms it only when the Escape had nothing else to do: no pop-up or dialog closed (HandleEscape reported false) and the focused widget is not using the key for a state of its own (an event.EscapeHandler that handles it). So the first Escape still closes the dropdown, and a second one arms the way out. Any key other than a modifier disarms it, and so does any typed character (Disarm): some drivers give letter keys no name, so the character is the only sign of them. It is also armed for the widget focused at the Escape alone, so a focus change by pointer or by code cancels it.

The zero value is ready to use; a driver keeps one per window.

func (*TabEscape) Disarm added in v1.2.0

func (e *TabEscape) Disarm()

Disarm cancels the way out. Drivers call it for every typed character and when their window loses focus.

func (*TabEscape) EscapeNotConsumed added in v1.2.0

func (e *TabEscape) EscapeNotConsumed(focused event.Focusable)

EscapeNotConsumed arms the way out after an Escape that HandleEscape did not consume, when the focused widget keeps Tab and is not using Escape itself.

func (*TabEscape) MoveTabFocus added in v1.2.0

func (e *TabEscape) MoveTabFocus(c TabFocuser, key event.KeyName, mods event.KeyModifier) bool

MoveTabFocus is MoveTabFocus for a driver that offers the Escape way out. Call it for every key press: a key other than Tab only updates the state.

type TabFocuser added in v1.1.0

type TabFocuser interface {
	Focused() event.Focusable
	FocusNext()
	FocusPrevious()
}

TabFocuser is the part of a canvas MoveTabFocus needs.

type WithContext

type WithContext interface {
	RunWithContext(f func())
	RescaleContext()
	Context() any
}

WithContext allows drivers to execute within another context. Mostly this helps GLFW code execute within the painter's GL context.

Directories

Path Synopsis
Package glfw provides a full Bellui desktop driver that uses the system OpenGL libraries.
Package glfw provides a full Bellui desktop driver that uses the system OpenGL libraries.
app
Package app lets you write portable all-Go apps for Android and iOS.
Package app lets you write portable all-Go apps for Android and iOS.
event/composition
Package composition defines the IME composition (preedit) event used by the mobile driver to carry input-method composition state from the native platform layer to the focused widget.
Package composition defines the IME composition (preedit) event used by the mobile driver to carry input-method composition state from the native platform layer to the focused widget.
event/config
Package config defines the event that reports an in-place configuration change to the mobile driver.
Package config defines the event that reports an in-place configuration change to the mobile driver.
event/key
Package key defines an event for physical keyboard keys.
Package key defines an event for physical keyboard keys.
event/lifecycle
Package lifecycle defines an event for an app's lifecycle.
Package lifecycle defines an event for an app's lifecycle.
event/paint
Package paint defines an event for the app being ready to paint.
Package paint defines an event for the app being ready to paint.
event/size
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
event/textedit
Package textedit defines the committed text-edit event used by the mobile driver to carry a native IME/keyboard edit — a range replacement — from the platform layer to the focused editor through the text-input mirror seam (pre-rebrand tracker #771).
Package textedit defines the committed text-edit event used by the mobile driver to carry a native IME/keyboard edit — a range replacement — from the platform layer to the focused editor through the text-input mirror seam (pre-rebrand tracker #771).
event/touch
Package touch defines an event for touch input.
Package touch defines an event for touch input.
event/undoredo
Package undoredo defines the native undo/redo invocation event used by the mobile driver to carry a platform-initiated undo or redo — the iPad soft keyboard's undo/redo bar keys, the three-finger swipe gestures or shake-to-undo, all of which drive the first responder's NSUndoManager — from the platform layer to the focused editor (pre-rebrand tracker #1134).
Package undoredo defines the native undo/redo invocation event used by the mobile driver to carry a platform-initiated undo or redo — the iPad soft keyboard's undo/redo bar keys, the three-finger swipe gestures or shake-to-undo, all of which drive the first responder's NSUndoManager — from the platform layer to the focused editor (pre-rebrand tracker #1134).
gl
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
mobileinit
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL