C# Class Brewmaster.Layout.LayoutHandler

显示文件 Open project: Sumez/Brewmaster Class Usage Examples

Public Properties

Property Type Description
PanelStatusChanged bool>.Action

Private Properties

Property Type Description
AddPanelToGroupedPanel void
AddPanelToSplitContainer void
CheckDockLocation bool
CheckGroupDock bool
JoinPanels void
RemovePanelFromGroupedPanel void
RemovePanelFromSplitContainer void
ShowPanel void
SuggestClosestSplit void

Public Methods

Method Description
DockPanel ( FloatPanel panel ) : void
GetPanel ( Control control ) : IdePanel
HidePanel ( IdePanel panel ) : void
LayoutHandler ( MainForm mainForm ) : System
ReleasePanel ( IdePanel panel, Point windowLocation ) : void
SetDockContainers ( ) : void
ShowPanel ( IdePanel panel ) : void
SuggestDock ( Point cursorPosition, FloatPanel activePanel ) : void

Protected Methods

Method Description
CreateFloatPanel ( IdePanel panel, Point? location = null, Size? size = null ) : void
OnPanelStatusChanged ( IdePanel panel, bool visible ) : void

Private Methods

Method Description
AddPanelToGroupedPanel ( Brewmaster.Layout.IdePanel sibling, Brewmaster.Layout.IdePanel idePanel, int index ) : void
AddPanelToSplitContainer ( Brewmaster.Layout.MultiSplitContainer multiSplitParent, Brewmaster.Layout.IdePanel panel, int index ) : void
CheckDockLocation ( Brewmaster.Layout.MultiSplitContainer container ) : bool
CheckGroupDock ( IdePanel idePanel ) : bool
JoinPanels ( IdePanel existingPanel, IdePanel newPanel, int newIndex = 1 ) : void
RemovePanelFromGroupedPanel ( IdePanel panel, IdeGroupedPanel groupedPanel ) : void
RemovePanelFromSplitContainer ( IdePanel panel ) : void
ShowPanel ( IdePanel panel, IdePanel locationReference ) : void
SuggestClosestSplit ( LayoutSplit closestSplit, List splits, Rectangle absoluteBounds, bool horizontal ) : void

Method Details

CreateFloatPanel() protected method

protected CreateFloatPanel ( IdePanel panel, Point? location = null, Size? size = null ) : void
panel IdePanel
location Point?
size Size?
return void

DockPanel() public method

public DockPanel ( FloatPanel panel ) : void
panel FloatPanel
return void

GetPanel() public static method

public static GetPanel ( Control control ) : IdePanel
control Control
return IdePanel

HidePanel() public method

public HidePanel ( IdePanel panel ) : void
panel IdePanel
return void

LayoutHandler() public method

public LayoutHandler ( MainForm mainForm ) : System
mainForm MainForm
return System

OnPanelStatusChanged() protected method

protected OnPanelStatusChanged ( IdePanel panel, bool visible ) : void
panel IdePanel
visible bool
return void

ReleasePanel() public method

public ReleasePanel ( IdePanel panel, Point windowLocation ) : void
panel IdePanel
windowLocation Point
return void

SetDockContainers() public method

public SetDockContainers ( ) : void
return void

ShowPanel() public method

public ShowPanel ( IdePanel panel ) : void
panel IdePanel
return void

SuggestDock() public method

public SuggestDock ( Point cursorPosition, FloatPanel activePanel ) : void
cursorPosition Point
activePanel FloatPanel
return void

Property Details

PanelStatusChanged public_oe property

public Action PanelStatusChanged
return bool>.Action