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

cmd/gogio: rename gio* files to main*

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

e9db3801cc6da2bdd6918ac50c0e177c81db8920 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add -minversion flag to specify minimum Android platform

Allow the user to specify a minimum supported Android platform
version.

Signed-off-by: Greg Pom...

81814e6fa41b75cd1e4bdb3bfb7710c7f8e0a8b0 authored over 5 years ago by Greg Pomerantz <[email protected]>
example/gophers: update gio version

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

370ff4bcc9d650ee67fb5ccc1a78da6242cfa316 authored over 5 years ago by Elias Naur <[email protected]>
app: rename WindowOption to Option, and leave out "With" from options

While we're here, replace Height and Width options with just a Size; the value
of separate width...

486445929155cbc5c46d6998db1ef64cca12815a authored over 5 years ago by Elias Naur <[email protected]>
README.md: update godoc link

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

38a5717216b91848d7b4ec438ab6942b96cb57ba authored over 5 years ago by Elias Naur <[email protected]>
text: fix typo

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

afeaa247c80a136148d0874e2523987ad325d93e authored over 5 years ago by Elias Naur <[email protected]>
text: move Label.it to a local variable

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

225c73f012083cd3c78555e03edb7de5527cd239 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: use text.Family where *shape.Family is too specific

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

43131b6f574c3cf442b6b9a01691ea29e11ab3e3 authored over 5 years ago by Elias Naur <[email protected]>
example: rename apps module

The new name emphasize the nature of the programs and won't be
confused with package `app`.

Sig...

ea082c5cca88d3a74949d49322687602380ebc30 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

e7fabcf774871ea528c6d0feecf84c16a6c9099b authored over 5 years ago by Elias Naur <[email protected]>
layout: rename Flex.Flexible to just Flex

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

529fd4d307e89dcddf79d9d83117d294bf6d3bd7 authored over 5 years ago by Elias Naur <[email protected]>
layout: delete Init methods from Flex and Stack

With Context containing all the necessary information, separate
Init methods no longer makes muc...

8d82a3eaa636a46fe7a6958bf2d8a4cfd77a8123 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: clean up font family code

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

bb796ddf37b7a41b874fa0308c501b29d60e4e45 authored over 5 years ago by Elias Naur <[email protected]>
text/shape: reduce garbage a bit

The sfnt.Buffer embedded in the opentype type caused instances of
it to escape. Move the buffer ...

1b445944119b9905507715e4b0006d2111c95dcc authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

e8ca986a630e7bea3e0514a53cabba0dbee9376f authored over 5 years ago by Elias Naur <[email protected]>
text: rename Face to Family and let Face denote a family configuration

While here, rename Family.Path to Shape which a more precise term.

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

0b637f549daa8cfd75ba1a5929fec4eaef76e5fa authored over 5 years ago by Elias Naur <[email protected]>
text/shape: remove Family.Reset by introducing LRU caches

It was easy to forget Family.Reset, and the per-frame caching strategy is
probably too aggressiv...

2097c6475da943960d4ac73f5a014b71790d43c3 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version to use explicit text sizes

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

404a065a0e03a9e0bf21da58288c2753b98b3983 authored over 5 years ago by Elias Naur <[email protected]>
text: make text size implicit

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

b4a52d301013255adb2507aa29be4ca8f55960da authored over 5 years ago by Elias Naur <[email protected]>
text: re-phrase and clarify Label.MaxLines comment

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

f230036cad23c61b09f32a510d84f785adaffe27 authored over 5 years ago by Elias Naur <[email protected]>
op/paint: note that ImageOp caches image contents

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

31e12607d7397c1cf02d156ce66b62c15afff4c9 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

f3819d816490d93770b3013dee995d40020ec0e4 authored over 5 years ago by Elias Naur <[email protected]>
op/paint: rename PathBuilder to Path

There was no "Path" to "Build", so let's just use the simpler name.

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

6dad034b228085c4e9847510ad56ac800c8935bc authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

96d3d74cb33a21413b8b6590596d092fa5432c31 authored over 5 years ago by Elias Naur <[email protected]>
app: (linux,android) merge EGLNative* types and functions

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

07a36d71d9b0e6c89b6d750b03bb026500ff2dd7 authored over 5 years ago by Elias Naur <[email protected]>
app: confine the eglWindow indirection to the Wayland backend

Only the Wayland backend needs an wl_egl_window between the wl_surface
and EGL. Move code dealin...

2dcbf6fe3c9e648c9c8ef049aa58ad4873ccb858 authored over 5 years ago by Elias Naur <[email protected]>
app: (android,ios) fix build

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

