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
Before this change, inverse transformations of pointer positions would
stack up, leading to inco...
This commit switches the priority of EGL and Vulkan so that EGL is always
tried first. This is b...
Bump golang/x/exp/shiny to use the specific module,
instead of using a single all-encompassing m...
This commit adds methods to widget.Scrollbar that enable consuming
code to check if the scroll i...
The redundant include also broke CI.
Signed-off-by: Elias Naur <[email protected]>
911b526dc1f70446b924552a20e60b3f22219b1b authored over 2 years ago by Elias Naur <[email protected]>
Window.decorations.height is supposed to be a constant during the
lifetime of the window, unlike...
Before this change, the middle alignment would align according to
the widest child. This change ...
Signed-off-by: Elias Naur <[email protected]>
a55065af9c1e31254e94675841027f0629602b1f authored over 2 years ago by Elias Naur <[email protected]>
Before this change, an IME text edit would always have its newlines
replaced with spaces. Howeve...
This reverts commit cd0c9dab9fcd2dd70f9f900f480473879d16f683. It turns out
that Enter/Leave is i...
Previously, the Inset could be report wrongly when the bottom inset
is smaller than the top.
Si...
65a4366e4468b7b17034fdc0e698c82b790540e9 authored over 2 years ago by Inkeliz <[email protected]>Signed-off-by: Elias Naur <[email protected]>
61b2e376913cb8910928ab895e10458e909c35e0 authored over 2 years ago by Elias Naur <[email protected]>
Before that change, on Android, was impossible to overlay GioView with
a custom view. This chang...
Signed-off-by: Elias Naur <[email protected]>
dbbae0519e248dbfcf8f633b196c66018b15aad9 authored over 2 years ago by Elias Naur <[email protected]>
The Nix version of the macOS toolchain has difficulties compiling
Objective-C modules; disable m...
Signed-off-by: Elias Naur <[email protected]>
f7bc744a24bfdfecf1882d4ccc83e18fa139e5cb authored over 2 years ago by Elias Naur <[email protected]>
We used to track the pressed pointer buttons through the global function
[NSEvent pressedMouseBu...
Previously, Gio doesn't reclaim the focus when they lose that to a
parent window. In such a case...
Signed-off-by: Elias Naur <[email protected]>
26e71011f5363c3a2a514e8cd41cbbd788046222 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Dominik Honnef <[email protected]>
b67bef3e0d961e1c04eb4f9f449903a625664d5b authored over 2 years ago by Dominik Honnef <[email protected]>Signed-off-by: Dominik Honnef <[email protected]>
b9416c7c9c72efa9773bb789be5f47790a4f359f authored over 2 years ago by Dominik Honnef <[email protected]>
When a key.InputOp is focused, a key.Event is matched to it and its ancestors.
If there is no fo...
Pass through a fallback window decoration height to the Wayland backend,
so that it can account ...
When a window is destroyed, it is no longer valid to call its wakeup
method.
Thanks to Jack Mor...
63d2353864371fb07f7959c23deeb8bb3f39bff0 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: psydvl <[email protected]>
e711cbc004b21f1f40b937ff7438478795aadcbd authored over 2 years ago by psydvl <[email protected]>Matches the other platforms.
Signed-off-by: Elias Naur <[email protected]>
c73125e1c3f63f7eb6fd099de650b601a527bc42 authored over 2 years ago by Elias Naur <[email protected]>
This commit adds a simple linear-history undo/redo mechanism to
widget.Editor bound to Short-(Sh...
Signed-off-by: Elias Naur <[email protected]>
1d9ab6531396466de17614cfbb21b04ec6423b4a authored over 2 years ago by Elias Naur <[email protected]>
ChangeEvent contains no information, so emitting multiple instances
per layout is pointless.
Si...
48e9cdaffd75219d76ffe5bd7df275cbb553bc72 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
53da73de35dbdaf1cc77f6ebb7a99c1d6cc3208d authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
162250392b3b2423f3e019bfbc25584e2b0192e7 authored over 2 years ago by Elias Naur <[email protected]>
The input op started listening to Return, however the check
was looking for Enter.
Signed-off-b...
b4acc239cd5b4b54787531409de8a7d2dd18c75b authored over 2 years ago by Egon Elbre <[email protected]>Signed-off-by: Egon Elbre <[email protected]>
0777afb85f900d86e34027aa9c2bc33323316e6d authored over 2 years ago by Egon Elbre <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/434
Signed-off-by: Elias Naur <[email protected]>
Using clean struct creation creates a lot of temporary variables in
assembly. Inline the assignm...
By keeping all the information in a single map, we avoid multiple
lookups and can switch between...
Size and NumRefs are always used together, so consolidate info to
a single table to avoid two se...
Signed-off-by: Egon Elbre <[email protected]>
f8efc9c2a6af4f93eb005891284e83e89e76364f authored over 2 years ago by Egon Elbre <[email protected]>Signed-off-by: Egon Elbre <[email protected]>
e7dd180447288c27ef087d36b3f56d1b3e9ca58f authored over 2 years ago by Egon Elbre <[email protected]>Signed-off-by: Egon Elbre <[email protected]>
d3d2c5171739622072df2f0204b8e34517d048af authored over 2 years ago by Egon Elbre <[email protected]>
splitTransform func was creating multiple copies of f32.Affine2D
due to not having access to the...
Previously each call was ~100ns, the new implementation is ~1ns.
Signed-off-by: Egon Elbre <ego...
3670f70c010f6453dfebacfc694fa0ed0704e814 authored over 2 years ago by Egon Elbre <[email protected]>
As reported by Chris Waldon, the resize area is big enough to make
it hard or impossible to grab...
Signed-off-by: Elias Naur <[email protected]>
2957d007a25ff4ec8c6858a056cfd40275393695 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
cab11848181a2b0a8390948e9fc197cba20ea60d authored over 2 years ago by Elias Naur <[email protected]>
This commit updates the way that we change cursors so that the
hotspot of the cursor is properly...
Previously, we'd scroll so the new viewportStart corresponded to the
clicked position. This felt...
Signed-off-by: Dominik Honnef <[email protected]>
6981a887208cf6e5c9350c7e0d2440e8074e0783 authored over 2 years ago by Dominik Honnef <[email protected]>
Once the user begins dragging, the cursor can move outside the clip
area (or even the window on ...
Signed-off-by: Dominik Honnef <[email protected]>
f229601e2dc0a7177775ae9334d494339600b89d authored over 2 years ago by Dominik Honnef <[email protected]>Signed-off-by: Dominik Honnef <[email protected]>
aea376fbafe9cc87ed67c2461379e36a9c372c67 authored over 2 years ago by Dominik Honnef <[email protected]>
Before, we would set s.dragging to false on pointer.Release and then
immediately set it back to ...
Signed-off-by: Elias Naur <[email protected]>
d8766f6d2ddf670a9fb8fa9828aa55c656966a28 authored over 2 years ago by Elias Naur <[email protected]>NSWindow.zoom is what the native window control calls when maximizing.
Signed-off-by: Elias Nau...
fa3978e18ea5323ffc015794a614a5473aab1b40 authored over 2 years ago by Elias Naur <[email protected]>
Before this change, Perform and Configure could be called during the
event processing where addi...
Use binary.LittleEndian directly instead of going through the
binary.Write indirection. This all...
This patch ensures a correct transition from Minimized to Windowed.
Signed-off-by: Elias Naur <...
4d593927aeadd3ae41db0edeedf1fe727b05a9f7 authored over 2 years ago by Elias Naur <[email protected]>This case was missed in 69e4a3cff3c697db9f024985d8cec271269dab3a.
Signed-off-by: Elias Naur <ma...
5dc8e0e39d076275c62a7aa58b8061fe64da6c8f authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
29f4a1d07b903a6c2f48acf1d55affa500f28de1 authored over 2 years ago by btop <[email protected]>Signed-off-by: Elias Naur <[email protected]>
b82b9b258a7ad1c1d838a8ba8acab404664cde23 authored over 2 years ago by Elias Naur <[email protected]>
As suggested by Egon Elbre, passing a large struct of function pointers
forces Cgo checks on all...
ackEvent is not necessary, a nil event.Event doesn't allocate.
Signed-off-by: Elias Naur <mail@...
fa538f219f3536d6890a0f658c7dddf8dc09f5d2 authored over 2 years ago by Elias Naur <[email protected]>This broke during an earlier refactor.
Signed-off-by: Elias Naur <[email protected]>
546d971e49f8d9d28235f154b6bba745a6e913bf authored over 2 years ago by Elias Naur <[email protected]>
This commit adds support for the commonly-used XCURSOR_THEME and
XCURSOR_SIZE environment variab...
This commit scales both the loaded cursor theme and the cursor
surface appropriately so that the...
The app.Window.Perform(ActionMove) is the wrong abstraction for
initiating a move gesture: Windo...
Allowing clients to initiate resize gestures is a waste: macOS
doesn't support them, and the onl...
We're about to remove the client-controlled system.Action machinery
for resize gestures initiate...
Signed-off-by: Elias Naur <[email protected]>
5bdf5950b26f2fca08921f930ac25f3f34c366bd authored over 2 years ago by Elias Naur <[email protected]>
This change is a refactor to make undecorated window support easier
to implement.
Signed-off-by...
2973c7fa5acdb2434d5156c54e6bfd6df9ae973d authored over 2 years ago by Elias Naur <[email protected]>
We're about to remove the system.Action machinery for initiating resize
gestures. This is the Wa...
We're about to remove the WS_OVERLAPPEDWINDOW style for undecorated
windows, in which case the f...
The redraw machinery will take care of it like any other resize.
Signed-off-by: Elias Naur <mai...
5e7bf1716e45744759665b769e52e41e04d02eba authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
8ef0ad43cb15b82d7653a5158fbc8c8c9e78db6e authored over 2 years ago by Elias Naur <[email protected]>
ShowWindow(SW_SHOWMAXIMIZED/SW_SHOWNORMAL) is what changes the
window size and state.
Signed-of...
df43ba8be0f767fba05fa324b487703711b27236 authored over 2 years ago by Elias Naur <[email protected]>
As I read the SetWindowPos documentation, SWP_NOZORDER is the correct
flag for keeping the z-ord...
The redraw machinery takes care of it automatically.
Signed-off-by: Elias Naur <mail@eliasnaur....
45443a2c3ab7b00dce8694ecc9ec32cb5bfb5609 authored over 2 years ago by Elias Naur <[email protected]>
Not only is the client guaranteed a ConfigEvent, but app.Window
can assume that an unsupported d...
Signed-off-by: Elias Naur <[email protected]>
c5e07ba01fa65d8b711b786897264b8ff951b6f6 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
8457df2d1fa72063ee1692c98e00b31160b1a3e7 authored over 2 years ago by Elias Naur <[email protected]>
Style values are ephemeral, and pointer methods can't be called in
the same expression a style v...
Until now, fallback decorations were only needed for Wayland client-side
decorations. We're abou...
We're about to enable platform support for switching native
window decorations on and off. Howev...
Apparently, there is a rounding error somewhere in the pipeline
from clearing a FBO to downloadi...
Signed-off-by: Elias Naur <[email protected]>
371de3462b76f6b80647cc9608bc0d6c9ca33280 authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
43116400d041787be246d9f73f84297815994e97 authored over 2 years ago by Elias Naur <[email protected]>
Before this change, client-side decorations for Wayland were drawn
before client content, which ...
The xdg_toplevel expects the min/max window size in DP rather
than pixels. The scaling factor wo...
Not all wayland compositors advertise the global registry events
in the same order. In particula...
Commit 02732037436f547717ec53073ce8b295329c9bd8 removed the snippet
restore event, which broke I...
It's sometimes necessary to specify padding or spacing based on
the text size.
Signed-off-by: E...
72669e19bc294837b84f8f8a1c5c64dab869f8ab authored over 2 years ago by Egon Elbre <[email protected]>
Direct3D requires GPU vertex attribute structs sizes be a multiple
16. A cleanup commit removed ...
There was nothing relevant in it.
Signed-off-by: Elias Naur <[email protected]>
a10a8a816a552eb3ee291a879c5547a1ee4cb14e authored over 2 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
916efb4612e7eda3e1262952c3abc9ae14019cc1 authored over 2 years ago by Elias Naur <[email protected]>
This commit alters the method we use to check for valid cache hits
in the text path cache. Previ...
Otherwise, running Gio programs fails with an error because of
GPU driver mismatch.
References:...
9bf68963dacb9dccd5616fcd902e3dda46452a95 authored over 2 years ago by Elias Naur <[email protected]>
This reverts commit a896a467ecae9a9ac360b42f27f364b126c66879. Because
of
https://github.com/Ni...
4872bd3cd62c65ef1534bf4d9ed6eb1bf171036e authored over 2 years ago by Elias Naur <[email protected]>
When a key.InputOp is focused, keypresses that it does not explicitly
include in its key set sho...
A `flake.lock` file pins the versions of packages Gio requires to build.
However, pinning the `l...
There are no public API that uses f32.Rectangle anymore. Move Rectangle
to an internal package f...