TColorDisplay Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


A color test box More...

#include <colorsel.h>

Inherits: TView

Public Members

Protected Members


Detailed Description

Implements a test box used to display the current selected color.


TColorDisplay( const TRect& bounds, const char *aText ) [public]

Constructor.

`bounds' is the bounding rectangle of the view. `aText' is the string printed in the view.

~TColorDisplay() [public virtual]

Destructor.

void draw() [public virtual]

Draws the test box.

void handleEvent( TEvent& event ) [public virtual]

Handles TColorDisplay events.

void setColor( uchar *aColor ) [public virtual]

Change the currently displayed color.

TStreamable* build() [public static]

Creates a new TColorDisplay.

Used to recover the view from a stream.

uchar *color[protected]

Stores the current color.

const char *text[protected]

Stores a pointer to the displayed text.

TColorDisplay( 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