MCPcopy Create free account
hub / github.com/gioui/gio / Update

Method Update

widget/selectable.go:176–179  ·  view source on GitHub ↗

Update the state of the selectable in response to input events. It returns whether the text selection changed during event processing.

(gtx layout.Context)

Source from the content-addressed store, hash-verified

174// Update the state of the selectable in response to input events. It returns whether the
175// text selection changed during event processing.
176func (l *Selectable) Update(gtx layout.Context) bool {
177 l.initialize()
178 return l.handleEvents(gtx)
179}
180
181// Layout clips to the dimensions of the selectable, updates the shaped text, configures input handling, and paints
182// the text and selection rectangles. The provided textMaterial and selectionMaterial ops are used to set the

Callers 2

LayoutMethod · 0.95
clickDragEventsMethod · 0.45

Calls 2

initializeMethod · 0.95
handleEventsMethod · 0.95

Tested by

no test coverage detected