mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-26 00:29:00 +00:00
Initial commit of existing code.
* All renderdoc code up to this point was written by me, history is available by request
This commit is contained in:
1 parent
04b1549c0f
commit
c38affcded
695 files changed
+230316
No files matched your search
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace WeifenLuo.WinFormsUI.Docking
|
||||
{
|
||||
public class DockWindowCollection : ReadOnlyCollection<DockWindow>
|
||||
{
|
||||
internal DockWindowCollection(DockPanel dockPanel)
|
||||
: base(new List<DockWindow>())
|
||||
{
|
||||
Items.Add(new DockWindow(dockPanel, DockState.Document));
|
||||
Items.Add(new DockWindow(dockPanel, DockState.DockLeft));
|
||||
Items.Add(new DockWindow(dockPanel, DockState.DockRight));
|
||||
Items.Add(new DockWindow(dockPanel, DockState.DockTop));
|
||||
Items.Add(new DockWindow(dockPanel, DockState.DockBottom));
|
||||
}
|
||||
|
||||
public DockWindow this [DockState dockState]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (dockState == DockState.Document)
|
||||
return Items[0];
|
||||
else if (dockState == DockState.DockLeft || dockState == DockState.DockLeftAutoHide)
|
||||
return Items[1];
|
||||
else if (dockState == DockState.DockRight || dockState == DockState.DockRightAutoHide)
|
||||
return Items[2];
|
||||
else if (dockState == DockState.DockTop || dockState == DockState.DockTopAutoHide)
|
||||
return Items[3];
|
||||
else if (dockState == DockState.DockBottom || dockState == DockState.DockBottomAutoHide)
|
||||
return Items[4];
|
||||
|
||||
throw (new ArgumentOutOfRangeException());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user