MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / TableGetHoveredRow

Method TableGetHoveredRow

KBotExt/imgui/imgui_tables.cpp:1663–1671  ·  view source on GitHub ↗

Return -1 when table is not hovered. Return maxrow+1 if in table but below last submitted row. IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value. This difference with is the reason why this is not public yet.

Source from the content-addressed store, hash-verified

1661// *IMPORTANT* Unlike TableGetHoveredColumn(), this has a one frame latency in updating the value.
1662// This difference with is the reason why this is not public yet.
1663int ImGui::TableGetHoveredRow()
1664{
1665 ImGuiContext& g = *GImGui;
1666 ImGuiTable* table = g.CurrentTable;
1667 if (!table)
1668 return -1;
1669 ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent);
1670 return (int)table_instance->HoveredRowLast;
1671}
1672
1673void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n)
1674{

Callers

nothing calls this directly

Calls 1

TableGetInstanceDataFunction · 0.85

Tested by

no test coverage detected