diff options
| author | jussi | 2024-06-15 16:31:40 +0300 |
|---|---|---|
| committer | jussi | 2024-06-15 16:31:40 +0300 |
| commit | d3e184220374c222a02b04d4d57d755b4b6fb782 (patch) | |
| tree | 01e43be38161752eb6ecb58a3ce9cdeed96a285e /API.md | |
| parent | e9539e9373947b7424df8bbb34d8ae30e49a591f (diff) | |
| download | reilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.tar.gz reilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.tar.bz2 reilua-enhanced-d3e184220374c222a02b04d4d57d755b4b6fb782.zip | |
DrawTextBoxedEx.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 --- |
