C# Class Flood.GUI.Controls.DockBase

Base for dockable containers.
Inheritance: Control
Exibir arquivo Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
DockBase ( Control parent ) : System

Initializes a new instance of the DockBase class.

DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
DragAndDrop_HoverLeave ( DragDrop p ) : void

Protected Methods

Method Description
DoConsolidateCheck ( ) : void
DoRedundancyCheck ( ) : void
GetChildDock ( Pos pos ) : DockBase

Gets an inner docked control for the specified position.

GetDroppedTabDirection ( int x, int y ) : Pos

Calculates dock direction from dragdrop coordinates.

OnKeySpace ( bool down ) : bool

Handler for Space keyboard event.

OnRedundantChildDock ( DockBase dock ) : void
OnTabRemoved ( Control control ) : void
Render ( Skins skin ) : void

Renders the control using specified skin.

RenderOver ( Skins skin ) : void

Renders over the actual control (overlays).

SetupChildDock ( Pos pos ) : void

Initializes an inner docked control for the specified position.

Method Details

DoConsolidateCheck() protected method

protected DoConsolidateCheck ( ) : void
return void

DoRedundancyCheck() protected method

protected DoRedundancyCheck ( ) : void
return void

DockBase() public method

Initializes a new instance of the DockBase class.
public DockBase ( Control parent ) : System
parent Control Parent control.
return System

DragAndDrop_CanAcceptPackage() public method

public DragAndDrop_CanAcceptPackage ( DragDrop p ) : bool
p DragDrop
return bool

DragAndDrop_HandleDrop() public method

public DragAndDrop_HandleDrop ( DragDrop p, int x, int y ) : bool
p DragDrop
x int
y int
return bool

DragAndDrop_Hover() public method

public DragAndDrop_Hover ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
return void

DragAndDrop_HoverEnter() public method

public DragAndDrop_HoverEnter ( DragDrop p, int x, int y ) : void
p DragDrop
x int
y int
return void

DragAndDrop_HoverLeave() public method

public DragAndDrop_HoverLeave ( DragDrop p ) : void
p DragDrop
return void

GetChildDock() protected method

Gets an inner docked control for the specified position.
protected GetChildDock ( Pos pos ) : DockBase
pos Pos
return DockBase

GetDroppedTabDirection() protected method

Calculates dock direction from dragdrop coordinates.
protected GetDroppedTabDirection ( int x, int y ) : Pos
x int X coordinate.
y int Y coordinate.
return Pos

OnKeySpace() protected method

Handler for Space keyboard event.
protected OnKeySpace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool

OnRedundantChildDock() protected method

protected OnRedundantChildDock ( DockBase dock ) : void
dock DockBase
return void

OnTabRemoved() protected method

protected OnTabRemoved ( Control control ) : void
control Control
return void

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderOver() protected method

Renders over the actual control (overlays).
protected RenderOver ( Skins skin ) : void
skin Skins Skin to use.
return void

SetupChildDock() protected method

Initializes an inner docked control for the specified position.
protected SetupChildDock ( Pos pos ) : void
pos Pos Dock position.
return void