~eliasnaur/gio-example

kitchen: fix nil check

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

Updates gio#245

Signed-off-by: Elias Naur <mail@eliasnaur.com>
gophers: add scrollbars

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

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/scroll: remove scroll example

The scrollbar is now part of core, and thus used throughout
the other examples. It no longer needs a dedicated one.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/component: add scrollbars to pages

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: add scrollbar to letters window

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
multiwindow: add scrollbar to log

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
deps: update to latest gioui.org{,/x}

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
x/scroll: smooth scrolling heuristic

This change takes advantage of newer fields in list.Position
to render a much smoother scrollbar.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
kitchen: add ProgressCircle example

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: add screenshot function to demonstrate headless rendering

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: fix build error on Windows

The pointer-ness of EGLDisplay vary by platform.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: release current context after use

For this example it doesn't matter, but for larger programs that may
have multiple contexts, ANGLE seem to behave better when release the
current context before using another.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: use Metal backend on macOS

Metal performs better on resize and display scaling changes, and
is compatible with a future macOS without OpenGL support.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: add pointer input handler

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: make context current at each draw

macOS uses a single thread for all window event loops, which means
the window context must be made current at each draw. The "opengl"
example doesn't create multiple windows, but programs based on it
may.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
go.*: upgrade Gio

Signed-off-by: Elias Naur <mail@eliasnaur.com>
opengl: add example that demonstrates OpenGL rendering to a Gio Window

This example builds upon recent work in the core Gio library that
enables mixing custom rendering with a Gio UI. Unlike the glfw example,
this example uses a regular Gio app.Window configured to not create a
GPU context.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
glfw: support both desktop OpenGL and OpenGL ES on macOS

Signed-off-by: Elias Naur <mail@eliasnaur.com>
Next