From 5ce9b0964979ab6da97d88ef9f0c9a336a09fcc8 Mon Sep 17 00:00:00 2001 From: debater-coder <52619668+debater-coder@users.noreply.github.com> Date: Fri, 28 Jan 2022 13:34:57 +1100 Subject: [PATCH] Fix typos, add button section --- ImGui-Widgets.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ImGui-Widgets.md b/ImGui-Widgets.md index eaccc9a..ffe073a 100644 --- a/ImGui-Widgets.md +++ b/ImGui-Widgets.md @@ -1,9 +1,7 @@ # Text ## ImGui::Text -Outputs a formatted text. The format options is like `printf` - -### Input +Draws formatted text. The format options are like `printf`. ### Example ```c++ @@ -11,6 +9,15 @@ ImGui::Text("Hello world %f", 42); ``` # Main +## ImGui::Button +Draws a button and returns whether it was clicked or not. +### Example +```c++ +if (ImGui::Button("Button")) +{ + printf("Button Clicked"); +} +``` # Combo Box