LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::Cursor Class Reference

#include <cursor.hxx>

Collaboration diagram for vcl::Cursor:
[legend]

Public Member Functions

SAL_DLLPRIVATE void ImplDraw ()
 
 DECL_DLLPRIVATE_LINK (ImplTimerHdl, Timer *, void)
 
SAL_DLLPRIVATE void ImplShow ()
 
SAL_DLLPRIVATE void ImplHide ()
 
SAL_DLLPRIVATE void ImplResume (bool bRestore=false)
 
SAL_DLLPRIVATE bool ImplSuspend ()
 
SAL_DLLPRIVATE void ImplNew ()
 
 Cursor ()
 
 Cursor (const Cursor &rCursor)
 
 ~Cursor ()
 
void SetStyle (sal_uInt16 nStyle)
 
sal_uInt16 GetStyle () const
 
void Show ()
 
void Hide ()
 
bool IsVisible () const
 
void SetWindow (vcl::Window *pWindow)
 
void SetPos (const Point &rNewPos)
 
const PointGetPos () const
 
void SetSize (const Size &rNewSize)
 
const SizeGetSize () const
 
void SetWidth (tools::Long nNewWidth)
 
tools::Long GetWidth () const
 
tools::Long GetHeight () const
 
void SetOrientation (Degree10 nOrientation=0_deg10)
 
void SetDirection (CursorDirection nDirection=CursorDirection::NONE)
 
Cursoroperator= (const Cursor &rCursor)
 
bool operator== (const Cursor &rCursor) const
 
bool operator!= (const Cursor &rCursor) const
 
void DrawToDevice (OutputDevice &rRenderContext)
 

Private Member Functions

void LOKNotify (vcl::Window *pWindow, const OUString &rAction)
 
bool ImplPrepForDraw (const OutputDevice *pDevice, ImplCursorData &rData)
 
void ImplRestore ()
 
void ImplDoShow (bool bDrawDirect, bool bRestore)
 
bool ImplDoHide (bool bStop)
 

Private Attributes

std::unique_ptr< ImplCursorDatampData
 
VclPtr< vcl::WindowmpWindow
 
Size maSize
 
Point maPos
 
Degree10 mnOrientation
 
sal_uInt16 mnStyle
 
bool mbVisible
 
CursorDirection mnDirection
 

Detailed Description

Definition at line 46 of file cursor.hxx.

Constructor & Destructor Documentation

◆ Cursor() [1/2]

vcl::Cursor::Cursor ( )

Definition at line 353 of file cursor.cxx.

References mbVisible, mpWindow, and NONE.

◆ Cursor() [2/2]

vcl::Cursor::Cursor ( const Cursor rCursor)

Definition at line 363 of file cursor.cxx.

References maSize, mbVisible, mnDirection, mnOrientation, mnStyle, mpData, and mpWindow.

◆ ~Cursor()

vcl::Cursor::~Cursor ( )

Definition at line 375 of file cursor.cxx.

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK()

vcl::Cursor::DECL_DLLPRIVATE_LINK ( ImplTimerHdl  ,
Timer ,
void   
)

◆ DrawToDevice()

void vcl::Cursor::DrawToDevice ( OutputDevice rRenderContext)

Definition at line 177 of file cursor.cxx.

References aData, and ImplCursorInvert().

◆ GetHeight()

tools::Long vcl::Cursor::GetHeight ( ) const
inline

Definition at line 88 of file cursor.hxx.

References maSize.

◆ GetPos()

const Point & vcl::Cursor::GetPos ( ) const
inline

Definition at line 82 of file cursor.hxx.

Referenced by ImplHandleExtTextInputPos().

◆ GetSize()

const Size & vcl::Cursor::GetSize ( ) const
inline

Definition at line 85 of file cursor.hxx.

References maSize.

Referenced by ImplHandleExtTextInputPos().

◆ GetStyle()

sal_uInt16 vcl::Cursor::GetStyle ( ) const
inline

Definition at line 73 of file cursor.hxx.

◆ GetWidth()

tools::Long vcl::Cursor::GetWidth ( ) const
inline

Definition at line 87 of file cursor.hxx.

References maSize.

◆ Hide()

void vcl::Cursor::Hide ( )

Definition at line 399 of file cursor.cxx.

References mbVisible.

Referenced by Edit::Command(), Edit::dragGestureRecognized(), and Edit::ImplRepaint().

◆ ImplDoHide()

bool vcl::Cursor::ImplDoHide ( bool  bStop)
private

Definition at line 289 of file cursor.cxx.

◆ ImplDoShow()

void vcl::Cursor::ImplDoShow ( bool  bDrawDirect,
bool  bRestore 
)
private

◆ ImplDraw()

void vcl::Cursor::ImplDraw ( )

Definition at line 163 of file cursor.cxx.

References ImplCursorInvert().

◆ ImplHide()

void vcl::Cursor::ImplHide ( )

Definition at line 313 of file cursor.cxx.

Referenced by IMPL_LINK_NOARG(), and ImplHandleLoseFocus().

◆ ImplNew()

