Skip to content

Commit

Permalink
Move motto to intro
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 14, 2024
1 parent 8867ac1 commit 1b50685
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,25 @@ Quality contributions are welcome!

## Demos & real world apps

### Motto

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++*
```cpp
#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*
```cmake
hello_imgui_add_app(hello_world hello_world.cpp)
```


### Advanced layout

Expand Down
19 changes: 19 additions & 0 deletions docs_src/00_00_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@ Quality contributions are welcome!

## Demos & real world apps

### Motto

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++*
```cpp
#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*
```cmake
hello_imgui_add_app(hello_world hello_world.cpp)
```


### Advanced layout

Expand Down
20 changes: 0 additions & 20 deletions docs_src/05_05_get_started.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
# Get started

## Motto

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++*
```cpp
#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*
```cmake
hello_imgui_add_app(hello_world hello_world.cpp)
```


## Starter template

```{tip}
Expand Down

0 comments on commit 1b50685

Please sign in to comment.