mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02:00
Tab Bar: Tidying up. Rework ShrinkWidths to allow marking tabs as not shrinkable (unused yet) + don't unnecessarily move data within ShrinkWidthBuffer. (#3291)
This commit is contained in:
@ -1729,11 +1729,10 @@ struct ImGuiTabBarSection
|
||||
{
|
||||
int TabStartIndex; // Index of first tab in this section.
|
||||
int TabCount; // Number of tabs in this section.
|
||||
float Width; // Width of this section (after shrinking down)
|
||||
float Width; // Sum of width of tabs in this section (after shrinking down)
|
||||
float Spacing; // Horizontal spacing at the end of the section.
|
||||
|
||||
ImGuiTabBarSection(){ memset(this, 0, sizeof(*this)); }
|
||||
float WidthWithSpacing() const { return Width + Spacing; }
|
||||
};
|
||||
|
||||
// Storage for a tab bar (sizeof() 92~96 bytes)
|
||||
|
Reference in New Issue
Block a user