diff --git a/src/hello_imgui/doc_params.md b/src/hello_imgui/doc_params.md index cbfc1b29..61ef667f 100644 --- a/src/hello_imgui/doc_params.md +++ b/src/hello_imgui/doc_params.md @@ -265,9 +265,11 @@ struct RunnerCallbacks // Also, remember to call ImGui::SameLine() between items. VoidFunction ShowStatus = EmptyVoidFunction(); - // EdgesToolbars: A map that contains the definition of toolbars - // that can be placed on the edges of the App window + // `EdgesToolbars`: + // A dict that contains toolbars that can be placed on the edges of the App window std::map edgesToolbars; + + // `AddEdgeToolbar`: Add a toolbar that can be placed on the edges of the App window void AddEdgeToolbar(EdgeToolbarType edgeToolbarType, VoidFunction callback, const EdgeToolbarOptions& options = EdgeToolbarOptions()); @@ -374,6 +376,9 @@ struct RunnerCallbacks // EdgesToolbars: A map that contains the definition of toolbars // that can be placed on the edges of the App window std::map edgesToolbars; + void AddEdgeToolbar(EdgeToolbarType edgeToolbarType, + VoidFunction callback, + const EdgeToolbarOptions& options = EdgeToolbarOptions()); ... }; ``` diff --git a/src/hello_imgui/doc_params.src.md b/src/hello_imgui/doc_params.src.md index 8e9ef10c..a20ece89 100644 --- a/src/hello_imgui/doc_params.src.md +++ b/src/hello_imgui/doc_params.src.md @@ -53,6 +53,9 @@ struct RunnerCallbacks // EdgesToolbars: A map that contains the definition of toolbars // that can be placed on the edges of the App window std::map edgesToolbars; + void AddEdgeToolbar(EdgeToolbarType edgeToolbarType, + VoidFunction callback, + const EdgeToolbarOptions& options = EdgeToolbarOptions()); ... }; ``` diff --git a/src/hello_imgui/runner_callbacks.h b/src/hello_imgui/runner_callbacks.h index 742ad542..c29d98c5 100644 --- a/src/hello_imgui/runner_callbacks.h +++ b/src/hello_imgui/runner_callbacks.h @@ -137,9 +137,11 @@ struct RunnerCallbacks // Also, remember to call ImGui::SameLine() between items. VoidFunction ShowStatus = EmptyVoidFunction(); - // EdgesToolbars: A map that contains the definition of toolbars - // that can be placed on the edges of the App window + // `EdgesToolbars`: + // A dict that contains toolbars that can be placed on the edges of the App window std::map edgesToolbars; + + // `AddEdgeToolbar`: Add a toolbar that can be placed on the edges of the App window void AddEdgeToolbar(EdgeToolbarType edgeToolbarType, VoidFunction callback, const EdgeToolbarOptions& options = EdgeToolbarOptions());