class HT_Palette_Entry
Objects of this class are entries in a HT_Palette (color table).
See Also
Methods
allocated Indicates whether or not this palette entry has been set.
color, set_color Sets or retrieves the color value for this palette entry.
unset Marks the palette entry as though the value had not been set.
Constructor
HT_Palette_Entry Class constructor.
Operator
== Compares two HT_Palette_Entry objects for equality.
!= Compares two HT_Palette_Entry objects for inequality.
Purpose
Indicates whether or not this palette entry has been set.
Synopsis
int allocated (void) const
Details
If this color index has been set, a non-zero value is returned, otherwise zero is returned.
Purpose
Sets or retrieves the color value for this palette entry.
Synopsis
HT_RGB32 color (void) const
void set_color (HT_RGB32 color)
Details
The first form retrieves the value of this palette entry. The second form sets the value of this palette entry and internally marks a flag indicating the entry has been allocated.
Purpose
Constructor for color table entry.
Synopsis
HT_Palette_Entry ()
HT_Palette_Entry (HT_RGB32 color)
HT_Palette_Entry (HT_Palette_Entry &p)
Details
HT_Palette_Entry () initializes all three color components to 205 and sets the allocation count to 0.
The second method initializes the data according to the input values, and sets the allocation count to 1.
The third method copies the palette entry provided as input including both the color and allocation count values.
Purpose
Marks the palette entry as though the value had not been set.
Synopsis
void unset (void)
Details
Indicates the palette entry has not been set. However, if multiple set operations have been made to this palette entry, then multiple unsets must be done to bring the palette entry to a full unset state.