#include <colorsel.h>
Inheritance diagram for TColorSelector::
Public Types | |
enum | ColorSel { csBackground = 0, csForeground } |
Public Methods | |
TColorSelector (const TRect &bounds, ColorSel aSelType) | |
virtual void | draw () |
virtual void | handleEvent (TEvent &event) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
char | icon |
const char* const | name |
Protected Methods | |
TColorSelector (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
uchar | color |
ColorSel | selType |
TColorSelector is a view for displaying the color selections available.
Definition at line 206 of file colorsel.h.
|
This view can handle two sets of colors: the 8 background colors or the 16 foreground colors. Definition at line 213 of file colorsel.h. |
|
Constructor. Calls TView constructor TView(bounds) to create a view with the given `bounds'. Sets options data member with ofSelectable, ofFirstClick, and ofFramed. Sets eventMask to evBroadcast, selType to `aSelType', and color to 0. `aSelType' may be one of the following values:
Constant Value Meaning csBackground 0 show the 8 background colors csForeground 1 show the 16 foreground colors |
|
Constructor. Used to recover the view from a stream. |
|
Creates a new TColorSelector. Called to create an object in certain stream-reading situations. Reimplemented from TView. |
|
Draws the color selector. Reimplemented from TView. |
|
Handles mouse and key events: you can click on a given color indicator to select that color, or you can select colors by positioning the cursor with the arrow keys. Changes invoke drawView() when appropriate. Reimplemented from TView. |
|
Used to recover the view from a stream. Reads from the input stream `is'. Reimplemented from TView. |
|
Used to store the view in a stream. Writes to the output stream `os'. Reimplemented from TView. |
|
Holds the currently selected color. Definition at line 252 of file colorsel.h. |
|
This character is used to mark the current color. Definition at line 247 of file colorsel.h. |
|
Undocumented. Reimplemented from TView. Definition at line 289 of file colorsel.h. |
|
Specifies if the view shows the 8 background colors or the 16 foreground colors. Gives attribute (foreground or background) of the currently selected color. ColorSel is an enum defined as follows:
enum ColorSel { csBackground = 0, csForeground } Definition at line 264 of file colorsel.h. |