7 #ifndef MYGUI_WIDGET_TRANSLATE_H_
8 #define MYGUI_WIDGET_TRANSLATE_H_
37 _vert ? _widget->
setSize(_width, _height) : _widget->
setSize(_height, _width);
42 _vert ? _widget->
setCoord(_left, _top, _width, _height) : _widget->
setCoord(_top, _left, _height, _width);
49 std::swap(_coord.
left, _coord.
top);
56 #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)