API reference
Preparing search index…

ImGui.BeginPopupContextItem

  • Open and begin a context popup for the preceding item.

    Returns

    boolean

    True when this scope is open/active and its contents may be submitted. Call EndPopup() only when true; on false, skip both contents and the matching end.

    This no-argument helper opens a context menu on right-button release over the preceding item. It fixes str_id = null and popup_flags = 1, so the preceding item must provide an ID.

    • After an item without an ID, such as Text(), call BeginPopupContextItemEx(id, flags) with an explicit ID instead.
    • Use that Ex variant to configure the mouse button or other ImGuiPopupFlags. These are popup flags, unlike the window flags accepted by BeginPopup(); include the right-button flag when combining options for right-click activation.
    • Submit popup contents and call EndPopup() only when the begin call returns true.
    Source & inheritance

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