Update the state of the selectable in response to input events. It returns whether the text selection changed during event processing.
(gtx layout.Context)
| 174 | // Update the state of the selectable in response to input events. It returns whether the |
| 175 | // text selection changed during event processing. |
| 176 | func (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 |
no test coverage detected