Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

palette_entry Class Reference

#include <htpal.h>

Inheritance diagram for palette_entry:

ht_registry_data Object List of all members.

Public Member Functions

 palette_entry (UINT idx=0, vcp color=0)
virtual bool editdialog (const char *keyname)
virtual void strvalue (char *buf32bytes)
virtual int load (ht_object_stream *f)
virtual OBJECT_ID object_id () const
virtual void store (ht_object_stream *f)

Public Attributes

UINT idx
vcp color

Constructor & Destructor Documentation

palette_entry::palette_entry UINT  idx = 0,
vcp  color = 0
 

Definition at line 218 of file htpal.cc.

References color, idx, UINT, and vcp.


Member Function Documentation

bool palette_entry::editdialog const char *  keyname  )  [virtual]
 

Reimplemented from ht_registry_data.

Definition at line 224 of file htpal.cc.

References cf_light, cf_transparent, color, ht_view::databuf_get(), ht_dialog::done(), FS_KILLER, FS_TITLE, ht_label::init(), ht_color_block::init(), ht_dialog::init(), ht_window::insert(), ht_dialog::run(), screen, genericdrawbuf::size, VCP, VCP_BACKGROUND, and VCP_FOREGROUND.

int palette_entry::load ht_object_stream f  )  [virtual]
 

loads object from object stream.

Returns:
ht_stream errorcode

Reimplemented from Object.

Definition at line 272 of file htpal.cc.

References color, ht_layer_stream::get_error(), ht_object_stream::getIntHex(), and idx.

OBJECT_ID palette_entry::object_id  )  const [virtual]
 

Returns:
unique object id.

Reimplemented from Object.

Definition at line 279 of file htpal.cc.

References ATOM_PALETTE_ENTRY.

void palette_entry::store ht_object_stream f  )  [virtual]
 

stores object.

Reimplemented from Object.

Definition at line 284 of file htpal.cc.

References color, idx, and ht_object_stream::putIntHex().

void palette_entry::strvalue char *  buf32bytes  )  [virtual]
 

Reimplemented from ht_registry_data.

Definition at line 290 of file htpal.cc.

References color, tag_make_color(), tag_make_default_color(), VC_BLACK, VC_TRANSPARENT, VC_WHITE, VCP, VCP_BACKGROUND, and VCP_FOREGROUND.


Member Data Documentation

vcp palette_entry::color
 

Definition at line 43 of file htpal.h.

Referenced by editdialog(), load(), palette_entry(), store(), and strvalue().

UINT palette_entry::idx
 

Definition at line 42 of file htpal.h.

Referenced by load(), palette_entry(), and store().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:08 2004 by doxygen 1.3.5