Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

CB2::Size Class Reference

Size values class. More...

#include <Widgets.h>

Inheritance diagram for CB2::Size:

CB2::Class List of all members.

Public Types

enum  size_type { px, em }
 Unit type. More...


Public Member Functions

 Size (const int value, const size_type type)
 Constructor.

String GetSize () const
 Get size value including unit.


Public Attributes

int tag
 Tag for user-specific data.


Private Attributes

int svalue
 Scalar value.

size_type stype
 Units.


Detailed Description

Size values class.

Instances of this class hold scalar size (length) values including the units.


Member Enumeration Documentation

enum CB2::Size::size_type
 

Unit type.

Enumeration values:
px 
em 


Constructor & Destructor Documentation

Size::Size const int  value,
const size_type  type
 

Constructor.

Create size value.

Parameters:
value Scalar value.
type Unit.


Member Function Documentation

String Size::GetSize  )  const
 

Get size value including unit.

Returns:
Size value (scalar and unit).


Member Data Documentation

size_type CB2::Size::stype [private]
 

Units.

int CB2::Size::svalue [private]
 

Scalar value.

int CB2::Class::tag [inherited]
 

Tag for user-specific data.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 23:26:50 2004 for ColorBox2 by doxygen 1.3.7