Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

delegate System.ValueTuple<TState, int> RT.Util.CuteML.CuteNextState<TState>(
    TState oldState,
    char cuteTag,
    string parameter
)

Summary

Provides a delegate for CuteML.WordWrap<TState>(CuteNode, TState, int, CuteML.CuteMeasure<TState>, CuteML.CuteRender<TState>, CuteML.CuteNextLine<TState>, CuteML.CuteNextState<TState>) which determines how the text state (font, color etc.) changes for a given CuteML tag character. This delegate is called for all tags except for [+...], which is automatically processed to mean “nowrap”.

Parameters

TStateoldState The previous state (for the parent tag).
charcuteTag The CuteML tag character.
stringparameter The contents of the tag attribute, which can be used to parameterize tags.

Returns

The next state (return the old state for all tags that should not have a meaning) and an integer indicating the amount by which opening this tag has advanced the text position.

Generic type parameters

TState The type of the text state, e.g. font or color.