Skip to content

Namespace Item

Namespace List > Item

Utility functions for ImGui item operations.

Public Functions

Type Name
bool is_inside (const ImVec2 size, const ImVec2 mouse_pos)
Checks if mouse position is inside a window region.

Public Functions Documentation

function is_inside

Checks if mouse position is inside a window region.

inline bool Item::is_inside (
    const ImVec2 size,
    const ImVec2 mouse_pos
) 

Used for hit-testing and hover detection.

Parameters:

  • size Window/item size
  • mouse_pos Mouse position in screen space

Returns:

true if mouse is inside the region



The documentation for this class was generated from the following file src/UI/ImguiItem.h