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 () | |
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 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 | ( | ) |
Definition at line 108 of file paint.cxx.
References OutputDevice::DrawOutDev(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), tools::Rectangle::GetSize(), tools::Rectangle::IsEmpty(), OutputDevice::LogicToPixel(), m_aPaintRect, m_pWindow, maBackground, maSettings, mbBackground, mnOutOffX, mnOutOffY, ImplFrameData::mpBuffer, mpFrameData, OutputDevice::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 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().
|
private |
Definition at line 411 of file window.h.
Referenced by SetPaintRect(), and ~PaintBufferGuard().
|
private |
Definition at line 405 of file window.h.
Referenced by GetRenderContext(), and ~PaintBufferGuard().
|
private |
Definition at line 407 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 406 of file window.h.
Referenced by PaintBufferGuard(), 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 404 of file window.h.
Referenced by GetRenderContext(), and ~PaintBufferGuard().