MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / HelpMarker

Function HelpMarker

extern/imgui/imgui_demo.cpp:213–224  ·  view source on GitHub ↗

Helper to display a little (?) mark which shows a tooltip when hovered. In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md)

Source from the content-addressed store, hash-verified

211// Helper to display a little (?) mark which shows a tooltip when hovered.
212// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md)
213static void HelpMarker(const char* desc)
214{
215 ImGui::TextDisabled("(?)");
216 if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayShort))
217 {
218 ImGui::BeginTooltip();
219 ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f);
220 ImGui::TextUnformatted(desc);
221 ImGui::PopTextWrapPos();
222 ImGui::EndTooltip();
223 }
224}
225
226static void ShowDockingDisabledMessage()
227{

Callers 14

ShowDemoWindowMethod · 0.85
ShowDemoWindowWidgetsFunction · 0.85
ShowDemoWindowLayoutFunction · 0.85
ShowDemoWindowPopupsFunction · 0.85
EditTableColumnsFlagsFunction · 0.85
ShowDemoWindowTablesFunction · 0.85
ShowDemoWindowColumnsFunction · 0.85
ShowDemoWindowInputsFunction · 0.85
ShowFontSelectorMethod · 0.85
ShowStyleEditorMethod · 0.85
ShowExampleAppFullscreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected