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.
| 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. |
| 1663 | int 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 | |
| 1673 | void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) |
| 1674 | { |
nothing calls this directly
no test coverage detected