-
Notifications
You must be signed in to change notification settings - Fork 0
update gio version #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
inkeliz
wants to merge
29
commits into
inkeliz:main
Choose a base branch
from
gioui:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stack.Layout and Flex.Layout caused a lot of heap allocations / escapes. The reason was that scratch space for dims and call and was inside Stack/FlexChild. child.call.Add(gtx.Ops) confused the go escape analysis and caused the entired children slice to escape to the heap, including all widgets in it. This caused a lot of heap allocations. Now the scratch space is separate from children, and for cases len(children) <= 32, we will allocate the scratch space on the stack. For cases len(children) > 32, only the scratch space gets allocated from the heap, during append. Signed-off-by: vsariola <[email protected]>
Signed-off-by: Marc <[email protected]> Signed-off-by: Elias Naur <[email protected]>
The Windows Pointer API (https://learn.microsoft.com/en-us/windows/win32/api/_inputmsg/) was used to allow the detection of events when interacting with touch screens. This also opens the gates for supporting other types of input devices (e.g. pens and touchpads). Mouse events are now part of the pointer events (primary events trigger WM_POINTER<DOWN|UP>, whereas secondary ones vanilla WM_POINTERUPDATE, and cancellations WM_POINTERCAPTURECHANGED). A fourth and fifth button (usually found in modern mice) has also been added for completeness, though their integration in other OS-es shall be the objective of future patches. Signed-off-by: Marc <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Currently build fails as go.mod uses go 1.23.8 which doesn't have strings.SplitSeq. Note: strings.SplitSeq was introduced in go 1.24. Signed-off-by: Miles Alan <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/654 Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
The normal vector size and direction depend on the input point and the sign of the unit value provided. Fixes: https://todo.sr.ht/~eliasnaur/gio/576 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
There are two max window size settings on macOS, `contentMaxSize` and `maxFullScreenContentSize`. Set the latter to avoid a window being resized larger than its maximum in full screen mode. Signed-off-by: Elias Naur <[email protected]>
According to @kkeybbs, pressing the maximize button on Windows only resizes the window up to its maximum bounds. That means we can leave the button available, and only hide it when the window has a fixed size. Signed-off-by: Elias Naur <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/656 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Cancel events affect the entire gesture and as such all active pointers. References: https://todo.sr.ht/~eliasnaur/gio/657 Signed-off-by: Elias Naur <[email protected]>
This is a breaking change, users that need the old behavior can implement it using the existing API. Fixes: https://todo.sr.ht/~eliasnaur/gio/511 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Avoids unnecessary eglMakeCurrent and thread locking calls to enhance performance. Fixes: https://todo.sr.ht/~eliasnaur/gio/658 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Reduces ambiguity by introducing AffineId() for representing identity transformation matrices. References: https://todo.sr.ht/~eliasnaur/gio/655 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
References: https://todo.sr.ht/~eliasnaur/gio/655 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
References: https://todo.sr.ht/~eliasnaur/gio/655 Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
After moving the pen, the next action should update the bounds for the start position. References: https://todo.sr.ht/~eliasnaur/gio/451 Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Fixes: https://todo.sr.ht/~eliasnaur/gio/534 Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Fixes the edge case where a zero point would be normalized to NaN. Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
This fixes the cases where the unit length matches the hypotenuse. Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Signed-off-by: Walter Werner SCHNEIDER <[email protected]>
Fixes the 1px overlap of curve quads. Without this patch the rendered quads were skewed vertically and were 2 pixels shorter in height. The NorthWest pixels were moved to the SouthWest instead of NorthWest and the SouthEast pixels were moved to the NorthEast instead of SouthEast. References: https://todo.sr.ht/~eliasnaur/gio/339 Signed-off-by: Walter Werner SCHNEIDER <[email protected]> Signed-off-by: Elias Naur <[email protected]>
Using cgo.Handle allows us to pass a reference to a Go function through the GCD API for running main thread code, saving a goroutine and a channel. Signed-off-by: Elias Naur <[email protected]>
Inspired by the discussion at golang.org/issue/70089, this change makes our particular NSApplicationDelegate implementation optional. Signed-off-by: Elias Naur <[email protected]>
This reverts commit 3e601e7 because it results in a blank window on Android. Signed-off-by: Elias Naur <[email protected]> Fixes: https://todo.sr.ht/~eliasnaur/gio/671
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.