~eliasnaur/gio-example

deps: update to latest gio and gio-x

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps,markdown: update to latest gio-x API

This commit updates to the recent changes in the richtext package's
public API.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps: update to latest gio and gio-x

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
markdown: update to new API

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
go.*: bump Gio version

Signed-off-by: Elias Naur <mail@eliasnaur.com>
customdeco: demonstrate custom decorations

Signed-off-by: Elias Naur <mail@eliasnaur.com>
go.*: upgrade to latest Gio, bump go.mod to 1.17

Signed-off-by: Elias Naur <mail@eliasnaur.com>
color-grid,fps-table: add simple demos exploring grid/table usage

This commit adds two demonstrations of the new grid and table types
available in gioui.org/x/component.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps,all: update to latest gio{,-x} and fix all examples

This commit updates all examples to use the latest units API.
It also drops the outlay/table example, as outlay no longer
provides that layout.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps,7gui/*,life,gophers: update gio and global keyboard shortcut example

This commit updates to the latest gio and adapts all of the global keyboard
shortcut handling examples to the recent changes in Gio's keyboard event
processing.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps: require gogio using tools.go

This ensures gogio is available to build examples, and it helps lock the
version of gogio used to be compatible with the version of Gio used.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
go.*: bump Gio version

Fixes build on 32-bit platforms.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
deps: update gio and gio-x

These updates pick up support for RTL languages and
complex scripts.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
mod: bump gioui.org and gioui.org/x

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
opengl: render on app thread, not window event loop thread

Binding a GPU context to a window surface must happen on the event
thread, but rendering doesn't.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
deps: update to latest gio-x

This commit updates gio-x to pick up changes in the explorer
package that no longer compiled on the latest gio version

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: fix concurrent use of material.Theme

text.Shapers are not safe for concurrent use, and thus material.Themes
(which embed them) are not either. This commit restructures the multiwindow
example to avoid this mistake and the nasty panics that it can trigger.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: fix window close mechanism

This commit updates the multiwindow example to use the new
app.Window.Perform method to close windows instead of the
now-removed app.Window.Close method.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps,opengl: update opengl example to support wayland

This commit updates to a version of Gio with app.ViewEvent
implemented on Wayland. This required some refactorings
within the opengl example to make the code adapt to both
possible ViewEvents on Linux.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
opengl: prevent building for wayland

Now that Wayland is the default Gio backend on Linux again,
prevent this example from building for it. app.ViewEvent
is not yet implemented on Wayland, making the use of a custom
renderer impossible.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Next