32bda106e7ff00f33ba9cfda9fa9637d14bed74a authored over 5 years ago by Elias Naur <[email protected]>
apps/hello: rename context to gtx for consistency

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

cf00c89c9f7493e84d78a3d12efab78f7d290ac5 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

1673600ac641a3d09acf204cab26a20081d5c6ba authored over 5 years ago by Elias Naur <[email protected]>
layout: take a size, not constraints in Context.Reset

Taking a constraint in Reset smells too much of a layout operation,
whereas a size is simpler an...

e0313081720e4a6fa8ec8c4252876648de314927 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: fix test build failure

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

b0e7b165b6fc03aa234a01537bcbe7ad6a00d4e8 authored over 5 years ago by Elias Naur <[email protected]>
README.md: link to Gophercon UK presentation recording

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

2a1c203863c3933a1d19f343e2429f9c5c29c842 authored over 5 years ago by Elias Naur <[email protected]>
apps: updates for renamed and moved packages

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

6bc5ff247938a7c1a8ce199f5b4a7841282242a5 authored over 5 years ago by Elias Naur <[email protected]>
text/shape: move package measure

Text shaping is a common name for what package measure does. Rename
it to "shape" and move it be...

1d3360699e06377458a11d0954dd86f01b1e0289 authored over 5 years ago by Elias Naur <[email protected]>
op: add package op for operations

Extract operation types from package ui into package op.

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

8cf35a1f97ff455e4de964c544b753332c18d4c3 authored over 5 years ago by Elias Naur <[email protected]>
op/paint: move paint package below the op package

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

beaec661d2a359f76fa117a297ad4489c0672f4b authored over 5 years ago by Elias Naur <[email protected]>
all: rename package ui to unit

Package ui is now only about units except for the Config.Now method.
Remove Now and rename Confi...

3784ece6dd6505d9f448b8754baa1de54c56d001 authored over 5 years ago by Elias Naur <[email protected]>
app,ui: move instructions link to package app documentation

We're about the split up and finally delete package ui. Move the
instructions link to the second...

eba1b3a95fabbcdf0092cbaf8b743782c2f21816 authored over 5 years ago by Elias Naur <[email protected]>
io/event: move event types from package ui to its own package

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

e7a97bf176d181807e31a6ec5ad623d39664d936 authored over 5 years ago by Elias Naur <[email protected]>
io: give event packages a common prefix

Packages that provide support for external events such as pointer, key and
system are only the b...

7a259e68f77c974fc05a4d779effe98a01eae9d3 authored over 5 years ago by Elias Naur <[email protected]>
COPYING: delete

It is redundant with the existence of LICENSE. I don't remember why I added
COPYING in the first...

a175f38d1911552231988d173f01a5f05a8259a5 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gogio,ui: fixups after gioui.org module rename

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

3c65aa61f64ecdd71fc3203b4acf27c225a96cd0 authored over 5 years ago by Elias Naur <[email protected]>
website: redirect unknown patsh to godoc

With the renamed gioui.org module, any path could be a Gio package.

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

049c0b4dcda3dfbd8e3d57169fe39aea3a634a42 authored over 5 years ago by Elias Naur <[email protected]>
apps,cmd: update to renamed gioui.org module

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

962bc36daccb5a6b78ed76d3987be17045f82f2d authored over 5 years ago by Elias Naur <[email protected]>
all: rename the gioui.org/ui module to gioui.org

The "ui" is redundant and stutters.

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

22cd88df9f7fd9e138a07f802e269d0e2e7ee4ae authored over 5 years ago by Elias Naur <[email protected]>
ui/layout,ui/app: fix tests, go fmt, update comments

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

ce74bc0cbaea2539a6c5b558c693958642775fe9 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/input: schedule an extra frame after event delivery

A program might choose to process events that affect UI state already laid out.
For example, a b...

bdd6b32711df95e279d497d617b3ad083bc99957 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update gio version

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

90e2a119c04b0dd76f9d195a6b5b8d0b9c32d937 authored over 5 years ago by Elias Naur <[email protected]>
ui: change Queue to return all events at once

The Queue interface was changed from

type Queue interface {
Events(k Key) []Event
}

to the...

dc6fedc163d55806e9fce73709d2bdbf0852e7a4 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) pack related field in structs

No functional changes.

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

578b169279c251c4b87d880520ca39ac43a01120 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (linux) separate xkb logic from wayland backend

Makes the Wayland backend more clean, and X11 might be able to reuse
the xkb code.

Signed-off-b...

51cfb4e5c299f5c35994f1c907f62e24eaa95457 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: reset Dimensions in Context.Reset

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

