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

op: relax Push/Pop to Save/Restore semantics

A previous change implemented save/restore semantics where a saved
state can be restored anywher...

ae2c74ec1380fa86d3f33a2ed566bea5b1940613 authored almost 4 years ago by Elias Naur <[email protected]>
op: implement StackOp in terms of general save/load of state

Push/Pop only allows saving and restoring operation state in a
stack-like manner. We're going to...

f7902f299b596a17dc72d94cdbc363e66318f8b8 authored almost 4 years ago by Elias Naur <[email protected]>
widget: use correct color in Icon

iconvg seems to expect a linear premultiplied color.

Fixes gio#132

Signed-off-by: Egon Elbre <...

f114acdb022e8c5d42f460616c379395f8a6ea37 authored almost 4 years ago by Egon Elbre <[email protected]>
layout: added Axis methods

Signed-off-by: pierre <[email protected]>

0e3e446393df01be679f9d1a0453e4858fcca87c authored almost 4 years ago by pierre <[email protected]>
app/internal/window: [android] re-apply view state lost on rotate etc.

Android can re-create our Activity and GioView at any time, losing view
and activity state such ...

f7f94c93fe0d1d220a2b4827e59b09caf39aa24d authored almost 4 years ago by Elias Naur <[email protected]>
app/internal/window: [android] move switching to main thread to Go

There's runOnMain alread; use that for show|hideTextInput instead
of an ad-hoc switch.

Signed-o...

acef4e6e2dc7b4065393d09c418e5191ecf2dea5 authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [android] remove redundant context argument

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

f311a54ffb3e06d31bd32806f43fdeaaff6dada0 authored about 4 years ago by Elias Naur <[email protected]>
app: drop return value from Window.driverDo

It's not used anymore.

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

5155893781f37c1bbcb8028ed677fa62881d31cc authored about 4 years ago by Elias Naur <[email protected]>
ap/internal/window: make cached JNI method descriptors global

We're about to remove all references to window from runOnMain callbacks.
The JNI methods are con...

beb046ac42526dca02d60c06a7dc96cec8dbef37 authored about 4 years ago by Elias Naur <[email protected]>
app: treat Invalidate more like InvalidateOp

Using Window.Invalidate for animation with, say

var w Window
var e FrameEvent

w.Invalidate()
e...

759b7962838e78d171ce24b9fef10f4cb9c74c8c authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wasm] have at most one animation callback in flight

Track whether requestAnimationCallback has been called when SetAnimating
changes the animated st...

5f6fa252099ebdd4eb3f08cc4674aff2ca9a2c97 authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wasm] fix insets on Firefox

Insets must not be included if the `visualViewport` isn't available.

Signed-off-by: Inkeliz <in...

b430786f9b58ffc97cb7714a1e4c9c3a729f9e70 authored about 4 years ago by Inkeliz <[email protected]>
cmd/gogio: remove windres dependency

Now, it's possible to compile to Windows (`-target windows`) without
having `windres`. The PNG i...

07715a812598ea6e7768fe624a9b4285a390256a authored about 4 years ago by Inkeliz <[email protected]>
app: fixed swapped horizontal scrolling directions on Windows

Signed-off-by: pierre <[email protected]>

c030065af7bcc6d11e963f287dae29aebe0a089e authored about 4 years ago by pierre <[email protected]>
gpu: handle closure test for stroked path

Signed-off-by: Sebastien Binet <[email protected]>

7bfdafb7b15d33a06465a0c1f6d5f74f349ad5b5 authored about 4 years ago by Sebastien Binet <[email protected]>
gpu: implement GPU profiling for compute

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

72a324804149b2f38008653a308ba34e46f46483 authored about 4 years ago by Elias Naur <[email protected]>
gpu: remove unused field

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

8662790f10e2307595b767728ec06e961c01fd06 authored about 4 years ago by Elias Naur <[email protected]>
gpu: cache path data for compute

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

bb9252f9d4012b6af9dbae9ecc6494f5ccdeff74 authored about 4 years ago by Elias Naur <[email protected]>
gpu: reclaim stale images in atlas texture before resizing

Issue found by Anthony Starks.

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

23f710910fc724d937dad495d62abec3624d3fb0 authored about 4 years ago by Elias Naur <[email protected]>
gpu: handle rounding errors when splitting quads

This CL handles rounding errors arising when splitting quads into linear
segments.
Rounding erro...

5045a9e8772908706b79fcfc6e63e1f1ddb01896 authored about 4 years ago by Sebastien Binet <[email protected]>
internal/rendertest: use a YIQ-based algorithm to compare images

This PR implements an image comparison algorithm in the NTSC YIQ color
space, as described in:

...

8676a73a9116350134999c08b1a8828099ea60aa authored about 4 years ago by Sebastien Binet <[email protected]>
gpu: close outline paths if not already closed

The new compute renderer is much less tolerant of discontinuous paths.
In particular, it require...

79016bcc4aba54e7fe0b3edf9b5505ae504ca001 authored about 4 years ago by Elias Naur <[email protected]>
layout: avoid copying whole constraints in Stack

Signed-off-by: pierre <[email protected]>

62a1d8ae6e78b8ca8970db52b931aeb013e1d83a authored about 4 years ago by pierre <[email protected]>
gpu: add and track fields needed by the compute renderer

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

7d24b790a281ca0af1e339dfbad4720fb77408db authored about 4 years ago by Elias Naur <[email protected]>
gpu: update definition of path vertex size

The size is unchanged, but a corner is no longer encoded as two
16-bit ints (2*2 bytes); it is e...

0a56609769db0020ec74195c90d4ba4a6f3d6876 authored about 4 years ago by Elias Naur <[email protected]>
gpu/shaders: import compute programs from github.com/linebender/piet-gpu

The piet-gpu project is dual licensed under the Apache 2.0 and MIT, and the
shaders themselves a...

02185461610ec5339bd70007db826a0c3363a439 authored about 4 years ago by Elias Naur <[email protected]>
gpu: make GPU an interface to prepare for second implementation

While here, merge BeginFrame and EndFrame; the split was done for
performance reasons, yet never...

6f2a98c667f993a247c1202f3012322f5f3177db authored about 4 years ago by Elias Naur <[email protected]>
internal/cmd/convertshaders: add support for compute shaders

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

269e7e0d7b51ecf2843cec0fd04e6b4050540c28 authored about 4 years ago by Elias Naur <[email protected]>
gpu,app,internal/glimpl: update GL backend for the compute renderer

Modern graphics APIs have immutable objects, with mutable data. For example,
a texture's dimensi...

bfe2d04c60317a97a3a463f097f35fa7cebb1f0f authored about 4 years ago by Elias Naur <[email protected]>
gpu: add compute implementation

The old renderer is still the default, so the new compute renderer will only be
used in the rare...

d23514fd582516bad115b77d74b5186a8981f53d authored about 4 years ago by Elias Naur <[email protected]>
gpu,app,internal/glimpl: update GL backend for the compute renderer

Modern graphics APIs have immutable objects, with mutable data. For example,
a texture's dimensi...

b1ff179aa0cec5fc04d6a0cd847e6144234b59f5 authored about 4 years ago by Elias Naur <[email protected]>
internal/unsafe: add StructView

Needed by the compute renderer.

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

e9403d8b182f2f94cc7fe775500dae43188bc211 authored about 4 years ago by Elias Naur <[email protected]>
internal/glimpl: [wasm] pass correctly sized buffers to WebGL functions

Before this change, the entire byte buffer would be passed to WebGL, even
though its size may be...

e012c3f393792cc6a3b75547c04aacbd09e2c0b0 authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: fix iOS context creation

