31 #ifndef DOXYGEN_SHOULD_SKIP_THIS 49 SquareGrid(Vector2u gridSize, Vector2f cellSize,
const Color4f& color,
float lineWidth = 1.0f);
105 m_lineWidth = lineWidth;
155 void updateGeometry();
165 #ifndef DOXYGEN_SHOULD_SKIP_THIS
A set of primitives.
Definition: VertexArray.h:65
RectF getLocalBounds() const
Get the local bounding rectangle of the entity.
Vector2f getCellSize() const noexcept
Get the cell size.
Definition: Grid.h:79
float getLineWidth() const noexcept
Get the width of the grid frame.
Definition: Grid.h:113
void setLineWidth(float lineWidth) noexcept
Set the width of the grid frame.
Definition: Grid.h:104
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
void setCellSize(Vector2f cellSize)
Set the cell size.
Data in the graphics memory.
Definition: VertexBuffer.h:70
void setAnchor(Anchor anchor)
Set the anchor origin of the entity.
VertexBuffer commitGeometry() const
Create a buffer with the current geometry.
The namespace for gf classes.
Definition: Action.h:34
A square grid.
Definition: Grid.h:39
void setColor(const Color4f &color)
Set the color of the grid frame.
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
const Color4f & getColor() const noexcept
Get the color of the grid frame.
Definition: Grid.h:95
Anchor
An anchor of a box.
Definition: Anchor.h:41
#define GF_API
Definition: Portability.h:35
SquareGrid(Vector2u gridSize, Vector2f cellSize, const Color4f &color, float lineWidth=1.0f)
Constructor.
Vector2u getGridSize() const noexcept
Get the grid size.
Definition: Grid.h:63
void setGridSize(Vector2u gridSize)
Set the grid size.