Files
gio/widget
Chris Waldon c645c2ec8e widget: [API] convert Editor to return one event at a time
This commit eliminates (*widget.Editor).Events() in favor of making
(*widget.Editor).Update() return events as they are generated in response to
input. This makes the behavior of the editor match the rest of the core widgets.
Callers who previously invoked Events() can now achieve the same thing by using
a loop like this:

for {
	ev, ok := editor.Update(gtx)
	if !ok {
		break
    }
	// Handle ev
}

This is undeniably more verbose, but it enables more sophisticated event processing.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
2024-02-05 11:09:36 +00:00
..
2024-02-05 11:09:36 +00:00
2024-02-05 11:09:36 +00:00
2024-02-05 11:09:36 +00:00
2024-02-05 11:09:36 +00:00
2021-10-07 15:01:17 +02:00
2024-02-05 11:09:36 +00:00
2023-11-09 15:18:46 -05:00
2024-02-05 11:09:36 +00:00