MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / RightAlignedText

Function RightAlignedText

src/openboardview/GUI/widgets.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "imgui/imgui.h"
6
7void 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
15bool MenuItemWithCheckbox(const std::string &label, const std::string &shortcut, bool &selected, bool enabled) {
16 ImGuiStyle &style = ImGui::GetStyle();

Callers 4

renderMethod · 0.85
renderMethod · 0.85
ColorPreferencesItemMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected