LibreOffice Module embedserv (master) 1
|
#include <syswinwrapper.hxx>
Public Types | |
enum | StyleFlags { solidLine = 1 , dottedLine = 2 , hatchedBorder = 4 , resizeInside = 8 , resizeOutside = 16 , hatchInside = 32 } |
enum | TrackerHit { hitNothing = -1 , hitTopLeft = 0 , hitTopRight = 1 , hitBottomRight = 2 , hitBottomLeft = 3 , hitTop = 4 , hitRight = 5 , hitBottom = 6 , hitLeft = 7 , hitMiddle = 8 } |
Public Member Functions | |
Tracker () | |
Tracker (LPCRECT lpSrcRect, UINT nStyle) | |
void | Draw (HDC hDC) const |
void | GetTrueRect (LPRECT lpTrueRect) const |
BOOL | SetCursor (HWND hWnd, UINT nHitTest) const |
BOOL | Track (HWND hWnd, POINT point, BOOL bAllowInvert=FALSE, HWND hWndClipTo=nullptr) |
int | HitTest (POINT point) const |
int | NormalizeHit (int nHandle) const |
virtual void | DrawTrackerRect (LPRECT lpRect, HWND hWndClipTo, HDC hDC, HWND hWnd) |
virtual void | AdjustRect (int nHandle, LPRECT lpRect) |
virtual void | OnChangedRect (const RECT &rectOld) |
virtual UINT | GetHandleMask () const |
virtual | ~Tracker () |
Public Attributes | |
UINT | m_nStyle |
RECT | m_rect |
SIZE | m_sizeMin |
int | m_nHandleSize |
Protected Member Functions | |
int | HitTestHandles (POINT point) const |
void | GetHandleRect (int nHandle, RECT *pHandleRect) const |
void | GetModifyPointers (int nHandle, int **ppx, int **ppy, int *px, int *py) |
virtual int | GetHandleSize (LPRECT lpRect=nullptr) const |
BOOL | TrackHandle (int nHandle, HWND hWnd, POINT point, HWND hWndClipTo) |
void | Construct () |
Protected Attributes | |
BOOL | m_bAllowInvert |
RECT | m_rectLast |
SIZE | m_sizeLast |
BOOL | m_bErase |
BOOL | m_bFinalErase |
Definition at line 65 of file syswinwrapper.hxx.
Enumerator | |
---|---|
solidLine | |
dottedLine | |
hatchedBorder | |
resizeInside | |
resizeOutside | |
hatchInside |
Definition at line 72 of file syswinwrapper.hxx.
Enumerator | |
---|---|
hitNothing | |
hitTopLeft | |
hitTopRight | |
hitBottomRight | |
hitBottomLeft | |
hitTop | |
hitRight | |
hitBottom | |
hitLeft | |
hitMiddle |
Definition at line 79 of file syswinwrapper.hxx.
Tracker::Tracker | ( | ) |
Definition at line 221 of file tracker.cxx.
Tracker::Tracker | ( | LPCRECT | lpSrcRect, |
UINT | nStyle | ||
) |
Definition at line 226 of file tracker.cxx.
References Construct(), m_nStyle, and m_rect.
|
virtual |
Definition at line 290 of file tracker.cxx.
|
virtual |
Definition at line 504 of file tracker.cxx.
References abs(), afxRectInfo, GetModifyPointers(), hitMiddle, m_bAllowInvert, m_rect, m_sizeMin, nHandle, and px.
Referenced by TrackHandle().
|
protected |
Definition at line 238 of file tracker.cxx.
References afxBlackDottedPen, afxCursors, afxHandleSize, afxHatchBrush, FALSE, i, m_bErase, m_bFinalErase, m_nHandleSize, m_nStyle, m_rectLast, m_sizeLast, m_sizeMin, PS_DOT, and RGB.
Referenced by Tracker().
void Tracker::Draw | ( | HDC | hDC | ) | const |
Definition at line 577 of file tracker.cxx.
References afxBlackDottedPen, afxHatchBrush, BLACK_PEN, dottedLine, GetHandleMask(), GetHandleRect(), GetTrueRect(), hatchedBorder, hatchInside, i, m_nStyle, m_rect, MM_TEXT, NormalizeRect(), NULL_BRUSH, NULL_PEN, OPAQUE, RECT, Rectangle, resizeInside, resizeOutside, RGB, and solidLine.
Referenced by winwrap::HatchWndProc().
|
virtual |
Definition at line 539 of file tracker.cxx.
References DrawDragRect(), GetHandleSize(), hatchedBorder, m_bErase, m_bFinalErase, m_nStyle, m_rectLast, m_sizeLast, NormalizeRect(), RECT, size, SIZE, and winwrap::TransformRect().
Referenced by TrackHandle().
|
virtual |
Definition at line 724 of file tracker.cxx.
References abs(), m_nHandleSize, m_rect, and size.
Referenced by Draw(), and HitTestHandles().
|
protected |
Definition at line 672 of file tracker.cxx.
References afxHandleInfo, dottedLine, GetHandleSize(), m_nStyle, m_rect, nHandle, NormalizeHit(), NormalizeRect(), RECT, resizeOutside, size, and solidLine.
Referenced by Draw(), and HitTestHandles().
|
protectedvirtual |
Definition at line 707 of file tracker.cxx.
References abs(), m_nHandleSize, m_nStyle, m_rect, resizeOutside, and size.
Referenced by DrawTrackerRect(), GetHandleRect(), and GetTrueRect().
|
protected |
Definition at line 801 of file tracker.cxx.
References afxHandleInfo, hitMiddle, hitTopLeft, m_rect, nHandle, and px.
Referenced by AdjustRect(), and TrackHandle().
void Tracker::GetTrueRect | ( | LPRECT | lpTrueRect | ) | const |
Definition at line 736 of file tracker.cxx.
References dottedLine, GetHandleSize(), hatchedBorder, m_nStyle, m_rect, NormalizeRect(), RECT, resizeOutside, and solidLine.
Referenced by Draw(), HitTest(), and HitTestHandles().
int Tracker::HitTest | ( | POINT | point | ) | const |
Definition at line 295 of file tracker.cxx.
References GetTrueRect(), hitMiddle, hitNothing, HitTestHandles(), m_nStyle, NormalizeRect(), point(), RECT, resizeInside, and resizeOutside.
|
protected |
Definition at line 766 of file tracker.cxx.
References dottedLine, GetHandleMask(), GetHandleRect(), GetTrueRect(), hatchedBorder, hitMiddle, hitNothing, i, m_nStyle, m_rect, NormalizeRect(), point(), RECT, and solidLine.
Referenced by HitTest(), SetCursor(), and Track().
Definition at line 750 of file tracker.cxx.
References afxHandleInfo, hitMiddle, hitNothing, m_rect, and nHandle.
Referenced by GetHandleRect(), and SetCursor().
|
virtual |
Definition at line 499 of file tracker.cxx.
Referenced by TrackHandle().
BOOL Tracker::SetCursor | ( | HWND | hWnd, |
UINT | nHitTest | ||
) | const |
Definition at line 313 of file tracker.cxx.
References afxCursors, FALSE, hatchedBorder, hitMiddle, HitTestHandles(), m_nStyle, m_rect, nHandle, NormalizeHit(), point(), POINT, SetCursor(), and TRUE.
Referenced by winwrap::HatchWndProc(), SetCursor(), and Track().
BOOL Tracker::Track | ( | HWND | hWnd, |
POINT | point, | ||
BOOL | bAllowInvert = FALSE , |
||
HWND | hWndClipTo = nullptr |
||
) |
Definition at line 346 of file tracker.cxx.
References FALSE, HitTestHandles(), m_bAllowInvert, nHandle, point(), SetCursor(), and TrackHandle().
Referenced by winwrap::HatchWndProc().
Definition at line 364 of file tracker.cxx.
References AdjustRect(), DrawTrackerRect(), FALSE, GetDC, GetModifyPointers(), hitMiddle, m_bErase, m_bFinalErase, m_rect, nHandle, OnChangedRect(), point(), px, RECT, SAL_WARN_IF, and TRUE.
Referenced by Track().
|
protected |
Definition at line 117 of file syswinwrapper.hxx.
Referenced by AdjustRect(), and Track().
|
protected |
Definition at line 120 of file syswinwrapper.hxx.
Referenced by Construct(), DrawTrackerRect(), and TrackHandle().
|
protected |
Definition at line 121 of file syswinwrapper.hxx.
Referenced by Construct(), DrawTrackerRect(), and TrackHandle().
int winwrap::Tracker::m_nHandleSize |
Definition at line 92 of file syswinwrapper.hxx.
Referenced by Construct(), GetHandleMask(), and GetHandleSize().
UINT winwrap::Tracker::m_nStyle |
Definition at line 89 of file syswinwrapper.hxx.
Referenced by Construct(), Draw(), DrawTrackerRect(), GetHandleRect(), GetHandleSize(), GetTrueRect(), HitTest(), HitTestHandles(), SetCursor(), and Tracker().
RECT winwrap::Tracker::m_rect |
Definition at line 90 of file syswinwrapper.hxx.
Referenced by AdjustRect(), Draw(), GetHandleMask(), GetHandleRect(), GetHandleSize(), GetModifyPointers(), GetTrueRect(), winwrap::HatchWndProc(), HitTestHandles(), NormalizeHit(), SetCursor(), Tracker(), and TrackHandle().
|
protected |
Definition at line 118 of file syswinwrapper.hxx.
Referenced by Construct(), and DrawTrackerRect().
|
protected |
Definition at line 119 of file syswinwrapper.hxx.
Referenced by Construct(), and DrawTrackerRect().
SIZE winwrap::Tracker::m_sizeMin |
Definition at line 91 of file syswinwrapper.hxx.
Referenced by AdjustRect(), and Construct().