MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / drawToolbar

Method drawToolbar

Examples/SCExample/SCExample.cpp:264–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 }
263
264 void drawToolbar()
265 {
266 ImGui::SetNextWindowPos(ImVec2(0, 0));
267 ImGui::SetNextWindowSize(ImVec2(ImGui::GetIO().DisplaySize.x, ToolbarHeight));
268 constexpr auto flags = ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar |
269 ImGuiWindowFlags_NoScrollbar;
270 if (ImGui::Begin("Toolbar", nullptr, flags))
271 {
272 if (ImGui::Button("Settings..."))
273 {
274 viewState.page = ApplicationPage::Settings;
275 }
276 HotReloadView view{system.hotReloadSystem, system.hotReloadSystem.state, viewState.exampleViewState};
277 if (view.drawToolbar())
278 {
279 viewState.page = ApplicationPage::Examples;
280 }
281 }
282 ImGui::End();
283 }
284
285 void drawSettings()
286 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected