struct

Piebox::Layout

Inherits Struct < Value < Object

A Layout is a pattern of cells that tiles the full 2x3 grid.

Constructors

new(id : String, cells : Array(Piebox::Cell), comic_compatible : Bool = true)
Source

Instance methods

cell_count

Number of image slots in this layout.

Source
cells
Source
comic_compatible
Source
total_units

Total units covered by all cells.

Source
valid?

Validates that cells tile the full grid without overlaps or gaps.

Source