Wt::GridLayout::CellSpan Class Reference

#include <gridlayout.h>

Collaboration diagram for Wt::GridLayout::CellSpan:

Collaboration graph
[legend]
List of all members.

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 LayoutItemlayoutItem () 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 LayoutItemli_
int row_
int column_
int row_span_
int column_span_

Detailed Description

Definition at line 165 of file gridlayout.h.


Constructor & Destructor Documentation

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) {}


Member Function Documentation

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=().

00176                           {
00177             li_ = 0;
00178             row_ = -1;
00179             column_ = -1;
00180         }

bool Wt::GridLayout::CellSpan::isValid (  )  const [inline]

Definition at line 182 of file gridlayout.h.

References column_, and row_.

Referenced by Wt::Grid::operator=().

00182                              {
00183             return row_ >= 0 && column_ >= 0;
00184         }

const LayoutItem* Wt::GridLayout::CellSpan::layoutItem (  )  const [inline]

Definition at line 190 of file gridlayout.h.

References li_.

00190                                              {
00191             return li_;
00192         }

int Wt::GridLayout::CellSpan::rowFrom (  )  const [inline]

Definition at line 218 of file gridlayout.h.

References row_.

00218                             {
00219             return row_;
00220         }

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]

Definition at line 226 of file gridlayout.h.

References row_, and row_span_.

00226                           {
00227             return row_ + row_span_ - 1;
00228         }

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         }


Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated Fri Jul 28 19:29:31 2006.
Copyright © 1998-2003 by the respective authors.

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.