Skip to content

Commit

Permalink
Adding imgui.extra.InputText and imgui.extra.InputTextWithHint docume…
Browse files Browse the repository at this point in the history
…ntation.
  • Loading branch information
nicolasnoble committed Oct 7, 2023
1 parent 350c3ba commit 83e02eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/Lua/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,21 @@ Some extra functions are bound to Lua beyond the API listed above:
specified viewport. The DPI scale is returned as a number. A value of 1.0
means that the DPI scale for this viewport is 100%.

- `imgui.extra.InputText(label, text[, flags])` will create an input text
widget. The `label` is the label to display next to the input text, and the
`text` is the current text to display in the input text. The `flags` are
optional, and are the same flags as the ones used by the `imgui::InputText`
C++ function. The function will return a boolean indicating if the text has
changed or not, and the new text.

- `imgui.extra.InputTextWithHint(label, hint, text[, flags])` will create an
input text widget. The `label` is the label to display next to the input
text, and the `hint` is the hint to display in the input text when the text
is empty. The `text` is the current text to display in the input text. The
`flags` are optional, and are the same flags as the ones used by the
`imgui::InputTextWithHint` C++ function. The function will return a boolean
indicating if the text has changed or not, and the new text.

## NanoVG

The NanoVG library is bound to Lua, and can be used to draw arbitrary vector graphics
Expand Down

0 comments on commit 83e02eb

Please sign in to comment.