C# Class Sharpex2D.UI.UIControl

Datei anzeigen Open project: ThuCommix/Sharpex2D Class Usage Examples

Private Properties

Property Type Description
SetParent void
UpdateBounds void

Public Methods

Method Description
IsKeyDown ( Keys key ) : bool

Determines, if a Key was pressed down.

IsKeyUp ( Keys key ) : bool

Determines, if a Key was relased.

IsMouseDown ( MouseButtons mouseButton ) : bool

Determines, if a MouseButton was pressed.

OnDraw ( SpriteBatch spriteBatch ) : void

Processes a Render call.

OnUpdate ( GameTime gameTime ) : void

Updates the object.

RemoveChild ( UIControl control ) : void

Removes a UIControl from the Childs.

RemoveFocus ( ) : void

Removes the Focus of the UIControl.

SetFocus ( ) : void

Sets the Focus for this UIControl.

Update ( GameTime gameTime ) : void

Updates the object.

Protected Methods

Method Description
UIControl ( UIManager assignedUIManager ) : System

Initializes a new UIControl class.

Private Methods

Method Description
SetParent ( UIControl parent ) : void

Sets the Parent.

UpdateBounds ( ) : void

Updates the Bounds of the UIControl.

Method Details

IsKeyDown() public method

Determines, if a Key was pressed down.
public IsKeyDown ( Keys key ) : bool
key Keys The Key.
return bool

IsKeyUp() public method

Determines, if a Key was relased.
public IsKeyUp ( Keys key ) : bool
key Keys The Key.
return bool

IsMouseDown() public method

Determines, if a MouseButton was pressed.
public IsMouseDown ( MouseButtons mouseButton ) : bool
mouseButton MouseButtons The MouseButton.
return bool

OnDraw() public abstract method

Processes a Render call.
public abstract OnDraw ( SpriteBatch spriteBatch ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The SpriteBatch.
return void

OnUpdate() public method

Updates the object.
public OnUpdate ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
return void

RemoveChild() public method

Removes a UIControl from the Childs.
public RemoveChild ( UIControl control ) : void
control UIControl The UIControl.
return void

RemoveFocus() public method

Removes the Focus of the UIControl.
public RemoveFocus ( ) : void
return void

SetFocus() public method

Sets the Focus for this UIControl.
public SetFocus ( ) : void
return void

UIControl() protected method

Initializes a new UIControl class.
protected UIControl ( UIManager assignedUIManager ) : System
assignedUIManager UIManager The assigned UIManager.
return System

Update() public method

Updates the object.
public Update ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
return void