Class FZagalaSpecDefaultRowRenderer#

Inheritance Relationships#

Base Type#

Class Documentation#

class FZagalaSpecDefaultRowRenderer : public IZagalaSpecDocumentRowRenderer#

Draws a row as monospaced text: every segment has the color of its style (keywords, tags, text, hints, decorators).

The last segment fills the remaining width and wraps, so long descriptions and steps stay readable. Rows without segments (spacers) are drawn as an empty line of the same height as a text line.

IZagalaSpecDocumentRowRenderer interface

virtual TSharedRef<SWidget> CreateRowContent(const FZagalaSpecDocumentRow &Row) const override#

Creates the content widget of a row.

Parameters:

Row – The row to draw.

Returns:

The widget to show in the document view.

Public Static Functions

static FSlateColor GetStyleColor(const FName SegmentStyle)#

Returns the color of a segment style.

Parameters:

SegmentStyle – One of ZagalaSpecDocumentSegmentStyles; unknown styles use the foreground color.

Returns:

The color of the style.

Public Static Attributes

static float RowHeight = 18.f#

Minimum height of a row, so empty lines are as tall as text lines.