#include <layout.h>
Inherits Wt::LayoutStdContainer< Container >< std::list< BoxLayoutItemCompound > >.
Inherited by Wt::HBoxLayout, and Wt::VBoxLayout.
Public Types | |
LeftToRight | |
RightToLeft | |
TopToBottom | |
BottomToTop | |
Down = TopToBottom | |
Up = BottomToTop | |
enum | Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop, Down = TopToBottom, Up = BottomToTop } |
Public Member Functions | |
BoxLayout (Widget *parent, Direction direction, int margin=0, int spacing=-1, const std::string &name="BoxLayout::anon") | |
BoxLayout (Layout *parent_layout, Direction direction, int margin=0, int spacing=-1, const std::string &name="BoxLayout::anon") | |
BoxLayout (Direction direction, int spacing=-1, const std::string &name="BoxLayout::anon") | |
virtual void | appendItem (LayoutItem *li) |
virtual void | prependItem (LayoutItem *li) |
virtual void | addItem (LayoutItem *li) |
virtual void | setGeometry (const Rect &r) |
fixup all managed widgets geometry | |
Public Attributes | |
Direction | direction |
Protected Member Functions | |
virtual void | validate () |
let's calc again sizeHint, minimumSize etc | |
Friends | |
class | Box |
Wt::BoxLayout::BoxLayout | ( | Widget * | parent, | |
Direction | direction, | |||
int | margin = 0 , |
|||
int | spacing = -1 , |
|||
const std::string & | name = "BoxLayout::anon" | |||
) | [inline] |
Wt::BoxLayout::BoxLayout | ( | Layout * | parent_layout, | |
Direction | direction, | |||
int | margin = 0 , |
|||
int | spacing = -1 , |
|||
const std::string & | name = "BoxLayout::anon" | |||
) | [inline] |
Wt::BoxLayout::BoxLayout | ( | Direction | direction, | |
int | spacing = -1 , |
|||
const std::string & | name = "BoxLayout::anon" | |||
) | [inline] |
void Wt::BoxLayout::addItem | ( | LayoutItem * | li | ) | [virtual] |
Reimplemented from Wt::LayoutStdContainer< Container >.
void Wt::BoxLayout::appendItem | ( | LayoutItem * | li | ) | [virtual] |
void Wt::BoxLayout::prependItem | ( | LayoutItem * | li | ) | [virtual] |
void Wt::BoxLayout::setGeometry | ( | const Rect & | r | ) | [virtual] |
fixup all managed widgets geometry
Reimplemented from Wt::Layout.
void Wt::BoxLayout::validate | ( | ) | [protected, virtual] |
friend class Box [friend] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.