API reference
Preparing search index…

ImGui.IsWindowHovered

  • Test whether the current window is hovered.

    Parameters

    flags
    number = 0

    ImGuiHoveredFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    boolean

    True if the mouse is over the window under the requested hover policy; false otherwise.

    is current window hovered and hoverable (e.g. not blocked by a popup/modal)?

    See ImGuiHoveredFlags for options.

    IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app, you should not use this function!

    Use the 'io.WantCaptureMouse' boolean for that!

    Refer to FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" for details.

    Source & inheritance

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