diff --git a/docs/book/00_00_intro.html b/docs/book/00_00_intro.html index 6f249474..22a02b6f 100644 --- a/docs/book/00_00_intro.html +++ b/docs/book/00_00_intro.html @@ -401,6 +401,7 @@
The minimum code to start developing a GUI app should be… minimal. Here is a multiplatform Hello World in 7 lines.
6 lines of C++
#include "hello_imgui/hello_imgui.h" +int main(int , char *[]) { + HelloImGui::Run( + []{ ImGui::Text("Hello, world!"); }, // Gui code + "Hello!", true); // Window title + Window size auto +} +
1 line of CMake
hello_imgui_add_app(hello_world hello_world.cpp) +
The docking demo show how to handle complex layouts, use themes, store user settings, reduce FPS and CPU usage when idling, load fonts and icons, and much more
#include "hello_imgui/hello_imgui.h" -int main(int , char *[]) { - HelloImGui::Run( - []{ ImGui::Text("Hello, world!"); }, // Gui code - "Hello!", true); // Window title + Window size auto -} -
hello_imgui_add_app(hello_world hello_world.cpp) -