Declaration
delegate int RT.Util.CuteML.CuteNextLine<TState>(
TState state,
bool newParagraph,
int indent
)
Summary
Provides a delegate for
CuteML.WordWrap<TState>(CuteNode, TState, int, CuteML.CuteMeasure<TState>, CuteML.CuteRender<TState>, CuteML.CuteNextLine<TState>, CuteML.CuteNextState<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. |