API reference
Preparing search index…

ImGui.BeginItemTooltip

  • Begin a tooltip when the preceding item is hovered.

    Returns

    boolean

    True when the last item meets the tooltip hover policy and tooltip contents may be submitted. Call EndTooltip() only when true.

    • BeginItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags.ForTooltip) && BeginTooltip())' idiom.

    • SetItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags.ForTooltip)) { SetTooltip(...); }' idiom.

    • Where 'ImGuiHoveredFlags.ForTooltip' itself is a shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' depending on active input type. For mouse it defaults to 'ImGuiHoveredFlags.Stationary | ImGuiHoveredFlags.DelayShort'.

    begin/append a tooltip window if preceding item was hovered.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0