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

ui: document types and methods

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

3c924e2a180fb75c13e9ee1f9f219db61fdee648 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to latest gio

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

aa703dfc3e334a269ddf004fde0f43cdfacfb016 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: rename DrawEvent to UpdateEvent and Window.Draw to Window.Update

Window.Draw is not the right name for a method that does more than
just drawing. Rename to Updat...

4e005f2bfa1c306040e1ab1de826148db5d52b4b authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: delete unused fields and arguments

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

3d519c5a37cdbca3b00883e495e62a4d8f610684 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gioui.org/ui version

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

20f9a72c1571f384fce3e09f937d00b6ce8f98e4 authored over 5 years ago by Elias Naur <[email protected]>
ui/paint: rename the draw package

The draw package name clashes with the standard library draw package.

Signed-off-by: Elias Naur...

dd35a48a61ab51f0e55d2485798a3db3d7daa5e4 authored over 5 years ago by Elias Naur <[email protected]>
all: remove exported Decode methods on operations

Add decode functions to the packages that need them instead. For
TransformOp that is used in mul...

6e26c92c75530df7ee57cbb41b5191573aa40e2a authored over 5 years ago by Elias Naur <[email protected]>
app/internal/gpu: rename opClip to clipOp

To better match ClipOp, which was renamed from OpClip.

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

4d66669a9e06defe86de6b25c7bd38d23947e72a authored over 5 years ago by Elias Naur <[email protected]>
all: add missing licence headers

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

eaa4efe5afd8c9c22f56d2fcc6ef5800abc0b561 authored over 5 years ago by Elias Naur <[email protected]>
ui,internal/ops,internal/opconst: move OpsReader to internal ops package

To avoid import cycles, move the op constants to its own package,
internal/opconst.

Signed-off-...

b3517a365e8c1e6b81aa9164657b2dde84e08f0c authored over 5 years ago by Elias Naur <[email protected]>
ui: rename TransformOp.Mul to Multiply and split InvTransform

Multiply is a bit longer but more clear. InvTransform was really
two operations: Invert and Tran...

fe20cde393f696f949f1f7dfde0a18c6c4307ac1 authored over 5 years ago by Elias Naur <[email protected]>
ui: fix TransformOp.Offset

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

9be695cc2426a690ae12a723399f654626e7c17a authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: clarify usage summary

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

f223c7b0c9d9be26d3b43a624a087ad63a467a2d authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: simplify -o flag description

Only mention the special case for iOS simulators.

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

ddcbccf041d979716c2e1f7eb0490728434085ce authored over 5 years ago by Elias Naur <[email protected]>
draw: Fix spelling of Bezier

Sometimes it was "bezier", sometimes "beziér". Capitalize and put
accent on first e. https://e...

a14e818299b24abbc2de121d4af5e35782af78e5 authored over 5 years ago by Larry Clapp <[email protected]>
apps/go.mod: update gioui.org/ui version

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

276cb104adbecc10ecff213e41608c0fbeea0c82 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add link to FAQ

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

8c3305e88b0d6afde2485de3de0df30858147052 authored over 5 years ago by Elias Naur <[email protected]>
README.md: move license last, tweak text

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

a27f12faf38eff6e4cda6bf9af4644f304774344 authored over 5 years ago by Elias Naur <[email protected]>
README.md: split out installation, integration, contributing sections

Add them to the wiki so README.md ends up less overwhelming.

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

9babb1389d906da42fc7bca45cf570cde4d6f6f6 authored over 5 years ago by Elias Naur <[email protected]>
ui/app,cmd/gio: move running of main from driver to GioAppDelegate

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

8472bbc78b576f6a99606c76d6da2a263051cc1b authored over 5 years ago by Elias Naur <[email protected]>
website: add godoc.org redirects for the ui, cmd, apps modules

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

2d6111e31a210620c587d419ad89522db9dda808 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add backticks to giowindow div tag

Wrap backticks around the "div" tag mentioned in the README, so it looks
like this:

`<div i...

7f82b5d637263d82325fca4f1701128221e557c6 authored over 5 years ago by Larry Clapp <[email protected]>
ui/app: add darwin build tag to ios files

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

15dc714d4052a3576527c6519905bddf894f1e2f authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

38eb23cc311b0fc0b5f3316a64781929dbb3c28e authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: split main into App and UI and add BenchmarkUI

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

e2df2f394a89eb39febe17b0c71f87fcf5bd1038 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: don't strip debug info for webassembly builds

The space savings are minimal and we lose function names in the
browser debuggers.

Signed-off-b...

6ce224b89fc30a1061f6aca2f6e6216fa9730e09 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: don't add a container div for -target js

THe webassembly backend can create and add it itself.

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

1c5ceab9c1d2a1cfa706f54128ecc6e89eed9561 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) create and add container div if one is not provided

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

eee497f22a3d738e954a83052bcd24c3bdfd6c17 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: delete unused field

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

28bd97f87753c7e94c78cfc7dd31d4ebd5c11761 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

e309fb42d48f185acebce8160ae48d9d88cbf515 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) avoid deadlock from focus changes

showTextInput is called from the window loop in window.go, but
could result in an immediate even...

0be3492e071551d49cbe4a10e098384b55382c4a authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update gio version

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

10792f0a0004c017dba4658c791fac6d54d180ae authored over 5 years ago by Elias Naur <[email protected]>
ui/input: change Queue to return Events one at a time

By returning all events, widgets that might return early from its
event loop might throw away su...

73b1e642098cc91ee9c8028365c1990982b6fe78 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (wasm) fix typo

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

b15a32065f552046e8da502f8318ca1b8c8f8033 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

eefe3d146d79a8e16121975bc52da0dd178e7254 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: drop Event

input.Event is enough if we stretch "input" to mean both input
devices and other events such as ...

cb312c8d3219d0d3e745128006b184d9c7c4d4df authored over 5 years ago by Elias Naur <[email protected]>
ui,ui/draw: fix decoding of negative integers

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

69bba3aa4b3f2db7c2888966c83a27848ba2d3c9 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update gio version

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

06cee16c89036cbf38cccb002292f9caab09373d authored over 5 years ago by Elias Naur <[email protected]>
ui: change area ops to use rectangles, not sizes

And then use the more general rectangles to add a buffer around
text.Editor click and scroll are...

bfece0bebacb5cec4fdf5682b886333e03b6549b authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

d3df90887ed734bc872bf05d10d03f10f2534e94 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS, iOS) ignore SIGPIPE

Work around golang.org/issue/33384

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

46b9e7b9ab44c852c274807072082eeb1bcf89d6 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: restore Flex.Rigid behaviour

Broken by 5f2adf9b2f2290e1ed82e96ca864ede354c25b43.

Clamp to 0 while we're here.

Signed-off-by...

3d9861011e24132d4b366017f21452346c6a7de9 authored over 5 years ago by Elias Naur <[email protected]>
cmd/gio: (wasm) support command line flags

Strip also DWARF and the symbol table while here.

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

5bf5f1e64d91af49c20d2a5da90557ae42d3824c authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio

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

7182e29d28cbed3eb3cae8cee2cbf4a7a729a2c9 authored over 5 years ago by Elias Naur <[email protected]>
ui: get rid of Inf

It's not worth the special cases. Use a large value where needed
(layout.List, text.Editor...) i...

5f2adf9b2f2290e1ed82e96ca864ede354c25b43 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio

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

1b684ffab6fba7baf31bf1e85e2c4b267969b080 authored over 5 years ago by Elias Naur <[email protected]>
ui: merge Transform into TransformOp

The separate Transform type is not worth its weight.

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

5e1f078b12aeaa9c5c0dc9c6736b57123add22bf authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: add workaround for render corruption

Fixes gio#13

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

d178167c3bc41305ab57b43fb029099b8ce69fb6 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: upgrade gio version

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

d93925c0c26289490a2024cde9f4ced0d7e89056 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (linux) don't deadlock when failing to create window

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

a0d1d93ccf58e04e49cf62f385af1ec81abf4b34 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add link to Gophercon 2019 talk

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

a2e485b56d2249fca033e4838283963e7f59fa03 authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/gpu: only apply clear optimization for rect clips

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

c1128e7f8ab888c60b1b7657332720f72843c206 authored over 5 years ago by Elias Naur <[email protected]>
apps: drop init funcs

Now that Gio runs main functions everywhere, init func are no longer
necessary.

Signed-off-by: ...

b45222b457004d3c4ed38424e69a2ee4399b5524 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: call main from Android and iOS

Android can only run c-shared libraries which means that every
Gio program must create its windo...

c080a54038a6eb00e5a6800b0eb74eb3c8df4327 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (android) block until DataDir is ready

The app data dir is not set until after Go's init functions have
run, which means that DataDir i...

4e0d820a5ba822409954617c869dba15aad55676 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: make the default window title "Gio", not "Gio program"

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

1ee8c08f3bf94a897d393a95c85cba899a52a551 authored over 5 years ago by Elias Naur <[email protected]>
apps: update to newest gio

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

f47a38844b9047bc52bc16e0154db175e3d83077 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: make DrawEvent optional

It is never a good idea not to draw in response to a DrawEvent, but
let's not hang the program i...

dd081c78b96dabbc451cf6634b064d1041cd9f18 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

4724666ba072259820360528f15d5e47720515bf authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) avoid double-drawing in NSOpenGLView update

Instead of drwaing twice when updated, schedule a redraw.

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

2f9e29d87850873405bf7dbedb1595f689c29c03 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

2cb3832c161ab3bdaf7a1fd513f773722e1950f9 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) use consistent scale for pointer events

Instead of querying the backing store scale for every pointer event,
use the scale from the last...

21ad48b7dee6f4cd10761e7c2b6c791309a63a57 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) redraw when NSOpenGLView update is called

When moving a window to another monitor, update is called when the
opengl backing store updates ...

71f6df9352c4d62bf9bd2ecbf7718bd8a31229db authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) use a consistent and constant backing store constant

Compute and keep constant the pixel density, to avoid window content
changes when moving to anot...

8eea6b80f3e7bc0cb625ca54ff0bb6e8e88c9781 authored over 5 years ago by Elias Naur <[email protected]>
Revert "ui/app: make window event queue buffered"

Breaks the ack mechanism of sending a dummy ack event to ensure
the previous event has been proc...

cb59594b5b5f1340eac670cc99901a78754e8e7d authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

2cf2f211cb00852b5fafd73987bc07a4067de138 authored over 5 years ago by Elias Naur <[email protected]>
ui/app,ui/key: move TextInputState from key to internal package

Clients have no need for the TextInputState type.

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

9e0e4af8c6020ddb299c93b761cdddb4e4b9b20f authored over 5 years ago by Elias Naur <[email protected]>
ui/app: remove redundant redraw check

Now that the input router triggers a redraw when a focus event is
added, it is no longer necessa...

b46bad09bd8623033e45cc9c3eabe5d81f465aad authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/input: redraw if focus events was added

The key queue might generate focus events. Schedule a redraw if so.

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

3f7735ccdf2611e8d081b9e0d24ccd623387fbae authored over 5 years ago by Elias Naur <[email protected]>
ui/app: make window event queue buffered

Input events are asynchronous, so add buffered to the event queue
so that a slow client does not...

7582b835bcd02d36e827f5fd119c466364d719ec authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

5f0047567e6be49c2effed70f32b5ba41740ef0e authored over 5 years ago by Elias Naur <[email protected]>
ui/text,ui/layout: move ui.Config and input.Queue to parameters

I too often forget to initialize widgets' config and queue. Moving
them from fields to parameter...

b6290990ad93a2971ac9e3a0135c0ecbf4fcc2e7 authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

6c0850ce604aceb443596f38203db878ebb5d4e2 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) don't release opengl context

I haven't found a reliable way to re-create the context and redraw
after deminiaturization or ap...

cd244f21ab23048a4af6bd0e12ae4a75c74e564d authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) destroy the GL context correctly

The NSOpenGLView owns the NSOpenGLContext so we can't just CFRelease
the context. Use [NSOpenGLV...

05f0c3e22a4c4773651a05b3e80ea3889e419a97 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: return a concrete Queue from Window.Queue

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

0b6e6c58dd7d2a676061bbbb9a61a08bdbe27f2a authored over 5 years ago by Elias Naur <[email protected]>
apps/go.mod: update gio version

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

4a9b6f30071c6221cf8e5833f5d55a738d374867 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) ignore asynchronous redraws to deleted windows

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

6b5714d15d6baa900138668bdd5c041dd0c5bd32 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

7f5393f9bed6c4e9b099c360c764aeec5b6025b6 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: (macOS) serialize access to the views map

The CVDisplayLink used for synchronizing rendering to the display
refresh rate runs on a separat...

a140527b08c9f49aab7ca1d741cd981f354fe699 authored over 5 years ago by Elias Naur <[email protected]>
apps: update gio version

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

a36372a2430bccc7fc5b97d1291fb1a68bb3518d authored over 5 years ago by Elias Naur <[email protected]>
ui/app/internal/input: only drop handlers completely when inactive

Delete a redundant loop; dropHandlers already does the required work.

Fixes pointer event issue...

c94315119b0b8dd6ed71801c02fc9b7767280473 authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to rename Window.Invalidate method

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

75891f024c008430b797386416e29e37f3b11949 authored over 5 years ago by Elias Naur <[email protected]>
ui/app: rename Window.Redraw to Invalidate to match ui.InvalidateOp

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

d9d8df989d4cd80212b0af382b453621c707f45f authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to renamed ImageOp.Src field

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

8fc7a316cc7725ad36909076fc2530e158f6296a authored over 5 years ago by Elias Naur <[email protected]>
ui/draw: rename ImageOp.Img to Src

To match widget.Image.Src field name.

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

84fb7279eb3bc6dbd083151e7dbe2bd3dcc76f80 authored over 5 years ago by Elias Naur <[email protected]>
README.md: add shameless plug to Scatter

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

934aa4fe8d61b6c6b0113cc7fd1508aafd4fa6f6 authored over 5 years ago by Elias Naur <[email protected]>
ui/input,ui/layout: update comments

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

fd096e8838357de63fef1825e29c8019036fad0e authored over 5 years ago by Elias Naur <[email protected]>
ui: reset StackOp in Pop

To enable re-use.

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

b4441a8728e5ee704fcaf8173ffdbc7d104c611e authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to StackOp

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

8f0d741d9f2f14fd73d018300389fa0e71f11ad4 authored over 5 years ago by Elias Naur <[email protected]>
ui: replace PushOp, PopOp with a StackOp

Before this change, there was no guarantee that a PopOp matched
the intended PushOp. With a sing...

586d33c26e58b076f5f11bd842ca50a82be21f9c authored over 5 years ago by Elias Naur <[email protected]>
apps: update to newest macro api

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

f9fda47d256f9d29a360d599ed38c2f2b6b51c31 authored over 5 years ago by Elias Naur <[email protected]>
ui: move macro recording from Ops to MacroOp

Move the Record and Stop methods from Ops to MacroOp itself.

Before this change, Ops.Stop stopp...

94a913a371c43b5df8ac688f7e8b58661fafb1cd authored over 5 years ago by Elias Naur <[email protected]>
ui: merge opsData type with Ops

opsData wasn't worth the complexity.

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

ba9ffe846e4724bddb966446cc039e39d4ba56da authored over 5 years ago by Elias Naur <[email protected]>
ui/app: go fmt

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

6947ed9312ca4762aed5b0834515168f49e0dbd4 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: round, not truncate, flex sizes in Flex.Flexible

Without proper rounding, a pixel could be left uncovered at the end
of the flex layout.

Signed-...

eb9c2896cd1f89a1590eac102f017317285dfc1f authored over 5 years ago by Elias Naur <[email protected]>
apps/gophers: update to renamed layout.Inset and layout.UniformInset

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

f32b5fef4351ce7dbf6966354a18149da9cfd6a1 authored over 5 years ago by Elias Naur <[email protected]>
ui/layout: rename Insets to Inset and EqualInsets to UniformInset

Rename Insets to the verb Inset for consistency with Align.

Uniform is a better description tha...

00b9ff603f381885c2a393ac84545a0d64069529 authored over 5 years ago by Elias Naur <[email protected]>
apps: upgrade to the block to macro rename

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

5b7b1eb00146f2e1906c0ee8f7ad31d451171b75 authored over 5 years ago by Elias Naur <[email protected]>
ui: rename block to macro

It is a more precise name.

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

3b5fcfe2bb554542a217b82583108d458d9d3623 authored over 5 years ago by Elias Naur <[email protected]>