Refactor Editor Tab controls system to allows customizing the tab header controls

This commit is contained in:
Wojtek Figat
2023-09-12 22:24:15 +02:00
parent 3e1940c799
commit dbd85fddfe
2 changed files with 81 additions and 40 deletions

View File

@@ -77,5 +77,14 @@ namespace FlaxEditor.GUI.Tabs
{
Deselected?.Invoke(this);
}
/// <summary>
/// Factory method for tabs header control (UI for the tabs strip to represent this tab).
/// </summary>
/// <returns>The tab header control.</returns>
public virtual Tabs.TabHeader CreateHeader()
{
return new Tabs.TabHeader((Tabs)Parent, this);
}
}
}