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: add op.Push and op.Record funcs

The funcs replace stack.Push and macro.Record, which become private.
This makes stack and macro ...

ae8a377cda62204d4c3fdfe0e5b481e1cbeadc41 authored over 4 years ago by Thomas Bruyelle <[email protected]>
widget: Clickable: added support for NumClicks

Clickable.Clicks() now returns the number of clicks.

Signed-off-by: Pierre.Curto <pierre.curto@...

bade2778763168193c9b56ea93005d6c0b7a88d2 authored over 4 years ago by Pierre.Curto <[email protected]>
widget: make Clickable.Clicked use a pointer receiver

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

3ef841bd07fb0e21ea2e33f0e31d36608c54b623 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wayland] move listener registration to Go

In turns out that only the listener declarations need to be in C, not
the listener registration ...

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

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

eafe09967f5bdabb90e7eedfb09e40b12c995269 authored over 4 years ago by Elias Naur <[email protected]>
layout: create input group for List

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

28bf9e200143817f229eb2a72118ffa05549a16f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: fix multitouch action on Android

Fixes #122

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

6fbcae07cb769471a89b1d07f4c132e8b12bb0bc authored over 4 years ago by Elias Naur <[email protected]>
io/router: simplify pointer event routing

- Drop pointer.Event.Hit in favour of Enter/Leave events.
- Track enter/leaves for each pointer....

3b28c5d06738183e360e841d5d3df2c50a02ec58 authored over 4 years ago by Elias Naur <[email protected]>
io/router: add addPointerHandler convenience function

Remove a redundant call and shorten image.Rectangle literals while here.

Signed-off-by: Elias N...

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

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

2487842aaef7f927eb49a81dfa174087a5a1b02f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window,app/internal/xkb: silence string(int) conversion warnings

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

4bf043eb5b2f8c56593ce7947b52e43fb9abf2d8 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/egl: use nilEGLConfig to guard against int vs pointer-typed EGLConfig

Updates #121

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

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

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

e9500f5f4c2f4596be6069674a92cfbb3e2c60e3 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS,iOS] reduce display link starting and stopping

Recent changes to the macOS threading exposed a problem where a
window's display link may fail t...

1377bea3cdc596ae0b458d6906bc1ffa9990329d authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] move redraw logic to Go

We're about to move the display link to common Go code. To do that,
we need the redraw logic in ...

38179411754c64e1eef3b79199de63c643d9df1c authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wasm] report key modifiers for pointer events

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

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

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

6a0da04598aaec3cbb6f0fa030235c8b61594634 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [X11] report key modifiers for pointer events

Fixes #120

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

9da54eac61b525f3c67886549983cec31bf5dcb9 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window,app/internal/xkb: [Wayland] report modifiers for pointer events

Updates #120

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

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

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

7b6eafcb591a8d85c25e9b175b650ab7fb7f8b59 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] avoid racy access to window width, height, scale

The macOS redraw callback is not invoked on the main thread, so its
access to window fields must...

33146961f4355fe5d1daad8241936bbcf81022cb authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] don't call Cococa from non-main thread

Only the synchronous draws from the main thread may involve changing
width, height and scale. In...

5c6ff659bf38c89da48bb344ba51d5b9d09c4788 authored over 4 years ago by Elias Naur <[email protected]>
widget: redefine Enum.Changed and Bool.Changed to consider only user interaction

Ignore programmatic value changes to avoid feedback loops.

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

ad93e321282403aa13fb04822e0a2c86b612b976 authored over 4 years ago by Elias Naur <[email protected]>
widget: change Enum.Layout to follow layout protocol

Respect constraints and return dimensions.

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

f2df7c145801734dcbc80e3e7ccaf3be513c107a authored over 4 years ago by Elias Naur <[email protected]>
widget: change Bool.Layout to follow layout protocol

Just like Clickable, Bool.Layout should respect constraints and
return its dimensions.

Signed-o...

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

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

3164a3fee76692f3b85ed4386e222e9f2aa72f9e authored over 4 years ago by Elias Naur <[email protected]>
widget: add Button.Clicks for retrieving clicks