bbc0cebacf45229261d6e8332a60b5b4da03491d authored over 5 years ago by Elias Naur <[email protected]>
all: rename more *layout.Context names to `gtx`

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

9c33550644a708e6fac90197faa94ed09c949540 authored over 5 years ago by Elias Naur <[email protected]>
all: rename `c` to `gtx` for *layout.Context parameters

Short like `ctx` but not as easily confused with context.Context
values.

Suggested by Larry Cla...

a89c6d1c33a345747faa7bfc5a9747f481efba2c authored over 5 years ago by Elias Naur <[email protected]>
apps: replace separate layout state with layout.Context fields

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

4d84f46edbb1cd8575c4e13d688eac47ea98b8fc authored over 5 years ago by Elias Naur <[email protected]>
ui: merge package input

Event handling is as fundamental as operations, so move the input
package declarations to packag...

3944ef4b2e468f38bcc5d1f5631f9cc4218da72e authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: add common state to Context

Almost every layout and widget need the ui.Config for its environment,
an ui.Ops to store operat...

2782436ffc1348249baa41f54229b1826fed4e80 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to new layout.Align

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

b928ee65f7a29f1f6f3bd5a175ae43c3811f1991 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: make Align a Direction

Removes the stutter by simplifying

layout.Align{Alignment: layout.NE}

to

layout.Align(layou...

2f878fe154d1ff947e4492b665269b472e66ccf3 authored over 5 years ago by Elias Naur <[email protected]>
all: update layouts to use layout.Context

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

ec307008db58ec6f0d7e788978a930f61c6bd1bf authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: introduce Context

Context keeps the current Constraints and Dimensions so the layout
function scopes don't have to...

ce9bcee62baa42c29fe37ca011bdd5ee1d902e39 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) wait for xdg_shell configure event before drawing

According to the xdg_shell documentation, the xdg_surface must be
configured before use.

Signed...

64add13d28f1d6e26b3090e1086afaa57d888eaa authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (windows) process all events before redrawing

While here, make sure the DestroyEvent is sent after exiting the
event loop.

Signed-off-by: Eli...

736692a7253b5f027a658bb77d4df335fe63dd57 authored over 5 years ago by Elias Naur <[email protected]>
ui/app,ui/app/internal/gl: work around golang.org/issue/34474

Apparently, the (*syscall.LazyProc).Call does not keep its arguments
alive across calls.

Signed...

5c9d35c1861d7d528cd918718c29c4b5da9d53e5 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gogio: add the first end-to-end test for js via chrome

This commit adds the first fully end-to-end test. It builds a very
simple Gio app, loads it on C...

687ea833a3afeea7f57f6d18c0c9f6e5e67e6134 authored over 5 years ago by Daniel Martí <[email protected]>
ui/app: (windows) don't unregister window class

It silently fails because the Gio window is using it.

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

5c87437542eb0c87a552c2d0689092d9adb09813 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (windows) don't cast syscall.Handle to unsafe.Pointer

The cast is not necessary and a syscall.Handle is not a pointer.

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

8e41c8a0bef2cb40747450ee27e2ca211a9f0e12 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: replace "interface element" with "widget" in documentation

Now that we have a Widget type, use it in the documentation.

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

2d8072fbbbc658ab190a65dc734f3c41a9fa325c authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: fix typo

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

4a1e0a30cbf00c546a1fcce6d9d9f4e84b160e3f authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: update documentation to reflect the function scope changes

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

3817b19bbe6aab800725b988b3943f0add03f411 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gogio: rename the gio too to gogio

The `gio` name clashes with a widely deployed GNOME tool.
Rename our tool to `gogio`, "the go to...

a12912c944314f5549200b90d5f2b5ec265fbb89 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: clean up after function scope change

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

31f7f0418108fcd462dd4149f17a472f135b261a authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to function scoped layouts

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

1767588028e461a8f1eec13dcfdaeb0179c69419 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: replace implicit begin/end scopes with explicit function scopes

Before this change, layout objects followed a pattern where a
begin method would set up the layo...

29639565cd3480bc24e4270cad4112e96e895fa1 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: scale touch events by surface scale

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

816f0e901fc63244fcfd130e1345406963b542d8 authored over 5 years ago by Elias Naur <[email protected]>
os_wayland: transform pointer events by scale

Fixes #37

dcddd9a84a63065bd45f2a143cf56748c5edb150 authored over 5 years ago by Drew DeVault <[email protected]>
ui/app/egl.go: on failure, try again without sRGB

Signed-off-by: Drew DeVault <[email protected]>

