DockTab
April 27, 2025 ยท View on GitHub
DockTab is an internal class within the AcrylicUI docking framework that represents a single tab displayed within a DockGroup's tab area.
Usage
Developers do not interact directly with DockTab. The DockGroup automatically creates and manages DockTab instances for each DockContent it contains (if tabs are visible).
- When a
DockGroupcontains more than oneDockContent(or exactly one in theDocumentarea), it creates aDockTabfor eachDockContent. - The
DockGroupis responsible for calculating the width, position, and appearance of eachDockTab. - It handles mouse interactions with the tabs (clicks for activation, clicks on the close button, dragging for reordering).
Key Functionality (Internal)
- Associated with a specific
DockContent. - Stores calculated layout information (
ClientRectangle,CloseButtonRectangle). - Maintains state information (
Hot,CloseButtonHot). - Provides methods for calculating width (
CalculateWidth).
See also: DockGroup, DockContent