MCPcopy Create free account
hub / github.com/chrxh/alien / processIntern

Method processIntern

source/Gui/ExitDialog.cpp:11–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{}
10
11void ExitDialog::processIntern()
12{
13 ImGui::TextWrapped("%s", "Do you really want to terminate the program?");
14
15 ImGui::Dummy({0, ImGui::GetContentRegionAvail().y - scale(50.0f)});
16 AlienImGui::Separator();
17
18 if (AlienImGui::Button("OK")) {
19 MainLoopController::get().scheduleClosing();
20 close();
21 }
22 ImGui::SameLine();
23 if (AlienImGui::Button("Cancel")) {
24 close();
25 }
26 ImGui::SetItemDefaultFocus();
27}

Callers

nothing calls this directly

Calls 2

scaleFunction · 0.85
scheduleClosingMethod · 0.80

Tested by

no test coverage detected