Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 15, 2024
1 parent 2d7d705 commit b325766
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions src/hello_imgui/doc_params.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See [runner_params.h](https://github.com/pthom/hello_imgui/blob/master/src/hello
## Simple runner params

```cpp
//

// SimpleRunnerParams is a struct that contains simpler params adapted for simple use cases.
//For example, this is sufficient to run an application:
// ```cpp
Expand Down Expand Up @@ -66,7 +66,7 @@ struct SimpleRunnerParams
## Full params

```cpp
//

// RunnerParams contains the settings and callbacks needed to run an application.
//
struct RunnerParams
Expand Down Expand Up @@ -187,7 +187,7 @@ struct RunnerParams
See [runner_params.h](https://github.com/pthom/hello_imgui/blob/master/src/hello_imgui/runner_params.h).

```cpp
//

// FpsIdling is a struct that contains Fps Idling parameters
struct FpsIdling
{
Expand Down Expand Up @@ -244,7 +244,7 @@ inline AnyEventCallback EmptyEventCallback() {return {}; }
## RunnerCallbacks
```cpp
//
// RunnerCallbacks is a struct that contains the callbacks
// that are called by the application
//
Expand Down Expand Up @@ -451,7 +451,7 @@ std::string EdgeToolbarTypeName(EdgeToolbarType e);
## MobileCallbacks
```cpp
//
// MobileCallbacks is a struct that contains callbacks that are called by the application
// when running under "Android, iOS and WinRT".
// These events are specific to mobile and embedded devices that have different
Expand Down Expand Up @@ -755,6 +755,7 @@ struct ImGuiWindowParams
## Default window types

```cpp

// `DefaultImGuiWindowType` is an enum class that defines whether a full screen background
// window is provided or not
enum class DefaultImGuiWindowType
Expand Down
1 change: 1 addition & 0 deletions src/hello_imgui/imgui_window_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace HelloImGui
{
// @@md#DefaultImGuiWindowType

// `DefaultImGuiWindowType` is an enum class that defines whether a full screen background
// window is provided or not
enum class DefaultImGuiWindowType
Expand Down
4 changes: 2 additions & 2 deletions src/hello_imgui/runner_callbacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inline AnyEventCallback EmptyEventCallback() {return {}; }


// @@md#MobileCallbacks
//

// MobileCallbacks is a struct that contains callbacks that are called by the application
// when running under "Android, iOS and WinRT".
// These events are specific to mobile and embedded devices that have different
Expand Down Expand Up @@ -98,7 +98,7 @@ std::string EdgeToolbarTypeName(EdgeToolbarType e);


// @@md#RunnerCallbacks
//

// RunnerCallbacks is a struct that contains the callbacks
// that are called by the application
//
Expand Down
6 changes: 3 additions & 3 deletions src/hello_imgui/runner_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::string IniFolderLocation(IniFolderType iniFolderType);


// @@md#FpsIdling
//

// FpsIdling is a struct that contains Fps Idling parameters
struct FpsIdling
{
Expand Down Expand Up @@ -107,7 +107,7 @@ struct FpsIdling


// @@md#RunnerParams
//

// RunnerParams contains the settings and callbacks needed to run an application.
//
struct RunnerParams
Expand Down Expand Up @@ -238,7 +238,7 @@ void DeleteIniSettings(const RunnerParams& runnerParams);


// @@md#SimpleRunnerParams
//

// SimpleRunnerParams is a struct that contains simpler params adapted for simple use cases.
//For example, this is sufficient to run an application:
// ```cpp
Expand Down

0 comments on commit b325766

Please sign in to comment.