10#include <SFML/Graphics.hpp>
49 std::vector<Positionable*> _items;
Virtual base class for all Malena framework objects.
void setRow(int row)
Set the number of columns per row.
void setPosition(const sf::Vector2f &position) override
Set the world-space origin of the grid.
Grid(sf::Vector2u size)
Construct a grid with a specified column and row count.
float getSpacing() const
Return the current spacing between cells in pixels.
void addItem(Core &item)
Add a Core object to the grid layout and reposition all items.
sf::Vector2f getPosition() const override
Return the current world-space origin of the grid.
sf::FloatRect getGlobalBounds() const override
Return the axis-aligned bounding box of the entire grid.
Grid()
Construct a single-row grid with default spacing.
int getRow() const
Return the current number of columns.
void setSpacing(float spacing)
Set the spacing between cells.
Vector2< unsigned int > Vector2u
Vector2< float > Vector2f