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 (long nNewWidth)
 
long GetWidth () const
 
long GetHeight () const
 
void SetOrientation (short nOrientation=0)
 
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
 
short mnOrientation
 
sal_uInt16 mnStyle
 
bool mbVisible
 
CursorDirection mnDirection
 

Detailed Description

Definition at line 46 of file cursor.hxx.

Constructor & Destructor Documentation

vcl::Cursor::Cursor ( )

Definition at line 325 of file cursor.cxx.

References mpWindow, and NONE.

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

Definition at line 335 of file cursor.cxx.

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

vcl::Cursor::~Cursor ( )

Definition at line 347 of file cursor.cxx.

Member Function Documentation

vcl::Cursor::DECL_DLLPRIVATE_LINK ( ImplTimerHdl  ,
Timer ,
void   
)
void vcl::Cursor::DrawToDevice ( OutputDevice rRenderContext)
long vcl::Cursor::GetHeight ( ) const
inline

Definition at line 88 of file cursor.hxx.

References Size::Height().

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

Definition at line 82 of file cursor.hxx.

Referenced by ImplHandleExtTextInputPos().

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

Definition at line 85 of file cursor.hxx.

Referenced by ImplHandleExtTextInputPos().

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

Definition at line 73 of file cursor.hxx.

long vcl::Cursor::GetWidth ( ) const
inline

Definition at line 87 of file cursor.hxx.

References Size::Width().

void vcl::Cursor::Hide ( )

Definition at line 371 of file cursor.cxx.

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

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

Definition at line 261 of file cursor.cxx.

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

Definition at line 149 of file cursor.cxx.

References ImplCursorInvert().

void vcl::Cursor::ImplHide ( )

Definition at line 285 of file cursor.cxx.

Referenced by IMPL_LINK_NOARG(), and ImplHandleLoseFocus().

void vcl::Cursor::ImplNew ( )

Definition at line 300 of file cursor.cxx.

References mpWindow, and STYLE_CURSOR_NOBLINKTIME.

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

Definition at line 176 of file cursor.cxx.

References ImplCursorInvert().

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

Definition at line 290 of file cursor.cxx.

void vcl::Cursor::ImplShow ( )

Definition at line 280 of file cursor.cxx.

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

bool vcl::Cursor::ImplSuspend ( )

Definition at line 295 of file cursor.cxx.

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

Definition at line 77 of file cursor.hxx.

Referenced by Edit::ImplRepaint().

void vcl::Cursor::LOKNotify ( vcl::Window pWindow,
const OUString &  rAction 
)
private
bool vcl::Cursor::operator!= ( const Cursor rCursor) const
inline

Definition at line 96 of file cursor.hxx.

References operator==().

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

Definition at line 434 of file cursor.cxx.

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

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

Definition at line 446 of file cursor.cxx.

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

Referenced by operator!=().

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

Definition at line 425 of file cursor.cxx.

void vcl::Cursor::SetOrientation ( short  nOrientation = 0)

Definition at line 416 of file cursor.cxx.

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

Definition at line 389 of file cursor.cxx.

Referenced by Edit::ImplShowCursor().

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

Definition at line 398 of file cursor.cxx.

References maSize.

Referenced by Edit::ImplShowCursor().

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

Definition at line 353 of file cursor.cxx.

Referenced by DDInfo::DDInfo().

void vcl::Cursor::SetWidth ( long  nNewWidth)

Definition at line 407 of file cursor.cxx.

References maSize.

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

Definition at line 380 of file cursor.cxx.

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

void vcl::Cursor::Show ( )

Definition at line 362 of file cursor.cxx.

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

Member Data Documentation

Point vcl::Cursor::maPos
private

Definition at line 52 of file cursor.hxx.

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

Size vcl::Cursor::maSize
private

Definition at line 51 of file cursor.hxx.

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

bool vcl::Cursor::mbVisible
private

Definition at line 55 of file cursor.hxx.

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

CursorDirection vcl::Cursor::mnDirection
private

Definition at line 56 of file cursor.hxx.

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

short vcl::Cursor::mnOrientation
private

Definition at line 53 of file cursor.hxx.

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

sal_uInt16 vcl::Cursor::mnStyle
private

Definition at line 54 of file cursor.hxx.

Referenced by Cursor().

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

Definition at line 49 of file cursor.hxx.

Referenced by Cursor().

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: