ReactOS 0.4.15-dev-7934-g1dc8d80
palettemodel.h
Go to the documentation of this file.
1/*
2 * PROJECT: PAINT for ReactOS
3 * LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
4 * PURPOSE: Keep track of palette data, notify listeners
5 * COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
6 */
7
8#pragma once
9
10#define NUM_COLORS 28
11
13{
16};
17
18/* CLASSES **********************************************************/
19
21{
22private:
27
28 void NotifyColorChanged();
30
31public:
34 void SelectPalette(PAL_TYPE nPalette);
35 COLORREF GetColor(UINT nIndex) const;
36 void SetColor(UINT nIndex, COLORREF newColor);
37 COLORREF GetFgColor() const;
38 void SetFgColor(COLORREF newColor);
39 COLORREF GetBgColor() const;
40 void SetBgColor(COLORREF newColor);
41};
PAL_TYPE SelectedPalette()
COLORREF GetBgColor() const
void SetFgColor(COLORREF newColor)
void SetBgColor(COLORREF newColor)
void SelectPalette(PAL_TYPE nPalette)
void NotifyPaletteChanged()
void SetColor(UINT nIndex, COLORREF newColor)
COLORREF GetFgColor() const
PAL_TYPE m_nSelectedPalette
Definition: palettemodel.h:24
COLORREF GetColor(UINT nIndex) const
COLORREF m_fgColor
Definition: palettemodel.h:25
COLORREF m_colors[NUM_COLORS]
Definition: palettemodel.h:23
COLORREF m_bgColor
Definition: palettemodel.h:26
void NotifyColorChanged()
unsigned int UINT
Definition: ndis.h:50
PAL_TYPE
Definition: palettemodel.h:13
@ PAL_MODERN
Definition: palettemodel.h:14
@ PAL_OLDTYPE
Definition: palettemodel.h:15
#define NUM_COLORS
Definition: palettemodel.h:10
DWORD COLORREF
Definition: windef.h:300