Updated ImGui Widgets (markdown)

debater-coder 2022-01-28 13:41:35 +11:00
parent 5ce9b09649
commit ed8e5335ce

@ -2,7 +2,10 @@
## ImGui::Text ## ImGui::Text
Draws formatted text. The format options are like `printf`. Draws formatted text. The format options are like `printf`.
### Function Signature
```c++
IMGUI_API void Text(const char* fmt, ...)
```
### Example ### Example
```c++ ```c++
ImGui::Text("Hello world %f", 42); ImGui::Text("Hello world %f", 42);
@ -11,6 +14,10 @@ ImGui::Text("Hello world %f", 42);
# Main # Main
## ImGui::Button ## ImGui::Button
Draws a button and returns whether it was clicked or not. Draws a button and returns whether it was clicked or not.
### Function Signature
```c++
IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0));
```
### Example ### Example
```c++ ```c++
if (ImGui::Button("Button")) if (ImGui::Button("Button"))