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/app/internal/gl: avoid allocations when passing handles to C

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

86f6765e64ae25dd404347221e4bb219aa92c468 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: add specialized path cache to avoid key allocations

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

659a85aae082ccecd6df46d9dde86be9f410dee0 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: upgrade to latest path clipping API

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

34fe8726355dee7921f353e442ca346add726e8d authored over 5 years ago by Elias Naur <[email protected]>
ui: build paths as ops

Instead of allocating and constructing a clip path, store path data
directly in op lists. Use se...

1e38eec0abc1198e20d556f9f21345bf0114b211 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: switch to explicit drawing state stack

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

a4ccc861ac140b6a26789c13387259a4161a3785 authored over 5 years ago by Elias Naur <[email protected]>
ui: make OpPush and OpPop explicit

We're about to allow OpBlock for invoking ops from multiple (cached)
Ops containers. To allow fo...

9142345fd41636140f6e1e24f838f50fff5b837f authored over 5 years ago by Elias Naur <[email protected]>
ui: add version to OpBlock to track invalidated blocks

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

9f58ed0fea4e7b1f8f69846d8f72bec19390d7ed authored over 5 years ago by Elias Naur <[email protected]>
ui,ui/internal/ops: store owner Ops in OpBlock

Allows users to refer to other (cached) Ops from a main Ops.

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

bf5d083b8aa9be0a929fb23f138be61a5e732365 authored over 5 years ago by Elias Naur <[email protected]>
ui: encapsulate encoded ops in a new type, opsData

Used for making OpBlock refer to other Ops.

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

9d661277dae71d4759d3fdd6fb710916c712ffb0 authored over 5 years ago by Elias Naur <[email protected]>
apps/hello: update to explicit API

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

528a588f2e40fa443920767a80c47e8deb70f640 authored over 5 years ago by Elias Naur <[email protected]>
ui: move ops reader to ui package

To prepare support for cached OpBlock to refer to other Ops lists.

The exposure of OpsReader is...

5966aab77e87d1d1b46f7fd21830511face44859 authored over 5 years ago by Elias Naur <[email protected]>
ui: let OpsReader keep track of references

Instead of exposing the entire reference slice, return the relevant
references from Next.

Signe...

0d2cffe1968819bf84e3f3c88464e3e4d011ef7a authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: activate sanity checks for Stack

Added by an earlier change, but not activated.

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

1c880f2b9de5050997d4212077caa56482598063 authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest

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

b55a02f5976bafa62cf3a5d83180b60d07b665ff authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: track image and color in a state stack

Just like the other drawing state, the current image or color must
be tracked in a stack.

Signe...

7ae8fdaae7a3775c1f645f9d22bbc6c4a48db84d authored over 5 years ago by Elias Naur <[email protected]>
ui/draw: typo

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

d752040f17eab2154eed391994d270f78b94a8d1 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: switch to new OpImage, OpColor, OpDraw API

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

16a55850cb56b4693c64ee38743b909478d8bb8a authored over 5 years ago by Elias Naur <[email protected]>
ui: introduce OpColor, a specialized OpImage for uniform colors

To avoid allocating an image.Image for OpImage.

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

00a87f542dcbc255d05a468b41d5c07a8e402386 authored over 5 years ago by Elias Naur <[email protected]>
ui: split OpImage into OpImage and OpDraw

In preparation for an OpColor (and future OpGradient and similar).

Label and Editor no longer t...

0061c73a89aa026b9c0dbe326c20ae8e08c0ca7b authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: add per-frame mallocs to profiling status line

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

29993af4082c151c2c334a936c72b8e035e267d4 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update event method names

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

bb0f80902fb9c7aa675010d5b9fc83b152063276 authored over 5 years ago by Elias Naur <[email protected]>
ui: rename event methods to Update

For uniformity.

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

a7874d70ef29b63bf7b77a5e1d33c77d316edda6 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: switch to explicit layout methods

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

67bfa38e02a058c96037e859b5105e836ab2a052 authored over 5 years ago by Elias Naur <[email protected]>
ui: switch to (more) explicit layout

The layout package switched from interfaces to functions for
composing layouts. The switch made ...

9b3429d6da910239c8c8979ae1428dd9783d76a3 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (windows) use the new golang.org/x/sys/windows.MessageBox function

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

5cc9906eb824fe16317bdb2192f4e71d88aaa286 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) use CFTypeRef for the view factory

The os and gl packages were separate in the past, which required
uintptr for cross-package CFTyp...

e5ddb0b903c7287a0abfc64cf91fca5a0f9c4c53 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: add Lock/Unlock to Context for macOS

Without locking, asynchronous OpenGL rendering crashes on macOS.

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

a1c0693eeb163f015cf2e50e03e2b4f0c85c68f3 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) replace TypedArrayOf with the CopyBytes* API

syscall/js.TypedArrayOf is going away in Go 1.13 and is replaced by
the CopyBytesToGo, CopyBytes...

c3ea85801c79442c04ffa2979d142d8591cf3d9d authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) use JS allocated buffer for invalidateFramebuffer

syscall/js.TypedArrayOf is going away in Go 1.13. Avoid it for
invalidateFramebuffer by using a ...

7b13da729984bf4b1e3d2b1e29ed6acafca247b5 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) re-use javascript buffer

Now that syscall/js.TypedArrayOf is going away in Go 1.13 (sse
https://golang.org/issue/31980), ...

edec032ae6b6c1a1e9664a30d70061bc079bf3a1 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: serialize event handling

The frame callback for macOS comes in from a different thread than
the UI thread. Serialize even...

bc481ea784339e57b5f1bd6e67245597dd32765a authored over 5 years ago by Elias Naur <[email protected]>
ui/app: add GL buffer caches

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

da598663f7fe98a4bc748b03f5db378b331f370c authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: add pathOp cache

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

642318842c7027349594eefb450fdd112404ce9a authored over 5 years ago by Elias Naur <[email protected]>
apps/hello: fix build

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

4513d109b17398c45122f8f8585a4dec15aca9c8 authored over 5 years ago by Elias Naur <[email protected]>
apps/gopers: update to new Config convenience methods

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

51d1c32c070dd27e80324c9e145df0b4b663e58d authored over 5 years ago by Elias Naur <[email protected]>
ui: add Config.Sp and Config.Dp convenience methods

And rename Pixels to Val.

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

00cb158247fe6c460d6bf774eb89bf565d830ba6 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: use shorter layout method names

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

acf345a0f88be42d87ced0bb66e184297ec34bfe authored over 5 years ago by Elias Naur <[email protected]>
ui/layout,ui/text,ui/widget: shorten Widget function names to W

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

2d96e760d39a964c16a2de2e7f701f87ec590f22 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: convert to new explicit layout API

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

3e5e9b2df2a4c21d46e9ec61adbd230adbc1a8bc authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: make layout API explicit

With layout.Widget a function instead of an interface, the amount
of per-frame garbage can be dr...

e436dce0e761d9b14cebf80868beed8fd1435835 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) suppress key shortcuts beeps

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

25ba53ea51dc568f7cea0ee2e7e478b4abfc2798 authored over 5 years ago by Elias Naur <[email protected]>
README.md: note that todos can now be filed through email

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

44e02786c6ead8f96c3c1a5afd2a5c8ea87b86f0 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: remove unused layout.Interface

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

d98f579048b997871d449b6de28087de259242f4 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: round total and cpu times

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

a6fc2b6d459a6fae547167d9eeb8fd66f27a970a authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) don't focus input field on mouse down or touch start

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

3c9c38947d1199026e288690cc4ecb42d90f8bac authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: check for GL_EXT_disjoint_timer_query_webgl2

GL_EXT_disjoint_timer_query_webgl2 is the WebGL 2 counterpart to
the WebGL 1 GL_EXT_disjoint_tim...

32c525f7fd6574b9947d8321f48e71ae25737bdc authored over 5 years ago by Elias Naur <[email protected]>
ui/app: take input focus when initializing the HTML canvas element

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

90d2174090eb3608056aff9cdbd27be171c0dd90 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: check floating point FBO support

Some devices don't support floating point FBOs even though they
support OpenGL ES 3. Check suppo...

18c74f00aff1b190d85e898fbf5af9e5147067e5 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gl: add RENDERER enum value

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

8f3384ffe499d1b7b32961f852d60fdee2faa965 authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest

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

379cab92c4be15827960ad45b02a36c10b1574ec authored over 5 years ago by Elias Naur <[email protected]>
ui/app: apply monitorScale to browser DPI

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

