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 "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = ContractVertical
// Contract is a layout that arranges boxes in a simple row or column according
// to their minimum sizes.
type Contract bool

View File

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

View File

@ -3,6 +3,8 @@ package layouts
import "image"
import "git.tebibyte.media/tomo/tomo"
var _ tomo.Layout = FlowVertical
// 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
// container. If the container does not overflow in the correct direction, the

View File

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