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

app: release GPU renderer when done with it

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

3bb1450d0d0e86390e12d6c87b7013567baff08d authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: add -icon flag for specifying the app icon file

Before users were limited to only use a appicon.png in the root directory.
Now the user is free ...

edef73f580b800bb3544cc66b4136634474ba622 authored over 4 years ago by axel paulander <[email protected]>
go.mod: bump Go version to 1.14

Go 1.15 is out so let's bump the version to 1.14 to sidestep the annoying
webassembly syscall/js...

17b5898dd38d0b728b76ba75b0e22e74efff6e2b authored over 4 years ago by Elias Naur <[email protected]>
app,app/internal: [Android] replace Window.Do with ViewEvent

An event reporting the most recent Android View attached to the Window is both
simpler to implem...

6c30c6386ccf5aa1db1f958ad528f4e6e72f33f4 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: Make checkbox/radio buttons icon modifiable

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

c3574cdabdb100456fe2ecc6baef49d1dda57837 authored over 4 years ago by Elias Naur <[email protected]>
cmd: use ANDROID_SDK_ROOT instead of ANDROID_HOME

ANDROID_HOME is deprecated and slowly being removed from Android
tools.

Signed-off-by: Elias Na...

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

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

83673ecb203f809e7630683a632a2c44bf29372a authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [WebAssembly] fix touch event handling

Fixes gio#149

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

3b95e291835998d8a762250810e9d4aee772dcc1 authored over 4 years ago by Elias Naur <[email protected]>
app: [Android] don't block the main thread in Window.Do

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

4a9d97784f24bec72350396df9f58149c7deedc7 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] work around flickering on ChromeOS

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

e381ff40d66b03e43f7e964cd4dea2ba75dc2588 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: fix typos

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

9ac8c80d1529ad48d99ed66103fe99310231dada authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] disable platform focus highlight

Gio apps use a single Android View for the entire UI, rendering the platform
focus highlight uns...

86c3fb2f0b1e67aaf19a415e0fd3fe4adf02f054 authored over 4 years ago by Elias Naur <[email protected]>
all: implement staticcheck suggestions

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

6ab43aba3ea5a7d76450f0636ef535cd2b906a45 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: use GetDpiForWindow if available

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

39fd161bea1f0198f6dc427e6ece050280a6e314 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: handle elliptical icon buttons

This commit changes the ink-drawing code so that IconButtons that
are not perfectly circular wil...

ae07c5f470cbea2aed8cfbfdb2060b65b50dfeb4 authored over 4 years ago by Chris Waldon <[email protected]>
example: bump gio version

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

40141e29f5d2bd3bd01a0356511cb2eb8fc753b7 authored over 4 years ago by Elias Naur <[email protected]>
gpu: limit atlas textures to 8k x 8k

Fixes gio#131
Fixes gio#133

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

47efa26cfc058d87e532f18373008e7eb6c7a02a authored over 4 years ago by Elias Naur <[email protected]>
cmd,example: bump gio version

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

f958f9512e716e31bdb9fa2b1f4876e00339d7b7 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window,app/internal/egl: replace deprecated MESA_EGL_NO_X11_HEADERS

Fixes gio#147

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

e48b85f8d92eac4061cb650dba8e9331e5d5e544 authored over 4 years ago by Elias Naur <[email protected]>
layout: refactor List.Layout and related functions

I found the interplay of List's Layout/init/next/more/end methods
somewhat confusing and hard to...

a54b4605954036d8724d2419b96e8161f165208d authored over 4 years ago by Larry Clapp <[email protected]>
widget/material: avoid excessive trigonometry in Loader.Layout

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

773939fe1dd10b3ac5f937a7f9993045a91e23a7 authored over 4 years ago by Elias Naur <[email protected]>
example: bump gio version

Tweak kitchen Border example as well.

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

742e1f9e7295137481021002dbe0e59924da26a6 authored over 4 years ago by Elias Naur <[email protected]>
font/opentype: report valid bounds from layoutText for the empty string

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

