MCPcopy Create free account
hub / github.com/Raais/ImStudio / HelpMarker

Method HelpMarker

src/utils/ims_utils.cpp:357–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void utils::HelpMarker(const char *desc)
358{
359 ImGui::PushStyleColor(ImGuiCol_Text,ImVec4(0.92f, 0.92f, 0.92f, 1.00f));
360 ImGui::TextDisabled("(?)");
361 if (ImGui::IsItemHovered())
362 {
363 ImGui::BeginTooltip();
364 ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
365 ImGui::TextUnformatted(desc);
366 ImGui::PopTextWrapPos();
367 ImGui::EndTooltip();
368 }
369 ImGui::PopStyleColor(1);
370}
371
372float utils::CenterHorizontal()
373{

Callers

nothing calls this directly

Calls 1

ImVec4Class · 0.85

Tested by

no test coverage detected