Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/rendering/StarTextPainter.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-01 23:20:25 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-01 23:20:25 +1000
commit5a56f8b81a10f3a91672055c3c6b7e9bde86efce (patch)
tree1972155ea630d5891ff42783f255f52cf8896171 /source/rendering/StarTextPainter.hpp
parente29a46d100164bdd2747278fa9336f889721b16b (diff)
Re-optimize text splitting while maintaining vanilla behavior
Diffstat (limited to 'source/rendering/StarTextPainter.hpp')
-rw-r--r--source/rendering/StarTextPainter.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/rendering/StarTextPainter.hpp b/source/rendering/StarTextPainter.hpp
index f1bd194..e006981 100644
--- a/source/rendering/StarTextPainter.hpp
+++ b/source/rendering/StarTextPainter.hpp
@@ -68,8 +68,7 @@ public:
typedef function<bool(StringView, int)> WrapTextCallback;
- typedef function<bool(StringView, int)> WrapCommandsCallback;
- void processWrapText(StringView s, Maybe<unsigned> wrapWidth, WrapTextCallback textFunc, WrapCommandsCallback commandFunc = WrapCommandsCallback(), bool includeCommandSides = false);
+ bool processWrapText(StringView s, Maybe<unsigned> wrapWidth, WrapTextCallback textFunc);
List<StringView> wrapTextViews(StringView s, Maybe<unsigned> wrapWidth);
StringList wrapText(StringView s, Maybe<unsigned> wrapWidth);