188bfa9a0bbdae02a3afed0cbddaf2eede49efb3 authored over 4 years ago by Elias Naur <[email protected]>
widget: defer op.StackOp in Editor.PaintCaret

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

713770f808fec742b5ef8524bc6857ae49d2d480 authored over 4 years ago by Elias Naur <[email protected]>
example: add widget.Border example

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

39550f3239958abc96da9721f576af07ef4d96a2 authored over 4 years ago by Elias Naur <[email protected]>
op/clip,widget: add clip.Border and widget.Border

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

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

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

5a6ad65b853658b3ac4e13fac347aee6c847548f authored over 4 years ago by Elias Naur <[email protected]>
op/clip: split Rect into pixel-aligned Rect and rounded RRect

The pixel-aligned Rect is more efficient and easier to use in the common case
of layout clipping...

d572aa23ac363e8048ff6d391a9a2f106f34ae6a authored over 4 years ago by Elias Naur <[email protected]>
op/clip: unexport Rect.Op

It wasn't used anywhere outside Rect.Add.

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

4818538ef8f18371ef2b2e4d7407f41b81bcb761 authored over 4 years ago by Elias Naur <[email protected]>
widhet/material: change minimum Loader size to be a default

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

29f820caaac97eb0d5db5df8310d9ff8808e6152 authored over 4 years ago by Elias Naur <[email protected]>
example: add Loader example

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

de66aae15279e2cd8ba25e63c6125cf4d512198d authored over 4 years ago by Elias Naur <[email protected]>
widget/material: add Loader for indeterminate progress widget

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

692d6ab2219fa2e52061290f7ae5bffd18b6be26 authored over 4 years ago by Elias Naur <[email protected]>
example: don't os.Exit unconditionally, hiding panics

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

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

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

659849bb82028a76e7dd34fda5d002a53c4f77c1 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] initialize touchFoci map

Fixes gio#145 (I hope)

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

96da6945a7e929f6941a64c559971ab5123fd656 authored over 4 years ago by Elias Naur <[email protected]>
font/opentype: add tests for Collection as a Face

Added tests to make sure that opentype.Collection can be used as a
text.Face, and that it correc...

6c8dcbdb4b5a9f4331f79b260a872aab2748b9af authored over 4 years ago by tainted-bit <[email protected]>
font/opentype: support using Collection as a Face

This change allows font collection files (extensions .ttc or .otc)
to be used as a text.Face. Th...

a6afa86d853e3dfe7da320e87dea823d271b790c authored over 4 years ago by tainted-bit <[email protected]>
text,font/opentype: make text layout and shaping safe for concurrent use

Implementations of text.Face are reused across multiple windows for efficiency.
Make the opentyp...

7bbe0da0c75fdb26954540a0827dfce7017c0cab authored over 4 years ago by Elias Naur <[email protected]>
app/headless: avoid race between ReleaseCurrent and MakeCurrent

Release context on MakeCurrent failure paths as well.

Fixes gio#144

Signed-off-by: Elias Naur ...

e2278b64c112545803b9471a0416268aef2b4c52 authored over 4 years ago by Elias Naur <[email protected]>
app/headless,internal/rendertest: report errors from headless renders

Updates gio#144

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

30ad63283b96c1f066e1c859d27a989daa07a6ab authored over 4 years ago by Elias Naur <[email protected]>
app/headless: don't release context while it's current

Updates gio#144

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

d53c92791f34892c82751e48fc71566af2a777d5 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/egl: don't call eglTerminate

A single EGL display may be shared among several contexts. Don't
eglTerminate a context display ...

1513348bf69e9cec0bcf912e91ecfc12ca77bc44 authored over 4 years ago by Elias Naur <[email protected]>
internal/rendertest: dump bad images immediately

Updates gio#144

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

8bd0e85f2ee689630670e5ac94ce0b79e17266f9 authored over 4 years ago by Elias Naur <[email protected]>
internal/rendertest: release GPU resources after test completion

Updates gio#144

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

dff037a84ea7c2d3ab3199e7e4283ccd09def493 authored over 4 years ago by Elias Naur <[email protected]>
example/kitchen: bump gio version

Add explicit inset to ButtonLayout.

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

223f8fd40ae44216f4941e1f4b7fa7131518fc71 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: remove Inset from ButtonLayoutStyle

ButtonLayout is for custom button content; insets belong to the
custom content, not the button.
...

6ef1ff7cfbfb68fe48d0b35fa4079bc27d47f489 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] ignore result from CVDisplayLinkStart

Larry Clapp reported a panic from failing to start the display link.
Ignore the error and hope t...

958b19ae220efa03a52a5520da4cb0b8a6038fa6 authored over 4 years ago by Elias Naur <[email protected]>
widget: tolerate nil shader in Editor movement methods

Fixes gio#142

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

851255f7a67b14d5dc0199375241270346e70b53 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [X11] avoid -d=checkptr check failures

Casting a *XClientMessageEvent or *XSelectionEvent to *XEvent is
technically incorrect because t...

2f8833d985df8be444b4a8968b59448c538ec3cc authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Windows] fix min/max size

Fixes gio#141

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

31e8339e1bf874e2a1f15ee9b284513065d955b4 authored over 4 years ago by Elias Naur <[email protected]>
cmd,example: bump gio version

Add os.Exit to examples now that app.Main never returns.

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

f5985b5e7dea0446a3d094de47fade8aa31872ef authored over 4 years ago by Elias Naur <[email protected]>
app{,/internal/window}: make app.Main blocking on desktop platforms

This CL implements the app.Main function as a blocking-forever function
for JS, Wayland, Windows...

6a9a87046221602d1a323887cd619e75c81cc24e authored over 4 years ago by Sebastien Binet <[email protected]>
cmd,example: bump gio version

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

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

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

acc0424dd7d7e0687360a8a0cc70af5fabeeb70c authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window,cmd/gogio: [iOS] export GioViewController

The Gio GioAppDelegate created the GioViewController programmatically.
When using gogio's -build...

d97f7f909350620f1631e5c636f7218aeaca472f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] move logic out of GioAppDelegate

We'd like to remove GioAppDelegate when Gio is embedded with
gogio's -buildmode=archive. Minimiz...

79014a81d5e782a6a311e845e71addf51b82e7ca authored over 4 years ago by Elias Naur <[email protected]>
text: remove Metrics from Face interface

It's not used in text shaping, so let's not require it.

Note that the concrete opentype package...

913a780d64618ff12fb0e1da1857ff10d40defcb authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: run main on main thread on Android and iOS

Before this change, Android and iOS were special for two reasons:
app.Main would return immediat...

db03b0898d51659b073523007c63733fce22321a authored over 4 years ago by Elias Naur <[email protected]>
gpu: fix negative intersections

Fixes a bug due to that f32.Rect.Intersect will not return the
empty rectangle for non intersect...

7ff17453dd5fa7d865aadb7e548a4bef0b1c7aeb authored over 4 years ago by Viktor Ogeman <[email protected]>
cmd/gogio: add -tags flag for supplying extra tags to the build

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

5bd0ecea5e437deda7848584d92acd9af95912ff authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: add ldflags flag for extra flags

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

342c0da320bdea57ab6bf0f916941cab84b296c8 authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: [Android] use correct android.hardware.type.pc feature

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

2f984673a2395930c1a3693f374bcab5780d3b7a authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: [Android] check $ANDROID_NDK_ROOT

If the Android NDK is not found in a standard location (e.g. you are
on an F-Droid build server)...

3a542cc80cee6674ced961eddcae49408aa06fdd authored over 4 years ago by Greg Pomerantz <[email protected]>
internal/rendertest: tolerate lack of headless suppport

Fixes the builders.

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

b664d68a7c0f446aaf5a26c83e9e1aed522cb187 authored over 4 years ago by Elias Naur <[email protected]>
app/internal: [X11] implement Window.Close

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

59f07023d489bee32764a12c6e9af1a182c6aa70 authored over 4 years ago by Sebastien Binet <[email protected]>
app/window,app/internal/window: allow min/max window size

