From 14c74bbcc65845b6b46ca087b941b47697a796f7 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 23 Jan 2022 23:40:56 -0500 Subject: [PATCH] Update documentation --- docs/_font_8hpp_source.html | 2 +- docs/_functions_8hpp_source.html | 92 +- docs/_image_8hpp_source.html | 915 +++++++++--------- docs/_music_8hpp_source.html | 284 +++--- docs/_raylib_exception_8hpp_source.html | 109 +++ docs/_render_texture_8hpp_source.html | 2 +- docs/_sound_8hpp_source.html | 248 ++--- docs/_texture_8hpp_source.html | 477 ++++----- docs/_wave_8hpp_source.html | 294 +++--- docs/annotated.html | 23 +- docs/classes.html | 24 +- docs/classraylib_1_1_image-members.html | 2 +- docs/classraylib_1_1_image.html | 50 +- docs/classraylib_1_1_music-members.html | 4 +- docs/classraylib_1_1_music.html | 40 +- ...ssraylib_1_1_raylib_exception-members.html | 87 ++ docs/classraylib_1_1_raylib_exception.html | 182 ++++ docs/classraylib_1_1_sound-members.html | 4 +- docs/classraylib_1_1_sound.html | 28 +- docs/classraylib_1_1_texture-members.html | 42 +- docs/classraylib_1_1_texture.html | 161 ++- docs/classraylib_1_1_wave-members.html | 2 +- docs/classraylib_1_1_wave.html | 42 +- docs/functions_func_i.html | 11 +- docs/functions_func_r.html | 3 + docs/functions_func_t.html | 5 +- docs/functions_i.html | 11 +- docs/functions_r.html | 3 + docs/functions_t.html | 5 +- docs/hierarchy.html | 89 +- docs/menudata.js | 1 + docs/namespacemembers.html | 3 - docs/namespacemembers_func.html | 3 - docs/namespaceraylib.html | 11 +- docs/raylib-cpp_8hpp_source.html | 37 +- docs/search/all_11.js | 36 +- docs/search/all_8.js | 19 +- docs/search/all_9.js | 2 +- docs/search/all_a.js | 42 +- docs/search/all_b.js | 24 +- docs/search/all_c.js | 2 +- docs/search/all_d.js | 20 +- docs/search/all_e.js | 12 +- docs/search/all_f.js | 9 +- docs/search/classes_8.js | 5 +- docs/search/classes_9.js | 4 +- docs/search/classes_a.js | 2 +- docs/search/classes_b.js | 8 +- docs/search/classes_c.js | 4 +- docs/search/functions_0.js | 18 +- docs/search/functions_1.js | 6 +- docs/search/functions_10.js | 236 ++--- docs/search/functions_11.js | 8 +- docs/search/functions_12.js | 20 +- docs/search/functions_13.js | 6 +- docs/search/functions_14.js | 2 +- docs/search/functions_15.js | 10 +- docs/search/functions_2.js | 46 +- docs/search/functions_3.js | 30 +- docs/search/functions_4.js | 12 +- docs/search/functions_5.js | 14 +- docs/search/functions_6.js | 258 ++--- docs/search/functions_7.js | 4 +- docs/search/functions_8.js | 29 +- docs/search/functions_f.js | 19 +- docs/search/namespaces_0.js | 2 +- docs/search/pages_0.js | 2 +- 67 files changed, 2387 insertions(+), 1820 deletions(-) create mode 100644 docs/_raylib_exception_8hpp_source.html create mode 100644 docs/classraylib_1_1_raylib_exception-members.html create mode 100644 docs/classraylib_1_1_raylib_exception.html 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() {
Vector2 type.
Definition: Vector2.hpp:16
Color type, RGBA (32bit)
Definition: Color.hpp:14
inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
Definition: Font.hpp:143
-
Texture type.
Definition: Texture.hpp:15
+
Texture type.
Definition: Texture.hpp:16
Vector2 MeasureText(const std::string &text, float fontSize, float spacing) const
Measure string size for Font.
Definition: Font.hpp:129
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.
Definition: Functions.hpp:256
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() {
288 }
289 
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);
295 }
296 
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());
-
302 }
-
303 
-
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);
+
305  free(output);
+
306  return stringOutput;
+
307  }
+
308  return "";
309 }
310 
-
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);
-
316 }
-
317 
-
321 RLAPI inline int TextFindIndex(const std::string& text, const std::string& find) {
-
322  return TextFindIndex(text.c_str(), find.c_str());
-
323 }
-
324 
-
328 RLAPI inline std::string TextToUpper(const std::string& text) {
-
329  return TextToUpper(text.c_str());
-
330 }
-
331 
-
335 RLAPI inline std::string TextToLower(const std::string& text) {
-
336  return TextToLower(text.c_str());
-
337 }
-
338 
-
342 RLAPI inline std::string TextToPascal(const std::string& text) {
-
343  return TextToPascal(text.c_str());
-
344 }
-
345 
-
349 RLAPI inline int TextToInteger(const std::string& text) {
-
350  return TextToInteger(text.c_str());
-
351 }
-
352 
-
353 } // namespace raylib
-
354 
-
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);
+
318  free(output);
+
319  return stringOutput;
+
320  }
+
321  return "";
+
322 }
+
323 
+
327 RLAPI inline int TextFindIndex(const std::string& text, const std::string& find) {
+
328  return ::TextFindIndex(text.c_str(), find.c_str());
+
329 }
+
330 
+
334 RLAPI inline std::string TextToUpper(const std::string& text) {
+
335  return ::TextToUpper(text.c_str());
+
336 }
+
337 
+
341 RLAPI inline std::string TextToLower(const std::string& text) {
+
342  return ::TextToLower(text.c_str());
+
343 }
+
344 
+
348 RLAPI inline std::string TextToPascal(const std::string& text) {
+
349  return ::TextToPascal(text.c_str());
+
350 }
+
351 
+
355 RLAPI inline int TextToInteger(const std::string& text) {
+
356  return ::TextToInteger(text.c_str());
+
357 }
+
358 
+
359 } // namespace raylib
+
360 
+
361 #endif // RAYLIB_CPP_INCLUDE_FUNCTIONS_HPP_
-
RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
Definition: Functions.hpp:342
+
RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
Definition: Functions.hpp:348
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
Definition: Functions.hpp:203
static std::string GetFileName(const std::string &filePath)
Get pointer to filename for a path string.
Definition: Functions.hpp:112
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
Definition: Functions.hpp:195
-
RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
Definition: Functions.hpp:321
+
RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
Definition: Functions.hpp:327
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
Definition: Functions.hpp:210
static std::string GetPrevDirectoryPath(const std::string &dirPath)
Get previous directory path for a given path.
Definition: Functions.hpp:133
static bool TextIsEqual(const std::string &text1, const std::string &text2)
Check if two text string are equal.
Definition: Functions.hpp:279
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".
Definition: Functions.hpp:226
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
-
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:15
+
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
static std::string GetMonitorName(int monitor=0)
Get the human-readable, UTF-8 encoded name of the primary monitor.
Definition: Functions.hpp:38
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
Definition: Functions.hpp:219
-
RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
Definition: Functions.hpp:328
+
RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
Definition: Functions.hpp:334
static long GetFileModTime(const std::string &fileName)
Get file modification time (last write time)
Definition: Functions.hpp:181
static void TakeScreenshot(const std::string &fileName)
Takes a screenshot of current screen (saved a .png)
Definition: Functions.hpp:59
static std::vector< std::string > GetDroppedFiles()
Get dropped files names.
Definition: Functions.hpp:167
@@ -324,22 +333,21 @@ $(function() {
static bool ChangeDirectory(const std::string &dir)
Change working directory, return true on success.
Definition: Functions.hpp:159
Vector2 type.
Definition: Vector2.hpp:16
static int MeasureText(const std::string &text, int fontSize)
Measure string width for default font.
Definition: Functions.hpp:272
-
RLAPI std::string TextReplace(const std::string &text, const std::string &replace, const std::string &by)
Replace text string (WARNING: memory must be freed!)
Definition: Functions.hpp:300
+
RLAPI std::string TextReplace(const std::string &text, const std::string &replace, const std::string &by)
Replace text string.
Definition: Functions.hpp:300
static void SetClipboardText(const std::string &text)
Set clipboard text content.
Definition: Functions.hpp:45
Color type, RGBA (32bit)
Definition: Color.hpp:14
static std::string GetFileExtension(const std::string &fileName)
Get pointer to extension for a filename string (including point: ".png")
Definition: Functions.hpp:105
static bool SaveFileText(const std::string &fileName, const std::string &text)
Save text data to file (write)
Definition: Functions.hpp:77
-
RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
Definition: Functions.hpp:335
+
RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
Definition: Functions.hpp:341
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
Definition: Functions.hpp:249
static std::string LoadFileText(const std::string &fileName)
Load text data from file (read)
Definition: Functions.hpp:67
static void OpenURL(const std::string &url)
Open URL with default system browser (if available)
Definition: Functions.hpp:188
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Functions.hpp:286
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.
Definition: Functions.hpp:256
-
RLAPI void TextAppend(const std::string &text, const std::string &append, int *position)
Append text at specific position and move cursor!
Definition: Functions.hpp:314
static std::string GetWorkingDirectory()
Get current working directory.
Definition: Functions.hpp:140
-
RLAPI std::string TextInsert(const std::string &text, const std::string &insert, int position)
Insert text in a position (WARNING: memory must be freed!)
Definition: Functions.hpp:307
+
RLAPI std::string TextInsert(const std::string &text, const std::string &insert, int position)
Insert text in a position.
Definition: Functions.hpp:314
static std::string GetClipboardText()
Get clipboard text content.
Definition: Functions.hpp:52
-
RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)
Definition: Functions.hpp:349
+
RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)
Definition: Functions.hpp:355