gio/layout/list_test.go -rw-r--r-- 3.2 KiB
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

    $ 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>
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>