LibreOffice Module vcl (master) 1
|
Public Member Functions | |
PaintHelper (vcl::Window *pWindow, ImplPaintFlags nPaintFlags) | |
void | SetPop () |
void | SetPaintRect (const tools::Rectangle &rRect) |
void | SetSelectionRect (const tools::Rectangle &rRect) |
void | SetRestoreCursor (bool bRestoreCursor) |
bool | GetRestoreCursor () const |
ImplPaintFlags | GetPaintFlags () const |
vcl::Region & | GetPaintRegion () |
void | DoPaint (const vcl::Region *pRegion) |
void | StartBufferedPaint () |
Start buffered paint: set it up to have the same settings as m_pWindow. More... | |
void | PaintBuffer () |
Paint the content of the buffer to the current m_pWindow. More... | |
~PaintHelper () | |
Private Attributes | |
VclPtr< vcl::Window > | m_pWindow |
std::unique_ptr< vcl::Region > | m_pChildRegion |
tools::Rectangle | m_aSelectionRect |
tools::Rectangle | m_aPaintRect |
vcl::Region | m_aPaintRegion |
ImplPaintFlags | m_nPaintFlags |
bool | m_bPop: 1 |
bool | m_bRestoreCursor: 1 |
bool | m_bStartedBufferedPaint: 1 |
This PaintHelper started a buffered paint, and should paint it on the screen when being destructed. More... | |
PaintHelper::PaintHelper | ( | vcl::Window * | pWindow, |
ImplPaintFlags | nPaintFlags | ||
) |
PaintHelper::~PaintHelper | ( | ) |
Definition at line 536 of file paint.cxx.
References vcl::Window::DrawSelectionBackground(), vcl::Window::ImplCallPaint(), vcl::Window::ImplGetWindowImpl(), vcl::Window::InvertTracking(), tools::Rectangle::IsEmpty(), m_aSelectionRect, m_bPop, m_bStartedBufferedPaint, m_nPaintFlags, m_pChildRegion, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, WindowImpl::mbTrackVisible, WindowImpl::mpLastChild, WindowImpl::mpWinData, vcl::Window::mpWindowImpl, PaintAllChildren, PaintBuffer(), PaintChildren, vcl::Window::PopPaintHelper(), and TrackWindow.
void PaintHelper::DoPaint | ( | const vcl::Region * | pRegion | ) |
Definition at line 247 of file paint.cxx.
References vcl::Window::ApplySettings(), VclPtr< reference_type >::get(), vcl::Window::GetBackground(), vcl::Window::GetOutDev(), vcl::Window::GetText(), vcl::Window::ImplGetWinChildClipRegion(), vcl::Window::ImplGetWindowImpl(), vcl::Region::Intersect(), Wallpaper::IsBitmap(), vcl::Region::IsEmpty(), m_aPaintRect, m_pChildRegion, m_pWindow, ImplFrameData::maBufferedRect, WindowImpl::maInvalidateRegion, ImplFrameData::mbInBufferedPaint, WindowImpl::mbTrackVisible, WindowImpl::mnPaintFlags, ImplFrameData::mpBuffer, WindowImpl::mpWinData, vcl::Window::mpWindowImpl, NONE, vcl::Window::Paint(), PaintAll, PaintAllChildren, vcl::Window::PushPaintHelper(), SAL_WARN, vcl::Window::SetBackground(), StartBufferedPaint(), vcl::Window::SupportsDoubleBuffering(), tools::Rectangle::Union(), vcl::Region::Union(), and VCL_GL_INFO.
|
inline |
Definition at line 199 of file paint.cxx.
References m_nPaintFlags.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 203 of file paint.cxx.
References m_aPaintRegion.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 195 of file paint.cxx.
References m_bRestoreCursor.
Referenced by vcl::Window::PopPaintHelper().
void PaintHelper::PaintBuffer | ( | ) |
Paint the content of the buffer to the current m_pWindow.
Definition at line 237 of file paint.cxx.
References m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, vcl::Window::mpWindowImpl, and vcl::PaintBufferGuard::SetPaintRect().
Referenced by ~PaintHelper().
|
inline |
Definition at line 183 of file paint.cxx.
References m_aPaintRect.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 179 of file paint.cxx.
References m_bPop.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 191 of file paint.cxx.
References m_bRestoreCursor.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 187 of file paint.cxx.
References m_aSelectionRect.
Referenced by vcl::Window::PushPaintHelper().
void PaintHelper::StartBufferedPaint | ( | ) |
Start buffered paint: set it up to have the same settings as m_pWindow.
Definition at line 227 of file paint.cxx.
References m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, and vcl::Window::mpWindowImpl.
Referenced by DoPaint().
|
private |
Definition at line 171 of file paint.cxx.
Referenced by DoPaint(), and SetPaintRect().
|
private |
Definition at line 172 of file paint.cxx.
Referenced by GetPaintRegion().
|
private |
Definition at line 170 of file paint.cxx.
Referenced by SetSelectionRect(), and ~PaintHelper().
|
private |
Definition at line 174 of file paint.cxx.
Referenced by SetPop(), and ~PaintHelper().
|
private |
Definition at line 175 of file paint.cxx.
Referenced by GetRestoreCursor(), and SetRestoreCursor().
|
private |
This PaintHelper started a buffered paint, and should paint it on the screen when being destructed.
Definition at line 176 of file paint.cxx.
Referenced by PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().
|
private |
Definition at line 173 of file paint.cxx.
Referenced by GetPaintFlags(), and ~PaintHelper().
|
private |
Definition at line 169 of file paint.cxx.
Referenced by DoPaint(), and ~PaintHelper().
|
private |
Definition at line 168 of file paint.cxx.
Referenced by DoPaint(), PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().