mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
34 lines
769 B
C++
34 lines
769 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
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
/* 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);
|
|
};
|