Struct Definition

Struct Documentation

struct Definition

Row-major cells in image pixel coordinates; origin is the top-left of the first cell.

cell_rect() maps an index to a source rectangle, while the grid geometry builder converts that rectangle to vertices and normalized texture coordinates for the selected backend. Direct fields require representable counts/coordinates; these helpers do not validate image bounds or all manifest constraints. Empty axes have no cells.

Public Functions

std::size_t cell_count() const

Declaration: [[nodiscard]]

CellIndex cell_index(std::size_t row, std::size_t column) const

Declaration: [[nodiscard]]

CE::Rendering::Geometry::PixelRect cell_rect(CellIndex cell) const

Declaration: [[nodiscard]]

std::uint64_t occupied_right() const

Declaration: [[nodiscard]]

std::uint64_t occupied_bottom() const

Declaration: [[nodiscard]]

Public Members

CE::Rendering::Geometry::PixelPoint origin
CE::Rendering::Geometry::PixelSize frame
CE::Rendering::Geometry::PixelPoint spacing
std::size_t rows = {}
std::size_t columns = {}