sizeof() ~ 12
| 2728 | |
| 2729 | // sizeof() ~ 12 |
| 2730 | struct ImGuiTableColumnSettings |
| 2731 | { |
| 2732 | float WidthOrWeight; |
| 2733 | ImGuiID UserID; |
| 2734 | ImGuiTableColumnIdx Index; |
| 2735 | ImGuiTableColumnIdx DisplayOrder; |
| 2736 | ImGuiTableColumnIdx SortOrder; |
| 2737 | ImU8 SortDirection : 2; |
| 2738 | ImU8 IsEnabled : 1; // "Visible" in ini file |
| 2739 | ImU8 IsStretch : 1; |
| 2740 | |
| 2741 | ImGuiTableColumnSettings() |
| 2742 | { |
| 2743 | WidthOrWeight = 0.0f; |
| 2744 | UserID = 0; |
| 2745 | Index = -1; |
| 2746 | DisplayOrder = SortOrder = -1; |
| 2747 | SortDirection = ImGuiSortDirection_None; |
| 2748 | IsEnabled = 1; |
| 2749 | IsStretch = 0; |
| 2750 | } |
| 2751 | }; |
| 2752 | |
| 2753 | // This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) |
| 2754 | struct ImGuiTableSettings |