LibreOffice Module vcl (master) 1
|
Sets up the buffer to have settings matching the window, and restores the original state in the dtor. More...
#include <window.h>
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::RenderContext * | GetRenderContext () |
Returns either the frame's buffer or the window, in case of no buffering. More... | |
Private Attributes | |
ImplFrameData * | mpFrameData |
VclPtr< vcl::Window > | m_pWindow |
bool | mbBackground |
Wallpaper | maBackground |
AllSettings | maSettings |
tools::Long | mnOutOffX |
tools::Long | mnOutOffY |
tools::Rectangle | m_aPaintRect |
Sets up the buffer to have settings matching the window, and restores the original state in the dtor.
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.
vcl::PaintBufferGuard::~PaintBufferGuard | ( | ) |
Definition at line 109 of file paint.cxx.
References OutputDevice::DrawOutDev(), vcl::Window::GetMapMode(), MapMode::GetMapUnit(), vcl::Window::GetOutDev(), tools::Rectangle::GetSize(), tools::Rectangle::IsEmpty(), vcl::Window::LogicToPixel(), m_aPaintRect, m_pWindow, maBackground, maSettings, mbBackground, mnOutOffX, mnOutOffY, ImplFrameData::mpBuffer, mpFrameData, vcl::Window::PixelToLogic(), OutputDevice::Pop(), OutputDevice::SetBackground(), OutputDevice::SetOutOffXPixel(), OutputDevice::SetOutOffYPixel(), OutputDevice::SetSettings(), and tools::Rectangle::TopLeft().
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().
|
private |
Definition at line 413 of file window.h.
Referenced by SetPaintRect(), and ~PaintBufferGuard().
|
private |
Definition at line 407 of file window.h.
Referenced by GetRenderContext(), and ~PaintBufferGuard().
|
private |
Definition at line 409 of file window.h.
Referenced by PaintBufferGuard(), and ~PaintBufferGuard().
|
private |
Definition at line 410 of file window.h.
Referenced by PaintBufferGuard(), and ~PaintBufferGuard().
|
private |
Definition at line 408 of file window.h.
Referenced by PaintBufferGuard(), and ~PaintBufferGuard().
|
private |
Definition at line 411 of file window.h.
Referenced by PaintBufferGuard(), and ~PaintBufferGuard().
|
private |
Definition at line 412 of file window.h.
Referenced by PaintBufferGuard(), and ~PaintBufferGuard().
|
private |
Definition at line 406 of file window.h.
Referenced by GetRenderContext(), and ~PaintBufferGuard().