#include <gridlayout.h>
Inherits Wt::LayoutStdContainer< Container >< Wt::Matrix< MatrixLayoutItemCompound > >.
Public Member Functions | |
GridLayout (Widget *parent, int margin=0, int spacing=-1, const std::string &name="GridLayout::anon") | |
GridLayout (Layout *parent_layout, int margin=0, int spacing=-1, const std::string &name="GridLayout::anon") | |
GridLayout (int spacing=-1, const std::string &name="GridLayout::anon") | |
void | insert (const LayoutItem *li, int row, int column) |
void | insert (const LayoutItem *li, int row_from, int row_to, int column_from, int column_to) |
virtual void | addItem (LayoutItem *li) |
virtual void | setGeometry (const Rect &r) |
fixup all managed widgets geometry | |
virtual void | setRowStretch (int row, int stretch) |
virtual void | setColStretch (int col, int stretch) |
int | rowStretch (int row) const |
int | colStretch (int col) const |
Protected Member Functions | |
virtual void | validate () |
let's calc again sizeHint, minimumSize etc | |
int | secondaryEdges () const |
std::vector< int > & | secondaryStretch () |
std::vector< int > & | secondaryEffectiveStretch () |
std::vector< int > & | secondaryExtraSpace () |
std::vector< int > & | primaryCellItemLength () |
std::vector< int > & | primaryCellLength () |
bool | mayGrowPrimally (int edge_index) const |
bool | expandingPrimally (int edge_index) const |
std::vector< int > & | primaryMinLength () |
std::vector< int > & | primaryHintLength () |
int | preferredLength (int edge_index, bool expand) |
Protected Attributes | |
std::queue< CellSpan > | cellSpanQueue |
Friends | |
class | Grid |
Classes | |
class | CellSpan |
Wt::GridLayout::GridLayout | ( | Widget * | parent, | |
int | margin = 0 , |
|||
int | spacing = -1 , |
|||
const std::string & | name = "GridLayout::anon" | |||
) |
Wt::GridLayout::GridLayout | ( | Layout * | parent_layout, | |
int | margin = 0 , |
|||
int | spacing = -1 , |
|||
const std::string & | name = "GridLayout::anon" | |||
) |
Wt::GridLayout::GridLayout | ( | int | spacing = -1 , |
|
const std::string & | name = "GridLayout::anon" | |||
) |
void Wt::GridLayout::addItem | ( | LayoutItem * | li | ) | [virtual] |
Reimplemented from Wt::LayoutStdContainer< Container >.
int Wt::GridLayout::colStretch | ( | int | col | ) | const [inline] |
bool Wt::GridLayout::expandingPrimally | ( | int | edge_index | ) | const [inline, protected] |
void Wt::GridLayout::insert | ( | const LayoutItem * | li, | |
int | row_from, | |||
int | row_to, | |||
int | column_from, | |||
int | column_to | |||
) |
void Wt::GridLayout::insert | ( | const LayoutItem * | li, | |
int | row, | |||
int | column | |||
) |
bool Wt::GridLayout::mayGrowPrimally | ( | int | edge_index | ) | const [inline, protected] |
int Wt::GridLayout::preferredLength | ( | int | edge_index, | |
bool | expand | |||
) | [inline, protected] |
std::vector<int>& Wt::GridLayout::primaryCellItemLength | ( | ) | [inline, protected] |
std::vector<int>& Wt::GridLayout::primaryCellLength | ( | ) | [inline, protected] |
std::vector<int>& Wt::GridLayout::primaryHintLength | ( | ) | [inline, protected] |
std::vector<int>& Wt::GridLayout::primaryMinLength | ( | ) | [inline, protected] |
int Wt::GridLayout::rowStretch | ( | int | row | ) | const [inline] |
int Wt::GridLayout::secondaryEdges | ( | ) | const [inline, protected] |
std::vector<int>& Wt::GridLayout::secondaryEffectiveStretch | ( | ) | [inline, protected] |
std::vector<int>& Wt::GridLayout::secondaryExtraSpace | ( | ) | [inline, protected] |
std::vector<int>& Wt::GridLayout::secondaryStretch | ( | ) | [inline, protected] |
void Wt::GridLayout::setColStretch | ( | int | col, | |
int | stretch | |||
) | [virtual] |
void Wt::GridLayout::setGeometry | ( | const Rect & | r | ) | [virtual] |
void Wt::GridLayout::setRowStretch | ( | int | row, | |
int | stretch | |||
) | [virtual] |
void Wt::GridLayout::validate | ( | ) | [protected, virtual] |
friend class Grid [friend] |
std::queue<CellSpan> Wt::GridLayout::cellSpanQueue [protected] |
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.