Wt::MatrixLayoutItemValue Class Reference

#include <gridlayout.h>

Collaboration diagram for Wt::MatrixLayoutItemValue:

Collaboration graph
[legend]
List of all members.

Public Types

 Original
 Reference
enum  Type { Original, Reference }

Public Member Functions

 MatrixLayoutItemValue (int type=Original, int row_span=1, int col_span=1)
bool isReference () const
int type () const
int rowSpan () const
int columnSpan () const
bool isMultiCell () const

Private Attributes

int type_
int row_span_
int col_span_

Detailed Description

Definition at line 31 of file gridlayout.h.


Member Enumeration Documentation

enum Wt::MatrixLayoutItemValue::Type

Enumerator:
Original 
Reference 

Definition at line 33 of file gridlayout.h.

00033                  {
00034         Original,
00035         Reference
00036     } Type;


Constructor & Destructor Documentation

Wt::MatrixLayoutItemValue::MatrixLayoutItemValue ( int  type = Original,
int  row_span = 1,
int  col_span = 1 
) [inline]

Definition at line 38 of file gridlayout.h.

00039                                                               :
00040     type_(type), row_span_(row_span), col_span_(col_span) {}


Member Function Documentation

int Wt::MatrixLayoutItemValue::columnSpan (  )  const [inline]

Definition at line 54 of file gridlayout.h.

References col_span_.

Referenced by Wt::GridLayout::setGeometry(), and Wt::GridLayout::validate().

00054                            {
00055         return col_span_;
00056     }

bool Wt::MatrixLayoutItemValue::isMultiCell (  )  const [inline]

Definition at line 58 of file gridlayout.h.

References col_span_, and row_span_.

Referenced by Wt::GridLayout::validate().

00058                              {
00059         return col_span_ > 1 || row_span_ > 1;
00060     }

bool Wt::MatrixLayoutItemValue::isReference (  )  const [inline]

Definition at line 42 of file gridlayout.h.

References Reference, and type_.

Referenced by Wt::GridLayout::setGeometry(), and Wt::GridLayout::validate().

00042                              {
00043         return (type_ == Reference);
00044     }

int Wt::MatrixLayoutItemValue::rowSpan (  )  const [inline]

Definition at line 50 of file gridlayout.h.

References row_span_.

Referenced by Wt::GridLayout::setGeometry(), and Wt::GridLayout::validate().

00050                         {
00051         return row_span_;
00052     }

int Wt::MatrixLayoutItemValue::type (  )  const [inline]

Definition at line 46 of file gridlayout.h.

References type_.

00046                      {
00047         return type_;
00048     }


Member Data Documentation

int Wt::MatrixLayoutItemValue::col_span_ [private]

Definition at line 65 of file gridlayout.h.

Referenced by columnSpan(), and isMultiCell().

int Wt::MatrixLayoutItemValue::row_span_ [private]

Definition at line 64 of file gridlayout.h.

Referenced by isMultiCell(), and rowSpan().

int Wt::MatrixLayoutItemValue::type_ [private]

Definition at line 63 of file gridlayout.h.

Referenced by isReference(), and type().


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

Generated Fri Jul 28 19:29:15 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.