75 template<
class T,
class S>
76 static void setRightOf(
const T& constObj, S& obj,
float spacing = 0);
85 template<
class T,
class S>
86 static void setLeftOf(
const T& constObj, S& obj,
float spacing = 0);
95 template<
class T,
class S>
96 static void setBelow(
const T& constObj, S& obj,
float spacing = 0);
105 template<
class T,
class S>
106 static void setAbove(
const T& constObj, S& obj,
float spacing = 0);
112 template<
class T,
class S>
119 template<
class T,
class S>
126 template<
class T,
class S>
169 template<
class S,
class U>
173 template<
class S,
class U>
177 template<
class S,
class U>
181 template<
class S,
class U>
185 template<
class S,
class U>
189 template<
class S,
class U>
193 template<
class S,
class U>
199#include "../../../src/Utilities/Align.tpp"
Static layout helpers for positioning objects relative to one another.
static void setRightOf(const T &constObj, S &obj, float spacing=0)
Place obj immediately to the right of constObj.
static void centerOn(const T &constObj, S &obj)
Center obj both horizontally and vertically within constObj.
static void setLeftOf(const sf::Vector2< U > &size, S &obj, float spacing=0)
Place obj to the left of a size-defined region.
static void setBelow(const sf::FloatRect &bounds, S &obj, float spacing=0)
Place obj below bounds.
static void centerVertically(const T &constObj, S &obj)
Center obj vertically within constObj (horizontal position unchanged).
static void setBelow(const T &constObj, S &obj, float spacing=0)
Place obj immediately below constObj.
static void setRightOf(const sf::FloatRect &bounds, S &obj, float spacing=0)
Place obj to the right of bounds.
static void setAbove(const sf::Vector2< U > &size, S &obj, float spacing=0)
Place obj above a size-defined region.
static void centerOn(const sf::Vector2< U > &size, S &obj)
Center obj within a size-defined region (both axes).
static void centerHorizontally(const sf::Vector2< U > &size, S &obj)
Center obj horizontally within a size-defined region.
static void setAbove(const sf::FloatRect &bounds, S &obj, float spacing=0)
Place obj above bounds.
static void setLeftOf(const sf::FloatRect &bounds, S &obj, float spacing=0)
Place obj to the left of bounds.
static void setAbove(const T &constObj, S &obj, float spacing=0)
Place obj immediately above constObj.
static void centerVertically(const sf::FloatRect &bounds, S &obj)
Center obj vertically within bounds.
static void setBelow(const sf::Vector2< U > &size, S &obj, float spacing=0)
Place obj below a size-defined region.
static void centerVertically(const sf::Vector2< U > &size, S &obj)
Center obj vertically within a size-defined region.
static void centerHorizontally(const sf::FloatRect &bounds, S &obj)
Center obj horizontally within bounds.
static void setRightOf(const sf::Vector2< U > &size, S &obj, float spacing=0)
Place obj to the right of a region defined by size.
static void setLeftOf(const T &constObj, S &obj, float spacing=0)
Place obj immediately to the left of constObj.
static void centerOn(const sf::FloatRect &bounds, S &obj)
Center obj within bounds (both axes).
static void centerHorizontally(const T &constObj, S &obj)
Center obj horizontally within constObj (vertical position unchanged).
static void centerText(const T &obj, sf::Text &text)
Center text within the bounds of obj.