Declaration
delegate int RT.Util.EggsML.EggNextLine<TState>(
TState state,
bool newParagraph,
int indent
)
Summary
Provides a delegate for
EggsML.WordWrap<TState>(EggsNode, TState, int, EggsML.EggMeasure<TState>, EggsML.EggRender<TState>, EggsML.EggNextLine<TState>, EggsML.EggNextState<TState>) which advances to the next line.
Parameters
TState | state |
The state (font, color etc.) of the text. |
bool | newParagraph |
‘true’ if a new paragraph begins, ‘false’ if a word is being wrapped within a paragraph. |
int | indent |
If newParagraph is false, the indentation of the current paragraph as measured only by its
leading spaces; otherwise, zero. |
Returns
The indentation for the next line. Use this to implement, for example, hanging indents.
Generic type parameters
TState |
The type of the text state, e.g. font or color. |