mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
c38affcded
* All renderdoc code up to this point was written by me, history is available by request
48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace WeifenLuo.WinFormsUI.Docking
|
|
{
|
|
public interface IDockContent
|
|
{
|
|
DockContentHandler DockHandler { get; }
|
|
void OnActivated(EventArgs e);
|
|
void OnDeactivate(EventArgs e);
|
|
}
|
|
|
|
public interface INestedPanesContainer
|
|
{
|
|
DockState DockState { get; }
|
|
Rectangle DisplayingRectangle { get; }
|
|
NestedPaneCollection NestedPanes { get; }
|
|
VisibleNestedPaneCollection VisibleNestedPanes { get; }
|
|
bool IsFloat { get; }
|
|
}
|
|
|
|
internal interface IDragSource
|
|
{
|
|
Control DragControl { get; }
|
|
}
|
|
|
|
internal interface IDockDragSource : IDragSource
|
|
{
|
|
Rectangle BeginDrag(Point ptMouse);
|
|
void EndDrag();
|
|
bool IsDockStateValid(DockState dockState);
|
|
bool CanDockTo(DockPane pane);
|
|
void FloatAt(Rectangle floatWindowBounds);
|
|
void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex);
|
|
void DockTo(DockPanel panel, DockStyle dockStyle);
|
|
}
|
|
|
|
internal interface ISplitterDragSource : IDragSource
|
|
{
|
|
void BeginDrag(Rectangle rectSplitter);
|
|
void EndDrag();
|
|
bool IsVertical { get; }
|
|
Rectangle DragLimitBounds { get; }
|
|
void MoveSplitter(int offset);
|
|
}
|
|
}
|