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
TState | oldState |
The previous state (for the parent tag). |
char | cuteTag |
The CuteML tag character. |
string | parameter |
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. |