summaryrefslogtreecommitdiff
path: root/dgl/NanoVG.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2015-06-14 19:45:32 +0200
committerfalkTX <falktx@gmail.com>2015-06-14 19:45:32 +0200
commit0d5de799d92ba839f5b097f6c1ae40dd350a1feb (patch)
tree8f1704c87f13e145efd97a096f4a50e0f97f8521 /dgl/NanoVG.hpp
parent2f3950d633cbce20f0fd588c8c745c90d9b82b8c (diff)
Misc changes
Diffstat (limited to 'dgl/NanoVG.hpp')
-rw-r--r--dgl/NanoVG.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp
index 18ec1de0..0d50133e 100644
--- a/dgl/NanoVG.hpp
+++ b/dgl/NanoVG.hpp
@@ -801,11 +801,12 @@ public:
float text(float x, float y, const char* string, const char* end);
/**
- Draws multi-line text string at specified location wrapped at the specified width. If end is specified only the sub-string up to the end is drawn.
+ Draws multi-line text string at specified location wrapped at the specified width.
+ If end is specified only the sub-string up to the end is drawn.
White space is stripped at the beginning of the rows, the text is split at word boundaries or when new-line characters are encountered.
Words longer than the max width are slit at nearest character (i.e. no hyphenation).
*/
- void textBox(float x, float y, float breakRowWidth, const char* string, const char* end);
+ void textBox(float x, float y, float breakRowWidth, const char* string, const char* end = nullptr);
/**
Measures the specified text string. The bounds value are [xmin,ymin, xmax,ymax].