Interfaces.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:IDockContent.cs
  5. * 2.功能描述:类文件
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2014/09/01 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Drawing;
  12. using System.Windows.Forms;
  13. namespace Dongke.IBOSS.PRD.Basics.DockPanel
  14. {
  15. public interface IDockContent
  16. {
  17. DockContentHandler DockHandler
  18. {
  19. get;
  20. }
  21. void OnActivated(EventArgs e);
  22. void OnDeactivate(EventArgs e);
  23. }
  24. public interface INestedPanesContainer
  25. {
  26. DockState DockState
  27. {
  28. get;
  29. }
  30. Rectangle DisplayingRectangle
  31. {
  32. get;
  33. }
  34. NestedPaneCollection NestedPanes
  35. {
  36. get;
  37. }
  38. VisibleNestedPaneCollection VisibleNestedPanes
  39. {
  40. get;
  41. }
  42. bool IsFloat
  43. {
  44. get;
  45. }
  46. }
  47. internal interface IDragSource
  48. {
  49. Control DragControl
  50. {
  51. get;
  52. }
  53. }
  54. internal interface IDockDragSource : IDragSource
  55. {
  56. Rectangle BeginDrag(Point ptMouse);
  57. void EndDrag();
  58. bool IsDockStateValid(DockState dockState);
  59. bool CanDockTo(DockPane pane);
  60. void FloatAt(Rectangle floatWindowBounds);
  61. void DockTo(DockPane pane, DockStyle dockStyle, int contentIndex);
  62. void DockTo(DockPanel panel, DockStyle dockStyle);
  63. }
  64. internal interface ISplitterDragSource : IDragSource
  65. {
  66. void BeginDrag(Rectangle rectSplitter);
  67. void EndDrag();
  68. bool IsVertical
  69. {
  70. get;
  71. }
  72. Rectangle DragLimitBounds
  73. {
  74. get;
  75. }
  76. void MoveSplitter(int offset);
  77. }
  78. }