21#ifndef GF_COORDINATES_H
22#define GF_COORDINATES_H
25#include "GraphicsApi.h"
29#ifndef DOXYGEN_SHOULD_SKIP_THIS
104#ifndef DOXYGEN_SHOULD_SKIP_THIS
Helper to compute coordinates in HUD.
Definition: Coordinates.h:39
Coordinates(Vector2i size)
Constructor with size.
unsigned getRelativeCharacterSize(float percent) const
Compute a relative character size.
Vector2f getWindowSize() const
Get the size of the window.
Definition: Coordinates.h:60
Vector2f getRelativeSize(Vector2f percent) const
Compute a relative size.
Vector2f getAbsolutePoint(Vector2f distance, Anchor anchor) const
Compute an absolute point.
Coordinates(RenderTarget &target)
Constructor with render target.
Vector2f getCenter() const
Get the center of the window.
Vector2f getRelativePoint(Vector2f percent) const
Compute a relative point.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Anchor
An anchor of a box.
Definition: Anchor.h:38
The namespace for gf classes.