Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Nested delegate: RT.Util.CuteML.CuteMeasure<TState>

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

TStatestate The state (font, color etc.) of the text.
stringtext 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.