7#ifndef MYGUI_COORD_CONVERTER_H_
8#define MYGUI_COORD_CONVERTER_H_
21 static FloatRect convertTextureCoord(
const IntCoord& _coord,
const IntSize& _textureSize);
26 static IntCoord convertFromRelative(
const FloatCoord& _coord,
const IntSize& _view);
31 static IntSize convertFromRelative(
const FloatSize& _size,
const IntSize& _view);
36 static IntPoint convertFromRelative(
const FloatPoint& _point,
const IntSize& _view);
41 static FloatCoord convertToRelative(
const IntCoord& _coord,
const IntSize& _view);
43 static FloatSize convertToRelative(
const IntSize& _size,
const IntSize& _view);
45 static FloatPoint convertToRelative(
const IntPoint& _point,
const IntSize& _view);
47 static IntCoord convertFromRelative(
const DoubleCoord& _coord,
const IntSize& _view);
49 static DoubleCoord convertToRelativeD(
const IntCoord& _coord,
const IntSize& _view);
51 static std::tuple<IntCoord, bool, bool> applyAlign(
53 const IntCoord& _coord,
54 const IntSize& _parentSize,
55 const IntSize& _oldsize);
types::TPoint< int > IntPoint
types::TCoord< float > FloatCoord
types::TRect< float > FloatRect
types::TCoord< double > DoubleCoord
types::TPoint< float > FloatPoint
types::TSize< float > FloatSize
types::TCoord< int > IntCoord
types::TSize< int > IntSize