diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-11-30 14:59:02 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-11-30 18:14:57 +0100 |
commit | 92814f3389de346f3ae32cddb38f079763e68ddf (patch) | |
tree | 17d62bc0da7b9ed94b1106525bdde50ea02f74ff /include/LibreOfficeKit/LibreOfficeKit.h | |
parent | 1f2c599b773b76f3915c6df2f2606348fcbe1437 (diff) |
lok: add viewId to window painting, to allow special-casing on render.
View switching should not cause the sidebar UX to re-build at all.
Particularly it should not do this when we switch view just to render
a sidebar.
Change-Id: Iec0427cdc8308fc273d73ea56dd208bfa7036471
Reviewed-on: https://gerrit.libreoffice.org/84120
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.h')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 78f2b478e861..a486886c15de 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -427,6 +427,15 @@ struct _LibreOfficeKitDocumentClass int* pFontHeight, int pOrientation); + /// Switches view to viewId if viewId >= 0, and paints window + /// @see lok::Document::paintWindowDPI(). + void (*paintWindowForView) (LibreOfficeKitDocument* pThis, unsigned nWindowId, + unsigned char* pBuffer, + const int x, const int y, + const int width, const int height, + const double dpiscale, + int viewId); + #endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY }; |