14 #ifndef BERRYGEOMETRY_H_
15 #define BERRYGEOMETRY_H_
36 static int GetDimension(
const QRect& toMeasure,
bool width);
47 static bool IsHorizontal(
int berrySideConstant);
62 static QRect GetExtrudedEdge(
const QRect& toExtrude,
int size,
73 static void Normalize(QRect& rect);
85 static int GetClosestSide(
const QRect& boundary,
const QPoint& toTest);
97 static int GetDistanceFromEdge(
const QRect& rectangle,
const QPoint& testPoint,
108 static int GetOppositeSide(
int directionConstant);
119 static QRect ToControl(QWidget* coordinateSystem,
120 const QRect& toConvert);
131 static QPoint ToControl(QWidget* coordinateSystem,
132 const QPoint& toConvert);
143 static QRect ToDisplay(QWidget* coordinateSystem,
144 const QRect& toConvert);
155 static QPoint ToDisplay(QWidget* coordinateSystem,
156 const QPoint& toConvert);