You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Mesnac.Docking
|
|
{
|
|
public interface IDockContent
|
|
{
|
|
DockContentHandler DockHandler { get; }
|
|
}
|
|
|
|
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);
|
|
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);
|
|
}
|
|
}
|