Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Nested delegate: RT.Util.EggsML.EggNextState<TState>

Declaration

delegate System.ValueTuple<TState, int> RT.Util.EggsML.EggNextState<TState>(
    TState oldState,
    char eggTag,
    string parameter
)

Summary

Provides a delegate for EggsML.WordWrap<TState>(EggsNode, TState, int, EggsML.EggMeasure<TState>, EggsML.EggRender<TState>, EggsML.EggNextLine<TState>, EggsML.EggNextState<TState>) which determines how the text state (font, color etc.) changes for a given EggsML tag character. This delegate is called for all tags except for +...+ and <...>.

Parameters

TStateoldState The previous state (for the parent tag).
chareggTag The EggsML tag character.
stringparameter The contents of the immediately preceding <...> tag (if any), which can be used to parameterize other 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.