TColorSelector Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


A color selector More...

#include <colorsel.h>

Inherits: TView

Public Members

Protected Members


Detailed Description

Displays a color selector. This view may be used to change the standard color settings of TVision.


enum ColorSel ( csBackground, csForeground ) [public]

This view can handle two sets of colors: the 8 background colors or the 16 foreground colors.

TColorSelector( const TRect& Bounds, ColorSel ASelType ) [public]

Constructor.

`Bounds' is the bounding rectangle of the view. `ASelType' may be one of the following values:

csBackground - show the 8 background colors

csForeground - show the 16 foreground colors

void draw() [public virtual]

Draws the color selector.

void handleEvent( TEvent& event ) [public virtual]

Handles TColorSelector events.

static char icon[public]

This character is used to mark the current color.

TStreamable* build() [public static]

Creates a new TColorSelector.

Used to recover the view from a stream.

uchar color[protected]

This value specifies the current color.

ColorSel selType[protected]

Specifies if the view shows the 8 background colors or the 16 foreground colors.

TColorSelector( StreamableInit ) [protected]

Constructor.

Used to recover the view from a stream.

void write( opstream& os ) [protected virtual]

Used to store the view in a stream.

void* read( ipstream& is ) [protected virtual]

Used to recover the view from a stream.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc