| 16638 | struct Funcs |
| 16639 | { |
| 16640 | static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) |
| 16641 | { |
| 16642 | ImGuiTableInstanceData* table_instance = TableGetInstanceData(table, table->InstanceCurrent); // Always using last submitted instance |
| 16643 | if (rect_type == TRT_OuterRect) { return table->OuterRect; } |
| 16644 | else if (rect_type == TRT_InnerRect) { return table->InnerRect; } |
| 16645 | else if (rect_type == TRT_WorkRect) { return table->WorkRect; } |
| 16646 | else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } |
| 16647 | else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } |
| 16648 | else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } |
| 16649 | else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table_instance->LastOuterHeight); } |
| 16650 | else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } |
| 16651 | else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } |
| 16652 | else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table_instance->LastTopHeadersRowHeight); } // Note: y1/y2 not always accurate |
| 16653 | else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table_instance->LastTopHeadersRowHeight); } |
| 16654 | else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight); } |
| 16655 | else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table_instance->LastFrozenHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } |
| 16656 | IM_ASSERT(0); |
| 16657 | return ImRect(); |
| 16658 | } |
| 16659 | |
| 16660 | static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) |
| 16661 | { |
nothing calls this directly
no test coverage detected