Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
TPalette Class Reference
Simple class used to create and manipulate palette arrays.
More...
#include <views.h>
List of all members.
Detailed Description
TPalette is a simple class used to create and manipulate palette arrays.
Although palettes are arrays of char, and are often referred to as strings, they are not the conventional null-terminated strings found in C. Normal C string functions cannot be used.
The first byte of a palette string holds its length (not counting the first byte itself). Each basic view has a default palette that determines the usual colors assigned to the various parts of a view, such as scroll bars, frames, buttons, text, and so on.
Definition at line 752 of file views.h.
Constructor & Destructor Documentation
TPalette::TPalette (
|
const char * d,
|
|
ushort len )
|
|
|
Creates a TPalette object with string `d' and length `len'. The private member data is set with `len' in its first byte, following by the array `d'. |
TPalette::TPalette (
|
const TPalette & tp )
|
|
|
Creates a new palette by copying the palette `tp'. |
Member Function Documentation
TPalette & TPalette::operator= (
|
const TPalette & tp )
|
|
|
The code p = tp; copies the palette `tp' to the palette `p'. |
uchar & TPalette::operator[] (
|
int index ) const
|
|
|
The subscripting operator returns the character at the index'th position. |
Member Data Documentation
|
Undocumented.
Definition at line 781 of file views.h. |
The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:31 2001 for TVision by
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001