home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool.zip
/
OOL
/
include
/
XPal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-03-30
|
744b
|
30 lines
#if !defined( __XPALETTE_HPP__ )
#define __XPALETTE_HPP__
#include <xheaders.h>
#include "xobject.h"
// Class Definition
class _export_ XPalette : public XObject
{
friend class XBlitter;
private:
ULONG aulData[256];
public:
// ctor/dtor
XPalette( void );
virtual ~XPalette( void ) {}
// sets a range of colors
void SetColors( PULONG pulData, const ULONG ulStart = 10, const ULONG ulNumEntries = 236 );
// enable/disable palette
void Enable( BOOL flInvalidate = TRUE );
void Disable( BOOL flInvalidate = TRUE );
};
#endif