From e224a077737739a895fe533c9cce93783621d8e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 May 2015 14:49:19 +0300 Subject: Add fast way for draw not changed text strings. TextChunk with colors and image stored inside draw object. If string or color changed old string image moved to cache. New string image generated or moved from cache. Use new way in drawing string in label. --- src/gui/fonts/font.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/fonts/font.h') diff --git a/src/gui/fonts/font.h b/src/gui/fonts/font.h index 2e0dfad7f..a112673a1 100644 --- a/src/gui/fonts/font.h +++ b/src/gui/fonts/font.h @@ -125,6 +125,10 @@ class Font final int getStringIndexAt(const std::string& text, const int x) const A_WARN_UNUSED; + void generate(TextChunk &chunk); + + void insertChunk(TextChunk *const chunk); + static bool mSoftMode; private: -- cgit v1.2.3-60-g2f50