C# Class FSO.Client.UI.Framework.TextRenderer

Datei anzeigen Open project: RHY3756547/FreeSO

Public Methods

Method Description
CalculateLines ( List m_Lines, List newWordsArray, TextStyle TextStyle, float lineWidth, float spaceWidth, Vector2 topLeftIconSpace, float lineHeight ) : void
ComputeText ( string text, TextRendererOptions options, UIElement target ) : TextRendererResult

Computes drawing commands to layout a block of text within certain constraints

DrawText ( List cmds, UIElement target, SpriteBatch batch ) : void
ExtractLineBreaks ( List words ) : List

Method Details

CalculateLines() public static method

public static CalculateLines ( List m_Lines, List newWordsArray, TextStyle TextStyle, float lineWidth, float spaceWidth, Vector2 topLeftIconSpace, float lineHeight ) : void
m_Lines List
newWordsArray List
TextStyle TextStyle
lineWidth float
spaceWidth float
topLeftIconSpace Vector2
lineHeight float
return void

ComputeText() public static method

Computes drawing commands to layout a block of text within certain constraints
public static ComputeText ( string text, TextRendererOptions options, UIElement target ) : TextRendererResult
text string
options TextRendererOptions
target UIElement
return TextRendererResult

DrawText() public static method

public static DrawText ( List cmds, UIElement target, SpriteBatch batch ) : void
cmds List
target UIElement
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

ExtractLineBreaks() public static method

public static ExtractLineBreaks ( List words ) : List
words List
return List