C# Class FSO.Client.UI.Controls.UITextBox

Inheritance: FSO.Client.UI.Framework.UIContainer, IFocusableUI, ITextControl
Show file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
StandardBackground ITextureRef
TextMargin Microsoft.Xna.Framework.Rectangle
TextStyle FSO.Client.UI.Framework.TextStyle

Private Properties

Property Type Description
ComputeDrawingCommands void
UITextBox System

Public Methods

Method Description
Clear ( ) : void
Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void

Render

GetBounds ( ) : Rectangle
OnFocusChanged ( FocusEvent newFocus ) : void
OnMouseEvent ( UIMouseEventType evt, UpdateState state ) : void
SetBackgroundTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int marginLeft, int marginRight, int marginTop, int marginBottom ) : void
SetSize ( float width, float height ) : void
Update ( UpdateState state ) : void

Protected Methods

Method Description
CalculateMatrix ( ) : void

Private Methods

Method Description
ComputeDrawingCommands ( ) : void

When the text / scroll / highlight changes we need to re-compute how we are going to draw this text field

UITextBox ( ) : System

Method Details

CalculateMatrix() protected method

protected CalculateMatrix ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

Draw() public method

Render
public Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void
batch FSO.Client.UI.Framework.UISpriteBatch
return void

GetBounds() public method

public GetBounds ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

OnFocusChanged() public method

public OnFocusChanged ( FocusEvent newFocus ) : void
newFocus FocusEvent
return void

OnMouseEvent() public method

public OnMouseEvent ( UIMouseEventType evt, UpdateState state ) : void
evt UIMouseEventType
state FSO.Common.Rendering.Framework.Model.UpdateState
return void

SetBackgroundTexture() public method

public SetBackgroundTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int marginLeft, int marginRight, int marginTop, int marginBottom ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
marginLeft int
marginRight int
marginTop int
marginBottom int
return void

SetSize() public method

public SetSize ( float width, float height ) : void
width float
height float
return void

Update() public method

public Update ( UpdateState state ) : void
state FSO.Common.Rendering.Framework.Model.UpdateState
return void

Property Details

StandardBackground public static property

public static ITextureRef StandardBackground
return ITextureRef

TextMargin public property

public Rectangle,Microsoft.Xna.Framework TextMargin
return Microsoft.Xna.Framework.Rectangle

TextStyle public property

public TextStyle,FSO.Client.UI.Framework TextStyle
return FSO.Client.UI.Framework.TextStyle