/[RomCheater]/trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/Interfaces.cs
ViewVC logotype

Contents of /trunk/deps/WeifenLuo.WinFormsUI.Docking/WinFormsUI/Docking/Interfaces.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 677 - (show annotations) (download)
Mon Jun 17 06:53:33 2013 UTC (6 years, 8 months ago) by william
File size: 1308 byte(s)
+ modify OnActived/OnDeactived to accept a generic eventargs type

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<T>(T e) where T: EventArgs;
11 void OnDeactivate<T>(T e) where T : EventArgs;
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 bool IsDockStateValid(DockState dockState);
32 bool CanDockTo(DockPane pane);
33 void FloatAt(Rectangle floatWindowBounds);
34 void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex);
35 void DockTo(DockPanel panel, DockStyle dockStyle);
36 }
37
38 internal interface ISplitterDragSource : IDragSource
39 {
40 void BeginDrag(Rectangle rectSplitter);
41 void EndDrag();
42 bool IsVertical { get; }
43 Rectangle DragLimitBounds { get; }
44 void MoveSplitter(int offset);
45 }
46 }

  ViewVC Help
Powered by ViewVC 1.1.22