An earlier change unexported the Button.Update method that exposed raw pointer
input not availab...

4898e1a6914bde30ef19b195d067fa20f891eda3 authored over 4 years ago by Elias Naur <[email protected]>
widget,widget/material: rename widget.Click to widget.Press

Press tracks pointer presses, not clicks, and we're about to add a Click
type that does.

Signed...

8d838e89f5d55769f72bef1e3314532f37cd1892 authored over 4 years ago by Elias Naur <[email protected]>
widget,widget/material: only process events in Layout methods

Before this change, events were typically processed twice or more per
widget: once in the Layout...

d017c722f5af8df6c2dec7e7ce38590b858d2fe7 authored over 4 years ago by Elias Naur <[email protected]>
widget: simplify Editor event flushing

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

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

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

d8000880c3b437562d25d797d33f0531b86fdb38 authored over 4 years ago by Elias Naur <[email protected]>
layout: change Widget to take explicit Context and return explicit Dimensions

Change the definition of Widget from the implicit

type Widget func()

to the explicit f...

3af01a3f431244214a439c7bb392d0166e724a00 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: move widget state object from Layout methods to constructors

Instead of, say,

var th *material.Theme
var btn *widget.Clickable

material.Button(th, "Clic...

2451750782b86e020be67be715178c7a163e1d3f authored over 4 years ago by Elias Naur <[email protected]>
widget/material: drop Padding from IconButtonStyle

Use Inset instead, matching the other buttons.

Redefine Size to apply to the icon size, without...

af10307f4ad7c908ca46ba1dc07fe0056a00a710 authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: use URL query for passing arguments to wasm programs

The location.hash method doesn't work correctly with multiple
iframes and Safari.

Signed-off-by...

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

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

fc2a2ae615160978d1d21615182a7abeeb9fee19 authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: [wasm] pass location.hash (if set) to os.Args

Allow for specifying command line arguments to webassembly programs
through the URI hash (https:...

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

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

a96b2085822f08792ad4d14690d36cd8a95f35b6 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [X11] handle zero-length clipboard writes correctly

Fixes gio#118

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

0614bd29d751c563ef70a21b5bac6ac9132a80fb authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] don't block in runOnMain

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

22b367cb33bfb613ca5d235f7674dcb24f20357f authored over 4 years ago by Elias Naur <[email protected]>
op/clip: add Rect.Add shorthand

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

ac62e3a7ab85899e1f373fd11e1db6fcc55d6ccd authored over 4 years ago by Elias Naur <[email protected]>
widget/material: correctly apply alpha to ProgressBar color

color.RGBA values are pre-multiplied, so transparency must be applied
to all components.

Fixes ...

7a13c2c905ddb22b22faacaeb89168a282e13073 authored over 4 years ago by Elias Naur <[email protected]>
layout: expand Constraints documentation

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

5a8e1c5acfa84c3bb95fe7ecf8a208853b1143d3 authored over 4 years ago by Elias Naur <[email protected]>
all: use new rectangle and point convenience functions

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

013ea395b4cd396faad3e8d1bfd480956098ae07 authored over 4 years ago by Elias Naur <[email protected]>
layout,f32: add convenience functions for rectangles and points

layout.FRect, layout.FPt for converting from integer to floating point,
useful for drawing opera...

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

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

99080023e449345a116b4f130fcf90685e8b3cb3 authored over 4 years ago by Elias Naur <[email protected]>
layout: add Exact for constructing rigid Constraints matching a size

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

dac8ffc00271ae07c18dcfb1c608f284d9a7f7ea authored over 4 years ago by Elias Naur <[email protected]>
layout: expand Stack documentation

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

8a6d4f699cb7f2c647cb3fff7733bc39bbf19904 authored over 4 years ago by Elias Naur <[email protected]>
layout,widget: transpose Constraints to use image.Points for limits

Instead of

type Contraints struct {
Width, Height Constraint
}

use

type Cons...

7bf3265ccd387d643db3d270bf0f9d6cdc5bedd0 authored over 4 years ago by Elias Naur <[email protected]>
io/system: improve FrameEvent documentation

Phrase stolen from Egon's architecture document.

Replace tabs with spaces in the example while ...

67a9d9e9d7a0a15a7af9fbe38f00886bd0090e26 authored over 4 years ago by Elias Naur <[email protected]>
f32: add package Rect shorthand function

Signed-off-by: Wagner Riffel <[email protected]>

0bf6de6cfad3c716567df99dfa1f9dbb058fb487 authored over 4 years ago by Wagner Riffel <[email protected]>
example,cmd: bump gio version

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

dc7a8fd9ea9c1b2cef765b2e079fc94f2409f773 authored over 4 years ago by Elias Naur <[email protected]>
all: rename io/event.Key to Tag

Key had an unfortunate association with keyboard input.

This is an API change. The following re...

03db2817ace9fcea27ab368efa9154b917929885 authored over 4 years ago by Elias Naur <[email protected]>
example/kitchen: add clipboard example

Updates gio#31

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

e89277951c942593c27271875ddc6087d03bc185 authored over 4 years ago by Elias Naur <[email protected]>
app,io/system: implement clipboard reading and writing

The app.ReadClipboard and app.WriteClipboard can be used to interact
with the system clipboard. ...

59bc001677e2016d734c48ff1aa8f674eef177ca authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] move main thread dispatching to Go

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

