| 5 | #include "imgui/imgui.h" |
| 6 | |
| 7 | void RightAlignedText(const char *t, int w) { |
| 8 | ImVec2 s = ImGui::CalcTextSize(t); |
| 9 | s.x = w - s.x; |
| 10 | ImGui::Dummy(s); |
| 11 | ImGui::SameLine(); |
| 12 | ImGui::Text("%s", t); |
| 13 | } |
| 14 | |
| 15 | bool MenuItemWithCheckbox(const std::string &label, const std::string &shortcut, bool &selected, bool enabled) { |
| 16 | ImGuiStyle &style = ImGui::GetStyle(); |
no outgoing calls
no test coverage detected