Add blank vars to ensure layouts satisfy tomo.Layout
This commit is contained in:
parent
6a8aaca18d
commit
5c8358fc4a
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user