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

example,cmd: bump gio version

Signed-off-by: Egon Elbre <[email protected]>

7c98e679efa34a0e553f881ddccf404243adea3f authored over 4 years ago by Egon Elbre <[email protected]>
app/internal: [Windows] support Window.Close

Signed-off-by: Egon Elbre <[email protected]>

0b713032fbff7d5fbcb5398bea6a369071646c35 authored over 4 years ago by Egon Elbre <[email protected]>
cmd/gogio: mention that Android builds include jar class files

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

c35d81e828b096fea6cbb372ffbe2e6fe812c051 authored over 4 years ago by Elias Naur <[email protected]>
app,app/internal/window: [macOS] add app.Window.Close for closing a window

Recently support was added for multiple top-level windows. Add support
for closing those windows...

602d54dc5ef72ff66eba2b2a38da2ba7c9be4d17 authored over 4 years ago by Larry Clapp <[email protected]>
go.*: update golang.org/x/image

For the font fix: https://go-review.googlesource.com/c/image/+/237900

Signed-off-by: Elias Naur...

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

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

dd225d5d07f0aaaae77b4562466af66ce8ce3ec3 authored over 4 years ago by Elias Naur <[email protected]>
all: make unit.Converter concrete and rename to Metric

An interface for scaling dp and sp is overkill, at least for all
current uses. Make it a concret...

596e32161041eb3b4b064942a0be5cb728a3793a authored over 4 years ago by Elias Naur <[email protected]>
op: add note that Ops.Reset invalidates recorded macros.

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

1603a6f3eef36931395538ae58d93646877347fe authored over 4 years ago by Elias Naur <[email protected]>
layout: add WeightSum to Flex for overriding the Flexed total weight

Updates gio#139

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

3b54c665ca4dea212b8f639023e22915738f4a94 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: set WM_CLASS to binary name

WM_CLASS is used by Linux desktops to provide hints for window
grouping, icons to show and start...

a3f7eaae0857a6d5093f9f851a8d1b81d1ad4dda authored over 4 years ago by Jason <[email protected]>
example,cmd: bump gio version

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

1eedd19231a9a21334ec73122570b935475639b1 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/egl: [Android] fix sRGB on Samsung S9

At least one Samsung S9 device ignores the sRGB setting if the context
wasn't created with alpha...

c2f99fb0e99c2fc1b4fd099b66552e7d0b01006b authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] implement scroll factor fallback for < API 26

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

04e605c1b263ac4a121392002bc7b1c9eebdb25b authored over 4 years ago by Elias Naur <[email protected]>
example/kitchen: add flag to draw all widgets disabled

This adds a --disable flag to the kitchen example so that it's easy
to preview what all widgets ...

5214b26731a66d936229e11112bc2b3df872be5c authored over 4 years ago by Chris Waldon <[email protected]>
widget/material: add disabled state support to all widgets

This commit configures all remaining widgets to draw themselves in a disabled state
when their l...

9f6e09317d8040f4e77bbf9abe6b682f06465ac9 authored over 4 years ago by Chris Waldon <[email protected]>
app/internal/window: [Android] implement mouse scrolling

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

feacd1e2df1f12c6ae5756ac2d1554a26657c440 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] make runOnThread independent of a valid GioView

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

f36674ddb3d645d0987bff5b6b7dd7db1d4883f1 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] replace RegisterFragment with Do

Do is a function for accessing the underlying Android View in a safe
context, the main thread. D...

8688ed95c255536aaf9b600f2e9a21edb9f2f300 authored over 4 years ago by Elias Naur <[email protected]>
cmd/gogio: [Android] mark GioActivity ready for multi-window configuration changes

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

d045f492b41862c1e5d1ad24029157ab99a5e23c authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] skip redraw for destroyed views

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

65d9a9d1f160cb7a8bd80e5a3b66a51cd2f88519 authored over 4 years ago by Elias Naur <[email protected]>
app: drop Go 1.12 support

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

fda6fbcf84e07b20c8ef478895da716241ace112 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] use app context for clipboard access

The Activity context may not be available, so it's safer and simpler
to use the always available...

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

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

8a5f3f3dd5746682e6c9ca3511131177cb025d23 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/d3d11: tolerate padded row pitches from D3DDeviceContext::Map

Fixes gio#136 (I think)

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

1b944c8e65563c0adb4d5685d13d5438d6b5376e authored over 4 years ago by Elias Naur <[email protected]>
widget: use byte length when comparing with caret position

