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

#include <shdwcrsr.hxx>

Collaboration diagram for SwShadowCursor:
[legend]

Public Member Functions

 SwShadowCursor (vcl::Window &rWin, const Color &rCol)
 
 ~SwShadowCursor ()
 
void SetPos (const Point &rPt, tools::Long nHeight, sal_uInt16 nMode)
 
void Paint ()
 
tools::Rectangle GetRect () const
 

Private Member Functions

void DrawTri (const Point &rPt, tools::Long nHeight, bool bLeft)
 
void DrawCursor (const Point &rPt, tools::Long nHeight, sal_uInt16 nMode)
 

Private Attributes

VclPtr< vcl::Windowm_pWin
 
Color m_aCol
 
Point m_aOldPt
 
tools::Long m_nOldHeight
 
sal_uInt16 m_nOldMode
 

Detailed Description

Definition at line 28 of file shdwcrsr.hxx.

Constructor & Destructor Documentation

◆ SwShadowCursor()

SwShadowCursor::SwShadowCursor ( vcl::Window rWin,
const Color rCol 
)
inline

Definition at line 40 of file shdwcrsr.hxx.

◆ ~SwShadowCursor()

SwShadowCursor::~SwShadowCursor ( )

Definition at line 25 of file shdwcrsr.cxx.

References DrawCursor(), m_aOldPt, m_nOldHeight, and m_nOldMode.

Member Function Documentation

◆ DrawCursor()

void SwShadowCursor::DrawCursor ( const Point rPt,
tools::Long  nHeight,
sal_uInt16  nMode 
)
private

Definition at line 67 of file shdwcrsr.cxx.

References COL_WHITE(), ColorTransparency, DrawTri(), m_aCol, m_pWin, and Point.

Referenced by Paint(), SetPos(), and ~SwShadowCursor().

◆ DrawTri()

void SwShadowCursor::DrawTri ( const Point rPt,
tools::Long  nHeight,
bool  bLeft 
)
private

Definition at line 47 of file shdwcrsr.cxx.

References m_pWin, and Point.

Referenced by DrawCursor().

◆ GetRect()

tools::Rectangle SwShadowCursor::GetRect ( ) const

Definition at line 97 of file shdwcrsr.cxx.

References m_aOldPt, m_nOldHeight, m_nOldMode, m_pWin, Point, Size::setWidth(), and Size::Width().

◆ Paint()

void SwShadowCursor::Paint ( )

Definition at line 91 of file shdwcrsr.cxx.

References DrawCursor(), m_aOldPt, m_nOldHeight, and m_nOldMode.

◆ SetPos()

void SwShadowCursor::SetPos ( const Point rPt,
tools::Long  nHeight,
sal_uInt16  nMode 
)

Definition at line 31 of file shdwcrsr.cxx.

References DrawCursor(), m_aOldPt, m_nOldHeight, m_nOldMode, m_pWin, and Point.

Member Data Documentation

◆ m_aCol

Color SwShadowCursor::m_aCol
private

Definition at line 31 of file shdwcrsr.hxx.

Referenced by DrawCursor().

◆ m_aOldPt

Point SwShadowCursor::m_aOldPt
private

Definition at line 32 of file shdwcrsr.hxx.

Referenced by GetRect(), Paint(), SetPos(), and ~SwShadowCursor().

◆ m_nOldHeight

tools::Long SwShadowCursor::m_nOldHeight
private

Definition at line 33 of file shdwcrsr.hxx.

Referenced by GetRect(), Paint(), SetPos(), and ~SwShadowCursor().

◆ m_nOldMode

sal_uInt16 SwShadowCursor::m_nOldMode
private

Definition at line 34 of file shdwcrsr.hxx.

Referenced by GetRect(), Paint(), SetPos(), and ~SwShadowCursor().

◆ m_pWin

VclPtr<vcl::Window> SwShadowCursor::m_pWin
private

Definition at line 30 of file shdwcrsr.hxx.

Referenced by DrawCursor(), DrawTri(), GetRect(), and SetPos().


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