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 535 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, ImplWinData::mnTrackFlags, WindowImpl::mpLastChild, ImplWinData::mpTrackRect, WindowImpl::mpWinData, vcl::Window::mpWindowImpl, PaintAllChildren, PaintBuffer(), PaintChildren, vcl::Window::PopPaintHelper(), and TrackWindow.
void PaintHelper::DoPaint | ( | const vcl::Region * | pRegion | ) |
Definition at line 246 of file paint.cxx.
References vcl::Window::ApplySettings(), VclPtr< reference_type >::get(), OutputDevice::GetBackground(), 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, ImplWinData::mpTrackRect, WindowImpl::mpWinData, vcl::Window::mpWindowImpl, name, NONE, vcl::Window::Paint(), PaintAll, PaintAllChildren, vcl::Window::PushPaintHelper(), SAL_WARN, OutputDevice::SetBackground(), StartBufferedPaint(), vcl::Window::SupportsDoubleBuffering(), tools::Rectangle::Union(), vcl::Region::Union(), and VCL_GL_INFO.
Referenced by vcl::Window::ImplCallPaint().
|
inline |
Definition at line 198 of file paint.cxx.
References m_nPaintFlags.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 202 of file paint.cxx.
References m_aPaintRegion.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 194 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 236 of file paint.cxx.
References assert(), m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, vcl::Window::mpWindowImpl, and vcl::PaintBufferGuard::SetPaintRect().
Referenced by ~PaintHelper().
|
inline |
Definition at line 182 of file paint.cxx.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 178 of file paint.cxx.
References m_bPop.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 190 of file paint.cxx.
References m_bRestoreCursor.
Referenced by vcl::Window::PushPaintHelper().
|
inline |
Definition at line 186 of file paint.cxx.
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 226 of file paint.cxx.
References assert(), m_bStartedBufferedPaint, m_pWindow, ImplFrameData::maBufferedRect, ImplFrameData::mbInBufferedPaint, and vcl::Window::mpWindowImpl.
Referenced by DoPaint().
|
private |
|
private |
Definition at line 171 of file paint.cxx.
Referenced by GetPaintRegion().
|
private |
Definition at line 169 of file paint.cxx.
Referenced by ~PaintHelper().
|
private |
Definition at line 173 of file paint.cxx.
Referenced by SetPop(), and ~PaintHelper().
|
private |
Definition at line 174 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 175 of file paint.cxx.
Referenced by PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().
|
private |
Definition at line 172 of file paint.cxx.
Referenced by GetPaintFlags(), and ~PaintHelper().
|
private |
Definition at line 168 of file paint.cxx.
Referenced by DoPaint(), and ~PaintHelper().
|
private |
Definition at line 167 of file paint.cxx.
Referenced by DoPaint(), PaintBuffer(), StartBufferedPaint(), and ~PaintHelper().