Declaration
delegate int RT.Util.CuteML.CuteMeasure<TState>(
TState state,
string text
)
Summary
Provides a delegate for
CuteML.WordWrap<TState>(CuteNode, TState, int, CuteML.CuteMeasure<TState>, CuteML.CuteRender<TState>, CuteML.CuteNextLine<TState>, CuteML.CuteNextState<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
CuteML.WordWrap<TState>(CuteNode, TState, int, CuteML.CuteMeasure<TState>, CuteML.CuteRender<TState>, CuteML.CuteNextLine<TState>, CuteML.CuteNextState<TState>) is in the same unit.
Generic type parameters
TState |
The type of the text state, e.g. font or color. |