503534e84e5943ad5981d644fa61228e11d88294 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window,app/internal/windows: implement Windows clipboard access

Update gio#31

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

f210651b08a313beee1254843964121059b54051 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [wasm] implement clipboard

Update gio#31

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

20fc81a57afb33d6fe0456a1e5bbf25f52449833 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] implement clipboard

Updates gio#31

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

bb4a02babc7bb387514524c37a9b33e5d6a80e1b authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: X11 clipboard support

Updates gio#31

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

7b5a03e0ecd701440f0b092e56fb477f425765bb authored over 4 years ago by Elias Naur <[email protected]>
app: implement Wayland clipboard support

Updates gio#31

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

2da1d37ce72a40864226699cc68f13c1cdb2fe91 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] assume valid view in synchronous draws

Asynchronous drawing happens only in onFrameCallback, where we have to
check for disappearing vi...

3569b0f31be4125e5fbd2797efed69bc1f941b91 authored over 4 years ago by Elias Naur <[email protected]>
app/clipboard: delete

The implementation was too optimistic: some platforms require a
window context for accessing the...

4e3bc8f9aa23874c64c5a4374d605a5c11188548 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] move main thread dispatching to Go

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

85a75ee265ff20e1b9ac9cbe7ff0c4ff52c57dd2 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/app: introduce runOnMain for main thread callbacks

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

65d79f295fe60cdad99429fcbfdea9e967dff10f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [X11] make the notification pipe wakeup only

Before, the wakeup pipe both woke the event loop and implied a redraw.
We're going to use the no...

bd8757e51f0755f90166a75ef515e2e35379f293 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] run most callbacks on the main thread

Before this change, we had a viewDo that serialized a function on a view
on a single goroutine. ...

a3dc2d6cdc88fcaa90557aca5de9605d0f582e23 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] fold header files into Go preambles

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

77899c79d9e5a154c0856f6b403052c2ae0f9675 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: macOS clipboard support

Updates gio#31

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

9534337a43a7d7ef4ac3554bb59448e5245bf0d2 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] implement clipboard

Updates gio#31

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

1e934673d795f437f3394bd0774df58eac8d53ce authored over 4 years ago by Elias Naur <[email protected]>
io/system: add ClipboardEvent for sending clipboard updates

Not wired up yet; each platform needs implementing low-level access
first.

Updates gio#31

Sign...

268e9e44b8fd52a75bb53e319495166931d3a77c authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [iOS] move main thread dispatch to Go

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

fc0c046cab5ea41c3b58702dad74b749ef9af975 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/log: fold header file into Go preamble

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

0da1b1bdbcab7f594a4b6df5e85b904423b3484b authored over 4 years ago by Elias Naur <[email protected]>
app/headless: fold header files into Go preambles

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