The app.MinSize and app.MaxSize options restricts the window size:

w := app.NewWindow(
app.Siz...

9cfbdafe145bd9f37f173fa58c40c26deafe50d1 authored over 4 years ago by Jason <[email protected]>
example/kitchen: add Float/Slider

Signed-off-by: Gordon Klaus <[email protected]>

20cf570709374a078ed8bf71ae38ebb4005e4a3d authored over 4 years ago by Gordon Klaus <[email protected]>
widget,widget/material: add Float and Slider

Signed-off-by: Gordon Klaus <[email protected]>

5368743478e0f3be301e003f59da9109845176d6 authored over 4 years ago by Gordon Klaus <[email protected]>
example,cmd: bump gio version

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

817e0fa9c32f4fa240e74105bb08b03a0065dc68 authored over 4 years ago by Elias Naur <[email protected]>
all: remove redundant op.TransformOp.Offset

Use op.Offset instead, or create and manipulate a f32.Affine2D.

API change. Update your code wi...

878131189b10c23417aee9cc81aaa45e604ebe9a authored over 4 years ago by Elias Naur <[email protected]>
text,font/gofont: replace text.Collection with slice of FontFaces

A slice of FontFace pairs are simpler, and thread safe in case a client
wants to append or modif...

9e3d3b6f58237c0af13e0b8a256677ae5d8801da authored over 4 years ago by Elias Naur <[email protected]>
text: fix typo

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

424a7289882b9116933d44c9d666ec7ec44bd2d5 authored over 4 years ago by Elias Naur <[email protected]>
example/kitchen: include example of affine transforms

Include an example of transforming the entire UI in the example.

Signed-off-by: Viktor <viktor....

1a9ae1af69f515c5934a76e09ba7d36d6ca9c58a authored over 4 years ago by Viktor <[email protected]>
gpu: reintroduce reuse of offset-only stenciling

Reintroduce support for offset in stencil vertex so we can reuse
cached values if the only diffe...

cfb9565895dc495157a4b5a08f519ec799337070 authored over 4 years ago by Viktor <[email protected]>
gpu: cache quad splitting and transform

Cache also CPU operations by moving pathCache into
drawOps and use it in collectOps to avoid spl...

380938c6023ab6db464751c108b7928a02f35b42 authored over 4 years ago by Viktor <[email protected]>
gpu: build gpu data also when outside window

This commit fixes a bug where a shape first drawn off-screen
and later moved into screen would n...

cee045bf92fb185011265f138556b3b17e4e4a0e authored over 4 years ago by Viktor <[email protected]>
gpu: avoid pointers of pathData

Save allocations by using pathData instead of *pathData.

Signed-off-by: Viktor <viktor.ogeman@g...

901478d102fd2ba9ea5f688c415cb561dded3329 authored over 4 years ago by Viktor <[email protected]>
internal/f32color: use explicit type to avoid allocation

f32color.RGBAFromSRGB is used extensively in package gpu, avoid an
interface type to save alloca...

42f07ca5388e1f2316d2af658251e799c42ce125 authored over 4 years ago by Viktor <[email protected]>
gpu: cache transformed bounds

To avoid duplicate work when using macros and non-offset transforms,
cache also the new bounding...

818d0c4af1f83a87dc81ec39c539c5e6148fe5a5 authored over 4 years ago by Viktor <[email protected]>
gpu: optimize opCache to avoid expensive map lookups

Benchmarking showed that the double map access calls
were a bottleneck. Rework the cache to avoi...

062cb210ea2ed1291068186fb1b805ba226e0446 authored over 4 years ago by Viktor <[email protected]>
gpu: exploit pathCache in collectOps

Previously the cache was only filled during gpu-buffer creation,
resulting in extra work on the ...

f11a656426932017e3d3ef0c4029488de23a0774 authored over 4 years ago by Viktor <[email protected]>
internal/rendertest: create test suit for drawing operations

Uses app/headless to create a set of test cases for drawing operations, including clipping
textu...

e3bb94ebb08aa70d5a0c93228c88b0eee444a0f6 authored over 4 years ago by Viktor <[email protected]>
gpu, op, internal/ops: add affine transformations

Add support for affine transformations. The key changes are outlined
below.

- Painting/clipping...

24951a7ee7f79b5ec38850148b7b18db07a48f08 authored over 4 years ago by Viktor <[email protected]>
gpu, io/router, op: use f32.Affine2D instead of op.TransformOp for transforms

Encode TransformOp as an Affince2D matrix instead and use that in gpu and io transform handling....

b247395c6259163cd0ca910cd55401d0e31919c4 authored over 4 years ago by Viktor <[email protected]>
f32: implement 2D affine transformations

Implements 2D affine transformations. This commit is a step
towards full affine transformations ...

e7bc1a45533b01655d5b7d6a8aca7aeb226d1cef authored over 4 years ago by Viktor <[email protected]>
op/clip, gpu: split complex curves in package gpu instead

This is a first step towards supporting affine drawing transforms.
The rendering algorithm relie...

5b277757cfd0fe69a6088534ced81aa845b115d5 authored over 4 years ago by Viktor <[email protected]>
internal/rendertest: create new standard benchmark

Create a standard, representative set of benchmarks for the
rendering pipeline to allow for meas...

ef70b9252eb50444ec4e16d97a7943b655443568 authored over 4 years ago by Viktor <[email protected]>
widget: add optional password masking to Editor

This change adds optional password masking to the Editor. To enable
this feature, set the new Ma...

5c0f190849584e9a2de315457916393e72dea388 authored over 4 years ago by tainted-bit <[email protected]>
widget: remove Editor references to text.Line.Len and text.Glyph.Rune

In preparation for adding editor masking, Editor can't rely on the
Rune and Len fields of the la...

a21aefa8b73ce282d5de64b62e45094b0505a1de authored over 4 years ago by Elias Naur <[email protected]>
widget: introduce Editor.moveLines

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

dcbbcbb5434333e935a475339e0802435100b7bb authored over 4 years ago by Elias Naur <[email protected]>
widget: add Editor tests

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

ffec83a001be70c169726b56cc293a839366c51f authored over 4 years ago by Elias Naur <[email protected]>
widget: maintain Editor caret position

Only call layoutCaret when the text layout changes, adjust position
for caret movement.

Signed-...

ef21a7ace14e1e334a2b67486f6aaa01c3d9098e authored over 4 years ago by Elias Naur <[email protected]>
widget: move Editor caret information to sub-struct

In preparation for maintaining the caret position.

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

8f31f8da2c7c0a9d88ba86e9c8a5d04cbfd9f709 authored over 4 years ago by Elias Naur <[email protected]>
widget: fix caret comparison in editBuffer.move

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

4eb66d27079788cf1198eb71569fc21d7140eb13 authored over 4 years ago by Elias Naur <[email protected]>
widget: reset Editor x offset on mouse initiated caret movement

The caret x-offset tracks residual horizontal offset for arrow key
movements. Caret movement by ...

e316f42964a164062f4be6f878f59a8b0af0b7ea authored over 4 years ago by Elias Naur <[email protected]>
widget: return float32 coordinates from Editor.CaretCoords

Don't leak the implementation details of the caret coordinates.

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

2f23a326b8addca92b0f0b7eebb902432bac90d8 authored over 4 years ago by Elias Naur <[email protected]>
widget: remove unused parameter from Editor.moveCoord

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

810be77412f473ac014848b91b22125eea44b67a authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: [Android] disable ChromeOS input emulation

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

e2f3bbdfc36707fbaff274aea031277ca0d5c459 authored over 4 years ago by Elias Naur <[email protected]>
gesture: always drag scroll on Android

Mice drags scroll on Android by convention. Further, ChromeOS converts
two-finger touchpad scrol...

b9f6543cf5aff2b2e140d749f19d4e243b06eee6 authored over 4 years ago by Elias Naur <[email protected]>
example/windows: add Window.Close example

88ced59dad93f4d8a51a1f5f04a6db3fcd2f9da6 authored over 4 years ago by Egon Elbre <[email protected]>