diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html
index 8d0ca2f..092f8a1 100644
--- a/docs/_font_8hpp_source.html
+++ b/docs/_font_8hpp_source.html
@@ -224,7 +224,7 @@ $(function() {
inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
-
+
Vector2 MeasureText(const std::string &text, float fontSize, float spacing) const
Measure string size for Font.
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
diff --git a/docs/_functions_8hpp_source.html b/docs/_functions_8hpp_source.html
index 473a283..b893542 100644
--- a/docs/_functions_8hpp_source.html
+++ b/docs/_functions_8hpp_source.html
@@ -251,60 +251,69 @@ $(function() {
293 RLAPI
inline std::string
TextSubtext(
const std::string& text,
int position,
int length) {
- 294 return TextSubtext(text.c_str(), position, length);
+ 294 return ::TextSubtext(text.c_str(), position, length);
300 RLAPI
inline std::string
TextReplace(
const std::string& text,
const std::string& replace,
const std::string& by) {
- 301 return TextReplace(text.c_str(), replace.c_str(), by.c_str());
-
-
- 307 RLAPI
inline std::string
TextInsert(
const std::string& text,
const std::string& insert,
int position) {
- 308 return TextInsert(text.c_str(), insert.c_str(), position);
+ 301 const char* input = text.c_str();
+ 302 char* output =
::TextReplace(
const_cast<char*
>(input), replace.c_str(), by.c_str());
+ 303 if (output != NULL) {
+ 304 std::string stringOutput(output);
+
+
+
+
- 314 RLAPI
inline void TextAppend(
const std::string& text,
const std::string& append,
int *position) {
- 315 return TextAppend(text.c_str(), append.c_str(), position);
-
-
- 321 RLAPI
inline int TextFindIndex(
const std::string& text,
const std::string& find) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 355 #endif // RAYLIB_CPP_INCLUDE_FUNCTIONS_HPP_
+ 314 RLAPI
inline std::string
TextInsert(
const std::string& text,
const std::string& insert,
int position) {
+ 315 char* output =
::TextInsert(text.c_str(), insert.c_str(), position);
+ 316 if (output != NULL) {
+ 317 std::string stringOutput(output);
+
+
+
+
+
+
+ 327 RLAPI
inline int TextFindIndex(
const std::string& text,
const std::string& find) {
+ 328 return ::TextFindIndex(text.c_str(), find.c_str());
+
+
+
+ 335 return ::TextToUpper(text.c_str());
+
+
+
+ 342 return ::TextToLower(text.c_str());
+
+
+
+ 349 return ::TextToPascal(text.c_str());
+
+
+
+ 356 return ::TextToInteger(text.c_str());
+
+
+
+
+ 361 #endif // RAYLIB_CPP_INCLUDE_FUNCTIONS_HPP_
-RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
+RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
All raylib-cpp classes and functions appear in the raylib namespace.
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
static std::string GetFileName(const std::string &filePath)
Get pointer to filename for a path string.
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
-RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
+RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
static std::string GetPrevDirectoryPath(const std::string &dirPath)
Get previous directory path for a given path.
static bool TextIsEqual(const std::string &text1, const std::string &text2)
Check if two text string are equal.
static inline ::Image LoadImageFromMemory(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension like "png".
static void SetWindowTitle(const std::string &title)
Set title for window.
-Image type, bpp always RGBA (32bit)
+Image type, bpp always RGBA (32bit)
static std::string GetMonitorName(int monitor=0)
Get the human-readable, UTF-8 encoded name of the primary monitor.
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
-RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
+RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
static long GetFileModTime(const std::string &fileName)
Get file modification time (last write time)
static void TakeScreenshot(const std::string &fileName)
Takes a screenshot of current screen (saved a .png)
static std::vector< std::string > GetDroppedFiles()
Get dropped files names.
@@ -324,22 +333,21 @@ $(function() {
static bool ChangeDirectory(const std::string &dir)
Change working directory, return true on success.
static int MeasureText(const std::string &text, int fontSize)
Measure string width for default font.
-RLAPI std::string TextReplace(const std::string &text, const std::string &replace, const std::string &by)
Replace text string (WARNING: memory must be freed!)
+RLAPI std::string TextReplace(const std::string &text, const std::string &replace, const std::string &by)
Replace text string.
static void SetClipboardText(const std::string &text)
Set clipboard text content.
static std::string GetFileExtension(const std::string &fileName)
Get pointer to extension for a filename string (including point: ".png")
static bool SaveFileText(const std::string &fileName, const std::string &text)
Save text data to file (write)
-RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
+RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
static std::string LoadFileText(const std::string &fileName)
Load text data from file (read)
static void OpenURL(const std::string &url)
Open URL with default system browser (if available)
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
-RLAPI void TextAppend(const std::string &text, const std::string &append, int *position)
Append text at specific position and move cursor!
static std::string GetWorkingDirectory()
Get current working directory.
-RLAPI std::string TextInsert(const std::string &text, const std::string &insert, int position)
Insert text in a position (WARNING: memory must be freed!)
+RLAPI std::string TextInsert(const std::string &text, const std::string &insert, int position)
Insert text in a position.
static std::string GetClipboardText()
Get clipboard text content.
-RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)
+RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)