NewBackend was recently changed to take a context, which must only
be specified on GOOS=js.

Fix...

7b1783056fc6b9563c741b3fd940cc23729aa789 authored about 4 years ago by Elias Naur <[email protected]>
layout: updated comment, avoid copying whole context in Flex

Signed-off-by: pierre <[email protected]>

33103593a1b4cdd30f6601fd98db7bf922c379cf authored about 4 years ago by pierre <[email protected]>
layout.List: store constraints instead of whole context

Signed-off-by: pierre <[email protected]>

0416fffc096b136e44ddab50a051f0bb2a501153 authored about 4 years ago by pierre <[email protected]>
layout.List: reduce allocations when scrolling backward

Signed-off-by: pierre <[email protected]>

d942b5c4d0f94dbf010696e385729f34e6e4b3a6 authored about 4 years ago by pierre <[email protected]>
widget/material: updated Switch comments.

Signed-off-by: pierre <[email protected]>

8a148ad6a1ab0da9103f74750aaf8aff97513587 authored about 4 years ago by pierre <[email protected]>
layout: document how Inset modifies constraints

Signed-off-by: Chris Waldon <[email protected]>

18d4dbf60c4ff644fe976b9e4f1be27229848529 authored about 4 years ago by Chris Waldon <[email protected]>
gpu: move path cache updates into drawOps.collect

The new compute backend shares drawOps but not GPU.Collect. This
change moves the common path ca...

00c4a53036ad165156ebe3b31fd151faa0ce61bf authored about 4 years ago by Elias Naur <[email protected]>
all: go mod tidy

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

7adc2a884bd1885668d295e4743d7fe4f015347b authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wasm] add support for insets and cache window-size

Currently, on iOS, the keyboard can block the content since it doesn't
trigger the "resize". Now...

449dda2eb3a6e964967ffdd1f0070a6ddd5cab95 authored about 4 years ago by Inkeliz <[email protected]>
app/internal/window: use defer for cleanup function

Avoids a vet warning about unreachable code: currently, the cleanup
function is never reached.

...

40c082e94961adaf55886b45710a54d0247ff1bf authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: fix support for Safari 11.1

Signed-off-by: Inkeliz <[email protected]>

c2a66a54814cd4f5e8b728aff7843ff64637a00f authored about 4 years ago by Inkeliz <[email protected]>
.builds: clarify missing sign-off error message

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

74cee277ca606eb348a8d57f014ce42770c66aef authored about 4 years ago by Elias Naur <[email protected]>
app/headless,internal/rendertest: relax tests

The Mesa software OpenGL implementation strays enough from the
reference values that tests fail....

cb075ea9cfdd046aed5da1c415b4b4b6acd5007a authored about 4 years ago by Elias Naur <[email protected]>
.builds: enable headless OpenGL tests on linux

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

e0a8202aa097a40e21c00ea4047a866d01a75c47 authored about 4 years ago by Elias Naur <[email protected]>
app/internal/egl: support EGL_KHR_no_config_context

The mesa surfaceless renderer doesn't support configs, but does
support EGL_KHR_no_config_contex...

fac1d00c89ce3d52a70d4b3f599c45dacd1ab09d authored about 4 years ago by Elias Naur <[email protected]>
all: fix spelling errors

Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Signed-off-by: Elias Naur <mail@e...

fd2d96adfc71147d5685af273d23ead22830e02e authored about 4 years ago by Walter Werner SCHNEIDER <[email protected]>
all: sort and group imports

Signed-off-by: Walter Werner SCHNEIDER <[email protected]>

83d23ab507431c8d270567ef4866ff5001adb5fb authored about 4 years ago by Walter Werner SCHNEIDER <[email protected]>
widget/material: better disabled color calculation

Use desaturation in combination with alpha multiplication.

Signed-off-by: Egon Elbre <egonelbre...

