Skip to content

Commit

Permalink
Typo fixes in doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Apr 3, 2021
1 parent da831e8 commit 4d95e55
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions doc/luaGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,22 @@ class Gui {
*/
void drawText(string label, int color);

/**
* Calculate a text size.
* \ingroup Gui
*
* @par Usage example:
* @code
* w, h = Gui.getTextSize("Hello World")
* end
* @endcode
*
* @param text - The text to calculate the size about.
*
* @return The size of the text in pixels.
*/
number[] getTextSize(string text);

/**
* Draw a greyed out text.
* \ingroup Gui
Expand Down Expand Up @@ -461,27 +477,11 @@ class Gui {
* @endcode
*
* @param fraction - Progress value to show in 0.0 - 1.0 range.
* @param w - Width of the element in pixels.
* @param h - Height of the element in pixels.
* @param w - Width of the element in pixels <b>(optional)</b>.
* @param h - Height of the element in pixels <b>(optional)</b>.
*/
void drawProgressbar(number fraction, number w, number h);

/**
* Draw a progressbar.
* \ingroup Gui
*
* @par Usage example:
* @code
* w, h = Gui.getTextSize("Hello World")
* end
* @endcode
*
* @param text - The text to calculate the size about.
*
* @return The size of the text in pixels.
*/
number[] getTextSize(string text);

/**
* Set next widget position.
* \ingroup Gui
Expand Down

0 comments on commit 4d95e55

Please sign in to comment.