ReactOS
0.4.15-dev-4853-g3a72a52
|
#include <palettemodel.h>
Public Member Functions | |
PaletteModel () | |
PAL_TYPE | SelectedPalette () |
void | SelectPalette (PAL_TYPE nPalette) |
COLORREF | GetColor (UINT nIndex) const |
void | SetColor (UINT nIndex, COLORREF newColor) |
COLORREF | GetFgColor () const |
void | SetFgColor (COLORREF newColor) |
COLORREF | GetBgColor () const |
void | SetBgColor (COLORREF newColor) |
Private Member Functions | |
void | NotifyColorChanged () |
void | NotifyPaletteChanged () |
Private Attributes | |
COLORREF | m_colors [NUM_COLORS] |
PAL_TYPE | m_nSelectedPalette |
COLORREF | m_fgColor |
COLORREF | m_bgColor |
Definition at line 21 of file palettemodel.h.
PaletteModel::PaletteModel | ( | ) |
Definition at line 16 of file palettemodel.cpp.
COLORREF PaletteModel::GetBgColor | ( | ) | const |
Definition at line 85 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), ImageModel::Crop(), ImageModel::DeleteSelection(), CTextEditWindow::DoFillBack(), CSelectionWindow::ForceRefreshSelectionContents(), ImageModel::ImageModel(), CMainWindow::OnCommand(), CTextEditWindow::OnEraseBkGnd(), CSelectionWindow::OnLButtonDown(), CSelectionWindow::OnMouseMove(), and CPaletteWindow::OnPaint().
Definition at line 57 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDown(), CPaletteWindow::OnPaint(), and CPaletteWindow::OnRButtonDown().
COLORREF PaletteModel::GetFgColor | ( | ) | const |
Definition at line 74 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), ImageModel::ImageModel(), CTextEditWindow::OnEraseBkGnd(), and CPaletteWindow::OnPaint().
|
private |
|
private |
PAL_TYPE PaletteModel::SelectedPalette | ( | ) |
Definition at line 28 of file palettemodel.cpp.
Referenced by CMainWindow::OnCommand(), and PaletteModel().
Definition at line 90 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CPaletteWindow::OnRButtonDblClk(), and CPaletteWindow::OnRButtonDown().
Definition at line 65 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnRButtonDblClk().
Definition at line 79 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CMainWindow::OnCommand(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnLButtonDown().
|
private |
Definition at line 27 of file palettemodel.h.
Referenced by GetBgColor(), PaletteModel(), and SetBgColor().
|
private |
Definition at line 24 of file palettemodel.h.
Referenced by GetColor(), SelectPalette(), and SetColor().
|
private |
Definition at line 26 of file palettemodel.h.
Referenced by GetFgColor(), PaletteModel(), and SetFgColor().
|
private |
Definition at line 25 of file palettemodel.h.
Referenced by SelectedPalette(), and SelectPalette().