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 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 165 of file paint.cxx.

Constructor & Destructor Documentation

◆ PaintHelper()

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

Definition at line 218 of file paint.cxx.

◆ ~PaintHelper()

PaintHelper::~PaintHelper ( )

Member Function Documentation

◆ DoPaint()

void PaintHelper::DoPaint ( const vcl::Region pRegion)

◆ GetPaintFlags()

ImplPaintFlags PaintHelper::GetPaintFlags ( ) const
inline

Definition at line 199 of file paint.cxx.

References m_nPaintFlags.

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

◆ GetPaintRegion()

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

Definition at line 203 of file paint.cxx.

References m_aPaintRegion.

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

◆ GetRestoreCursor()

bool PaintHelper::GetRestoreCursor ( ) const
inline

Definition at line 195 of file paint.cxx.

References m_bRestoreCursor.

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

◆ PaintBuffer()

void PaintHelper::PaintBuffer ( )

Paint the content of the buffer to the current m_pWindow.

Definition at line 237 of file paint.cxx.

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

Referenced by ~PaintHelper().

◆ SetPaintRect()

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

Definition at line 183 of file paint.cxx.

References m_aPaintRect.

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

◆ SetPop()

void PaintHelper::SetPop ( )
inline

Definition at line 179 of file paint.cxx.

References m_bPop.

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

◆ SetRestoreCursor()

void PaintHelper::SetRestoreCursor ( bool  bRestoreCursor)
inline

Definition at line 191 of file paint.cxx.

References m_bRestoreCursor.

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

◆ SetSelectionRect()

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

Definition at line 187 of file paint.cxx.

References m_aSelectionRect.

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

◆ StartBufferedPaint()

void PaintHelper::StartBufferedPaint ( )

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

Definition at line 227 of file paint.cxx.

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

Referenced by DoPaint().

Member Data Documentation

◆ m_aPaintRect

tools::Rectangle PaintHelper::m_aPaintRect
private

Definition at line 171 of file paint.cxx.

Referenced by DoPaint(), and SetPaintRect().

◆ m_aPaintRegion

vcl::Region PaintHelper::m_aPaintRegion
private

Definition at line 172 of file paint.cxx.

Referenced by GetPaintRegion().

◆ m_aSelectionRect

tools::Rectangle PaintHelper::m_aSelectionRect
private

Definition at line 170 of file paint.cxx.

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

◆ m_bPop

bool PaintHelper::m_bPop
private

Definition at line 174 of file paint.cxx.

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

◆ m_bRestoreCursor

bool PaintHelper::m_bRestoreCursor
private

Definition at line 175 of file paint.cxx.

Referenced by GetRestoreCursor(), and SetRestoreCursor().

◆ m_bStartedBufferedPaint

bool PaintHelper::m_bStartedBufferedPaint
private

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

Definition at line 176 of file paint.cxx.

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

◆ m_nPaintFlags

ImplPaintFlags PaintHelper::m_nPaintFlags
private

Definition at line 173 of file paint.cxx.

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

◆ m_pChildRegion

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

Definition at line 169 of file paint.cxx.

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

◆ m_pWindow

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

Definition at line 168 of file paint.cxx.

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


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