From ed8e5335ceecf613e498b42047ce6f88bef7b101 Mon Sep 17 00:00:00 2001 From: debater-coder <52619668+debater-coder@users.noreply.github.com> Date: Fri, 28 Jan 2022 13:41:35 +1100 Subject: [PATCH] Updated ImGui Widgets (markdown) --- ImGui-Widgets.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ImGui-Widgets.md b/ImGui-Widgets.md index ffe073a..5180917 100644 --- a/ImGui-Widgets.md +++ b/ImGui-Widgets.md @@ -2,7 +2,10 @@ ## ImGui::Text Draws formatted text. The format options are like `printf`. - +### Function Signature +```c++ +IMGUI_API void Text(const char* fmt, ...) +``` ### Example ```c++ ImGui::Text("Hello world %f", 42); @@ -11,6 +14,10 @@ ImGui::Text("Hello world %f", 42); # Main ## ImGui::Button 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 ```c++ if (ImGui::Button("Button"))