Fixes misaligned carets when the Editor text contains code points
represented by multiple UTF-8 ...

2dc19a36959c6e4a5e99a13e6ade83eeb5b3d164 authored over 4 years ago by tainted-bit <[email protected]>
example/kitchen: ensure widgets are enabled when taking a screenshot

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

4c28369aa2def353cb62ff7ca33514cf2c6c98d6 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Android] unregister focus listener on destroy

Updates github.com/tailscale/tailscale/issues/431

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

6d5fbcba3f21ea92acfbe1232088f27e4009ca3b authored over 4 years ago by Elias Naur <[email protected]>
widget/material: make Switch disabled color configurable

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

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

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

bb8bb504d82965be7746bcb687a064e13fed3954 authored over 4 years ago by Elias Naur <[email protected]>
layout: make Flexed weight a weight, not a ratio

It's more intuitive to specify the weight as a ratio of the total
weight of all Flexed children ...

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

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

b1df2a61a9f7433180a99d8de8cad3144aedf319 authored over 4 years ago by Elias Naur <[email protected]>
all: move Now from system.Config to system.FrameEvent

Then, make layout.Context.Now a field, copied from FrameEvent.Now.

API change:

gofmt -r 'gtx....

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

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

81a84d874b5ab98578df31e6789bf84ee1e0e2e7 authored over 4 years ago by Elias Naur <[email protected]>
layout: change NewContext to take the FrameEvent directly

The layout package imports io/system anyway, so depending on
FrameEvent does not introduce new d...

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

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

566132b4f573e05d14252ddf6bc8d9e8ec50d0a9 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: fade out inkwells a little longer than their expansions

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

a24a2c9fb6a5b188b138929dc57450924178cf88 authored over 4 years ago by Elias Naur <[email protected]>
widget,widget/material: convert Switch to use Clickable

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

0715c801e236eb4826942b661ee10504a206f2e6 authored over 4 years ago by Elias Naur <[email protected]>
widget: immediately fade out cancelled button press inkwells

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

f7fea02312bfb701cb231c73797fba4f874eb8a0 authored over 4 years ago by Elias Naur <[email protected]>
gesture: remove Click.State and cancel Click gesture on outside Release

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

5e37a64ff126d70abb2f6c2538b31f23d4dd3e02 authored over 4 years ago by Elias Naur <[email protected]>
io/router: report Enter events for touch press events

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

1c6809142f1eb998f73c6eb32afd69dc452170d1 authored over 4 years ago by Elias Naur <[email protected]>
widget,gesture: fade out cancelled inkwells

While here, adjust inkwell sizes to match gtx.Constraints.Min.

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

ce5646492362c45de276450e6288041cca63b379 authored over 4 years ago by Elias Naur <[email protected]>
widget/material: fade in inkwells

When a clickable is pressed and dragged any enclosing List will grab and
cancels the press. To m...

36f4267a6c235f476346de132fc05aa7bac71757 authored over 4 years ago by Elias Naur <[email protected]>
gesture,widget: drop press markers on gesture cancel

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

0444caa9e36c34f88593e13678671585123d3f59 authored over 4 years ago by Elias Naur <[email protected]>
io/router: deliver Release before Leave

Fixes a problem where a touch Release would signal gesture.Click
that it had left just before cl...

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

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

1ace1392d6553037ddc03b102ae1cbab210ff844 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] retain NSWindow instance

Updates (maybe fixes) #130

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

6f15275e223cd71b329d653c566ccceb849adf5f authored over 4 years ago by Elias Naur <[email protected]>
Partially revert "gpu: saturate instead of overflowing depth buffer"

This reverts commit 504664e01497a60f063c8fc4b257a0d9b6886fc2.

Reason: Doesn't work.

Signed-off...

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

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

06f6f54b2d2519abfa4c1b931840441d4c6fdc97 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] don't set callbacks before window is ready

Updates gio#130

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

98a603aed6d63fc7d1c7348d56efb699f2ff7891 authored over 4 years ago by Elias Naur <[email protected]>
gpu: saturate instead of overflowing depth buffer

Use greater-than-or-equal test and saturate the z depth buffer
when more than 65k objects are dr...

504664e01497a60f063c8fc4b257a0d9b6886fc2 authored over 4 years ago by Elias Naur <[email protected]>
gpu: panic on z-buffer overflow

