~eliasnaur/gio

Gio News, July 2020

Details
Message ID
<C3WYH51C7KE8.ZWWSUFA02DZY@themachine>
DKIM signature
pass
Download raw message
Community call recording

The recording for the June community call is published on
YouTube: https://youtu.be/iD1ckwkqMuI. It includes a presentation
by Anthony Stark covering his giocanvas work with lots of examples,
and Gregory Pomerantz presents his work to make integration with
Android native APIs easier. Gregory's demo shows off the use of
hardware sensors to control a bouncing disc.

See Anthony's giocanvas repository here:

	https://github.com/ajstarks/giocanvas

It includes a rich set of examples.

Gregory's extensive Android work and examples are hosted here:

	https://git.wow.st/gmp

You may be interested in his package for using JNI from Go:

	https://git.wow.st/gmp/jni


Affine transformations

Gio has been in development for years, yet until recently only
supported offset transformations. Offsets are enough for layouts,
but quite inadequate for more interesting animations and effects.

Thanks to the considerate effort of Viktor Ogeman, the Gio GPU
renderer finally has support for affine transforms which means
that you can rotate, shear, and scale other operations while keeping
pointer input working as expected.

If you're cusious, one of the kitchen example checkboxes shows off
this feature by rotating and scaling the entire UI, while keeping
pointer working as expected.


Multiple windows

Gio issue #19, multiple top-level windows, was filed by Larry Clapp 10
months ago. That's finally been closed, and app.NewWindow can now be
called more than once on Linux, macOS, Windows.

The "windows" example demonstrates multiple windows along with another
new window feature, app.Window.Close, for programmatic access to
closing windows.

Note that app.Main no longer returns after closing (the last) window,
to support programs that mix a command-line and graphical interface.
You must explicitly call os.Exit to exit your program.

As a bonus, the app.MaxSize and app.MinSize options for app.NewWindow
can be used to contrain user resizes.


Slider widget

There's a new widget, Slider, for presenting a continuous setting to
the user. See the kitchen example for use and visual style.


Editor mask

Another long-standing request was the ability to use the Editor for
entering sensitive content such as passwords. The new Editor.Mask field,
when set, is used instead of the actual runes when displaying the Editor
content.


Roboto font

The work on the Tailscale Android app required the Google Roboto font
instead of the Gio's default Go font. Similarly to the Go font, the
eliasnaur.com/font package contains the Roboto variants as Go
packages:

	https://git.sr.ht/~eliasnaur/font/tree/master/roboto

See the Tailscale source code for an example of how to use the fonts:

	https://github.com/tailscale/tailscale-android/blob/e3befb01d819e69fc747e659f2d292a2561ec3f9/cmd/tailscale/ui.go#L141


Gio tutorial in Spanish

Erik Czumadewski kindly published a Gio tutorial in Spanish. Watch it
here:

	https://www.youtube.com/watch?v=erhw3pvWJ7I


Arbor chat system

Chris Waldon has been busy working on Arbor, a chat collaboration
system with a Gio user interface:

	https://arbor.chat/

Chris did a presentation about Arbor here

	https://www.youtube.com/watch?v=qJBvRMRQTCI

You also find his niotify package for cross-platform notifications
interesting,

	https://git.sr.ht/~whereswaldon/niotify

or his Gio colorpicker:

	https://git.sr.ht/~whereswaldon/colorpicker


New sponsors

Erik Czumadewski and @matildatech are now sponsoring my work on Gio.
Thanks to both of you!

If you also find my work worthwhile, please consider sponsoring me
on GitHub:

	https://github.com/sponsors/eliasnaur
Export thread (mbox)