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,
static IntCoord convertFromRelative(const DoubleCoord &_coord, const IntSize &_view)
static IntPoint convertFromRelative(const FloatPoint &_point, const IntSize &_view)
static FloatSize convertToRelative(const IntSize &_size, const IntSize &_view)
static IntSize convertFromRelative(const FloatSize &_size, const IntSize &_view)
static DoubleCoord convertToRelativeD(const IntCoord &_coord, const IntSize &_view)
static FloatRect convertTextureCoord(const IntCoord &_coord, const IntSize &_textureSize)
static FloatCoord convertToRelative(const IntCoord &_coord, const IntSize &_view)
static IntCoord convertFromRelative(const FloatCoord &_coord, const IntSize &_view)
static FloatPoint convertToRelative(const IntPoint &_point, const IntSize &_view)
types::TSize< float > FloatSize
types::TCoord< float > FloatCoord
types::TCoord< double > DoubleCoord
types::TCoord< int > IntCoord
types::TPoint< float > FloatPoint
types::TSize< int > IntSize
types::TRect< float > FloatRect
types::TPoint< int > IntPoint