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

Sets up the buffer to have settings matching the window, and restores the original state in the dtor. More...

#include <window.h>

Collaboration diagram for vcl::PaintBufferGuard:
[legend]

Public Member Functions

 PaintBufferGuard (ImplFrameData *pFrameData, vcl::Window *pWindow)
 
 ~PaintBufferGuard () COVERITY_NOEXCEPT_FALSE
 
void SetPaintRect (const tools::Rectangle &rRectangle)
 If this is called, then the dtor will also copy rRectangle to the window from the buffer, before restoring the state. More...
 
vcl::RenderContextGetRenderContext ()
 Returns either the frame's buffer or the window, in case of no buffering. More...
 

Private Attributes

ImplFrameDatampFrameData
 
VclPtr< vcl::Windowm_pWindow
 
bool mbBackground
 
Wallpaper maBackground
 
AllSettings maSettings
 
tools::Long mnOutOffX
 
tools::Long mnOutOffY
 
tools::Rectangle m_aPaintRect
 

Detailed Description

Sets up the buffer to have settings matching the window, and restores the original state in the dtor.

Definition at line 397 of file window.h.

Constructor & Destructor Documentation

vcl::PaintBufferGuard::PaintBufferGuard ( ImplFrameData pFrameData,
vcl::Window pWindow 
)
vcl::PaintBufferGuard::~PaintBufferGuard ( )

Member Function Documentation

vcl::RenderContext * vcl::PaintBufferGuard::GetRenderContext ( )

Returns either the frame's buffer or the window, in case of no buffering.

Definition at line 156 of file paint.cxx.

References vcl::Window::GetOutDev(), m_pWindow, ImplFrameData::mpBuffer, and mpFrameData.

void vcl::PaintBufferGuard::SetPaintRect ( const tools::Rectangle rRectangle)

If this is called, then the dtor will also copy rRectangle to the window from the buffer, before restoring the state.

Definition at line 151 of file paint.cxx.

References m_aPaintRect.

Referenced by PaintHelper::PaintBuffer().

Member Data Documentation

tools::Rectangle vcl::PaintBufferGuard::m_aPaintRect
private

Definition at line 406 of file window.h.

Referenced by SetPaintRect(), and ~PaintBufferGuard().

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

Definition at line 400 of file window.h.

Referenced by GetRenderContext(), and ~PaintBufferGuard().

Wallpaper vcl::PaintBufferGuard::maBackground
private

Definition at line 402 of file window.h.

Referenced by PaintBufferGuard(), and ~PaintBufferGuard().

AllSettings vcl::PaintBufferGuard::maSettings
private

Definition at line 403 of file window.h.

Referenced by PaintBufferGuard(), and ~PaintBufferGuard().

bool vcl::PaintBufferGuard::mbBackground
private

Definition at line 401 of file window.h.

Referenced by PaintBufferGuard(), and ~PaintBufferGuard().

tools::Long vcl::PaintBufferGuard::mnOutOffX
private

Definition at line 404 of file window.h.

Referenced by PaintBufferGuard(), and ~PaintBufferGuard().

tools::Long vcl::PaintBufferGuard::mnOutOffY
private

Definition at line 405 of file window.h.

Referenced by PaintBufferGuard(), and ~PaintBufferGuard().

ImplFrameData* vcl::PaintBufferGuard::mpFrameData
private

Definition at line 399 of file window.h.

Referenced by GetRenderContext(), and ~PaintBufferGuard().


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