LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
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 PaintBufferGuard:
[legend]

Public Member Functions

 PaintBufferGuard (ImplFrameData *pFrameData, vcl::Window *pWindow)
 
 ~PaintBufferGuard ()
 
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
 
long mnOutOffX
 
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 400 of file window.h.

Constructor & Destructor Documentation

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

Member Function Documentation

vcl::RenderContext * PaintBufferGuard::GetRenderContext ( )

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

Definition at line 152 of file paint.cxx.

References m_pWindow, ImplFrameData::mpBuffer, and mpFrameData.

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

References m_aPaintRect.

Referenced by PaintHelper::PaintBuffer().

Member Data Documentation

tools::Rectangle PaintBufferGuard::m_aPaintRect
private

Definition at line 409 of file window.h.

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

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

Definition at line 403 of file window.h.

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

Wallpaper PaintBufferGuard::maBackground
private

Definition at line 405 of file window.h.

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

AllSettings PaintBufferGuard::maSettings
private

Definition at line 406 of file window.h.

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

bool PaintBufferGuard::mbBackground
private

Definition at line 404 of file window.h.

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

long PaintBufferGuard::mnOutOffX
private

Definition at line 407 of file window.h.

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

long PaintBufferGuard::mnOutOffY
private

Definition at line 408 of file window.h.

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

ImplFrameData* PaintBufferGuard::mpFrameData
private

Definition at line 402 of file window.h.

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


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