Drawing more than 65k objects is reasonable, but not today.

Updates gio#127

Signed-off-by: Eli...

52864950f139e4b354e2b33024e50c7d29e1f208 authored over 4 years ago by Elias Naur <[email protected]>
io/router: merge grab and types for multiple InputOps for same handler

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

700d8d8c2c6d212d6106fc9a2b8c79517780a469 authored over 4 years ago by Elias Naur <[email protected]>
io/router: support multiple pointer areas for same tag

Fixes gio#129

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

ea85e80dc8dfe639a87f823a8781f623f7603670 authored over 4 years ago by Elias Naur <[email protected]>
io/router: shorten tests by using f32.Pt short-hand

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

1c68b7d585ffb7055eb04b52e090ec63b4169e5b authored over 4 years ago by Elias Naur <[email protected]>
io/router: remove redundant pointerHandler.transform field

The area transform is already stored in areaNode.

Updates gio#129

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

35e477757bf45b6db52482838e7599e8ed7746d6 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Windows] avoid race between Main and window closes

While here, replace the window hwnd-to-window map with a sync.Map.

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

64a516d7c9c0ebb4ca84719f6f7d9ab915155bf9 authored over 4 years ago by Elias Naur <[email protected]>
example/kitchen: add a button that is {dis,en}abled by the switch

This adds a simple button that defaults to being disabled, but can
be enabled by toggling the st...

bda315e6870ba8139570fb3eebafab40d7cb683f authored over 4 years ago by Chris Waldon <[email protected]>
layout: add Disabled method to Context

This adds a simple method that returns a copy of the Context
with no event queue. Widgets laid o...

3a31045dc9a82ec9e1b1ce24d5e389b3e2c56225 authored over 4 years ago by Chris Waldon <[email protected]>
widget/material: add support for disabled buttons

This leverages the new semantics of a disabled layout.Context
to draw all of the button types in...

cc5f8fcffe5e57c0f17b5475d5129ac5cd23572a authored over 4 years ago by Chris Waldon <[email protected]>
io/router: don't clear event queue before cancel events

There may be unrelated events in the queue, so it's not appropriate
to clear the queue just beca...

d280d438c7b8632aaf2d79c0072a50319125262f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] fix window sizes for unit.Px values

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

d86f96503f6c71695b5c6e7a4df7df28e95e7c02 authored over 4 years ago by Elias Naur <[email protected]>
widget: fix Enum.Changed to reset changed status

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

8761550839a6aa18c89c04a9a3d7cac1d2279188 authored over 4 years ago by Elias Naur <[email protected]>
example/windows: add example that demonstrates multiple windows

Updates gio#19

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

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

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

352856fc24f6765e2a65587a293fc3d3c4932bfb authored over 4 years ago by Elias Naur <[email protected]>
app: update NewWindow docs to reflect multi-window support

Fixes gio#19

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

f710bdf8e8f17d8d18bc7164e7991685cdf5ca6f authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [Windows] support multiple windows

Updates gio#19

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

c2c31a4d003eb28fb816ecc356699321ca99cccd authored over 4 years ago by Elias Naur <[email protected]>
text,widget/material: make font collections explicit

Before this change, package font implemented a global font registry,
with the usual problems of ...

b07d34354ea323f223f87b772c40e84f4ec9fc8e authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] simplify NewWindow

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

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

Updates gio#128

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

78565c92329941704cc15a3c06e017cb946aad7b authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] delay window creation until ready

Fixes #128

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

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

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

0749afc13c32017836c5f462ad8cbdd0d5549ef0 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] introduce serious cascading

This time without arbitrary offsets and with support for multiple
windows.

Signed-off-by: Elias...

144a5a9cf52d12dedd28aa873a371259b9ad7099 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] support more than one window

Updates #19

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

4408c2a6957093e6cc0ccd4130d47e49a4d54fa1 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] remove window reference from app delegate

Updates #19

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

9efdc3409ccae18630a98d26b2800e1a95c9b8a0 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] split out gio_createWindow

Updates #19

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

34c212d152ba00ffd73fa6212caefa9e0422109e authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] only terminate app when last window closes

Updates #19

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

476bf8d263b8459ab2b58af34af0de2d3a0c4147 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] make GioDelegate window-independent

Updates #19

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

7c22a888b1d654d1ca3c1b982ad9be2925577c24 authored over 4 years ago by Elias Naur <[email protected]>
io/pointer: remove special case note

