LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
PaintHelper Class Reference
Collaboration diagram for PaintHelper:
[legend]

Public Member Functions

 PaintHelper (vcl::Window *pWindow, ImplPaintFlags nPaintFlags)
 
void SetPop ()
 
void SetPaintRect (const tools::Rectangle &rRect)
 
void SetSelectionRect (const tools::Rectangle &rRect)
 
void SetRestoreCursor (bool bRestoreCursor)
 
bool GetRestoreCursor () const
 
ImplPaintFlags GetPaintFlags () const
 
vcl::RegionGetPaintRegion ()
 
void DoPaint (const vcl::Region *pRegion)
 
void StartBufferedPaint ()
 Start buffered paint: set it up to have the same settings as m_pWindow. More...
 
void PaintBuffer ()
 Paint the content of the buffer to the current m_pWindow. More...
 
 ~PaintHelper ()
 

Private Attributes

VclPtr< vcl::Windowm_pWindow
 
std::unique_ptr< vcl::Regionm_pChildRegion
 
tools::Rectangle m_aSelectionRect
 
tools::Rectangle m_aPaintRect
 
vcl::Region m_aPaintRegion
 
ImplPaintFlags const m_nPaintFlags
 
bool m_bPop: 1
 
bool m_bRestoreCursor: 1
 
bool m_bStartedBufferedPaint: 1
 This PaintHelper started a buffered paint, and should paint it on the screen when being destructed. More...
 

Detailed Description

Definition at line 160 of file paint.cxx.

Constructor & Destructor Documentation

PaintHelper::PaintHelper ( vcl::Window pWindow,
ImplPaintFlags  nPaintFlags 
)

Definition at line 213 of file paint.cxx.

PaintHelper::~PaintHelper ( )

Member Function Documentation

void PaintHelper::DoPaint ( const vcl::Region pRegion)
ImplPaintFlags PaintHelper::GetPaintFlags ( ) const
inline

Definition at line 194 of file paint.cxx.

References m_nPaintFlags.

Referenced by vcl::Window::PushPaintHelper().

vcl::Region& PaintHelper::GetPaintRegion ( )
inline

Definition at line 198 of file paint.cxx.

References m_aPaintRegion.

Referenced by vcl::Window::PushPaintHelper().

bool PaintHelper::GetRestoreCursor ( ) const
inline

Definition at line 190 of file paint.cxx.

References m_bRestoreCursor.

Referenced by vcl::Window::PopPaintHelper().

void PaintHelper::PaintBuffer ( )

Paint the content of the buffer to the current m_pWindow.

Definition at line 232 of file paint.cxx.

References m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, vcl::Window::mpWindowImpl, and PaintBufferGuard::SetPaintRect().

Referenced by ~PaintHelper().

void PaintHelper::SetPaintRect ( const tools::Rectangle rRect)
inline

Definition at line 178 of file paint.cxx.

Referenced by vcl::Window::PushPaintHelper().

void PaintHelper::SetPop ( )
inline

Definition at line 174 of file paint.cxx.

References m_bPop.

Referenced by vcl::Window::PushPaintHelper().

void PaintHelper::SetRestoreCursor ( bool  bRestoreCursor)
inline

Definition at line 186 of file paint.cxx.

References m_bRestoreCursor.

Referenced by vcl::Window::PushPaintHelper().

void PaintHelper::SetSelectionRect ( const tools::Rectangle rRect)
inline

Definition at line 182 of file paint.cxx.

Referenced by vcl::Window::PushPaintHelper().

void PaintHelper::StartBufferedPaint ( )

Start buffered paint: set it up to have the same settings as m_pWindow.

Definition at line 222 of file paint.cxx.

References m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, and vcl::Window::mpWindowImpl.

Referenced by DoPaint().

Member Data Documentation

tools::Rectangle PaintHelper::m_aPaintRect
private

Definition at line 166 of file paint.cxx.

Referenced by DoPaint().

vcl::Region PaintHelper::m_aPaintRegion
private

Definition at line 167 of file paint.cxx.

Referenced by GetPaintRegion().

tools::Rectangle PaintHelper::m_aSelectionRect
private

Definition at line 165 of file paint.cxx.

Referenced by ~PaintHelper().

bool PaintHelper::m_bPop
private

Definition at line 169 of file paint.cxx.

Referenced by SetPop(), and ~PaintHelper().

bool PaintHelper::m_bRestoreCursor
private

Definition at line 170 of file paint.cxx.

Referenced by GetRestoreCursor(), and SetRestoreCursor().

bool PaintHelper::m_bStartedBufferedPaint
private

This PaintHelper started a buffered paint, and should paint it on the screen when being destructed.

Definition at line 171 of file paint.cxx.

Referenced by PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().

ImplPaintFlags const PaintHelper::m_nPaintFlags
private

Definition at line 168 of file paint.cxx.

Referenced by GetPaintFlags(), and ~PaintHelper().

std::unique_ptr<vcl::Region> PaintHelper::m_pChildRegion
private

Definition at line 164 of file paint.cxx.

Referenced by DoPaint(), and ~PaintHelper().

VclPtr<vcl::Window> PaintHelper::m_pWindow
private

Definition at line 163 of file paint.cxx.

Referenced by DoPaint(), PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().


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