Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

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

TStatestate The state (font, color etc.) of the text.
boolnewParagraph ‘true’ if a new paragraph begins, ‘false’ if a word is being wrapped within a paragraph.
intindent 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.