ReactOS
0.4.12-dev-685-gf36cbf7
palettemodel.h
Go to the documentation of this file.
1
/*
2
* PROJECT: PAINT for ReactOS
3
* LICENSE: LGPL
4
* FILE: base/applications/mspaint/palettemodel.h
5
* PURPOSE: Keep track of palette data, notify listeners
6
* PROGRAMMERS: Benedikt Freisen
7
*/
8
9
#pragma once
10
11
/* CLASSES **********************************************************/
12
13
class
PaletteModel
14
{
15
private
:
16
int
m_colors
[28];
17
int
m_nSelectedPalette
;
18
int
m_fgColor
;
19
int
m_bgColor
;
20
21
void
NotifyColorChanged
();
22
void
NotifyPaletteChanged
();
23
24
public
:
25
PaletteModel
();
26
int
SelectedPalette
();
27
void
SelectPalette
(
int
nPalette);
28
int
GetColor
(
int
nIndex
);
29
void
SetColor
(
int
nIndex
,
int
newColor);
30
int
GetFgColor
();
31
void
SetFgColor
(
int
newColor);
32
int
GetBgColor
();
33
void
SetBgColor
(
int
newColor);
34
};
PaletteModel::PaletteModel
PaletteModel()
Definition:
palettemodel.cpp:15
PaletteModel::SelectedPalette
int SelectedPalette()
Definition:
palettemodel.cpp:22
PaletteModel::NotifyPaletteChanged
void NotifyPaletteChanged()
Definition:
palettemodel.cpp:96
PaletteModel::m_colors
int m_colors[28]
Definition:
palettemodel.h:16
PaletteModel::SetColor
void SetColor(int nIndex, int newColor)
Definition:
palettemodel.cpp:59
PaletteModel
Definition:
palettemodel.h:13
PaletteModel::GetBgColor
int GetBgColor()
Definition:
palettemodel.cpp:79
PaletteModel::SetBgColor
void SetBgColor(int newColor)
Definition:
palettemodel.cpp:84
PaletteModel::NotifyColorChanged
void NotifyColorChanged()
Definition:
palettemodel.cpp:90
PaletteModel::SelectPalette
void SelectPalette(int nPalette)
Definition:
palettemodel.cpp:27
PaletteModel::m_bgColor
int m_bgColor
Definition:
palettemodel.h:19
PaletteModel::GetColor
int GetColor(int nIndex)
Definition:
palettemodel.cpp:51
PaletteModel::m_nSelectedPalette
int m_nSelectedPalette
Definition:
palettemodel.h:17
PaletteModel::m_fgColor
int m_fgColor
Definition:
palettemodel.h:18
PaletteModel::SetFgColor
void SetFgColor(int newColor)
Definition:
palettemodel.cpp:73
nIndex
int nIndex
Definition:
msvc.h:77
PaletteModel::GetFgColor
int GetFgColor()
Definition:
palettemodel.cpp:68
base
applications
mspaint
palettemodel.h
Generated on Fri Feb 15 2019 06:02:54 for ReactOS by
1.8.15