Home | Modules | Class Hierarchy | Alphabetical List | Compound List | Related Pages

# StyledRegion Class Reference
[Handlers]

Inheritance diagram for StyledRegion:

## Detailed Description

Contains information about region mapping into real colors.

These mappings are stored in HRD files and processed by StyledHRDMapper class.

## Public Member Functions

| StyledRegion (bool _bfore, bool _bback, unsigned int _fore, unsigned int _back, unsigned int _style)
| Common constructor.
| StyledRegion ()
| Empty constructor.
| StyledRegion (const StyledRegion &rd)
| Copy constructor.
void | assignParent (const RegionDefine *_parent)
| Completes region define with it's parent values.
void | setValues (const RegionDefine *_rd)
RegionDefine * | clone () const

## Static Public Member Functions

static const StyledRegion * | cast (const RegionDefine *rd)
| Static method, used to cast RegionDefine class into StyledRegion class.

## Data Fields

bool | bfore
| Is foreground value assigned?
bool | bback
| Is background value assigned?
unsigned int | fore
| Foreground color of region.
unsigned int | back
| Background color of region.
unsigned int | style
| Bit mask of region's style (bold, italic, underline).

## Static Public Attributes

static const int | RD_BOLD = 1
static const int | RD_ITALIC = 2
static const int | RD_UNDERLINE = 4
static const int | RD_STRIKEOUT = 8

## Constructor & Destructor Documentation

StyledRegion::StyledRegion | ( | const StyledRegion & | rd | ) | `[inline]`

| Copy constructor. Clones all values including region reference.

## Member Function Documentation

static const StyledRegion* StyledRegion::cast | ( | const RegionDefine * | rd | ) | `[inline, static]`

Static method, used to cast RegionDefine class into StyledRegion class.

Exceptions:

  | Exception | If casing is not available.

void StyledRegion::assignParent | ( | const RegionDefine * | _parent | ) | `[inline, virtual]`

| Completes region define with it's parent values. The values only replaced, are these, which are empty in this region define. Style is replaced using OR operation. Implements RegionDefine.

Colorer-take5 Library. Copyright © 1999-2006 Igor Russkih.
Generated at Fri Nov 24 17:13:14 2006 by doxygen 1.4.6.