diff options
Diffstat (limited to 'src/gui/hbox.cpp')
-rw-r--r-- | src/gui/hbox.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/hbox.cpp b/src/gui/hbox.cpp index 0192eb67..69564fbb 100644 --- a/src/gui/hbox.cpp +++ b/src/gui/hbox.cpp @@ -23,26 +23,17 @@ #include "hbox.h" -HBox::HBox() - : Box() -{ -} - -HBox::~HBox() -{ -} - void HBox::draw(gcn::Graphics *graphics) { int widgetCount = mWidgets.size(); int childHeight = getHeight(); if (widgetCount == 0) - return; + return; int childWidth = getWidth() / widgetCount; int i = 0; for (WidgetIterator w = mWidgets.begin(); w != mWidgets.end(); w++) { - (*w)->setPosition(childWidth * i - padding, 0); + (*w)->setPosition(childWidth * i - padding, 0); (*w)->setSize(childWidth, childHeight); i++; } |