Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

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

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.