#include <gridlayout.h>
Collaboration diagram for Wt::GridLayout::CellSpan:
Public Member Functions | |
CellSpan (const LayoutItem *li=0, int row=-1, int column=-1, int row_span=1, int column_span=1) | |
void | invalidate () |
bool | isValid () const |
void | setLayoutItem (const LayoutItem *li) |
const LayoutItem * | layoutItem () const |
void | setSpan (int row, int column, int row_span=1, int column_span=1) |
void | setFromTo (int row_from, int row_to, int column_from, int column_to) |
int | rowSpan () const |
int | columnSpan () const |
int | rowFrom () const |
int | columnFrom () const |
int | rowTo () const |
int | columnTo () const |
Private Attributes | |
const LayoutItem * | li_ |
int | row_ |
int | column_ |
int | row_span_ |
int | column_span_ |
Definition at line 165 of file gridlayout.h.
Wt::GridLayout::CellSpan::CellSpan | ( | const LayoutItem * | li = 0 , |
|
int | row = -1 , |
|||
int | column = -1 , |
|||
int | row_span = 1 , |
|||
int | column_span = 1 | |||
) | [inline] |
Definition at line 167 of file gridlayout.h.
00169 : 00170 li_(li), 00171 row_(row), 00172 column_(column), 00173 row_span_(row_span), 00174 column_span_(column_span) {}
int Wt::GridLayout::CellSpan::columnFrom | ( | ) | const [inline] |
Definition at line 222 of file gridlayout.h.
References column_.
00222 { 00223 return column_; 00224 }
int Wt::GridLayout::CellSpan::columnSpan | ( | ) | const [inline] |
Definition at line 214 of file gridlayout.h.
References column_span_.
00214 { 00215 return column_span_; 00216 }
int Wt::GridLayout::CellSpan::columnTo | ( | ) | const [inline] |
Definition at line 230 of file gridlayout.h.
References column_, and column_span_.
00230 { 00231 return column_ + column_span_ - 1; 00232 }
void Wt::GridLayout::CellSpan::invalidate | ( | ) | [inline] |
Definition at line 176 of file gridlayout.h.
References column_, li_, and row_.
Referenced by Wt::Grid::operator=().
bool Wt::GridLayout::CellSpan::isValid | ( | ) | const [inline] |
const LayoutItem* Wt::GridLayout::CellSpan::layoutItem | ( | ) | const [inline] |
int Wt::GridLayout::CellSpan::rowFrom | ( | ) | const [inline] |
int Wt::GridLayout::CellSpan::rowSpan | ( | ) | const [inline] |
Definition at line 210 of file gridlayout.h.
References row_span_.
00210 { 00211 return row_span_; 00212 }
int Wt::GridLayout::CellSpan::rowTo | ( | ) | const [inline] |
void Wt::GridLayout::CellSpan::setFromTo | ( | int | row_from, | |
int | row_to, | |||
int | column_from, | |||
int | column_to | |||
) | [inline] |
Definition at line 202 of file gridlayout.h.
References column_, column_span_, row_, and row_span_.
Referenced by Wt::Grid::operator()().
00203 { 00204 row_ = row_from; 00205 column_ = column_from; 00206 row_span_ = row_to - row_from + 1; 00207 column_span_ = column_to - column_from + 1; 00208 }
void Wt::GridLayout::CellSpan::setLayoutItem | ( | const LayoutItem * | li | ) | [inline] |
Definition at line 186 of file gridlayout.h.
References li_.
Referenced by Wt::Grid::operator=().
00186 { 00187 li_ = li; 00188 }
void Wt::GridLayout::CellSpan::setSpan | ( | int | row, | |
int | column, | |||
int | row_span = 1 , |
|||
int | column_span = 1 | |||
) | [inline] |
Definition at line 194 of file gridlayout.h.
References column_, column_span_, row_, and row_span_.
Referenced by Wt::Grid::operator()().
00195 { 00196 row_ = row; 00197 column_ = column; 00198 row_span_ = row_span; 00199 column_span_ = column_span; 00200 }
int Wt::GridLayout::CellSpan::column_ [private] |
Definition at line 237 of file gridlayout.h.
Referenced by columnFrom(), columnTo(), invalidate(), isValid(), setFromTo(), and setSpan().
int Wt::GridLayout::CellSpan::column_span_ [private] |
Definition at line 239 of file gridlayout.h.
Referenced by columnSpan(), columnTo(), setFromTo(), and setSpan().
const LayoutItem* Wt::GridLayout::CellSpan::li_ [private] |
Definition at line 235 of file gridlayout.h.
Referenced by invalidate(), layoutItem(), and setLayoutItem().
int Wt::GridLayout::CellSpan::row_ [private] |
Definition at line 236 of file gridlayout.h.
Referenced by invalidate(), isValid(), rowFrom(), rowTo(), setFromTo(), and setSpan().
int Wt::GridLayout::CellSpan::row_span_ [private] |
Definition at line 238 of file gridlayout.h.
Referenced by rowSpan(), rowTo(), setFromTo(), and setSpan().
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.