Scroll events are no longer special after gioui.org/commit/65d4707e3.

Signed-off-by: Elias Naur...

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

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

a4e572d0e31e12997d5a7e317306601386d0a92f authored over 4 years ago by Elias Naur <[email protected]>
io/pointer,io/router,gesture: add pointer.Foremost priority

Replace the pointer.Scroll special case with a new priority that
indicates the foremost handler,...

65d4707e3e47a7015f009723a42c5833d076bcd0 authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] fix zero-length clipboard reads

Fixes #126

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

2accb8838128906494f7a48c9b729c09c4ca805d authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] remove useless retain/release

The window and its view is guaranteed to outlast the display link.

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

278e9bc334005f3612a4a8479ae0a89e252bc04a authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] use regular map for view-to-window lookups

All accesses to the view map now happens on the main thread, so
there is no need for a sync.Map ...

c225daa8458768b5dd89d24dc561bbbfa0f987b4 authored over 4 years ago by Elias Naur <[email protected]>
io/pointer: add Drag event type

This eliminates needless redraws for handlers that care about drag events and not move events, l...

1a070a36b677363bbcd3b437b3fd35b3361ec08d authored over 4 years ago by Gordon Klaus <[email protected]>
app/internal/window: [macOS] remove frivolous cascadeTopLeftFromPoint call

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

cb5cc0256027bf9475a791f007c4b4f983d00ce5 authored over 4 years ago by Elias Naur <[email protected]>
io/router: deliver scroll events only to the foremost scroll handler

Signed-off-by: Gordon Klaus <[email protected]>

33a87ac61c387c39a2b53f1d25dfae5ff9a8986a authored over 4 years ago by Gordon Klaus <[email protected]>
io/pointer: add InputOp.Types to specify which types of events to receive

Signed-off-by: Gordon Klaus <[email protected]>

9d2a6c48d88f709575c1660a04893945c6d0df08 authored over 4 years ago by Gordon Klaus <[email protected]>
layout: don't run alloc tests with -race

The race runtime allocates where the non-race runtime doesn't.

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

4484674ab1d796816345875c4cb6e3b751a1e187 authored over 4 years ago by Elias Naur <[email protected]>
io/pointer,gesture,app/internal/window: add pointer.Scroll event type

Signed-off-by: Gordon Klaus <[email protected]>

e188d0e6ffb269ccbc83bcee16c3786c3503d349 authored over 4 years ago by Gordon Klaus <[email protected]>
io/router: remove countPointerEvents

assertEventSequence is shorter and clearer and more precise.

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

275a91f26adda57c10be3a56a037f5d90112c5de authored over 4 years ago by Elias Naur <[email protected]>
io/pointer: update documentation examples

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

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

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

fc290f34571a15fc12844a6a3df52bba4f448deb authored over 4 years ago by Elias Naur <[email protected]>
app/internal/window: [macOS] always draw synchronously

Asynchronous draws introduces flickering on resizes.

Fixes #123

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

4cb96ccad9105f32b5cb7e0d9d68bd522097642d authored over 4 years ago by Elias Naur <[email protected]>
io/router: fix typo

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

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

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

9196ce0369bc03920862ccd57b559224117d8c9e authored over 4 years ago by Elias Naur <[email protected]>
op: change CallOp to be a return value from MacroOp.Stop

Converting

macro := op.Record(ops)
...
macro.Stop()

macro.Add()

to

macro := op.Record(o...

c19ed053429731010493c8a1515ee5dd5c0ac5ec authored over 4 years ago by Elias Naur <[email protected]>
layout: add test that Flex doesn't allocate

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

ce0cc706adf1c8af9d1e58103f647d04ee522e49 authored over 4 years ago by Elias Naur <[email protected]>
layout: add test that Stack doesn't allocate

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

2bdf8c38515c255e55cb0b6128e1375d2f58497a authored over 4 years ago by Elias Naur <[email protected]>
op: make MacroOp methods take value receivers

The only mutable field is "recording", which is used for a sanity
check. THat check is performed...

acc23a5b3e200abde43794a69a83153792214b5d authored over 4 years ago by Elias Naur <[email protected]>
op: return value StackOp from Push and make Pop use a value receiver

To match Record, we'd like Push to return a value. To do that and
support the one-line

defer o...

3e8c502550bc87762753ecb03ebaea460fb5e852 authored over 4 years ago by Elias Naur <[email protected]>