File size: 3,276 Bytes
b1b3bae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
using System;
using System.Drawing;
namespace WeifenLuo.WinFormsUI.Docking
{
public sealed class NestedDockingStatus
{
internal NestedDockingStatus(DockPane pane)
{
m_dockPane = pane;
}
private DockPane m_dockPane = null;
public DockPane DockPane
{
get { return m_dockPane; }
}
private NestedPaneCollection m_nestedPanes = null;
public NestedPaneCollection NestedPanes
{
get { return m_nestedPanes; }
}
private DockPane m_previousPane = null;
public DockPane PreviousPane
{
get { return m_previousPane; }
}
private DockAlignment m_alignment = DockAlignment.Left;
public DockAlignment Alignment
{
get { return m_alignment; }
}
private double m_proportion = 0.5;
public double Proportion
{
get { return m_proportion; }
}
private bool m_isDisplaying = false;
public bool IsDisplaying
{
get { return m_isDisplaying; }
}
private DockPane m_displayingPreviousPane = null;
public DockPane DisplayingPreviousPane
{
get { return m_displayingPreviousPane; }
}
private DockAlignment m_displayingAlignment = DockAlignment.Left;
public DockAlignment DisplayingAlignment
{
get { return m_displayingAlignment; }
}
private double m_displayingProportion = 0.5;
public double DisplayingProportion
{
get { return m_displayingProportion; }
}
private Rectangle m_logicalBounds = Rectangle.Empty;
public Rectangle LogicalBounds
{
get { return m_logicalBounds; }
}
private Rectangle m_paneBounds = Rectangle.Empty;
public Rectangle PaneBounds
{
get { return m_paneBounds; }
}
private Rectangle m_splitterBounds = Rectangle.Empty;
public Rectangle SplitterBounds
{
get { return m_splitterBounds; }
}
internal void SetStatus(NestedPaneCollection nestedPanes, DockPane previousPane, DockAlignment alignment, double proportion)
{
m_nestedPanes = nestedPanes;
m_previousPane = previousPane;
m_alignment = alignment;
m_proportion = proportion;
}
internal void SetDisplayingStatus(bool isDisplaying, DockPane displayingPreviousPane, DockAlignment displayingAlignment, double displayingProportion)
{
m_isDisplaying = isDisplaying;
m_displayingPreviousPane = displayingPreviousPane;
m_displayingAlignment = displayingAlignment;
m_displayingProportion = displayingProportion;
}
internal void SetDisplayingBounds(Rectangle logicalBounds, Rectangle paneBounds, Rectangle splitterBounds)
{
m_logicalBounds = logicalBounds;
m_paneBounds = paneBounds;
m_splitterBounds = splitterBounds;
}
}
}
|