class HT_Palette_Entry


See Also

HT_Palette

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


HT_Palette_Entry::allocated

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.

 


HT_Palette_Entry::color, set_color

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.

 


HT_Palette_Entry::HT_Palette_Entry

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.

 


HT_Palette_Entry::unset

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.