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
There's no need to track cursors separately from areas.
Signed-off-by: Elias Naur <mail@eliasna...
3e18a310af312d0daa61a80cffc386f45d586086 authored almost 3 years ago by Elias Naur <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/373
Signed-off-by: Elias Naur <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/372
Signed-off-by: Elias Naur <[email protected]>
Previously, the window size is equal to the screen size. That doesn't
consider the size of the t...
Fixes the build.
Signed-off-by: Elias Naur <[email protected]>
2b0898fc67debea16736a211c600ba1bb0a8d0c0 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
c0c25b777b1e3a394156dac5f6acfca4f62d6fd4 authored almost 3 years ago by Elias Naur <[email protected]>We're about to use it to store the Go window cgo.Handle.
Signed-off-by: Elias Naur <mail@eliasn...
95365d587865d24a0cdf7f208e1fe79faa5371ef authored almost 3 years ago by Elias Naur <[email protected]>
Before this change, the iOS backend would not report decoration
support at window creation.
Sig...
b9e8a177f0e602a6e14b181e95a7ed77fe36ff5b authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
09309d330d0b809f02c3ef9ab2d715bd31668c47 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
fea2f888bbc0e6d370f07c67ef3503907b1bf153 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
af8ca964144ddbc927dca78e501e8a53e852bc02 authored almost 3 years ago by Elias Naur <[email protected]>
GioView.onCreateView may call methods on the imm field of GioView.
Make sure it is initialized b...
This commit adds a check that caret coordinates never exceed
the max constraints of the editor.
...
The monitor may have a different backing store scale, yet the
system doesn't redraw automaticall...
This reverts commit 11f39582b84703c33d3aae4c1b703698a1bb4ea6 that
introduced pacing of display l...
It's now possible to directly user pointer.Cursor to add to the ops.
pointer.CursorText.Add(...
cdb288d1f98a50b377cc6e916edabb297977670d authored almost 3 years ago by Egon Elbre <[email protected]>Add most of the common cursors defined by different systems.
Normalize cursor names to match CS...
4172566aad20b09eed0803873f15942671ccb10c authored almost 3 years ago by Egon Elbre <[email protected]>
This commit fixes the position returned by Editor.CaretCoords
to account for the scroll position...
Signed-off-by: Elias Naur <[email protected]>
79bfd3adbd3200e6964c4f4ad5912c7aad092919 authored almost 3 years ago by Elias Naur <[email protected]>
Mapping it to key.NameReturn confuses widgets such as Editor that
treats clicks separate from re...
Signed-off-by: Elias Naur <[email protected]>
50e35c9c3fd2bd6c3a74f5b2eac09ae298449a0a authored almost 3 years ago by Elias Naur <[email protected]>
Events such as system.CommandEvent may result in Invalidate being
called. Ensure animation state...
Matches the usual behaviour of GUI toolkits.
Signed-off-by: Elias Naur <[email protected]>
aaf457d6e1a5b90b71c35798e81d6cb3513d3344 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
2bea9a373691c7dedc5f31c0aa580b34fda696eb authored almost 3 years ago by Elias Naur <[email protected]>Refactor to enable Hovered for light widgets.
Signed-off-by: Elias Naur <[email protected]>
b74c9f96035df39f23a265a172343baa641d41df authored almost 3 years ago by Elias Naur <[email protected]>
Implement support for up/down/right/left directional focus moves
and map Android directional pad...
Fixes: https://todo.sr.ht/~eliasnaur/gio/195
Signed-off-by: Elias Naur <[email protected]>
Matches the other platforms by distinguishing NameReturn from NameEnter.
Signed-off-by: Elias N...
eb48b45913ff92b6825f54cb08921b07555c65f8 authored almost 3 years ago by Elias Naur <[email protected]>
This change adds focus and keyboard control to Clickable widgets.
They now consider a press of t...
Signed-off-by: Elias Naur <[email protected]>
8ff10a2068be5fd24e92603ab3f75911bb26ef8c authored almost 3 years ago by Elias Naur <[email protected]>
For some reason, widget.Editor had a Seek method that ignored
the supplied offset and always see...
This change solves an issue where an editor key press such as
backspace would apply before the I...
The names are a better match for layout.Direction.
Signed-off-by: Inkeliz <[email protected]>
730e04630ce5314dda1b68aa3372ff9834cf0030 authored almost 3 years ago by Inkeliz <[email protected]>
Apparently, a Wayland server such as Sway and River may not issue
a frame pacing callback create...
Fixes: https://todo.sr.ht/~eliasnaur/gio/367
Signed-off-by: Elias Naur <[email protected]>
Signed-off-by: Egon Elbre <[email protected]>
e9e00994cf79350a11be4032e084462b7f35fb60 authored almost 3 years ago by Egon Elbre <[email protected]>Signed-off-by: Egon Elbre <[email protected]>
b7a42da386e6e4fb29638cd8f00b5fdab726d03e authored almost 3 years ago by Egon Elbre <[email protected]>
Pointer padding was introduced in bfece0bebacb5cec4fdf5682b886333e03b6549b.
I don't remember why...
Fixes: https://todo.sr.ht/~eliasnaur/gio/361
Signed-off-by: Pierre Curto <[email protected]>
When dragging objects around an area, it is easier to
reason with the relative movement of the d...
see https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_DPAD_CENTER
cc https:...
27762fdd465845931cd3bdec73ad1fdad1188e17 authored almost 3 years ago by Aman Karmani <[email protected]>The replacement functions all use the single seeking function, seekPosition.
Signed-off-by: Eli...
41489fb7321f14bff0041c4fca6b4dc691f6dc66 authored almost 3 years ago by Elias Naur <[email protected]>
We'd like to re-use the Editor.closestPosition seeking for
segmentIterator.Next; this change ext...
Commit c22138f5f broke it, this change fixes it.
Signed-off-by: Elias Naur <[email protected]>
2df3db361f2899da265dff9f23ed601ef74d44bf authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
845d35dd502f510f8d7b52c5cd522b1956737c01 authored almost 3 years ago by Elias Naur <[email protected]>
Before that patch, the Call function was used to call each
JS function related to WebGL. The Cal...
The recent IME changes broke Wayland key repeating. This change
fixes it.
Fixes: https://todo.s...
0d32ab3f62dc6c5c15f542f4e045106ed795c058 authored almost 3 years ago by Elias Naur <[email protected]>
This change implements reporting of the caret position from Editor, as well
as Windows, macOS, A...
References: https://todo.sr.ht/~eliasnaur/gio/246
Signed-off-by: Elias Naur <[email protected]>
Signed-off-by: Elias Naur <[email protected]>
3eeb08b4a1ce65092fcbba482a288113e5d97733 authored almost 3 years ago by Elias Naur <[email protected]>Go issue #34474 was fixed in 1.14 and backported to 1.13.
Signed-off-by: Elias Naur <mail@elias...
cffa748c6a02bba2535e326f9d6429ec5252cb00 authored almost 3 years ago by Elias Naur <[email protected]>
EditorStateChanged is only called when the old and new states
differ.
Signed-off-by: Elias Naur...
bace7062406ff1d1708576a877108ea5be76d40a authored almost 3 years ago by Elias Naur <[email protected]>
When a text range in the IME snippet is replaced, the replacement
is discarded if the range don'...
This commit adds a testcase to catch unexpected panics in the
editor's scroll offset logic intro...
Fixes: https://todo.sr.ht/~eliasnaur/gio/358
Signed-off-by: Elias Naur <[email protected]>
Backend.queryState sets GL_ACTIVE_TEXTURE to access texture bindings; this change
makes sure GL_...
Signed-off-by: Elias Naur <[email protected]>
887ba1b6e9e303e85467d4f58151fefd91974ce6 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
912ddb95f8de6050fd5e9c0f267b28a8bee689f5 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
b162ed56d78978f539acd8aa0366c861f41f5d1b authored almost 3 years ago by Elias Naur <[email protected]>They're easier to test and can be re-used for macOS/Windows.
While here, add a Go 1.18 build ta...
98b02176dba2e6e9d45a0707063788e3283be75b authored almost 3 years ago by Elias Naur <[email protected]>UTF8String is lossy in the presence of nul (\x00) runes.
While here, don't CFRelease the input ...
ef9e4071e72463e6ff639b3d261de007225d55db authored almost 3 years ago by Elias Naur <[email protected]>
This commit ensures that the edit buffer used by widget.Editor
does not get EOF when trying to r...
Signed-off-by: Elias Naur <[email protected]>
e32925d6a3c44984c4d4e38e94536c50acb0b503 authored almost 3 years ago by Elias Naur <[email protected]>
Only rune positions are tracked for carets, and they only need adjusting
when changing Editor co...
A range loop may not see all items in a slice that is appended to during
iteration. Convert rang...
References: https://todo.sr.ht/~eliasnaur/gio/331
Signed-off-by: Andy Balholm <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/116
References: https://todo.sr.ht/~eliasnaur/gio/246
S...
The other information can be queries at use.
Signed-off-by: Elias Naur <[email protected]>
c22138f5f81c8e97841b605a1f7f5728cb3e3b30 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
e323afa82248f154191b4d68f57ae6a0ce46621d authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
ff245361a4a4394a982d6fe6e52061150924e9bd authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
45078813b39e1755fede98aa97983b0bdd59d959 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
3a70eaa9c12a217c850dd49c20c7524ae62c63af authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
3ce403f8514546b7e1c4158a83536cc3dbdc5550 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
c071750ed9f596346a3193507a0e2437b1e23a54 authored almost 3 years ago by Elias Naur <[email protected]>This change uncovered and fixes a bug in nullLayout.
This is an API change; the methods operate...
44e019617366f047a660156c8106da2a724de8a9 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
2babf3b99726613e4417abac92b88e6ae00b54f5 authored almost 3 years ago by Elias Naur <[email protected]>An efficient index replaces all other ad-hoc caret positioning methods.
Signed-off-by: Elias Na...
b9e8c4eda8aba46faa03a093e58b855359692a9c authored almost 3 years ago by Elias Naur <[email protected]>
It used to return an iterator function, now it just takes the result
of a previous call.
Signed...
3614782e0d6ff295617037b54feedeb623a29ba0 authored almost 3 years ago by Elias Naur <[email protected]>Needed for efficient implementation of the upcoming IME interface.
Also introduce Editor.replac...
d0869ef4574a23e559467393c7070aa1d6c16eb4 authored almost 3 years ago by Elias Naur <[email protected]>
Editor is only interested in one xoff value, this change makes it so
it's the only one tracked.
...
app.Window.Event is no longer safe to call for goroutines outside the event
loop. This change en...
Signed-off-by: Elias Naur <[email protected]>
1c2e96bcc79f93830f21fe6f5839998373a95768 authored almost 3 years ago by Elias Naur <[email protected]>Signed-off-by: Elias Naur <[email protected]>
4416a137865b19116e0bd201c30b23eccc3cc20b authored almost 3 years ago by Elias Naur <[email protected]>Fixes the opengl example on client-side decorated Wayland servers.
Signed-off-by: Elias Naur <m...
12deba21952653695bff65eb32f8ca3f5b448eac authored almost 3 years ago by Elias Naur <[email protected]>
This commit changes the definition of app.ViewEvent on Unix systems
to be an interface implement...
This new method performs user related actions on the Window, supporting custom window decoration...
74acc90789aa514153189cc0429d13e37721c049 authored almost 3 years ago by Pierre Curto <[email protected]>
Tools such as the Android SDK `d8` looks for Java tools in JAVA_HOME
before PATH. We should matc...
Simpler, and makes sure buffer scaling is set correctly regardless of
the CustomRenderer setting...
According to the d8 documentation[0] `--lib` should be used to specify
the path to android.jar, ...
Move Decorations to the widget package and
rename material.Decorate to material.Decorations.
Thi...
Small note to make clear how the window behaviour
changes when you call for custom rendering.
F...
4f9d063e1386df28c2ec5744b9ca8b8b942843bc authored almost 3 years ago by Jack Mordaunt <[email protected]>
There's no reason xdg_surface_ack_configure can't be called immediate,
do that. Then, replace ca...
This is effectively a revert of b2a99fddcad3c952cc7e0dfb05021c57de072693,
which broke Window.Run...
The fix for #340, b2a99fddcad3c952cc7e0dfb05021c57de072693, deferred
all driver functions until ...
Upon initialization, the reported window size
was incorrect.
Signed-off-by: Pierre Curto <pierr...
7648a5e38123417c8d336ad2b424337da5417c27 authored almost 3 years ago by Pierre Curto <[email protected]>
Fix actions not processed and move the Layout method from
Decorations to DecorationsStyle.
Also...
030fd8a171a5328268aa7341964dbadf92262a95 authored almost 3 years ago by Pierre Curto <[email protected]>
This patch implements a mechanism for customizing window
decorations.
If a window is configured ...
According to
https://gioui.org/issue/347 and
https://github.com/godotengine/godot/issues/43714
...
Simplify callbacks.Event a bit while here.
Fixes: https://todo.sr.ht/~eliasnaur/gio/348
Signed-...
For some reason, the Mesa OpenGL software renderer fails to correctly
render some of the tests i...