Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gioui/gio

Mirror of the Gio main repository (https://git.sr.ht/~eliasnaur/gio)
https://github.com/gioui/gio

ui/layout: delete Constraints.Expand and Constraints.Loose

They're not (yet) shown their use.

Signed-off-by: Elias Naur <[email protected]>

f36070f71656b3ccabaa62864311cbae4b6bffb0 authored over 5 years ago
apps: update to newest gio version

Signed-off-by: Elias Naur <[email protected]>

a8aa1a9c7eac92da467979b8b755102af52672ce authored over 5 years ago
ui/layout: delete Constraints.Exact and rename ExactConstraints

Exact was too special and can be expressed with RigidConstraints.

RigidConstraints is a better ...

667670f9c65670bf48034962d4d02119f8ad402a authored over 5 years ago
ui: support Window.Draw(nil) in OpsReader

Signed-off-by: Elias Naur <[email protected]>

8eb58ff2ebb33d19789084e28828f8676fa8699c authored over 5 years ago
ui: don't keep references alive in Ops.Reset

Signed-off-by: Elias Naur <[email protected]>

5b3090b128ef0cd9f5a5adccb7e1c3f69a048bf9 authored over 5 years ago
ui/app: use the delayed redraw timer directly in the Window run loop

Signed-off-by: Elias Naur <[email protected]>

09b5752659136857828aeb2df5c49dc314d5ca68 authored over 5 years ago
ui/app: replace locking with channels in Window implementation

Signed-off-by: Elias Naur <[email protected]>

07622a295cb28edd887b242d470bf87e58a35d69 authored over 5 years ago
apps/go.mod: update gio dependency

Signed-off-by: Elias Naur <[email protected]>

619a90a6460267fecbe59f8a0e51ffbb7cac9e65 authored over 5 years ago
ui/app: don't draw or handle events if window is dead

Signed-off-by: Elias Naur <[email protected]>

587b88d346ee89af9cbe7a22da6286ce8a5a40a4 authored over 5 years ago
apps: use DrawEvent.Size instead of Window.Size

Signed-off-by: Elias Naur <[email protected]>

26543ba1a51bf731f3951ae28f0436912313c047 authored over 5 years ago
ui/app: delete Window.Size method

Clients should use the size from DrawEvent instead.

Signed-off-by: Elias Naur <[email protected]>

6e97d65af145a4697a8e5e515ac375d9fa0cb32b authored over 5 years ago
cmd/gio: use the import path as basis for the output file

Before this change `go list <pkg>` was used to sanitize the import
path of the package argument....

cde040369cfca37e1acfc90f63d4d49928711a65 authored over 5 years ago
apps/go.mod: update

Signed-off-by: Elias Naur <[email protected]>

41990e3275819f4092aa552da66f6dd25123170d authored over 5 years ago
ui/app: add a DataDir fallback to Go 1.12

o.UserConfigDir is introduced in Go 1.13, which is not released yet.
Add a Go 1.12 stopgab until...

112368a2e39a89c4d3a3f4229a5b8b8bf91b17a7 authored over 5 years ago
ui/app: remove two redundant assignments

StagePaused is the zero value now that StateDead is gone.

Signed-off-by: Elias Naur <mail@elias...

4cde5d57d7fafdf9c6861c878351bf04f14f70a8 authored over 5 years ago
apps: support DestroyEvent

Signed-off-by: Elias Naur <[email protected]>

e13b9a499082d638c3bf015b6f3390942c133dd8 authored over 5 years ago
ui/app: introduce DestroyEvent for ending the event loop

Replace the StageDead stage with DestroyEvent dedicated to ending
the event loop and, for premat...

59e92e8233a48584c8e2c6833900678418b3ab82 authored over 5 years ago
apps: update to new NewWindow API

Signed-off-by: Elias Naur <[email protected]>

8e307b40a6f4989545089eba10a72c4342d86fb4 authored over 5 years ago
ui/app: create windows directly

Replace CreateWindow with NewWindow that immediately creates a Window
ready to use.

Drop the Wi...

a3b9c7818fa77861204c0d79e9e52896a2be3f65 authored over 5 years ago
io/app/internal/input: go fmt

Signed-off-by: Elias Naur <[email protected]>

46cee54dd6b033277a203aa2913d8077539969a7 authored over 5 years ago
apps/gophers: update system package path

Signed-off-by: Elias Naur <[email protected]>

98e1ef177c78fd8d8b4f3bc06d5508215e6826f2 authored over 5 years ago
ui/system: move package ui/input/system

Just like the pointer and key packages.

Signed-off-by: Elias Naur <[email protected]>

2296393471aec887d9ea9549461134d9b540a38b authored over 5 years ago
ui/app: delete unused Input type

Signed-off-by: Elias Naur <[email protected]>

93368253ac506d3b2bfa9b46cbde58a83628f30c authored over 5 years ago
apps/gophers: simplify type switch

Signed-off-by: Elias Naur <[email protected]>

759fdb2efefffdbb3841966b9d8e14ef83bd58e1 authored over 5 years ago
apps/gophers: upgrade to new profiling api

Signed-off-by: Elias Naur <[email protected]>

1336ca109ade92a068e55d8c718f064f26eed73b authored over 5 years ago
ui/input/system: introduce package for system events

And add ProfileOp and ProfileEvent for registering and receiving
profile data.

Remove the Profi...

86533ae683e06627066e9d4ea1d3c9ede5a99784 authored over 5 years ago
ui/app,ui/internal/input: move InvalidateOp summary to Router

In preparation for extracting more op types in Router.

Signed-off-by: Elias Naur <mail@eliasnau...

032e9a380edb5589afa1bc6746990b9fc714766c authored over 5 years ago
ui/key,ui/pointer: replace Key types with input.Key

Signed-off-by: Elias Naur <[email protected]>

c7eb9be9f3ea9a0d7daf008885d53c3a590a8cb7 authored over 5 years ago
ui/app: only schedule a redraw when events are available

Signed-off-by: Elias Naur <[email protected]>

25a20af2843d57abbfc0ece8b9ada44be7318112 authored over 5 years ago
ui/app/internal/input: add tracking up updates to handlerEvents

In preparation for only redrawing when new events are available.

Signed-off-by: Elias Naur <mai...

ba1881740080d151f0554fe964163b4711f17428 authored over 5 years ago
apps/gophers: add explicit redraws

Signed-off-by: Elias Naur <[email protected]>

c7fda6d37d3c3d69d483e9f383d1cd605b5f820b authored over 5 years ago
ui/app: don't implicitly redraw for each CommandEvent

Redrawing should only be scheduled when some UI state has changed.

Window has no way to know wh...

326f78c3413a018a52e027fff320b4d054a91083 authored over 5 years ago
apps/gophers: replace own input router with the window's Queue

Signed-off-by: Elias Naur <[email protected]>

343934d3de1e988916babf4c8f7ec96b6189bd75 authored over 5 years ago
ui/app: unexport Window.SetTextInput

Signed-off-by: Elias Naur <[email protected]>

46850653ef213668b57c00d1411f0281eab211bc authored over 5 years ago
ui/input: move Router and input queues to internal package

Now that only app.Window needs the Router, make it unavailable for
clients.

Signed-off-by: Elia...

cbdda4e9c5c4531dc0bcdbc9706f5f34d45399ea authored over 5 years ago
ui/app: add input queue to Window

I see no point in forcing the client to manage input events. Let's
put it on Window for now.

Si...

0d924a1950f5f6faa8f8b908e12509a25efbfd5e authored over 5 years ago
ui/app: comment fix

Signed-off-by: Elias Naur <[email protected]>

b8eca3927729445e7399e2d4533b7b9adca86a19 authored over 5 years ago
ui/pointer: ignore hits to dropped handlers

Signed-off-by: Elias Naur <[email protected]>

fb9e5ca9022e9b698f64afcccf482490e749725e authored over 5 years ago
ui: shorten OpReader.Decode for loops

Signed-off-by: Elias Naur <[email protected]>

3a6fda129a638467efe6ed5f06d6c603b88caf39 authored over 5 years ago
apps/hello: fix loop variable captured by func literal

Signed-off-by: Dan Kortschak <[email protected]>

3c2c404fa9699806739e6f8a8bc754f39ad25a6c authored over 5 years ago
apps/gophers: upgrade to changed input api

Signed-off-by: Elias Naur <[email protected]>

96b52d3493d3158e24ce0b329925c7fbca8240fa authored over 5 years ago
ui/gesture: switch Click to return all events

Simpler and more ergonomic for clients.

Signed-off-by: Elias Naur <[email protected]>

37ac75f3bb4c01e02c9b35027f09c534b1bc3f77 authored over 5 years ago
ui/text: shorten event loop in Editor.Layout

Signed-off-by: Elias Naur <[email protected]>

6a4ba30c96e7d98a66aa2047e26510aab83d400e authored over 5 years ago
ui/input: rename Queue to Router and Events to Queue

Signed-off-by: Elias Naur <[email protected]>

a22bcfc88c893452b8308e4cdc92afd3b291658d authored over 5 years ago
ui/input: change Events to return all events at once

Single stepping events only makes sense for widgets with complex
state, e.g. the text.Editor. Fo...

1735d5ced8937ff6f853aa8b01fed3140738c744 authored over 5 years ago
apps/gophers: move user list click handling earlier

Signed-off-by: Elias Naur <[email protected]>

a9d4186bef163dafaed6361c6a98d28f1a04b8c3 authored over 5 years ago
apps/gophers: remove CrossAxisAlignment Stretch values

Signed-off-by: Elias Naur <[email protected]>

fc7bb79c36d38be417ee4bb9e49ddabd520daf72 authored over 5 years ago
ui/layout: drop CrossAxisAlignment value Stretch

It doesn't carry its own weight; client can just as easily adjust
the Constraints themselves.

S...

0d49eb3f4b31b9a91b23526bd0c2b0e67ea709b4 authored over 5 years ago
apps/gophers: drop MainAxisSize from Flex initializers

Signed-off-by: Elias Naur <[email protected]>

5c3398f33d8de025bb916c14a5835eecb183165f authored over 5 years ago
ui/layout: drop Flex.MainAxisSize setting and MainAxisSize type

The setting doesn't bear its own weight; it's simpler for the client
to adjust the constraints i...

10ef4576e7de31a3a16c66808b7461b15b965905 authored over 5 years ago
ui/layout: ensure that flex weights add to 1

Before this change, the weight applied to the space left, not the
total space available after ri...

c7e85efc275f5beac7ebcc1d5bee7a7226dc9e82 authored over 5 years ago
apps/gophers: update to simpler Flex.Flexible method

Signed-off-by: Elias Naur <[email protected]>

9f394109cb4b7eafb1353580d72779d33773901f authored over 5 years ago
ui/layout: drop FlexMode

The type and argument to Flex.Flexible does not carry its weight;
It is just as easy to expand t...

449c2b844a409d979d74b4b30ad54efc008bd43f authored over 5 years ago
apps/gophers: upgrade to new layout.List API

Signed-off-by: Elias Naur <[email protected]>

15505cd63586079101f5f84b8a0ea514e1f3d798 authored over 5 years ago
ui/layout: make List more friendly to for loops

With this change, a List l can be iterated with

for l.Init(...); l.More(); l.Next() {
...

fe4a61ec890fbc0989c07f39803966765342e372 authored over 5 years ago
apps/gophers: larger font sizes and a layout fix

Signed-off-by: Elias Naur <[email protected]>

431fa218b2ba961cec040b9db8f525a80d1cafeb authored over 5 years ago
apps/hello: use correct Config type

Signed-off-by: Dan Kortschak <[email protected]>

bcd5685e78c67423221716aaf52efc5bbe758521 authored over 5 years ago
ui/app: tweak monitor scale

Don't apply monitor scale to wayland font sizes, since it detects
the user scale itself.

Signed...

f4461721e3f715d36db5a9585c662a4d1fd64462 authored over 5 years ago
ui/app: introduce Insets for system decoration insets

Insets is like image.Rectangle, but with properly named fields
and ui.Value instead of raw ints ...

478d56102a83c662265c634701fdd10c45dc6de7 authored over 5 years ago
cmd/gio: (android) don't compress resources.arsc in apks

Compressing resources.arsc result in warnings such as

"resources.arsc in APK '...' is compresse...

9d8d5da1069ac944c0d5d086eac8dbd96b9d8e00 authored over 5 years ago
ui/app,cmd/gio: support edge-to-edge layout on Android

Implement recomendations from
https://developer.android.com/preview/features/gesturalnav#java

W...

15c4ce9e2232b454821515d45922bc48b7c269f3 authored over 5 years ago
cmd/gio: rename -v to -x and add -work

The verbose flag only triggered printing of commands, which is
traditionally named -x by other G...

828a695086eac28359605b41a7cbf67510517e5b authored over 5 years ago
ui/layout: don't stretch Align child

Let the caller decide whether the constraints should be stretched.

Also unexport Constraint (no...

896f5a77dd20d42f4bd6ec1044473d2fbadcbd1e authored over 5 years ago
apps/gophers: update to new split area ops

Signed-off-by: Elias Naur <[email protected]>

dbe15b23a9d056e5500815f4a6282f9bbdce9c4d authored over 5 years ago
ui/pointer: split AreaOp into RectAreaOp and EllipseAreaOp

Now that the pass through mode is moved into its own PassOp op,
it doesn't make sense to collect...

4fadf71992ffd469b297c1994d05acb2c5716409 authored over 5 years ago
ui/pointer: simplify pointer pass through

Get rid of the confused LayerOp and the transparent property from
AreaOp. Add an explicit PassOp...

f44ccec04361f090a930ac7350c4641c3d0d1729 authored over 5 years ago
ui: fix comment for TransformOp

f90ef91b19dd5be4e6a6c7f39f11da77178c0387 authored over 5 years ago
cmd/gophers: update to ui.Config as an interface

Signed-off-by: Elias Naur <[email protected]>

cadfc88be2787be3ecf37ca69d576a55a707ec77 authored over 5 years ago
ui,ui/app: convert Config to an interface

To keep the interface slim, remove the helper methods and shorten
the essential method, Pixels, ...

32aae1829371b64af6fddee84047495abc22e9ad authored over 5 years ago
apps/gophers: update to renamed Config.Pixels method

Signed-off-by: Elias Naur <[email protected]>

624ef78e1c8348d50a881bd90d4b9281f98fa556 authored over 5 years ago
ui: rename Config.Val to Pixels

Signed-off-by: Elias Naur <[email protected]>

320579814f859836c2fcf141ea2ade1b5a1b01b4 authored over 5 years ago
cmd/gophers: use default scale for avatar images

We don't know the DPI for random images from the internet.

Signed-off-by: Elias Naur <mail@elia...

e3ba84758c1c4709c8670cf20f44ba8524180a31 authored over 5 years ago
cmd/gophers: update to integer ui.Config pixel values

Signed-off-by: Elias Naur <[email protected]>

2aac09b3b286434790f8e4fe478526494f0d2b16 authored over 5 years ago
ui: use ints for unit conversions to pixels

The dp and sp units are approximate and mostly used for layout
dimensions that operate in whole ...

ad4215a7ebb19bf5063e01bb8f3162fa95c63696 authored over 5 years ago
apps/gophers: update to Constraint.Exact method

Signed-off-by: Elias Naur <[email protected]>

bde04c68a251b4f77dfe30b02ccbbf5e0e24468e authored over 5 years ago
ui/layout: replace Sized struct with simpler Constraint.Exact method

While here, add String methods to ui.Value and ui.Unit.

Signed-off-by: Elias Naur <mail@eliasna...

25af3e3701deaa38aac55718e0865c18defd80de authored over 5 years ago
ui/layout: remove unused isInf

Signed-off-by: Elias Naur <[email protected]>

4ec352727ef664e9bcb014b64190eaaee0ace77a authored over 5 years ago
apps/gophers: use the new Image.Scale for icons

Signed-off-by: Elias Naur <[email protected]>

41626f5a6b50be0086b09e4983311cb73c427ffd authored over 5 years ago
ui/widget: introduce Image.Scale

And use a constant 72 DPI for the default scale, to ensure consistent
image sizes across display...

b1af8aa75e5e34e670fd89d02069cacf0cc6a5fc authored over 5 years ago
ui/widget: preserve image aspect in Image.Layout

Signed-off-by: Elias Naur <[email protected]>

ca24026ffd2cd5a93e8f74c659c471ebfa18d739 authored over 5 years ago
apps/gophers: update to layout objects with ui.Value measurements

Signed-off-by: Elias Naur <[email protected]>

f3164c9fce9627fb25828f0d305a748ddda8beaf authored over 5 years ago
ui/layout: convert Sized and Insets to use ui.Value

Layout objects are usually ephemereal, but when saved and re-used
between frames their measureme...

99be31bc2676c1a548e01142d2bc3516e35655df authored over 5 years ago
Revert "ui/app: (iOS) treat the \n character as a return key chord"

It's not the way of the soft keyboards.

This reverts commit a0c04cb3b2f3d3bbcbb38701711662b6f12...

8a34469211edc61adf831470eb1b21aae1376ea5 authored over 5 years ago
apps/go.mod: update gio version

Signed-off-by: Elias Naur <[email protected]>

da095a3e5d5a0f467b6562cb83fd8d00bf872439 authored over 5 years ago
ui/app: (android) fix length of C string copy

The data dir string is returned to Go as a byte array of the UTF-8
encoded string, but it is not...

f7ea448256cdb9f3bbcd463a98b196051048c4a8 authored over 5 years ago
apps: remove use of app.Window.IsAlive

Signed-off-by: Elias Naur <[email protected]>

5f15f4c7690c59dd1e19cb08d2fa1f1b36a0bf20 authored over 5 years ago
ui/app: remove IsAlive

IsAlive races with the StageDead event: if the client checks IsAlive
after the stage is updated ...

b494b3c8c04778fad721649fc6ff962aeca4f91b authored over 5 years ago
ui/text: ignore all newlines in single line editors

Signed-off-by: Elias Naur <[email protected]>

51905c0aad887163d329ecc88459d3ccd6244811 authored over 5 years ago
ui/text: handle stop and scroll immediately

In case an event is returned, don't aggregate state changes in Next.

Signed-off-by: Elias Naur ...

84cd3fcdca23a02368a6d16f5b80ab62facba706 authored over 5 years ago
ui/app: implement window insets for iOS

Signed-off-by: Elias Naur <[email protected]>

2292fd0c63fa4d0e24bb9d2c9134aa29336ab073 authored over 5 years ago
ui/app: introduce DrawEvent.Insets and add Android implementation

Signed-off-by: Elias Naur <[email protected]>

c884b7d4f0c1724ac45ae9fae654efce1025b330 authored over 5 years ago
cmd/gio: set windowSoftInputMode=adjustResize in AndroidManifest.xml

Signed-off-by: Elias Naur <[email protected]>

491d81e0c8a882b17008a092dd4c81cb1e580ed1 authored over 5 years ago
ui/app: use log level info for stderr

It's not given that output to stderr is caused by an error
condition.

Signed-off-by: Elias Naur...

389783284219b0098c31cf81a55de15c264ab465 authored over 5 years ago
ui/text: add Editor.Focus method

Signed-off-by: Elias Naur <[email protected]>

ab13a2ee7360fc2bafdb60d13e85da120680cdf7 authored over 5 years ago
ui/app: (iOS) treat the \n character as a return key chord

Signed-off-by: Elias Naur <[email protected]>

a0c04cb3b2f3d3bbcbb38701711662b6f1245b87 authored over 5 years ago
ui/app: (iOS) redirect standard Go logger to NSLog

Signed-off-by: Elias Naur <[email protected]>

47c6ea2dd2015c699c68f81e3a7631e6a83797b5 authored over 5 years ago
ui/app: (android) set close-on-exit flag on dup'ed log file descriptors

The file descriptors are probably overwritten on exec anyway, but at
least our intent is clear.
...

5f42e2e804d54ef1312424f575809fc51cac0863 authored over 5 years ago
ui/app: fix a few C signatures and a comment typo

Signed-off-by: Elias Naur <[email protected]>

1a417d353ca2c77d2692649c2fd066ef1ef55f76 authored over 5 years ago
ui/key: rename TextInputClosed to TextInputClose

Signed-off-by: Elias Naur <[email protected]>

31418eefbecc6fe2f79fe84a3fe451c6175b33bc authored over 5 years ago
ui/input: hide soft keyboard when focus is lost

Signed-off-by: Elias Naur <[email protected]>

f110c26e3f24935993a311f16feb3378c38f29b4 authored over 5 years ago