|
ReactOS 0.4.17-dev-243-g1369312
|
#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) |
| HBRUSH | CreateColorBrush (COLORREF color) |
| HBRUSH | CreateFgBrush () |
| HBRUSH | CreateBgBrush () |
Private Member Functions | |
| void | NotifyColorChanged () |
| void | NotifyPaletteChanged () |
Static Private Member Functions | |
| static HBRUSH | CreateDitherBrush (COLORREF color, COLORREF monoColor0, COLORREF monoColor1) |
Private Attributes | |
| COLORREF | m_colors [NUM_COLORS] |
| PAL_TYPE | m_nSelectedPalette |
| COLORREF | m_fgColor |
| COLORREF | m_bgColor |
Definition at line 22 of file palettemodel.h.
| PaletteModel::PaletteModel | ( | ) |
Definition at line 15 of file palettemodel.cpp.
|
inline |
Definition at line 46 of file palettemodel.h.
Referenced by CPaletteWindow::OnPaint().
| HBRUSH PaletteModel::CreateColorBrush | ( | COLORREF | color | ) |
Definition at line 191 of file palettemodel.cpp.
Referenced by CreateBgBrush(), CreateFgBrush(), and CPaletteWindow::OnPaint().
|
staticprivate |
Definition at line 125 of file palettemodel.cpp.
Referenced by CreateColorBrush().
|
inline |
| COLORREF PaletteModel::GetBgColor | ( | ) | const |
Definition at line 97 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), SelectionModel::DeleteSelection(), CTextEditWindow::DoFillBack(), SelectionModel::GetSelectionContents(), CMainWindow::OnCommand(), SelectionBaseTool::OnDrawOverlayOnImage(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnRButtonDblClk(), CCanvasWindow::OnSetCursor(), and SelectionModel::TakeOff().
Definition at line 69 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDown(), CPaletteWindow::OnPaint(), and CPaletteWindow::OnRButtonDown().
| COLORREF PaletteModel::GetFgColor | ( | ) | const |
Definition at line 86 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), CMainWindow::OnCommand(), CCanvasWindow::OnCtlColorEdit(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnLButtonDblClk(), and CCanvasWindow::OnSetCursor().
|
private |
Definition at line 108 of file palettemodel.cpp.
Referenced by SetBgColor(), and SetFgColor().
|
private |
Definition at line 118 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 102 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CPaletteWindow::OnRButtonDblClk(), and CPaletteWindow::OnRButtonDown().
Definition at line 77 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnRButtonDblClk().
Definition at line 91 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CMainWindow::OnCommand(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnLButtonDown().
|
private |
Definition at line 28 of file palettemodel.h.
Referenced by CreateBgBrush(), GetBgColor(), PaletteModel(), SelectPalette(), and SetBgColor().
|
private |
Definition at line 25 of file palettemodel.h.
Referenced by GetColor(), SelectPalette(), and SetColor().
|
private |
Definition at line 27 of file palettemodel.h.
Referenced by CreateFgBrush(), GetFgColor(), PaletteModel(), SelectPalette(), and SetFgColor().
|
private |
Definition at line 26 of file palettemodel.h.
Referenced by CreateColorBrush(), SelectedPalette(), and SelectPalette().