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)
| 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) |
| 213 | static 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 | |
| 226 | static void ShowDockingDisabledMessage() |
| 227 | { |
no outgoing calls
no test coverage detected