c342054dbc08b71de3b5774145a6ba7d48fd4b10 authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest

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

1e14540a6f6345505b1810cb39fafd8655e81baa authored over 5 years ago by Elias Naur <[email protected]>
ui/gesture,ui/editor: don't focus and show keyboard on touch press

Wait until click for touches.

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

701ceda4d06df1eb649e8cb5ead6dfe7a5c844ac authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: drop useless timing

It is almost always 0.

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

530b9b09b2987fe4e7365023bfe4c29f5078ccac authored over 5 years ago by Elias Naur <[email protected]>
ui/app: add CPU draw timings

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

07a5a6547eeeea02e75eb4f2a6c11b4880c40c1e authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: correct inverted logic

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

84f80711dc9bc23720b08d6f44e757bc50dbf355 authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest

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

31bec932d106a168adfdd72cba040303296a76c0 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: add context cancellation on StagePaused

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

1d91555ace5dd9db949db6fe3f01816b941e0bfa authored over 5 years ago by Elias Naur <[email protected]>
ui/app: rename StageVisible and StageInvisible

StageRunning and StagePaused better reflect their use.

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

e2a1f07b8497a325115bcd58cd453a5045d8353c authored over 5 years ago by Elias Naur <[email protected]>
Revert "ui/app,apps: unexport ChangeStage and Stage"

I found a convincing use case: stopping asynchronous activities
while paused. A follow up change...

4441a3e13ef5bac4be842228ed14f48ff21c4da6 authored over 5 years ago by Elias Naur <[email protected]>
REEADME.md: fix typo

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

af7a0ad2934cf44f18d25ab3ff0f40a259ed8a4b authored over 5 years ago by Elias Naur <[email protected]>
ui/app,apps: unexport ChangeStage and Stage

I'm not convinced the API is right. For exmaple, an event that
notifies a program when to save i...

f9840b0963d16028521fef6911f993194d484b0b authored over 5 years ago by Elias Naur <[email protected]>
ui/app: fix iOS build

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

314c79a7258754231088fc2f482aca629c326210 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add note about webassembly support

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

6d690fd3435791e8b1ee9b27ba1df5cfca5cdb4d authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest

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

1b6a0580a7598c85ffbfa3fe998112bad87cf64d authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers/web: add driver files for WebAssembly builds

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

801ce944f220c988200f73baeed78ad4a58c843f authored over 5 years ago by Elias Naur <[email protected]>
ui/app: add basic webassembly/webgl support

It is still slow. And crashy: https://github.com/golang/go/issues/31980.

Signed-off-by: Elias N...

0397cbb599a37bef5a16ceb6431af127201f34ea authored over 5 years ago by Elias Naur <[email protected]>
ui/app: split extension string before matching

Avoids false matches for extensions whose names are substrings of
other extensions.

Signed-off-...

f1c87417bd459c559a605555070520877ecc7b4d authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gl: add workaround for broken sRGB FBOs

Safari on macOS don't treat sRGB correctly.

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

c6863581e0e2cc31a35bbcdce75b4f94a834d19b authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: move sRGBA feature detection to context

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

51482b6493a4925e4de4a936d486dabe673e16c5 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gl: move single channel format detection to context

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

871ae34be50a9e2522b82efca921721e62375182 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: drop opaque texture optimization

It doesn't seem worth the trouble: images must be scanned for
alpha != 1 and GPUs don't like RGB...

fd9eb029c83927d44108bc68e0cdeb61fc8c893f authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: implement OpenGL ES 2 float fbo fallbacks

Also applicable to WebGL.

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

f5fa968038cc43f42c8359896144df2d1a2d7f5b authored over 5 years ago by Elias Naur <[email protected]>
ui/app: make opengl objects structs

WebGL use opaque values for object handles, not integers. To ensure
portability, wrap handle typ...

8df5feeeea469b05a501b50f237853172c55345c authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: introduce caps and context

Enables graceful fallback to OpenGL ES 2 and WebGL.

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

d118bd5a88a2f374c7429a5dc08fd2c5bcf522a7 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gl: parse WebGL versions

And drop a redundant error message while here.

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

2af0f63cfba4a89d0e7df8dc3484c1aa43e4a422 authored over 5 years ago by Elias Naur <[email protected]>
ui/test: invalidate Editor layout on scale changes

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

