20#include <com/sun/star/accessibility/AccessibleRole.hpp>
22#include <osl/diagnose.h>
49 std::array<tools::Rectangle,8> aRects;
94 std::array<tools::Rectangle,4> aRects;
121 rRenderContext.
Push();
129 for (
i = 0;
i < 4;
i++)
134 for (
i = 0;
i < 8;
i++)
136 rRenderContext.
Pop();
147 for(
const auto & rMoveRect : aMoveRects)
181 for( sal_uInt16
i = 0;
i < 8;
i++ )
182 if( aRects[
i ].Contains( rPos ) )
186 for(
const auto & rMoveRect : aMoveRects)
187 if( rMoveRect.Contains( rPos ) )
331 aDiff.
setX( -aDiff.
X() );
344 if( rValidate.
Top() > rValidate.
Bottom() )
346 if( rValidate.
Left() > rValidate.
Right() )
350 if( rValidate.
Top() > rValidate.
Bottom() )
354 if( rValidate.
Top() > rValidate.
Bottom() )
356 if( rValidate.
Left() > rValidate.
Right() )
360 if( rValidate.
Left() > rValidate.
Right() )
364 if( rValidate.
Top() > rValidate.
Bottom() )
366 if( rValidate.
Left() > rValidate.
Right() )
370 if( rValidate.
Top() > rValidate.
Bottom() )
374 if( rValidate.
Top() > rValidate.
Bottom() )
376 if( rValidate.
Left() > rValidate.
Right() )
380 if( rValidate.
Left() > rValidate.
Right() )
386 if( rValidate.
Left() + 5 > rValidate.
Right() )
388 if( rValidate.
Top() + 5 > rValidate.
Bottom() )
441 , m_pWrapper( pWrapper )
443 OSL_ENSURE( pParent !=
nullptr && pWrapper !=
nullptr,
"Wrong initialization of hatch window!" );
479 aStyle = PointerStyle::ESize;
480 else if( nGrab == 2 )
481 aStyle = PointerStyle::NESize;
482 else if( nGrab == 1 )
483 aStyle = PointerStyle::SSize;
484 else if( nGrab == 0 )
485 aStyle = PointerStyle::SESize;
603 return Window::PreNotify(rEvt);
618 return Window::EventNotify(rEvt);
static bool GetLayoutRTL()
const vcl::KeyCode & GetKeyCode() const
const Point & GetPosPixel() const
NotifyEventType GetType() const
void DrawRect(const tools::Rectangle &rRect)
void Push(vcl::PushFlags nFlags=vcl::PushFlags::ALL)
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
tools::Rectangle GetTrackRectPixel(const Point &rTrackPos) const
bool SelectRelease(vcl::Window *, const Point &rPos, tools::Rectangle &rOutPosSize)
short SelectMove(vcl::Window *pWin, const Point &rPos)
void ValidateRect(tools::Rectangle &rValidate) const
std::array< tools::Rectangle, 8 > FillHandleRectsPixel() const
Point GetTrackPosPixel(const tools::Rectangle &rRect) const
std::array< tools::Rectangle, 4 > FillMoveRectsPixel() const
void SetOuterRectPixel(const tools::Rectangle &rRect)
void Draw(vcl::RenderContext &rRenderContext)
bool SelectBegin(vcl::Window *, const Point &rPos)
void SetBorderPixel(const Size &rBorderP)
void InvalidateBorder(vcl::Window *)
void Release(vcl::Window *pWin)
virtual void Paint(vcl::RenderContext &, const tools::Rectangle &) override
virtual bool PreNotify(NotifyEvent &rNEvt) override
virtual void MouseButtonDown(const MouseEvent &rEvt) override
SvResizeWindow(vcl::Window *pParent, VCLXHatchWindow *pWrapper)
virtual void KeyInput(const KeyEvent &rEvt) override
virtual void MouseMove(const MouseEvent &rEvt) override
void SetHatchBorderPixel(const Size &rSize)
virtual void Resize() override
virtual void MouseButtonUp(const MouseEvent &rEvt) override
void SelectMouse(const Point &rPos)
PointerStyle m_aOldPointer
VCLXHatchWindow * m_pWrapper
SvResizeHelper m_aResizer
virtual bool EventNotify(NotifyEvent &rNEvt) override
void QueryObjAreaPixel(tools::Rectangle &)
void RequestObjAreaPixel(const tools::Rectangle &)
sal_uInt16 GetCode() const
bool HasChildPathFocus(bool bSystemWindow=false) const
virtual Point GetPosPixel() const
void ShowTracking(const tools::Rectangle &rRect, ShowTrackFlags nFlags=ShowTrackFlags::Small)
void SetAccessibleRole(sal_uInt16 nRole)
Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
virtual void SetPointer(PointerStyle)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
PointerStyle GetPointer() const
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr sal_uInt16 KEY_ESCAPE
WinBits const WB_CLIPCHILDREN