Skip to main content

Class GameFontLayoutPlan.Builder

Build a GameFontLayoutPlan.

Assembly: Dalamud.dll
View Source
Declaration
public class GameFontLayoutPlan.Builder

Methods

WithSize(float)

Sets the size of resulting text.

View Source
Declaration
public GameFontLayoutPlan.Builder WithSize(float size)
Returns

Dalamud.Interface.GameFonts.GameFontLayoutPlan.Builder: This.

Parameters
TypeNameDescription
System.SinglesizeSize in pixels.

WithMaxWidth(int)

Sets the maximum width of the text.

View Source
Declaration
public GameFontLayoutPlan.Builder WithMaxWidth(int maxWidth)
Returns

Dalamud.Interface.GameFonts.GameFontLayoutPlan.Builder: This.

Parameters
TypeNameDescription
System.Int32maxWidthMaximum width in pixels.

WithHorizontalAlignment(HorizontalAlignment)

Sets the horizontal alignment of the text.

View Source
Declaration
public GameFontLayoutPlan.Builder WithHorizontalAlignment(GameFontLayoutPlan.HorizontalAlignment horizontalAlignment)
Returns

Dalamud.Interface.GameFonts.GameFontLayoutPlan.Builder: This.

Parameters
TypeNameDescription
Dalamud.Interface.GameFonts.GameFontLayoutPlan.HorizontalAlignmenthorizontalAlignmentHorizontal alignment.

Build()

Builds the layout plan.

View Source
Declaration
public GameFontLayoutPlan Build()
Returns

Dalamud.Interface.GameFonts.GameFontLayoutPlan: Newly created layout plan.