cfc1991dedf61f463d22f58207a96a59b976ad31 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] fold os_android.h into os_android.go preamble

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

5a0d18320259d6db35ebc09e980d6a720b2ec089 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] fold os_wayland.h into os_wayland.go preamble

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

bfbb95674baee1b7fb938e71012db35b39531fc3 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] fold header files into Cgo preambles

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

10a81bf217ba9b623485db40498c38fcda6add4a authored over 4 years ago by Elias Naur <[email protected]>
app: ensure waiting window requests are stopped when a window closes

The Android RegisterFragment method would leak a goroutine if called
after the window was destro...

e093ea28f724a24c20f18d4492d97796c7cfff08 authored over 4 years ago by Elias Naur <[email protected]>
app: ignore incoming window events to dead windows

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

53e3f0027c592d61d54635648f55bcef5477f463 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] make notifications wakeup-only

Before, notifying the event loop implied a redraw. Derive the need
for redrawing expliticly and ...

b99151c211b9d09add801103a3156ee63ca9a732 authored over 4 years ago by Elias Naur <[email protected]>
Revert "gesture: only report TypePress for Click gestures if pointer is grabbed"

This reverts commit 062e2bc54b109c3ed6b2fa295c4a63aaedcda95d.

Reason: delays the press too much...

f2fee00bab6e9b25fb123442b011f85ce39d776e authored over 4 years ago by Elias Naur <[email protected]>
app: move GPU context validation and retry logic to separate method

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

fd6f6c448510ab14e06735fa333908b924f194f9 authored over 4 years ago by Elias Naur <[email protected]>
app: move frame waiting code out of Window.run to a separate method

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

56dbaf326a927adb9c770e6a6debd90e656f6a56 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] use a single callback entry for each object

The callbackMap is used to look up Go references in event callbacks. Instead
of registering one ...

1a48b5c33c8b228df098394cb48d8e7aac91b866 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: get rid of the global Wayland display

Instead, create a display for each window.

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

bf129ca989ff59ba3ed376ffe492974f24e30221 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] introduce wlSeat for seat-specific state

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

bc645c3ca448efaa717a4609f1834d0bae5a1c6a authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: rename wlConn to wlDisplay

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

3e648715db454d28f7fe77f0a97124059be3e5a6 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: use a sync.Map for callback references

Multiple Wayland windows are now separate, except for the global callback
reference map. Use a s...

cf72e684b62dac59051d3022698c7b57b78c0e49 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] move window-specific resource checks to window

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

9259b8f743bda5617243ccd9e34f8b5d4e583026 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] move cursor from display to window

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

44aec72d42fceff09866568297ff36f7d2ba0e2c authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: defer window and display destructors

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

9daf082d22f29214659ede242969fbeef9ec9f78 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] move event processing to wlDisplay

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

728c20ab4a4357f76e7f065a042521d101d7e32d authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] move notification channel to wlDisplay

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

26641344bc0e975094de477a83c9a1af91a744f8 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] remove redundant event dispatch

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

55881fc09c185a6f0693a0d6c0583e0b18028e10 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] delete unused field

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

28a3de6e32c9ba77491a4d4cd964abe9f6336544 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: block Main until all windows are closed

With this change, the Wayland backend now supports multiple windows.

Signed-off-by: Elias Naur ...

0181f22d0138eb8e346fee70726b3f8962bf644a authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Wayland] move outputMap and outputConfig to wlDisplay

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

0aa7d4ab3fa78a7d95c46d7761b0d75b18bc1aed authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: move Wayland callback structs into function scope

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

db0af521d0c1931b9e6a2ee62f21a8bf5aedfc62 authored over 4 years ago by Elias Naur <[email protected]>
op/paint: further clarify PaintOp documentation

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

31acd5451e035caa38bcf475eefc67c1bac6d5e3 authored over 4 years ago by Elias Naur <[email protected]>
op/paint: document ImageOp gotcha

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

29c9b06dabc26a6bdb4048e9d5b9b3c95caa8021 authored over 4 years ago by Elias Naur <[email protected]>