java.lang.Object
technology.sola.engine.graphics.gui.style.BaseStyles
technology.sola.engine.graphics.gui.elements.TextStyles
- Direct Known Subclasses:
TextInputStyles
TextStyles extends
BaseStyles properties by adding extra properties for rendering text.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTextStyles.Builder<Self extends TextStyles.Builder<Self>>Builder class forTextStyles.static enumTextAlignment informs where text should be rendered within its available rendering space. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextStyles(TextStyles.Builder<?> builder) PopulatesTextStylesproperties from itsTextStyles.Builder. -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable TextStyles.TextAlignment@Nullable ColorMethods inherited from class technology.sola.engine.graphics.gui.style.BaseStyles
background, border, crossAxisChildren, direction, gap, height, mainAxisChildren, padding, position, visibility, width
-
Constructor Details
-
TextStyles
PopulatesTextStylesproperties from itsTextStyles.Builder.- Parameters:
builder- the builder to build styles from
-
-
Method Details
-
textColor
- Returns:
- the
Colorof the text to be rendered
-
textAlignment
- Returns:
- the
TextStyles.TextAlignmentof the text
-
fontAssetId
- Returns:
- the id of the
Fontasset used for rendering
-