LibreOffice Module sd (master) 1
|
Synchronize painting of windows and canvases. More...
#include <PresenterPaintManager.hxx>
Public Member Functions | |
PresenterPaintManager (const css::uno::Reference< css::awt::XWindow > &rxParentWindow, css::uno::Reference< css::drawing::XPresenterHelper > xPresenterHelper, rtl::Reference< PresenterPaneContainer > xPaneContainer) | |
Create paint manager with the window that is the top node in the local window hierarchy. More... | |
::std::function< void(const css::awt::Rectangle &rRepaintBox)> | GetInvalidator (const css::uno::Reference< css::awt::XWindow > &rxWindow) |
void | Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow) |
Request a repaint of the whole window. More... | |
void | Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const sal_Int16 nInvalidateFlags) |
void | Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const css::awt::Rectangle &rRepaintBox, const bool bSynchronous=false) |
Request a repaint of a part of a window. More... | |
void | Invalidate (const css::uno::Reference< css::awt::XWindow > &rxWindow, const css::awt::Rectangle &rRepaintBox, const sal_Int16 nInvalidateFlags) |
Private Attributes | |
css::uno::Reference< css::awt::XWindow > | mxParentWindow |
css::uno::Reference< css::awt::XWindowPeer > | mxParentWindowPeer |
css::uno::Reference< css::drawing::XPresenterHelper > | mxPresenterHelper |
::rtl::Reference< PresenterPaneContainer > | mpPaneContainer |
Synchronize painting of windows and canvases.
At the moment there is just some processing of invalidate calls. This could be extended to process incoming windowPaint() calls.
Definition at line 40 of file PresenterPaintManager.hxx.
sdext::presenter::PresenterPaintManager::PresenterPaintManager | ( | const css::uno::Reference< css::awt::XWindow > & | rxParentWindow, |
css::uno::Reference< css::drawing::XPresenterHelper > | xPresenterHelper, | ||
rtl::Reference< PresenterPaneContainer > | xPaneContainer | ||
) |
Create paint manager with the window that is the top node in the local window hierarchy.
Definition at line 32 of file PresenterPaintManager.cxx.
std::function< void(const css::awt::Rectangle &rRepaintBox)> sdext::presenter::PresenterPaintManager::GetInvalidator | ( | const css::uno::Reference< css::awt::XWindow > & | rxWindow | ) |
Definition at line 44 of file PresenterPaintManager.cxx.
References Invalidate().
void sdext::presenter::PresenterPaintManager::Invalidate | ( | const css::uno::Reference< css::awt::XWindow > & | rxWindow | ) |
Request a repaint of the whole window.
rxWindow | May be the parent window or one of its descendents. |
Definition at line 53 of file PresenterPaintManager.cxx.
References Invalidate(), and mpPaneContainer.
Referenced by GetInvalidator(), and Invalidate().
void sdext::presenter::PresenterPaintManager::Invalidate | ( | const css::uno::Reference< css::awt::XWindow > & | rxWindow, |
const css::awt::Rectangle & | rRepaintBox, | ||
const bool | bSynchronous = false |
||
) |
Request a repaint of a part of a window.
rxWindow | May be the parent window or one of its descendents. |
Definition at line 91 of file PresenterPaintManager.cxx.
References Invalidate(), and mpPaneContainer.
void sdext::presenter::PresenterPaintManager::Invalidate | ( | const css::uno::Reference< css::awt::XWindow > & | rxWindow, |
const css::awt::Rectangle & | rRepaintBox, | ||
const sal_Int16 | nInvalidateFlags | ||
) |
Definition at line 110 of file PresenterPaintManager.cxx.
References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.
void sdext::presenter::PresenterPaintManager::Invalidate | ( | const css::uno::Reference< css::awt::XWindow > & | rxWindow, |
const sal_Int16 | nInvalidateFlags | ||
) |
Definition at line 68 of file PresenterPaintManager.cxx.
References mxParentWindow, mxParentWindowPeer, and mxPresenterHelper.
|
private |
Definition at line 82 of file PresenterPaintManager.hxx.
Referenced by Invalidate().
|
private |
Definition at line 79 of file PresenterPaintManager.hxx.
Referenced by Invalidate().
|
private |
Definition at line 80 of file PresenterPaintManager.hxx.
Referenced by Invalidate().
|
private |
Definition at line 81 of file PresenterPaintManager.hxx.
Referenced by Invalidate().