LibreOffice Module toolkit (master) 1
|
#include <ipwin.hxx>
Public Member Functions | |
SvResizeHelper () | |
short | GetGrab () const |
void | SetBorderPixel (const Size &rBorderP) |
void | SetOuterRectPixel (const tools::Rectangle &rRect) |
std::array< tools::Rectangle, 8 > | FillHandleRectsPixel () const |
std::array< tools::Rectangle, 4 > | FillMoveRectsPixel () const |
void | Draw (vcl::RenderContext &rRenderContext) |
void | InvalidateBorder (vcl::Window *) |
bool | SelectBegin (vcl::Window *, const Point &rPos) |
short | SelectMove (vcl::Window *pWin, const Point &rPos) |
Point | GetTrackPosPixel (const tools::Rectangle &rRect) const |
tools::Rectangle | GetTrackRectPixel (const Point &rTrackPos) const |
void | ValidateRect (tools::Rectangle &rValidate) const |
bool | SelectRelease (vcl::Window *, const Point &rPos, tools::Rectangle &rOutPosSize) |
void | Release (vcl::Window *pWin) |
Private Attributes | |
Size | aBorder |
tools::Rectangle | aOuter |
short | nGrab |
Point | aSelPos |
void SvResizeHelper::Draw | ( | vcl::RenderContext & | rRenderContext | ) |
Definition at line 119 of file ipwin.cxx.
References COL_LIGHTGRAY(), OutputDevice::DrawRect(), FillHandleRectsPixel(), FillMoveRectsPixel(), i, OutputDevice::Pop(), OutputDevice::Push(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and OutputDevice::SetMapMode().
Referenced by SvResizeWindow::Paint().
std::array< tools::Rectangle, 8 > SvResizeHelper::FillHandleRectsPixel | ( | ) | const |
Definition at line 47 of file ipwin.cxx.
References aBorder, aOuter, tools::Rectangle::BottomRight(), tools::Rectangle::Center(), Size::Height(), tools::Rectangle::Left(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
Referenced by Draw(), and SelectMove().
std::array< tools::Rectangle, 4 > SvResizeHelper::FillMoveRectsPixel | ( | ) | const |
Definition at line 92 of file ipwin.cxx.
References aBorder, aOuter, Bottom, Size::Height(), tools::Rectangle::IsHeightEmpty(), tools::Rectangle::IsWidthEmpty(), Left, Right, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Top, and Size::Width().
Referenced by Draw(), InvalidateBorder(), and SelectMove().
|
inline |
Definition at line 37 of file ipwin.hxx.
References nGrab.
Referenced by SvResizeWindow::MouseButtonUp(), and SvResizeWindow::MouseMove().
Point SvResizeHelper::GetTrackPosPixel | ( | const tools::Rectangle & | rRect | ) | const |
Definition at line 198 of file ipwin.cxx.
References aOuter, aSelPos, tools::Rectangle::Bottom(), tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), AllSettings::GetLayoutRTL(), tools::Rectangle::Left(), nGrab, tools::Rectangle::Normalize(), tools::Rectangle::Right(), Point::setX(), Point::setY(), tools::Rectangle::Top(), tools::Rectangle::TopLeft(), tools::Rectangle::TopRight(), Point::X(), and Point::Y().
Referenced by SvResizeWindow::MouseMove().
tools::Rectangle SvResizeHelper::GetTrackRectPixel | ( | const Point & | rTrackPos | ) | const |
Definition at line 266 of file ipwin.cxx.
References tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustTop(), aOuter, aSelPos, tools::Rectangle::BottomRight(), AllSettings::GetLayoutRTL(), nGrab, tools::Rectangle::SetBottom(), tools::Rectangle::SetPos(), tools::Rectangle::SetRight(), Point::setX(), tools::Rectangle::TopLeft(), Point::X(), and Point::Y().
Referenced by SvResizeWindow::MouseButtonUp(), SvResizeWindow::MouseMove(), SelectMove(), and SelectRelease().
void SvResizeHelper::InvalidateBorder | ( | vcl::Window * | pWin | ) |
Definition at line 144 of file ipwin.cxx.
References FillMoveRectsPixel(), and vcl::Window::Invalidate().
Referenced by SvResizeWindow::Resize().
void SvResizeHelper::Release | ( | vcl::Window * | pWin | ) |
Definition at line 417 of file ipwin.cxx.
References vcl::Window::HideTracking(), nGrab, and vcl::Window::ReleaseMouse().
Referenced by SvResizeWindow::KeyInput().
bool SvResizeHelper::SelectBegin | ( | vcl::Window * | pWin, |
const Point & | rPos | ||
) |
Definition at line 156 of file ipwin.cxx.
References aSelPos, vcl::Window::CaptureMouse(), nGrab, and SelectMove().
Referenced by SvResizeWindow::MouseButtonDown().
short SvResizeHelper::SelectMove | ( | vcl::Window * | pWin, |
const Point & | rPos | ||
) |
Definition at line 176 of file ipwin.cxx.
References FillHandleRectsPixel(), FillMoveRectsPixel(), GetTrackRectPixel(), i, nGrab, vcl::Window::PixelToLogic(), and vcl::Window::ShowTracking().
Referenced by SelectBegin(), and SvResizeWindow::SelectMouse().
bool SvResizeHelper::SelectRelease | ( | vcl::Window * | pWin, |
const Point & | rPos, | ||
tools::Rectangle & | rOutPosSize | ||
) |
Definition at line 397 of file ipwin.cxx.
References GetTrackRectPixel(), vcl::Window::HideTracking(), nGrab, tools::Rectangle::Normalize(), and vcl::Window::ReleaseMouse().
Referenced by SvResizeWindow::MouseButtonUp().
|
inline |
Definition at line 41 of file ipwin.hxx.
References aBorder.
Referenced by SvResizeWindow::SetHatchBorderPixel().
|
inline |
Definition at line 45 of file ipwin.hxx.
References aOuter.
Referenced by SvResizeWindow::Resize(), and SvResizeWindow::SvResizeWindow().
void SvResizeHelper::ValidateRect | ( | tools::Rectangle & | rValidate | ) | const |
Definition at line 339 of file ipwin.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::Left(), nGrab, tools::Rectangle::Right(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
Referenced by SvResizeWindow::MouseButtonUp(), and SvResizeWindow::MouseMove().
|
private |
Definition at line 30 of file ipwin.hxx.
Referenced by FillHandleRectsPixel(), FillMoveRectsPixel(), and SetBorderPixel().
|
private |
Definition at line 31 of file ipwin.hxx.
Referenced by FillHandleRectsPixel(), FillMoveRectsPixel(), GetTrackPosPixel(), GetTrackRectPixel(), and SetOuterRectPixel().
|
private |
Definition at line 33 of file ipwin.hxx.
Referenced by GetTrackPosPixel(), GetTrackRectPixel(), and SelectBegin().
|
private |
Definition at line 32 of file ipwin.hxx.
Referenced by GetGrab(), GetTrackPosPixel(), GetTrackRectPixel(), Release(), SelectBegin(), SelectMove(), SelectRelease(), and ValidateRect().