| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- /*******************************************************************************
- * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
- * 类的信息:
- * 1.程序名称:IDockContent.cs
- * 2.功能描述:类文件
- * 编辑履历:
- * 作者 日期 版本 修改内容
- * 陈晓野 2014/09/01 1.00 新建
- *******************************************************************************/
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace Dongke.IBOSS.PRD.Basics.DockPanel
- {
- 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);
- }
- }
|