DarkUI.Net5/DarkUI/Docking/Items/DarkDockTabArea.cs
Robin b5798df7cf Reverted text width calculation. Updated EnsureVisible.
Text width calculation changes were causing the tab text to be cut off
early. Updated EnsureVisible to better handle the total tab size being
smaller/larger than the tab area.
2015-12-06 01:22:38 +00:00

50 lines
1.1 KiB
C#

using DarkUI.Config;
using DarkUI.Controls;
using System.Collections.Generic;
using System.Drawing;
namespace DarkUI.Docking
{
internal class DarkDockTabArea
{
#region Field Region
private Dictionary<DarkDockContent, DarkDockTab> _tabs = new Dictionary<DarkDockContent, DarkDockTab>();
private DarkContextMenu _tabMenu = new DarkContextMenu();
#endregion
#region Property Region
public DarkDockArea DockArea { get; private set; }
public Rectangle ClientRectangle { get; set; }
public Rectangle DropdownRectangle { get; set; }
public bool DropdownHot { get; set; }
public int Offset { get; set; }
public int TotalTabSize { get; set; }
public bool Visible { get; set; }
public DarkContextMenu TabMenu { get { return _tabMenu; } }
public DarkDockTab ClickedCloseButton { get; set; }
#endregion
#region Constructor Region
public DarkDockTabArea(DarkDockArea dockArea)
{
DockArea = dockArea;
}
#endregion
}
}