e383e6d6be3205f0a9cedacf24ec37d3df506880 authored about 4 years ago by Egon Elbre <[email protected]>
cmd/gogio: sort and group imports using goimports

find gio/ -type f -name '*.go' | xargs -I '{}' goimports -w '{}'

Signed-off-by: Robin Eklind

9cc90d9695f0ffeeb8af92f47e23be4940949e5e authored about 4 years ago by Robin Eklind <[email protected]>
app/internal/window: fix golint issues

app/internal/window/os_wayland.go:1448:12: gioui.org/io/system.StageEvent composite literal use...

f3ce6ad29a8c6b3dcbed32360d3016d93587d89f authored about 4 years ago by Robin Eklind <[email protected]>
io/pointer: CursorNameOp no longer needs an InputOp with Leave and Enter events

Signed-off-by: pierre <[email protected]>

578c226278f37427b50692dd10f59c9e495bf367 authored about 4 years ago by pierre <[email protected]>
widget: added example for Clickable

Signed-off-by: pierre <[email protected]>

36b90196492edc4836f79c8d629ab6002a6b5007 authored about 4 years ago by pierre <[email protected]>
ci: configure automatic mirroring to GitHub

Signed-off-by: Chris Waldon <[email protected]>

eb719eaa54803eb7b4423d0d64b0416462e9ed04 authored about 4 years ago by Chris Waldon <[email protected]>
app/internal/window: don't use C.BOOL

Apparently, darwin/arm64 cgo doesn't match the types of YES and BOOL:

os_macos.go:235:40: canno...

5839e3e8d5876792c75308d1c981da56af4fcac3 authored about 4 years ago by Elias Naur <[email protected]>
README.md: change GitHub mirror location

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

f3ab8d6368e1e5c48e20de337b4f7ce7f14be1f6 authored about 4 years ago by Elias Naur <[email protected]>
cmd/gogio: fix support for older browsers

That change removes the "??" operator, it isn't supported
by old browsers [0].

[0]: https://can...

fe844cc4890a99cb218884b2ec588e555f5baf36 authored about 4 years ago by Inkeliz <[email protected]>
widget/material: remove padding from Slider

Remove padding from the sides of the Slider to align them with
other components.

However, since...

296303210f31696f1eb8f3bccd7c71a787113b25 authored about 4 years ago by Egon Elbre <[email protected]>
font/opentype: fix typo

Signed-off-by: Sebastien Binet <[email protected]>

8e7066ecd77011af10ac48e4a5facfea95a8638e authored about 4 years ago by Sebastien Binet <[email protected]>
cmd/gogio: [wasm] embed .js files

Similar to the Android, which includes all .jar files into the .apk.
Now, the `gogio -target js`...

745bb949bb45332f0d4c410d7ccf588080195c1e authored about 4 years ago by Inkeliz <[email protected]>
app/internal/window: [windows] add icon support

That change adds the icon to the "window navbar".

Signed-off-by: Inkeliz <[email protected]>

0dfb04eb2d8c917eef4dd303a1bff6ba1f6657df authored about 4 years ago by Inkeliz <[email protected]>
widget/material: use float32 for progress

Signed-off-by: Egon Elbre <[email protected]>

bd7bb4d5d2f3b6b361479efc6cfa8c7dd79b270f authored about 4 years ago by Egon Elbre <[email protected]>
cmd/gogio: add support for Windows

Now, gogio can build the program for Windows, using the `-target
windows`.

