LibreOffice Module toolkit (master) 1
Public Member Functions | Private Attributes | List of all members
SvResizeHelper Class Reference

#include <ipwin.hxx>

Collaboration diagram for SvResizeHelper:
[legend]

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
 

Detailed Description

Definition at line 28 of file ipwin.hxx.

Constructor & Destructor Documentation

◆ SvResizeHelper()

SvResizeHelper::SvResizeHelper ( )

Definition at line 36 of file ipwin.cxx.

Member Function Documentation

◆ Draw()

void SvResizeHelper::Draw ( vcl::RenderContext rRenderContext)

◆ FillHandleRectsPixel()

std::array< tools::Rectangle, 8 > SvResizeHelper::FillHandleRectsPixel ( ) const

◆ FillMoveRectsPixel()

std::array< tools::Rectangle, 4 > SvResizeHelper::FillMoveRectsPixel ( ) const

◆ GetGrab()

short SvResizeHelper::GetGrab ( ) const
inline

Definition at line 37 of file ipwin.hxx.

References nGrab.

Referenced by SvResizeWindow::MouseButtonUp(), and SvResizeWindow::MouseMove().

◆ GetTrackPosPixel()

Point SvResizeHelper::GetTrackPosPixel ( const tools::Rectangle rRect) const

◆ GetTrackRectPixel()

tools::Rectangle SvResizeHelper::GetTrackRectPixel ( const Point rTrackPos) const

◆ InvalidateBorder()

void SvResizeHelper::InvalidateBorder ( vcl::Window pWin)

Definition at line 144 of file ipwin.cxx.

References FillMoveRectsPixel(), and vcl::Window::Invalidate().

Referenced by SvResizeWindow::Resize().

◆ Release()

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().

◆ SelectBegin()

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().

◆ SelectMove()

short SvResizeHelper::SelectMove ( vcl::Window pWin,
const Point rPos 
)

◆ SelectRelease()

bool SvResizeHelper::SelectRelease ( vcl::Window pWin,
const Point rPos,
tools::Rectangle rOutPosSize 
)

◆ SetBorderPixel()

void SvResizeHelper::SetBorderPixel ( const Size rBorderP)
inline

Definition at line 41 of file ipwin.hxx.

References aBorder.

Referenced by SvResizeWindow::SetHatchBorderPixel().

◆ SetOuterRectPixel()

void SvResizeHelper::SetOuterRectPixel ( const tools::Rectangle rRect)
inline

Definition at line 45 of file ipwin.hxx.

References aOuter.

Referenced by SvResizeWindow::Resize(), and SvResizeWindow::SvResizeWindow().

◆ ValidateRect()

void SvResizeHelper::ValidateRect ( tools::Rectangle rValidate) const

Member Data Documentation

◆ aBorder

Size SvResizeHelper::aBorder
private

Definition at line 30 of file ipwin.hxx.

Referenced by FillHandleRectsPixel(), FillMoveRectsPixel(), and SetBorderPixel().

◆ aOuter

tools::Rectangle SvResizeHelper::aOuter
private

◆ aSelPos

Point SvResizeHelper::aSelPos
private

Definition at line 33 of file ipwin.hxx.

Referenced by GetTrackPosPixel(), GetTrackRectPixel(), and SelectBegin().

◆ nGrab

short SvResizeHelper::nGrab
private

The documentation for this class was generated from the following files: