~eliasnaur/gio

gio/layout d---------
layout: fix spelling of Alignment

Signed-off-by: Dan Kortschak <dan@kortschak.io>
io/pointer: support nested scrollables

Fixes #185.

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: make list example use List.Position.Count

Counting the number of displayed elements via the ListElement function is incorrect.

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: expose Direction.Position calculation

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
io/pointer: rename button names to reflect their meaning, not placement

For example, ButtonLeft may be the right-most button for a left-handed user.
Rename the button names to match their intended use.

This is an API change. Use the following commands to update your
projects:

    $ gofmt -r 'pointer.ButtonLeft -> pointer.ButtonPrimary' -w .
    $ gofmt -r 'pointer.ButtonRight -> pointer.ButtonSecondary' -w .
    $ gofmt -r 'pointer.ButtonMiddle -> pointer.ButtonTertiary' -w .

Signed-off-by: Elias Naur <mail@eliasnaur.com>
layout: automatically add system inset for NewContext

Currently every user needs to manually adjust for system insets.
This is rather verbose and most don't need to deviate from this behavior.

To disable the automatic adjustment, use:

  e.Insets = system.Insets{}
  ctx := layout.NewContext(ops, e)

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
io/router: rename Router.Add to the more specific Queue

Signed-off-by: Elias Naur <mail@eliasnaur.com>
layout: added offset for last visible item to List

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: added number of visible children to List

Also fixed an edge case where the first visible child was off by 1 when it was just fully hidden.

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: simplified Axis methods

Removed the Main and Cross Axis methods in favor of Convert.

Signed-off-by: pierre <pierre.curto@gmail.com>
op: rename StackOp/Push/Pop to StateOp/Save/Load

The semantics were relaxed in a previous commit; this change renames
to operations accordingly.

API change. Use gofmt to adjust your code accordingly:

gofmt -r 'op.Push(a).Pop() -> op.Save(a).Load()'
gofmt -r 'op.Push(a) -> op.Save(a)'
gofmt -r 'v.Pop() -> v.Load()'
gofmt -r 'op.StackOp -> op.StateOp'

Signed-off-by: Elias Naur <mail@eliasnaur.com>
layout: added Axis methods

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: avoid copying whole constraints in Stack

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: updated comment, avoid copying whole context in Flex

Signed-off-by: pierre <pierre.curto@gmail.com>
layout.List: store constraints instead of whole context

Signed-off-by: pierre <pierre.curto@gmail.com>
layout.List: reduce allocations when scrolling backward

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: document how Inset modifies constraints

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
fd2d96ad — Walter Werner SCHNEIDER 4 months ago
all: fix spelling errors

Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
layout: add Spacer

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
layout: fixed divisions by zero in Flex.Layout

Signed-off-by: pierre <pierre.curto@gmail.com>
layout: added documentation

Added comment on the use of Dimension.Baseline and Direction.Layout constraint minimum clearing.
Also, renamed the Direction receiver for consistency and removed unnecessary conversions.

Signed-off-by: Pierre.Curto <pierre.curto@gmail.com>
Next