It will build with `...

fa96e12b6d7a877585291ac40ecdcb4bf8b82faf authored about 4 years ago by Inkeliz <[email protected]>
{gesture,widget}: expose Dragging

Knowing whether a widget is being interacted with allows to implement
bi-directional updates wit...

0b2a2d6c2e010d74304db220058fbea6df72a778 authored about 4 years ago by Egon Elbre <[email protected]>
app/internal/window: [wasm] fix on-screen-keyboard

Previously, the keyboard is open by default, even without any focus.
Now, the keyboard will rema...

b79c2dec79c171afda467626571c6c98f339ae0b authored about 4 years ago by Inkeliz <[email protected]>
LICENSE: tighten license language

"provided under terms" is a better match to the UNLICENSE, which puts
the project in the public ...

5a51f40cf75e7e20a8185bda3ca675e10cfae988 authored about 4 years ago by Elias Naur <[email protected]>
internal/unsafe: fix vet warnings about SliceHeader use

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

2dce8a0155ae192f54f74747d660b9f311e9e364 authored about 4 years ago by Elias Naur <[email protected]>
layout: add Spacer

Signed-off-by: Egon Elbre <[email protected]>

679bf092cb8326afa16fe0a2063ce8ec062c661a authored about 4 years ago by Egon Elbre <[email protected]>
gpu,op/clip: implement dashed stroked paths

Signed-off-by: Sebastien Binet <[email protected]>

e71bf13c9a0e7b6944cda00e566bdb4f69c8f840 authored about 4 years ago by Sebastien Binet <[email protected]>
example: delete

Examples now live in the https://git.sr.ht/~eliasnaur/gio-example
repository.

Signed-off-by: El...

ac14320bec7593ced565c3c5efb9281ed2376bec authored about 4 years ago by Elias Naur <[email protected]>
all: introduce Outline and Stroke builders

This CL introduces 2 new path builders:
- Outline which takes a PathSpec to be outlined
- Stroke...

be89f8b9456815c98ed16312087398eca661537c authored about 4 years ago by Sebastien Binet <[email protected]>
io/pointer: added CursorNameOp

The cursor can now be customized for a given area.

Signed-off-by: pierre <[email protected]>

7c5bcd3db8204eb8809ae92f9e625a9f6cb7b6fc authored about 4 years ago by pierre <[email protected]>
internal/unsafe: fix empty slice

Signed-off-by: Egon Elbre <[email protected]>

675e86b8e89687228bfde0ca400922a30c49630b authored about 4 years ago by Egon Elbre <[email protected]>
.builds: prepare for splitting out examples in separate repository

The example module is moving to git.sr.ht/~eliasnaur/gio-example.
We still need some main packag...

b456e987f703e322b0c9f68f302a62e34a0236a8 authored about 4 years ago by Elias Naur <[email protected]>
example/{kitchen,tabs,gophers}: update to use material.Palette

Update gioui.org/cmd while here.

Signed-off-by: Chris Waldon <[email protected]>

acc3f704e478d4edfc80bfaab8c0aa63897f7ca6 authored about 4 years ago by Chris Waldon <[email protected]>
widget/material: manage widget colors with Palette type

This introduces a new material.Palette type that captures the color information
necessary to ren...

a87a520ae8258d1bbc05014c031bc523730900ec authored about 4 years ago by Chris Waldon <[email protected]>
example,cmd: bump gio version

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

47ba9758990a2cd6de8b6239661aa4d650e22718 authored about 4 years ago by Elias Naur <[email protected]>
widget: fix Editor and Label clipping

Commit gioui.org/commit/94d242d18c9245 broke Editor and Label clipping,
most visible for single-...

ede632b2650d2d7913883aabddf9918c7b60218b authored about 4 years ago by Elias Naur <[email protected]>
example,cmd: update gio version

Remove copy/paste from kitchen now that Editor supports it natively.

Signed-off-by: Elias Naur ...

9b8e847a0550fd05193205919336b5ca284a57e4 authored about 4 years ago by Elias Naur <[email protected]>
widget: add support for copy/paste in the Editor

The Editor will handle CTRL+C and CTRL+V. The CTRL+V will paste the
content on the Editor, and C...

a4d0c3e7026fab3f1433f4496536f3d995333084 authored about 4 years ago by Inkeliz <[email protected]>
io/clipboard,app: add WriteOp, ReadOp

Previously, the only way to manipulate the clipboard (read or write) is
using the `app.Window`.
...

a76f816ae994934c325f9150ab5aadc0a2307376 authored about 4 years ago by Inkeliz <[email protected]>
widget: replace newline with space in single-line Editors; cover SetText

Move the replacing to Editor.prepend to fix SetText, and replace with
space instead of nothing t...

4e2d08c0a629047c78350a8a28e633786d5b67df authored about 4 years ago by Elias Naur <[email protected]>
router: removed unnecessary checks.

Signed-off-by: pierre <[email protected]>

59720a8a58d32589dd743034a09fb6f6bf666c99 authored about 4 years ago by pierre <[email protected]>
internal/glimpl: [wasm] fix WebGL 1 support v2

Signed-off-by: Inkeliz <[email protected]>

2739547c129979ffd107752c6dfa648c81d1b6d2 authored about 4 years ago by Inkeliz <[email protected]>
app/internal/window: [wasm] add support for StageEvent

Signed-off-by: Inkeliz <[email protected]>

fb5e2ee9ec7e155ba25c26e59382acdf29b9f9b9 authored about 4 years ago by Inkeliz <[email protected]>
.builds: test iOS/Android builds of the gioui.org module, not just the example

The kitchen example may not yet refer to the newest version of the gioui.org
module.

Signed-off...

53e0733d20b6dfb5829197619032b59abd1aecde authored about 4 years ago by Elias Naur <[email protected]>
cmd,example: bump gio version

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

2230accd34678ac834d8698b9461ecd98c01f2c6 authored about 4 years ago by Elias Naur <[email protected]>
app: move system.ClipboardEvent to its own package

API change. Update your code with gofmt rule and goimports:

gofmt -r "system.ClipboardEvent -> ...

828f19304b16f7d584bbcf38995d199923c23d00 authored about 4 years ago by Inkeliz <[email protected]>
app/internal/window: use unsafe pointer to array

Signed-off-by: Walter Werner SCHNEIDER <[email protected]>

feb93baee02b529139b6b6721168d3b2eaed34de authored about 4 years ago by Walter Werner SCHNEIDER <[email protected]>
example/glfw: delete GLFW => Gio OpenGL bridge

It's no longer needed.

Update gophers to latest gio while here.

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

e9a75cc22a78ce01b616ddf8a8f16d20b5d56251 authored about 4 years ago by Elias Naur <[email protected]>
gpu/gl: remove OpenGL functions parameter from NewBackend

As a consequence, most API is gone from gpu/gl, and embedding Gio in
foreign frameworks don't ne...

ffe5ab51a2b17cd2195a406928ce719c49cf4afc authored about 4 years ago by Elias Naur <[email protected]>
app/internal/glimpl: derive version parameter in Functions.Init

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

b8e33bb420b23a9c78f1dad483151ff17188ee72 authored about 4 years ago by Elias Naur <[email protected]>
example/gophers: update to latest Gio

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

85a06223a63c104940627a43236b7e2365d4a37d authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] disable cursor support

Building an iOS results in errors about missing NSCursor:

$ gogio -target ios -o app.app ./kitc...

8c9466e03e3de1581cfa57b075350018f8877b1a authored about 4 years ago by Elias Naur <[email protected]>
.builds: install chrome dependency just before needing it

Reduces the time it takes for core and example tests to complete.

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

eb91b2c5177cc002c338ae80efec934f10afc44a authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] ignore setCursor when not supported

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

7ef591d0ecca35225501740ce931ee17ab890886 authored about 4 years ago by Elias Naur <[email protected]>
widget: don't ignore Editor key events after submit

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

003bcc79952fe3677e66652f6418cfd6d39612ca authored about 4 years ago by Elias Naur <[email protected]>
app/internal/window: fix missing Windows cursor

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

d29cf52595ea20229ff3b472eb2364a37ba3a5f2 authored about 4 years ago by Elias Naur <[email protected]>