void vcl::Cursor::ImplNew ( )

Definition at line 328 of file cursor.cxx.

References mbVisible, mpWindow, and STYLE_CURSOR_NOBLINKTIME.

◆ ImplPrepForDraw()

bool vcl::Cursor::ImplPrepForDraw ( const OutputDevice pDevice,
ImplCursorData rData 
)
private

◆ ImplRestore()

void vcl::Cursor::ImplRestore ( )
private

Definition at line 190 of file cursor.cxx.

References ImplCursorInvert().

◆ ImplResume()

void vcl::Cursor::ImplResume ( bool  bRestore = false)

Definition at line 318 of file cursor.cxx.

◆ ImplShow()

void vcl::Cursor::ImplShow ( )

Definition at line 308 of file cursor.cxx.

Referenced by ImplHandleGetFocus(), and vcl::Window::SetCursor().

◆ ImplSuspend()

bool vcl::Cursor::ImplSuspend ( )

Definition at line 323 of file cursor.cxx.

◆ IsVisible()

bool vcl::Cursor::IsVisible ( ) const
inline

Definition at line 77 of file cursor.hxx.

References mbVisible.

Referenced by Edit::ImplRepaint().

◆ LOKNotify()

void vcl::Cursor::LOKNotify ( vcl::Window pWindow,
const OUString &  rAction 
)
private

◆ operator!=()

bool vcl::Cursor::operator!= ( const Cursor rCursor) const
inline

Definition at line 96 of file cursor.hxx.

References operator==().

◆ operator=()

vcl::Cursor & vcl::Cursor::operator= ( const Cursor rCursor)

Definition at line 462 of file cursor.cxx.

References maPos, maSize, maSize, mbVisible, mbVisible, mnDirection, and mnOrientation.

◆ operator==()

bool vcl::Cursor::operator== ( const Cursor rCursor) const

Definition at line 474 of file cursor.cxx.

References maPos, maSize, maSize, mbVisible, mbVisible, mnDirection, and mnOrientation.

Referenced by operator!=().

◆ SetDirection()

void vcl::Cursor::SetDirection ( CursorDirection  nDirection = CursorDirection::NONE)

Definition at line 453 of file cursor.cxx.

◆ SetOrientation()

void vcl::Cursor::SetOrientation ( Degree10  nOrientation = 0_deg10)

Definition at line 444 of file cursor.cxx.

◆ SetPos()

void vcl::Cursor::SetPos ( const Point rNewPos)

Definition at line 417 of file cursor.cxx.

Referenced by Edit::ImplShowCursor().

◆ SetSize()

void vcl::Cursor::SetSize ( const Size rNewSize)

Definition at line 426 of file cursor.cxx.

References maSize.

Referenced by Edit::ImplShowCursor().

◆ SetStyle()

void vcl::Cursor::SetStyle ( sal_uInt16  nStyle)

Definition at line 381 of file cursor.cxx.

Referenced by DDInfo::DDInfo(), and TextDDInfo::TextDDInfo().

◆ SetWidth()

void vcl::Cursor::SetWidth ( tools::Long  nNewWidth)

Definition at line 435 of file cursor.cxx.

References maSize.

◆ SetWindow()

void vcl::Cursor::SetWindow ( vcl::Window pWindow)

Definition at line 408 of file cursor.cxx.

References VclPtr< reference_type >::get(), and mpWindow.

◆ Show()

void vcl::Cursor::Show ( )

Definition at line 390 of file cursor.cxx.

References mbVisible.

Referenced by Edit::Command(), Edit::ImplRepaint(), and Edit::ImplShowCursor().

Member Data Documentation

◆ maPos

Point vcl::Cursor::maPos
private

Definition at line 52 of file cursor.hxx.

Referenced by ImplPrepForDraw(), operator=(), and operator==().

◆ maSize

Size vcl::Cursor::maSize
private

Definition at line 51 of file cursor.hxx.

Referenced by ImplPrepForDraw(), operator=(), and operator==().

◆ mbVisible

bool vcl::Cursor::mbVisible
private

Definition at line 55 of file cursor.hxx.

Referenced by Cursor(), operator=(), and operator==().

◆ mnDirection

CursorDirection vcl::Cursor::mnDirection
private

Definition at line 56 of file cursor.hxx.

Referenced by Cursor(), ImplPrepForDraw(), operator=(), and operator==().

◆ mnOrientation

Degree10 vcl::Cursor::mnOrientation
private

Definition at line 53 of file cursor.hxx.

Referenced by Cursor(), ImplPrepForDraw(), operator=(), and operator==().

◆ mnStyle

sal_uInt16 vcl::Cursor::mnStyle
private

Definition at line 54 of file cursor.hxx.

Referenced by Cursor().

◆ mpData

std::unique_ptr<ImplCursorData> vcl::Cursor::mpData
private

Definition at line 49 of file cursor.hxx.

Referenced by Cursor().

◆ mpWindow

VclPtr<vcl::Window> vcl::Cursor::mpWindow
private

Definition at line 50 of file cursor.hxx.

Referenced by Cursor().


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