mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
all: rename layout.Dimens to layout.Dimensions
Dimens is only 4 characters shorter and not worth the abbreviation. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -158,7 +158,7 @@ func (l *List) next() (int, bool) {
|
||||
}
|
||||
|
||||
// End the current child by specifying its dimensions.
|
||||
func (l *List) End(dims Dimens) {
|
||||
func (l *List) End(dims Dimensions) {
|
||||
l.child.Stop()
|
||||
child := scrollChild{dims.Size, l.child}
|
||||
switch l.dir {
|
||||
@@ -179,7 +179,7 @@ func (l *List) End(dims Dimens) {
|
||||
}
|
||||
|
||||
// Layout the List and return its dimensions.
|
||||
func (l *List) Layout() Dimens {
|
||||
func (l *List) Layout() Dimensions {
|
||||
if l.more {
|
||||
panic("unfinished child")
|
||||
}
|
||||
@@ -254,5 +254,5 @@ func (l *List) Layout() Dimens {
|
||||
pointer.RectAreaOp{Rect: image.Rectangle{Max: dims}}.Add(ops)
|
||||
l.scroll.Add(ops)
|
||||
l.macro.Add(ops)
|
||||
return Dimens{Size: dims}
|
||||
return Dimensions{Size: dims}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user