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 404 of file window.h.

Constructor & Destructor Documentation

◆ PaintBufferGuard()

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

Definition at line 45 of file paint.cxx.

References vcl::CLIPREGION, VirtualDevice::EnableRTL(), vcl::FILLCOLOR, vcl::FONT, OutputDevice::GetBackground(), vcl::Window::GetBackground(), vcl::Window::GetFont(), vcl::Window::GetMapMode(), vcl::Window::GetOutDev(), OutputDevice::GetOutOffXPixel(), vcl::Window::GetOutOffXPixel(), OutputDevice::GetOutOffYPixel(), vcl::Window::GetOutOffYPixel(), vcl::Window::GetOverlineColor(), OutputDevice::GetSettings(), vcl::Window::GetSettings(), vcl::Window::GetTextAlign(), vcl::Window::GetTextColor(), vcl::Window::GetTextFillColor(), vcl::Window::GetTextLineColor(), OutputDevice::IsBackground(), vcl::Window::IsBackground(), vcl::Window::IsRTLEnabled(), vcl::LINECOLOR, maBackground, vcl::MAPMODE, maSettings, mbBackground, mnOutOffX, mnOutOffY, ImplFrameData::mpBuffer, vcl::NONE, vcl::OVERLINECOLOR, OutputDevice::Push(), vcl::RASTEROP, vcl::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(), vcl::TEXTALIGN, vcl::TEXTCOLOR, vcl::TEXTFILLCOLOR, vcl::TEXTLANGUAGE, vcl::TEXTLAYOUTMODE, and vcl::TEXTLINECOLOR.

◆ ~PaintBufferGuard()

vcl::PaintBufferGuard::~PaintBufferGuard ( )

Member Function Documentation

◆ GetRenderContext()

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.

◆ SetPaintRect()

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

◆ m_aPaintRect

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

Definition at line 413 of file window.h.

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

◆ m_pWindow

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

Definition at line 407 of file window.h.

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

◆ maBackground

Wallpaper vcl::PaintBufferGuard::maBackground
private

Definition at line 409 of file window.h.

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

◆ maSettings

AllSettings vcl::PaintBufferGuard::maSettings
private

Definition at line 410 of file window.h.

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

◆ mbBackground

bool vcl::PaintBufferGuard::mbBackground
private

Definition at line 408 of file window.h.

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

◆ mnOutOffX

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

Definition at line 411 of file window.h.

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

◆ mnOutOffY

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

Definition at line 412 of file window.h.

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

◆ mpFrameData

ImplFrameData* vcl::PaintBufferGuard::mpFrameData
private

Definition at line 406 of file window.h.

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


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