7 #ifndef MYGUI_COORD_CONVERTER_H_
8 #define MYGUI_COORD_CONVERTER_H_
24 (
float)_coord.
left / (
float)_textureSize.
width,
25 (
float)_coord.
top / (
float)_textureSize.
height,
26 (
float)_coord.
right() / (float)_textureSize.
width,
75 #endif // MYGUI_COORD_CONVERTER_H_
types::TSize< int > IntSize
static IntCoord convertFromRelative(const FloatCoord &_coord, const IntSize &_view)
types::TCoord< float > FloatCoord
types::TCoord< int > IntCoord
static FloatCoord convertToRelative(const IntCoord &_coord, const IntSize &_view)
static FloatSize convertToRelative(const IntSize &_size, const IntSize &_view)
types::TRect< float > FloatRect
static FloatPoint convertToRelative(const IntPoint &_point, const IntSize &_view)
types::TPoint< float > FloatPoint
static IntPoint convertFromRelative(const FloatPoint &_point, const IntSize &_view)
static FloatRect convertTextureCoord(const IntCoord &_coord, const IntSize &_textureSize)
static IntSize convertFromRelative(const FloatSize &_size, const IntSize &_view)
types::TSize< float > FloatSize
types::TPoint< int > IntPoint