22 #ifndef __MYGUI_WIDGET_TRANSLATE_H__
23 #define __MYGUI_WIDGET_TRANSLATE_H__
52 _vert ? _widget->
setSize(_width, _height) : _widget->
setSize(_height, _width);
57 _vert ? _widget->
setCoord(_left, _top, _width, _height) : _widget->
setCoord(_top, _left, _height, _width);
64 std::swap(_coord.
left, _coord.
top);
71 #endif // __MYGUI_WIDGET_TRANSLATE_H__
int getWidgetHeight(Widget *_widget, bool _vert)
int getWidgetTop(Widget *_widget, bool _vert)
int getWidgetLeft(Widget *_widget, bool _vert)
void setWidgetSize(Widget *_widget, int _width, int _height, bool _vert)
void setWidgetCoord(Widget *_widget, int _left, int _top, int _width, int _height, bool _vert)
int getWidgetWidth(Widget *_widget, bool _vert)
void convertWidgetCoord(IntCoord &_coord, bool _vert)