horizontal
| 27 | |
| 28 | template<> // horizontal |
| 29 | uint Layout<true>::setAbsolutePos(int x, int y, const uint padding) |
| 30 | { |
| 31 | uint maxHeight = 0; |
| 32 | y += padding; |
| 33 | x += padding; |
| 34 | |
| 35 | for (SubWidgetWithSizeHintIterator it=widgets.begin(), end=widgets.end(); it != end; ++it) |
| 36 | { |
| 37 | SubWidgetWithSizeHint& s(*it); |
| 38 | maxHeight = std::max(maxHeight, s.widget->getHeight()); |
| 39 | s.widget->setAbsolutePos(x, y); |
| 40 | x += static_cast<int>(s.widget->getWidth()); |
| 41 | x += static_cast<int>(padding); |
| 42 | } |
| 43 | |
| 44 | return maxHeight; |
| 45 | } |
| 46 | |
| 47 | template<> // vertical |
| 48 | uint Layout<false>::setAbsolutePos(int x, int y, const uint padding) |
no test coverage detected