filters

Swinder::PaletteRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::PaletteRecord:
Swinder::Record

Public Member Functions

unsigned int rtti ()
 
 PaletteRecord ()
 
 ~PaletteRecord ()
 
Color color (unsigned i) const
 
unsigned count () const
 
virtual void setData (unsigned size, const unsigned char *data)
 
virtual const char * name ()
 
virtual void dump (std::ostream &out) const
 
- Public Member Functions inherited from Swinder::Record
 Record ()
 
virtual ~Record ()
 
void setVersion (unsigned v)
 
unsigned version ()
 
void setPosition (unsigned pos)
 
unsigned position () const
 

Static Public Attributes

static const unsigned int id = 0x0092
 
- Static Public Attributes inherited from Swinder::Record
static const unsigned int id = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from Swinder::Record
static Record * create (unsigned type)
 
- Protected Attributes inherited from Swinder::Record
unsigned stream_position
 
unsigned ver
 

Detailed Description

Class PaletteRecord lists colors.

Definition at line 2128 of file excel.h.

Constructor & Destructor Documentation

◆ PaletteRecord()

PaletteRecord::PaletteRecord ( )

Creates a new Palette record.

Definition at line 3566 of file excel.cpp.

◆ ~PaletteRecord()

PaletteRecord::~PaletteRecord ( )

Destroy the record.

Definition at line 3572 of file excel.cpp.

Member Function Documentation

◆ color()

Color PaletteRecord::color ( unsigned  i) const

Gets the n-th color.

Definition at line 3577 of file excel.cpp.

◆ count()

unsigned PaletteRecord::count ( ) const

Returns the number of colors in the palette.

Definition at line 3582 of file excel.cpp.

◆ dump()

void PaletteRecord::dump ( std::ostream &  out) const
virtual

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 3603 of file excel.cpp.

◆ name()

virtual const char * Swinder::PaletteRecord::name ( )
inlinevirtual

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2160 of file excel.h.

◆ rtti()

unsigned int Swinder::PaletteRecord::rtti ( )
inlinevirtual

Reimplemented from Swinder::Record.

Definition at line 2134 of file excel.h.

◆ setData()

void PaletteRecord::setData ( unsigned  size,
const unsigned char *  data 
)
virtual

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 3587 of file excel.cpp.

Member Data Documentation

◆ id

const unsigned int PaletteRecord::id = 0x0092
static

Definition at line 2132 of file excel.h.


The documentation for this class was generated from the following files: