Elias Naur
1a9e03bf68
ui/key: expand documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-11 13:09:55 +02:00
Elias Naur
dce7ad2f58
apps/gophers: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-11 12:54:19 +02:00
Elias Naur
340fff9814
ui/key: rename ChordEvent to just Event
...
Event is like pointer.Event and we don't want the stuttering of
key.KeyEvent.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-11 12:50:40 +02:00
Elias Naur
2a41ff9a59
ui/key: expand documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-11 12:41:24 +02:00
Elias Naur
b68c9c23c8
ui/input: expand package documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-11 12:31:39 +02:00
Elias Naur
e3ae277841
ui/layout: add List example
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 18:54:18 +02:00
Elias Naur
b3e8f5953e
ui/layout: add Stack example
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 18:46:18 +02:00
Elias Naur
44d16d04e9
ui/layout: add Flex example
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 18:41:01 +02:00
Elias Naur
94f2752885
ui/layout: add Align example
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 18:28:19 +02:00
Elias Naur
4ce8f4ea51
ui/layout: add Inset example
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 18:18:18 +02:00
Elias Naur
3c941e938f
ui/layout: expand package documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 17:56:16 +02:00
Elias Naur
8f37a565b9
ui/layout: document layout types and helpers
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 17:09:35 +02:00
Elias Naur
79233a3565
apps/gophers: update gioui.org/ui version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 16:51:45 +02:00
Elias Naur
ba3a952af2
ui/layout: document List, Stack
...
Tweak Flex documentation.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 16:49:02 +02:00
Elias Naur
8f17163a13
ui/layout: rename List.Elem to End to match Stack and Flex
...
Add more documentation while we're here.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 16:26:39 +02:00
Elias Naur
6d1339733a
apps: update gioui.org/ui
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 12:34:58 +02:00
Elias Naur
1a15d7241a
ui/layout: rename and sanitize enums
...
Rename MainAxisAlignment to Spacing and CrossAxisAlignment to just
Alignment.
Drop the untyped Start, End, Center values and add them as Spacing
and Direction values. Center is both a Direction and Alignment, so
use the synonym "Middle" for the alignment.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 12:29:17 +02:00
Elias Naur
2a0b0077da
ui/app: (wasm) add checks for required extensions
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-10 00:49:28 +02:00
Elias Naur
7bc18c0139
ui/app: more documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 22:27:33 +02:00
Elias Naur
a8f42cd567
ui/app: expand package documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 22:16:52 +02:00
Elias Naur
657c40e4bb
ui/app: support 0 for window width and height
...
The zero value means that the client don't care and a sensible
default is chosen.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 22:01:25 +02:00
Elias Naur
e5738481f8
ui/app: add package documentation and document Main
...
Split Main into the common Main function and platform specific
main functions.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 21:34:29 +02:00
Elias Naur
87f8fd4152
ui/app: update documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 21:17:33 +02:00
Elias Naur
a2baffdbfd
ui: expand package documentation
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-09 20:35:04 +02:00
Elias Naur
a6c262c1e1
ui: expose internal Ops fields as methods
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-08 15:20:58 +02:00
Elias Naur
3c924e2a18
ui: document types and methods
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-08 14:54:51 +02:00
Elias Naur
aa703dfc3e
apps/gophers: update to latest gio
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 20:40:01 +02:00
Elias Naur
4e005f2bfa
ui/app: rename DrawEvent to UpdateEvent and Window.Draw to Window.Update
...
Window.Draw is not the right name for a method that does more than
just drawing. Rename to Update instead, and rename the DrawEvent
accordingly for symmetry.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 20:35:37 +02:00
Elias Naur
3d519c5a37
apps/gophers: delete unused fields and arguments
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 20:29:39 +02:00
Elias Naur
20f9a72c15
apps: update gioui.org/ui version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 20:15:25 +02:00
Elias Naur
dd35a48a61
ui/paint: rename the draw package
...
The draw package name clashes with the standard library draw package.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 20:11:53 +02:00
Elias Naur
6e26c92c75
all: remove exported Decode methods on operations
...
Add decode functions to the packages that need them instead. For
TransformOp that is used in multiple packages, add the decode
function to the internal ops package.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 17:21:34 +02:00
Elias Naur
4d66669a9e
app/internal/gpu: rename opClip to clipOp
...
To better match ClipOp, which was renamed from OpClip.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 17:21:34 +02:00
Elias Naur
eaa4efe5af
all: add missing licence headers
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 17:21:34 +02:00
Elias Naur
b3517a365e
ui,internal/ops,internal/opconst: move OpsReader to internal ops package
...
To avoid import cycles, move the op constants to its own package,
internal/opconst.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 17:21:26 +02:00
Elias Naur
fe20cde393
ui: rename TransformOp.Mul to Multiply and split InvTransform
...
Multiply is a bit longer but more clear. InvTransform was really
two operations: Invert and Transform.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 14:47:14 +02:00
Elias Naur
9be695cc24
ui: fix TransformOp.Offset
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 14:20:40 +02:00
Elias Naur
f223c7b0c9
cmd/gio: clarify usage summary
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 14:01:32 +02:00
Elias Naur
ddcbccf041
cmd/gio: simplify -o flag description
...
Only mention the special case for iOS simulators.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-07 12:37:44 +02:00
Larry Clapp
a14e818299
draw: Fix spelling of Bezier
...
Sometimes it was "bezier", sometimes "beziér". Capitalize and put
accent on first e. https://en.wikipedia.org/wiki/Bézier_curve
Signed-off-by: Larry Clapp <larry@theclapp.org >
2019-08-05 19:18:10 +02:00
Elias Naur
276cb104ad
apps/go.mod: update gioui.org/ui version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 18:10:32 +02:00
Elias Naur
8c3305e88b
README.md: add link to FAQ
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 16:13:54 +02:00
Elias Naur
a27f12faf3
README.md: move license last, tweak text
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 15:55:47 +02:00
Elias Naur
9babb1389d
README.md: split out installation, integration, contributing sections
...
Add them to the wiki so README.md ends up less overwhelming.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 15:50:39 +02:00
Elias Naur
8472bbc78b
ui/app,cmd/gio: move running of main from driver to GioAppDelegate
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 15:38:34 +02:00
Elias Naur
2d6111e31a
website: add godoc.org redirects for the ui, cmd, apps modules
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-05 13:34:36 +02:00
Larry Clapp
7f82b5d637
README.md: add backticks to giowindow div tag
...
Wrap backticks around the "div" tag mentioned in the README, so it looks
like this:
`<div id="giowindow">`
Without the backticks, the markdown renderer renders it as an actual
<div> tag in the output html (without an ID, either).
Signed-off-by: Larry Clapp <larry@theclapp.org >
2019-08-04 20:52:36 +02:00
Elias Naur
15dc714d40
ui/app: add darwin build tag to ios files
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-03 21:25:34 +02:00
Elias Naur
38eb23cc31
apps/go.mod: update gio version
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-02 23:16:39 +02:00
Elias Naur
e2df2f394a
apps/gophers: split main into App and UI and add BenchmarkUI
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-08-02 19:52:26 +02:00