Property | Type | Description | |
---|---|---|---|
TextMargin |
Property | Type | Description | |
---|---|---|---|
Control_GetIndexForLineAdjusment | int | ||
Control_GetSelectableIndex | int | ||
Control_GetSelectionStart | int | ||
Control_MoveCursor | void | ||
Control_MoveSelection | void | ||
Control_ScrollTo | void | ||
Control_SetSelectionEnd | void | ||
Control_SetSelectionStart | void | ||
Control_ValidateText | void |
Method | Description | |
---|---|---|
AttachSlider ( |
||
ComputeDrawingCommands ( ) : void |
When the text / scroll / highlight changes we need to re-compute how we are going to draw this text field
|
|
CreateTextBox ( ) : |
||
Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void |
Render
|
|
GetBounds ( ) : |
||
GetLineForIndex ( int index ) : |
||
HitTestText ( Vector2 point ) : int |
Returns which character index would be hit by the given mouse coordinates. The coords should be in local coords.
|
|
InitDefaultSlider ( ) : void | ||
OnFocusChanged ( FocusEvent newFocus ) : void | ||
OnMouseEvent ( UIMouseEventType evt, UpdateState state ) : void | ||
PositionChildSlider ( ) : void | ||
SetBackgroundTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int marginLeft, int marginRight, int marginTop, int marginBottom ) : void | ||
SetSize ( float width, float height ) : void | ||
UITextEdit ( ) : System | ||
Update ( UpdateState state ) : void | ||
m_Slider_OnChange ( |
Method | Description | |
---|---|---|
CalculateMatrix ( ) : void | ||
CalculateSegments ( |
Creates a list of segments to split the line into in order to draw selection boxes
|
Method | Description | |
---|---|---|
Control_GetIndexForLineAdjusment ( int startIndex, int deltaY ) : int |
Calculate & return the index that should be selected if the cursor is moved up or down by the value deltaY
|
|
Control_GetSelectableIndex ( int index, int delta ) : int |
Takes in a string index and adjusts it if that index lies between non-breakable chars
|
|
Control_GetSelectionStart ( ) : int |
Gets the absolute selection start position
|
|
Control_MoveCursor ( int deltaX, int deltaY ) : void |
Handles using arrow keys to move the selection start
|
|
Control_MoveSelection ( int deltaX, int deltaY ) : void |
Handles using arrow keys to move the selection end
|
|
Control_ScrollTo ( int index ) : void |
Sets the scroll position such that the given index is visible on screen
|
|
Control_SetSelectionEnd ( int val ) : void | ||
Control_SetSelectionStart ( int val ) : void |
Sets the selection start index
|
|
Control_ValidateText ( ) : void |
Makes sure that the text does not overflow max lines or max chars
|
public AttachSlider ( |
||
slider | ||
return | void |
protected CalculateSegments ( |
||
line | ||
return | List |
public Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void | ||
batch | FSO.Client.UI.Framework.UISpriteBatch | |
return | void |
public GetLineForIndex ( int index ) : |
||
index | int | |
return |
public OnFocusChanged ( FocusEvent newFocus ) : void | ||
newFocus | FocusEvent | |
return | void |
public OnMouseEvent ( UIMouseEventType evt, UpdateState state ) : void | ||
evt | UIMouseEventType | |
state | FSO.Common.Rendering.Framework.Model.UpdateState | |
return | void |
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 |
public SetSize ( float width, float height ) : void | ||
width | float | |
height | float | |
return | void |
public Update ( UpdateState state ) : void | ||
state | FSO.Common.Rendering.Framework.Model.UpdateState | |
return | void |
public m_Slider_OnChange ( |
||
element | ||
return | void |