C# Class Flood.GUI.Controls.WindowControl

Movable window with title bar.
Inheritance: Flood.GUI.Controls.ResizableControl
Exibir arquivo Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
MakeModal ( bool dim = false ) : void

Makes the window modal: covers the whole canvas and gets all input.

Touch ( ) : void
WindowControl ( Control parent, String caption = "", bool modal = false ) : System

Initializes a new instance of the WindowControl class.

Protected Methods

Method Description
CloseButtonPressed ( Control control ) : void
Render ( Skins skin ) : void

Renders the control using specified skin.

RenderFocus ( Skins skin ) : void

Renders the focus overlay.

RenderUnder ( Skins skin ) : void

Renders under the actual control (shadows etc).

Method Details

CloseButtonPressed() protected method

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

MakeModal() public method

Makes the window modal: covers the whole canvas and gets all input.
public MakeModal ( bool dim = false ) : void
dim bool Determines whether all the background should be dimmed.
return void

Render() protected method

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

RenderFocus() protected method

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
return void

RenderUnder() protected method

Renders under the actual control (shadows etc).
protected RenderUnder ( Skins skin ) : void
skin Skins Skin to use.
return void

Touch() public method

public Touch ( ) : void
return void

WindowControl() public method

Initializes a new instance of the WindowControl class.
public WindowControl ( Control parent, String caption = "", bool modal = false ) : System
parent Control Parent control.
caption String Window caption.
modal bool Determines whether the window should be modal.
return System