Add blank vars to ensure layouts satisfy tomo.Layout

This commit is contained in:
Sasha Koshka 2024-06-11 16:46:04 -04:00
parent 6a8aaca18d
commit 5c8358fc4a
4 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@ package layouts
import "image" import "image"
import "git.tebibyte.media/tomo/tomo" import "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = ContractVertical
// Contract is a layout that arranges boxes in a simple row or column according // Contract is a layout that arranges boxes in a simple row or column according
// to their minimum sizes. // to their minimum sizes.
type Contract bool type Contract bool

View File

@ -3,6 +3,8 @@ package layouts
import "image" import "image"
import "git.tebibyte.media/tomo/tomo" import "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = new(cut)
// Cut is a layout that can be divided into smaller and smaller sections. // Cut is a layout that can be divided into smaller and smaller sections.
type Cut struct { type Cut struct {
branches []*Cut branches []*Cut

View File

@ -3,6 +3,8 @@ package layouts
import "image" import "image"
import "git.tebibyte.media/tomo/tomo" import "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = FlowVertical
// Flow is a grid layout where the number of rows and columns changes depending // Flow is a grid layout where the number of rows and columns changes depending
// on the size of the container. It is designed to be used with an overflowing // on the size of the container. It is designed to be used with an overflowing
// container. If the container does not overflow in the correct direction, the // container. If the container does not overflow in the correct direction, the

View File

@ -4,6 +4,8 @@ import "math"
import "image" import "image"
import "git.tebibyte.media/tomo/tomo" import "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = Grid { }
// Grid is a layout that arranges boxes in a grid formation with distinct rows // Grid is a layout that arranges boxes in a grid formation with distinct rows
// and columns. It is great for creating forms. // and columns. It is great for creating forms.
type Grid struct { type Grid struct {