TGulBorder::TColors Class Reference

#include <mw/gulbordr.h>

Link against: egul.lib

class TGulBorder::TColors
Public Attributes
TRgb iBack
TRgb iDark
TRgb iInternalBack
TRgb iLight
TRgb iLine
TRgb iMid
TRgb iMidlight
Public Member Functions
TColors()

Detailed Description

Represents the colours used within the border and for the optional single pixel border outlines.

These colours are stored using TRgb values.

An object of this type can be populated using ColorUtils::GetRgbDerivedBorderColors().

The colours used inside the border are derived from iBack, the border's background colour, so that border colours can be lighter or darker shades of the colour used in the main body of the control they enclose. Different combinations of light and dark shades are used to draw opposite border sides, to achieve a raised or sunken effect.

Member Attribute Documentation

iBack

TRgb iBack

The background colour for the border.

The other colours used in the border are derived from this.

By default, KRgbWhite.

iDark

TRgb iDark

The darkest colour.

By default, KRgbDarkGray.

iInternalBack

TRgb iInternalBack

Not used.

iLight

TRgb iLight

The lightest colour.

By default, KRgbWhite.

iLine

TRgb iLine

The line colour.

This is the colour used to draw the outlines on either side of the border. Not all border types have an outline. By default, KRgbBlack.

iMid

TRgb iMid

The mid dark colour.

This colour is midway between iBack and iDark. By default, KRgbDarkGray.

iMidlight

TRgb iMidlight

The mid light colour.

This colour is midway between iBack and iLight. By default, KRgbWhite.

Constructor & Destructor Documentation

TColors ( )

IMPORT_CTColors()

Default constructor.

Initialises the border colours to blacks, whites and greys. For details, see the data members.