Declaration
delegate int RT.Util.EggsML.EggMeasure<TState>(
TState state,
string text
)
Summary
Provides a delegate for
EggsML.WordWrap<TState>(EggsNode, TState, int, EggsML.EggMeasure<TState>, EggsML.EggRender<TState>, EggsML.EggNextLine<TState>, EggsML.EggNextState<TState>) which measures the width of a string.
Parameters
TState | state |
The state (font, color etc.) of the text. |
string | text |
The text whose width to measure. |
Returns
The width of the text in any arbitrary unit, as long as the “width” parameter in the call to
EggsML.WordWrap<TState>(EggsNode, TState, int, EggsML.EggMeasure<TState>, EggsML.EggRender<TState>, EggsML.EggNextLine<TState>, EggsML.EggNextState<TState>) is in the same unit.
Generic type parameters
TState |
The type of the text state, e.g. font or color. |