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 ()
 
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 403 of file window.h.

Constructor & Destructor Documentation

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

Definition at line 45 of file paint.cxx.

References CLIPREGION, VirtualDevice::EnableRTL(), FILLCOLOR, FONT, OutputDevice::GetBackground(), OutputDevice::GetClipRegion(), OutputDevice::GetDigitLanguage(), OutputDevice::GetFillColor(), OutputDevice::GetFont(), OutputDevice::GetLayoutMode(), OutputDevice::GetLineColor(), OutputDevice::GetMapMode(), OutputDevice::GetOutOffXPixel(), OutputDevice::GetOutOffYPixel(), OutputDevice::GetOverlineColor(), OutputDevice::GetRasterOp(), OutputDevice::GetRefPoint(), OutputDevice::GetSettings(), OutputDevice::GetTextAlign(), OutputDevice::GetTextColor(), OutputDevice::GetTextFillColor(), OutputDevice::GetTextLineColor(), OutputDevice::IsBackground(), OutputDevice::IsRTLEnabled(), LINECOLOR, maBackground, MAPMODE, maSettings, mbBackground, mnOutOffX, mnOutOffY, ImplFrameData::mpBuffer, NONE, OVERLINECOLOR, OutputDevice::Push(), RASTEROP, REFPOINT, OutputDevice::SetBackground(), OutputDevice::SetClipRegion(), OutputDevice::SetDigitLanguage(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), OutputDevice::SetLayoutMode(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), OutputDevice::SetOutOffXPixel(), OutputDevice::SetOutOffYPixel(), OutputDevice::SetOverlineColor(), OutputDevice::SetRasterOp(), OutputDevice::SetRefPoint(), OutputDevice::SetSettings(), OutputDevice::SetTextAlign(), OutputDevice::SetTextColor(), OutputDevice::SetTextFillColor(), OutputDevice::SetTextLineColor(), TEXTALIGN, TEXTCOLOR, TEXTFILLCOLOR, TEXTLANGUAGE, TEXTLAYOUTMODE, and TEXTLINECOLOR.

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

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

References m_aPaintRect.

Referenced by PaintHelper::PaintBuffer().

Member Data Documentation

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

Definition at line 412 of file window.h.

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

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

Definition at line 406 of file window.h.

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

Wallpaper vcl::PaintBufferGuard::maBackground
private

Definition at line 408 of file window.h.

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

AllSettings vcl::PaintBufferGuard::maSettings
private

Definition at line 409 of file window.h.

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

bool vcl::PaintBufferGuard::mbBackground
private

Definition at line 407 of file window.h.

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

long vcl::PaintBufferGuard::mnOutOffX
private

Definition at line 410 of file window.h.

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

long vcl::PaintBufferGuard::mnOutOffY
private

Definition at line 411 of file window.h.

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

ImplFrameData* vcl::PaintBufferGuard::mpFrameData
private

Definition at line 405 of file window.h.

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


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