|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <selectionmodel.h>

Public Attributes | |
| COLORREF | m_rgbBack |
| BOOL | m_bShow |
| BOOL | m_bContentChanged |
| CRect | m_rc |
| POINT | m_ptHit |
| CRect | m_rcOld |
Private Member Functions | |
| SelectionModel (const SelectionModel &) | |
| SelectionModel & | operator= (const SelectionModel &) |
| void | ShiftPtStack (INT dx, INT dy) |
| void | SwapWidthAndHeight () |
Private Attributes | |
| HBITMAP | m_hbmColor |
| HBITMAP | m_hbmMask |
Definition at line 11 of file selectionmodel.h.
| SelectionModel::SelectionModel | ( | ) |
Definition at line 15 of file selectionmodel.cpp.
| SelectionModel::~SelectionModel | ( | ) |
Definition at line 27 of file selectionmodel.cpp.
|
private |
| void SelectionModel::ClearColorImage | ( | ) |
Definition at line 401 of file selectionmodel.cpp.
Referenced by HideSelection(), TakeOff(), and ~SelectionModel().
| void SelectionModel::ClearMaskImage | ( | ) |
Definition at line 392 of file selectionmodel.cpp.
Referenced by HideSelection(), InsertFromHBITMAP(), TakeOff(), and ~SelectionModel().
| void SelectionModel::DeleteSelection | ( | ) |
Definition at line 420 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 350 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnButtonUp(), and SelectionBaseTool::OnMouseMove().
Definition at line 53 of file selectionmodel.cpp.
Referenced by DeleteSelection(), and SelectionBaseTool::OnDrawOverlayOnImage().
Definition at line 33 of file selectionmodel.cpp.
Referenced by DrawBackground().
Definition at line 45 of file selectionmodel.cpp.
Referenced by DrawBackground().
Definition at line 473 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnDrawOverlayOnCanvas().
Definition at line 47 of file selectionmodel.h.
|
inline |
Definition at line 52 of file selectionmodel.h.
| void SelectionModel::DrawSelection | ( | HDC | hDCImage, |
| COLORREF | crBg, | ||
| BOOL | bBgTransparent, | ||
| const CRect & | rc, | ||
| HBITMAP | hbm | ||
| ) |
Definition at line 62 of file selectionmodel.cpp.
Referenced by DrawSelection(), GetSelectionContents(), and SelectionBaseTool::OnDrawOverlayOnImage().
| void SelectionModel::FlipHorizontally | ( | ) |
Definition at line 185 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
| void SelectionModel::FlipVertically | ( | ) |
Definition at line 207 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
| HBITMAP SelectionModel::GetSelectionContents | ( | ) |
Definition at line 91 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand(), and TakeOff().
| void SelectionModel::HideSelection | ( | ) |
Definition at line 410 of file selectionmodel.cpp.
Referenced by DeleteSelection(), Landing(), CMainWindow::OnCommand(), SelectionBaseTool::OnEndDraw(), CToolBox::OnToolsModelToolChanged(), TextTool::quit(), ImageModel::Redo(), ToolBase::reset(), and ImageModel::Undo().
Definition at line 462 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnButtonDown(), CCanvasWindow::OnButtonDown(), and CCanvasWindow::OnSetCursor().
| void SelectionModel::InsertFromHBITMAP | ( | HBITMAP | hbmColor, |
| INT | x = 0, |
||
| INT | y = 0, |
||
| HBITMAP | hbmMask = NULL |
||
| ) |
Definition at line 162 of file selectionmodel.cpp.
Referenced by CMainWindow::InsertSelectionFromHBITMAP(), and StretchSkew().
| void SelectionModel::InvertSelection | ( | ) |
Definition at line 432 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
| BOOL SelectionModel::IsLanded | ( | ) | const |
Definition at line 112 of file selectionmodel.cpp.
Referenced by GetSelectionContents(), Landing(), SelectionBaseTool::OnDrawOverlayOnImage(), and TakeOff().
| void SelectionModel::Landing | ( | ) |
Definition at line 140 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnButtonDown(), SelectionBaseTool::OnEndDraw(), ToolBase::reset(), and ToolsModel::SetActiveTool().
Definition at line 484 of file selectionmodel.cpp.
Referenced by CMainWindow::OnKeyDown().
| void SelectionModel::NotifyContentChanged | ( | ) |
Definition at line 449 of file selectionmodel.cpp.
Referenced by FlipHorizontally(), FlipVertically(), InsertFromHBITMAP(), InvertSelection(), RotateNTimes90Degrees(), and StretchSkew().
|
private |
Definition at line 229 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
Definition at line 82 of file selectionmodel.cpp.
Referenced by BuildMaskFromPoints().
Definition at line 344 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnButtonDown(), SelectionBaseTool::OnButtonUp(), TextTool::OnButtonUp(), SelectionBaseTool::OnMouseMove(), and TextTool::UpdatePoint().
Definition at line 494 of file selectionmodel.cpp.
Referenced by SelectionBaseTool::OnSpecialTweak().
| void SelectionModel::StretchSkew | ( | int | nStretchPercentX, |
| int | nStretchPercentY, | ||
| int | nSkewDegX, | ||
| int | nSkewDegY | ||
| ) |
Definition at line 293 of file selectionmodel.cpp.
Referenced by CMainWindow::OnCommand().
|
private |
| BOOL SelectionModel::TakeOff | ( | ) |
Definition at line 117 of file selectionmodel.cpp.
Referenced by DeleteSelection(), FlipHorizontally(), FlipVertically(), InvertSelection(), moveSelection(), SelectionBaseTool::OnButtonDown(), CMainWindow::OnCommand(), RotateNTimes90Degrees(), StretchSelection(), and StretchSkew().
| BOOL SelectionModel::m_bContentChanged |
Definition at line 20 of file selectionmodel.h.
Referenced by HideSelection(), Landing(), and NotifyContentChanged().
| BOOL SelectionModel::m_bShow |
Definition at line 19 of file selectionmodel.h.
Referenced by CMainWindow::CanUndo(), CCanvasWindow::CanvasHitTest(), DeleteSelection(), CCanvasWindow::DoDraw(), drawFrameOnCanvas(), HideSelection(), hitTest(), CMainWindow::InsertSelectionFromHBITMAP(), Landing(), moveSelection(), SelectionBaseTool::OnButtonUp(), CMainWindow::OnCommand(), SelectionBaseTool::OnDrawOverlayOnCanvas(), SelectionBaseTool::OnDrawOverlayOnImage(), FreeSelTool::OnDrawOverlayOnImage(), RectSelTool::OnDrawOverlayOnImage(), CMainWindow::OnInitMenuPopup(), CCanvasWindow::OnSetCursor(), ToolBase::reset(), StretchSelection(), and StretchSkew().
|
private |
Definition at line 14 of file selectionmodel.h.
Referenced by ClearColorImage(), DrawSelection(), FlipHorizontally(), FlipVertically(), InsertFromHBITMAP(), InvertSelection(), IsLanded(), RotateNTimes90Degrees(), StretchSkew(), and TakeOff().
|
private |
Definition at line 15 of file selectionmodel.h.
Referenced by ClearMaskImage(), DrawBackgroundPoly(), DrawSelection(), FlipHorizontally(), FlipVertically(), InsertFromHBITMAP(), RotateNTimes90Degrees(), setMask(), and StretchSkew().
| POINT SelectionModel::m_ptHit |
Definition at line 22 of file selectionmodel.h.
Referenced by Dragging(), SelectionBaseTool::OnButtonDown(), and SelectionModel().
| CRect SelectionModel::m_rc |
Definition at line 21 of file selectionmodel.h.
Referenced by Dragging(), drawFrameOnCanvas(), DrawSelection(), FlipHorizontally(), FlipVertically(), GetSelectionContents(), ToolsModel::GetToolSize(), HideSelection(), hitTest(), InsertFromHBITMAP(), Landing(), moveSelection(), SelectionBaseTool::OnButtonUp(), TextTool::OnButtonUp(), RectSelTool::OnDrawOverlayOnImage(), TextTool::OnDrawOverlayOnImage(), RotateNTimes90Degrees(), SelectionModel(), setMask(), SetRectFromPoints(), StretchSelection(), StretchSkew(), SwapWidthAndHeight(), and TakeOff().
| CRect SelectionModel::m_rcOld |
Definition at line 23 of file selectionmodel.h.
Referenced by DrawBackgroundPoly(), DrawBackgroundRect(), GetSelectionContents(), HideSelection(), Landing(), SelectionModel(), setMask(), and TakeOff().
| COLORREF SelectionModel::m_rgbBack |
Definition at line 18 of file selectionmodel.h.
Referenced by SelectionBaseTool::OnDrawOverlayOnImage(), and TakeOff().