src/ascension/ui/text.h

changeset 116
bfb2a7d62047
parent 114
5b91bbab1ac0
--- a/src/ascension/ui/text.h	Sat May 10 18:51:45 2025 +0200
+++ b/src/ascension/ui/text.h	Sun May 11 14:51:00 2025 +0200
@@ -39,7 +39,14 @@
     AscFont font;
     asc_col4i color;
     unsigned short max_width;
+    /**
+     * The automatically calculated offset in case the text is centered.
+     */
     unsigned short offx;
+    /**
+     * The automatically calculated text dimension.
+     */
+    asc_vec2u dimension;
 } AscText;
 
 enum asc_text_alignment {

mercurial