2d7fb556a40dfb443d8113dd56f3c0b4e1dbf601 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: remove NDK r19b Windows workaround vestiges

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

af46b2bf29a68c60ab258220f1b59451e637b9ee authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gl: invalidate the correct fbo in sRGB fallback

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

350dc1910866bf02ced674f29e618b2079a05017 authored over 5 years ago by Elias Naur <[email protected]>
website: add go-source meta tag to link godoc.org to sr.ht repository

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

78421b9db95eff8b563fff68eaca01defc999d5c authored over 5 years ago by Elias Naur <[email protected]>
apps/hello: fix error handling

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

967484ce3a4e0891eeb9eab5bc87dd9c656efed5 authored over 5 years ago by Elias Naur <[email protected]>
all: delete the ui.Op type

It's no longer used.

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

20f55a4ad71e43660e4a959d281e1c5e0be843b0 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: rename simple.go to layout.go

A more appropriate name.

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

56133632c6feefbd41ab85340c96ba87dc6faa08 authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui

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

f60906b8e27393452ddeeda7a03736b15fa75640 authored over 5 years ago by Elias Naur <[email protected]>
all: serialize ops

Pros:
- Much less per-frame garbage
- Allow future preprocessing of ops while building it
- Much...

252e05876660b09c7bfa0b443723dc67923827af authored over 5 years ago by Elias Naur <[email protected]>
ui/pointer: simplify hit testing

Serialize the implied tree of layers and handlers into a list
that can be traversed from the end...

7b6e1ce35aebd14872cbbd1989f5e44e56dbb8e0 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: don't draw when not animating (Wayland)

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

3ad94ed20e6eb3a5050018d982ca2bb2b14df3ef authored over 5 years ago by Elias Naur <[email protected]>
all: make pointer.Area an interface

With an interface instead of anonymous functions, amending an
area's parameters can be done even...

a8bb3c2f14ae130148e4b39d167858a4d21bc3fe authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: flush before drawing

And delete an unnecessary error check from Flush to make sure pending
draws are always finalized...

e0d586893deb24b83a0c21825ffe0fa48926210c authored over 5 years ago by Elias Naur <[email protected]>
apps: go get gioui.org

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

47fbe56766edfd60599122f913ebcdd92b17a26d authored over 5 years ago by Elias Naur <[email protected]>
ui/app: don't use wl_touch interface v6

It's not tested, we don't need v6 capabilities and using them result
in build errors on older wa...

8b47e2b4bfe5dff7fa9ecc91624dbbbf166c4402 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add download link to Go

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

d4ff577259e57c9dda18a23bc9dfd9ce12a05a9f authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: drop 32-bit support for iOS

64-bit support was added in iOS 8 on iPhone 5S and newer,
32-bit support was dropped from iOS 12...

ef20c9339f1957b97d14a73e556674c8f73cdb5a authored almost 6 years ago by Elias Naur <[email protected]>
README.md: note that the NVIDIA proprietary driver doesn't work

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

afa91ed942fe375e27d5fd57508b0ba25873f421 authored almost 6 years ago by Elias Naur <[email protected]>
app/hello: add explicit WindowOptions, extract message, color text

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

f4f3f9e6403ec2cb9a7f3fc59a73f4c1aa69e9fe authored almost 6 years ago by Elias Naur <[email protected]>
README.md: describe name and email configuration

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

b5d8e1cfe24a775c888569234be8026938051c2a authored almost 6 years ago by Elias Naur <[email protected]>
README.md: point to git-send-email.io

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

c20255335f9b0c2a5b261b00e6ee779fe8f35db1 authored almost 6 years ago by Elias Naur <[email protected]>
README.md: further clarify the mailing list description

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

a876ce8a53b09954c465ea873bcadc39b299c2d3 authored almost 6 years ago by Elias Naur <[email protected]>
README.md: note that the mailing list is open to everyone

A Sourcehut account is only required for subscribing to new posts.

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

31e06bd931f414122da3a4fbd7282a5a94f376a0 authored almost 6 years ago by Elias Naur <[email protected]>
apps: go get gioui.org/ui@latest && go mod tidy

go get -u gioui.org/ui also upgrades indirect dependencies, which
we don't want.

Signed-off-by:...

23c5bbdf48331d4e489ae0b229aa93ad68236f12 authored almost 6 years ago by Elias Naur <[email protected]>