summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2024-06-15 16:31:40 +0300
committerjussi2024-06-15 16:31:40 +0300
commitd3e184220374c222a02b04d4d57d755b4b6fb782 (patch)
tree01e43be38161752eb6ecb58a3ce9cdeed96a285e /API.md
parente9539e9373947b7424df8bbb34d8ae30e49a591f (diff)
downloadreilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.tar.gz
reilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.tar.bz2
reilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.zip
DrawTextBoxedEx.
Diffstat (limited to 'API.md')
-rw-r--r--API.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/API.md b/API.md
index d9c0d72..63eaab2 100644
--- a/API.md
+++ b/API.md
@@ -6858,19 +6858,19 @@ Draw multiple character (codepoint)
---
-> mouseCharId = RL.DrawTextBoxed(Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint )
+> RL.DrawTextBoxed(Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint )
-Draw text using font inside rectangle limits. Return character id from mouse position (default -1). Function from raylib [text] example - Rectangle bounds.
-
-- Success return int
+Draw text using font inside rectangle limits.
---
-> mouseCharId = RL.DrawTextBoxedTinted( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tints{}, Color backTints{} )
+> mouseCharId, textOffset = RL.DrawTextBoxedEx( Font font, string text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint, Vector2 textOffset )
-Draw text using font inside rectangle limits with support for tint and background tint for each character. Return character id from mouse position (default -1)
+Draw text using font inside rectangle limits. Return character id from mouse position (default 0).
+textOffset can be used to set start position inside rectangle. Usefull to pass from previous
+DrawTextBoxedEx for continuous text.
-- Success return int
+- Success return int, Vector2
---