diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-01-06 10:48:18 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-01-23 03:23:19 +0000 |
commit | 1c27286b9d5331634c073cd3e327bd941e61bbb6 (patch) | |
tree | a80286f43ddab83e79bfc3b1c720c36e20e80fb3 /include/LibreOfficeKit/LibreOfficeKit.h | |
parent | d9cfbabc7fe13752daf02e2a8cfa38c72a30fb29 (diff) |
Lok: support for batch API calls
Mouse and keyboard operations typically
come in batches, and often each results in
tile invalidations and/or layout modifications.
Processing each input event on its own, then processing
the resulting output event is very costly and unecessary
when we know there is more of the same.
The new API adds support for batching such related
input events by disabling the output events generated
by Core until the batch is done. The client can
then process the resulting events, which will
be compressed and deduplicated.
Change-Id: Id381dab807186d010021a8778ee440074a739920
Reviewed-on: https://gerrit.libreoffice.org/33402
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKit.h')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index c7a2130315da..55cff727776c 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -250,6 +250,16 @@ struct _LibreOfficeKitDocumentClass int* pArray, size_t nSize); + /// Starts a batch of operations. + /// Events are emmitted only after ending the batch. + /// @see lok::Document::endBatch(); + void (*beginBatch) (LibreOfficeKitDocument* pThis); + + /// Ends a batch of operations. + /// @see lok::Document::beginBatch(); + void (*endBatch) (LibreOfficeKitDocument* pThis); + + #endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY }; |