Line | |
---|
1 | using System;
|
---|
2 | using System.Drawing;
|
---|
3 | using System.Windows.Forms;
|
---|
4 |
|
---|
5 | namespace WeifenLuo.WinFormsUI.Docking
|
---|
6 | {
|
---|
7 | public interface IDockContent
|
---|
8 | {
|
---|
9 | DockContentHandler DockHandler { get; }
|
---|
10 | void OnActivated(EventArgs e);
|
---|
11 | void OnDeactivate(EventArgs e);
|
---|
12 | }
|
---|
13 |
|
---|
14 | public interface INestedPanesContainer
|
---|
15 | {
|
---|
16 | DockState DockState { get; }
|
---|
17 | Rectangle DisplayingRectangle { get; }
|
---|
18 | NestedPaneCollection NestedPanes { get; }
|
---|
19 | VisibleNestedPaneCollection VisibleNestedPanes { get; }
|
---|
20 | bool IsFloat { get; }
|
---|
21 | }
|
---|
22 |
|
---|
23 | internal interface IDragSource
|
---|
24 | {
|
---|
25 | Control DragControl { get; }
|
---|
26 | }
|
---|
27 |
|
---|
28 | internal interface IDockDragSource : IDragSource
|
---|
29 | {
|
---|
30 | Rectangle BeginDrag(Point ptMouse);
|
---|
31 | void EndDrag();
|
---|
32 | bool IsDockStateValid(DockState dockState);
|
---|
33 | bool CanDockTo(DockPane pane);
|
---|
34 | void FloatAt(Rectangle floatWindowBounds);
|
---|
35 | void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex);
|
---|
36 | void DockTo(DockPanel panel, DockStyle dockStyle);
|
---|
37 | }
|
---|
38 |
|
---|
39 | internal interface ISplitterDragSource : IDragSource
|
---|
40 | {
|
---|
41 | void BeginDrag(Rectangle rectSplitter);
|
---|
42 | void EndDrag();
|
---|
43 | bool IsVertical { get; }
|
---|
44 | Rectangle DragLimitBounds { get; }
|
---|
45 | void MoveSplitter(int offset);
|
---|
46 | }
|
---|
47 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.