mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
33 lines
755 B
C++
33 lines
755 B
C++
/*
|
|
* PROJECT: PAINT for ReactOS
|
|
* LICENSE: LGPL
|
|
* FILE: base/applications/mspaint/palettemodel.h
|
|
* PURPOSE: Keep track of palette data, notify listeners
|
|
* PROGRAMMERS: Benedikt Freisen
|
|
*/
|
|
|
|
/* CLASSES **********************************************************/
|
|
|
|
class PaletteModel
|
|
{
|
|
private:
|
|
int m_colors[28];
|
|
int m_nSelectedPalette;
|
|
int m_fgColor;
|
|
int m_bgColor;
|
|
|
|
void NotifyColorChanged();
|
|
void NotifyPaletteChanged();
|
|
|
|
public:
|
|
PaletteModel();
|
|
int SelectedPalette();
|
|
void SelectPalette(int nPalette);
|
|
int GetColor(int nIndex);
|
|
void SetColor(int nIndex, int newColor);
|
|
int GetFgColor();
|
|
void SetFgColor(int newColor);
|
|
int GetBgColor();
|
|
void SetBgColor(int newColor);
|
|
};
|