c5a6ca2aba7615e0d80e3027d142e6e9686f48d8 authored over 5 years ago by Drew DeVault <[email protected]>
ui: panic if a StackOp does not Pop in the same macro as Push

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

ee89d643ccf062e9cab1c71fa1440304a73d4f62 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) restore discrete scrolling behaviour

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

bae2e0ecf254b990d3d720beb056baef59bb9f16 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) reset fling emulation on key press

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

37d5b947eb574da0688d6203f2dcd78b08dc0c9e authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) reset fling emulation of pointer motion

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

2ea9fd99834684a0a38ed1e715d5bc41007f7ff7 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: go fmt

Sigh.

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

81f935f69b24b0dda109acaad2b53613a66848a0 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: avoid a trailing newline in -target errors

I was seeing an extra newline when some errors were printed, like:

$ gio foo
please specify t...

a223b36c25d2896399f7bbe9f90251cc0b358fac authored over 5 years ago by Daniel Martí <[email protected]>
ui/gesture,ui/internal/fling: extract fling logic into its own package

We're going to re-use fling extrapolation and animation for Wayland touchpads.

Signed-off-by: E...

e6f0e0582d2959c480e817e59b076a246f5d5f9f authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wayland) emulate fling behaviour for touchpads

Unlike macOS, Wayland leaves it up to the client to animate the
implied fling gesture when scrol...

5bdb1d9e54ae54cc089e928458866ed541bfa7be authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: generate appID if not specified

Use the Go import path to create an appID based on the domain name
plus the last directory locat...

a68d97f9476ecfb6ec0c4041b3c8681d1136d5bf authored over 5 years ago by Greg Pomerantz <[email protected]>
ui: add Max, Add for Values

Finding the maximum or adding Values are particularly for adjusting
margins for the safe area in...

86b231ca287a08b75745f2dcc47e90c768397b72 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: note that Window.Invalidate is safe for concurrent use

Invalidate is intended to be called as a result of external events,
which might very well be fro...

5eef85f5cd1be18c1308f6726886bb9c61ff9601 authored over 5 years ago by Elias Naur <[email protected]>
ui: fill out the MacroOp opcode in Record to support unfinished macros

Before this change MacroOp.Record simply reserved enough space for Stop to fill
out. If a user R...

93409a784d7c687a9883e2d9bb18c57ce563b3fc authored over 5 years ago by Elias Naur <[email protected]>
all: update go.mod files to target Go 1.13

Since the main README recommends Go 1.13 or later, let's make the go.mod
files reflect that. Thi...

85843f1f296d1e6f452567da17c891904921ec88 authored over 5 years ago by Daniel Martí <[email protected]>
ui/app: (iOS) use UIView's safeAreaInsets for window insets if available

Unlike UIView's layoutMargins, safeAreaInsets only includes the space
actually taken up by syste...

b4433da21b03fe4cb5cbf0b7055d45a8aa4f1b74 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: rename List.Invert to ScrollToEnd

Much clearer.

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

6ad154419b2dd9b1c311527fd2787db6275cb9fc authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: delete List.Distance field

Distance was meant to be used for implementing nested scrollers, but
I don't think the API is ri...

7d93a2790c60475f7fb381050fde6131959078fd authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: rewrite List

Inverted lists used to behave as if its top and bottom edges were
flipped. That was easy but als...

1529f20eb7741acf81887adc2388a49d0f446991 authored over 5 years ago by Elias Naur <[email protected]>
README.md: suggest Go 1.13 now that it is released

Some platforms run on previous Go versions, but let's nudge people to use Go
1.13. Go 1.13 is re...

063b4a5659f98c187a8fca699dd9d14f8d7216b5 authored over 5 years ago by Elias Naur <[email protected]>
README, ui/layout: fix typos

Signed-off-by: Kenshi Kamata <[email protected]>

82b0563c8b6d8a5e4ff5e5400e45c6759550622d authored over 5 years ago by Kenshi Kamata <[email protected]>
LICENSE: merge UNLICENSE and LICENSE-MIT to please license identifiers

Apparently github.com/google/licenseclassifier/tools/identify_license
doesn't like that LICENSE ...

b74f2d2d1cb74406f8a2f5a6aad9c9fdb16f2cea authored over 5 years ago by Elias Naur <[email protected]>
README.md: fix link

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

ff657fb47694648b09d4cd88874d26412eed5364 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

a06d8a39f5343bcf673198e99a6758b99a0d56e8 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: print sRGB flag for eglCreateWindowSurface failure

For gio#35

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

7ad60e08787b2a09fad65657b52c50a6ad7a3caf authored over 5 years ago by Elias Naur <[email protected]>