From d3e184220374c222a02b04d4d57d755b4b6fb782 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 15 Jun 2024 16:31:40 +0300 Subject: DrawTextBoxedEx. --- API.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'API.md') 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 --- -- cgit v1.2.3