View on GitHub

SpheroidScript

//Spheroid Script/spheroid.client.ui/Text

Text

See also Text in UI Guide

class Text : TextProperties, Placeable

Constructors

Name Summary
<init> fun <init>(text: String?, textAlign: String?, textSize: Size?, textColor: Color?, fontWeight: String?, left: Size?, top: Size?, right: Size?, bottom: Size?, width: Size?, height: Size?, horizontalAlign: String?, verticalAlign: String?, isVisible: Boolean?)

Functions

Name Summary
onClick fun onClick(callback: () -> Unit)
toString fun toString(): String

Properties

Name Summary
bottom var bottom: Size?
fontWeight Available values: “normal”, “bold”, “black”
var fontWeight: String?
height var height: Size?
horizontalAlign Available values: “left”, “center”, “right”
var horizontalAlign: String?
isVisible var isVisible: Boolean?
left var left: Size?
right var right: Size?
text var text: String?
textAlign Available values: “left”, “center”, “right”
var textAlign: String?
textColor var textColor: Color?
textSize var textSize: Size?
top var top: Size?
verticalAlign Available values: “top”, “center”, “bottom”
var verticalAlign: String?
width var width: Size?