ReactOS 0.4.16-dev-61-ge128cbc
|
#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 20 of file palettemodel.h.
PaletteModel::PaletteModel | ( | ) |
Definition at line 15 of file palettemodel.cpp.
COLORREF PaletteModel::GetBgColor | ( | ) | const |
Definition at line 84 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), SelectionModel::DeleteSelection(), CTextEditWindow::DoFillBack(), SelectionModel::GetSelectionContents(), CMainWindow::OnCommand(), SelectionBaseTool::OnDrawOverlayOnImage(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnPaint(), CPaletteWindow::OnRButtonDblClk(), and SelectionModel::TakeOff().
Definition at line 56 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDown(), CPaletteWindow::OnPaint(), and CPaletteWindow::OnRButtonDown().
COLORREF PaletteModel::GetFgColor | ( | ) | const |
Definition at line 73 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), CMainWindow::OnCommand(), CCanvasWindow::OnCtlColorEdit(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnPaint().
|
private |
Definition at line 95 of file palettemodel.cpp.
Referenced by SetBgColor(), and SetFgColor().
|
private |
Definition at line 105 of file palettemodel.cpp.
Referenced by SelectPalette(), and SetColor().
PAL_TYPE PaletteModel::SelectedPalette | ( | ) |
Definition at line 22 of file palettemodel.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
Definition at line 27 of file palettemodel.cpp.
Referenced by CMainWindow::OnCommand(), and PaletteModel().
Definition at line 89 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CPaletteWindow::OnRButtonDblClk(), and CPaletteWindow::OnRButtonDown().
Definition at line 64 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnRButtonDblClk().
Definition at line 78 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CMainWindow::OnCommand(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnLButtonDown().
|
private |
Definition at line 26 of file palettemodel.h.
Referenced by GetBgColor(), PaletteModel(), and SetBgColor().
|
private |
Definition at line 23 of file palettemodel.h.
Referenced by GetColor(), SelectPalette(), and SetColor().
|
private |
Definition at line 25 of file palettemodel.h.
Referenced by GetFgColor(), PaletteModel(), and SetFgColor().
|
private |
Definition at line 24 of file palettemodel.h.
Referenced by SelectedPalette(), and SelectPalette().