Text

final case class Text(text: String, alignment: TextAlignment, fontKey: FontKey, material: Material, eventHandler: (Rectangle, GlobalEvent) => List[GlobalEvent], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends DependentNode with EventHandler with SpatialModifiers[Text]

Used to draw text onto the screen.

Used to draw text onto the screen.

Companion
object
trait Serializable
trait Product
trait Equals
trait SceneNode
class Object
trait Matchable
class Any

Value members

Concrete methods

def flipHorizontal(isFlipped: Boolean): Text
def flipVertical(isFlipped: Boolean): Text
def moveBy(pt: Point): Text
def moveBy(x: Int, y: Int): Text
def moveTo(pt: Point): Text
def moveTo(x: Int, y: Int): Text
def rotateBy(angle: Radians): Text
def rotateTo(angle: Radians): Text
def scaleBy(amount: Vector2): Text
def scaleBy(x: Double, y: Double): Text
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Text
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Text
def withAlignment(newAlignment: TextAlignment): Text
def withDepth(newDepth: Depth): Text
def withFlip(newFlip: Flip): Text
def withFontKey(newFontKey: FontKey): Text
def withMaterial(newMaterial: Material): Text
def withPosition(newPosition: Point): Text
def withRef(newRef: Point): Text
def withRef(x: Int, y: Int): Text
def withRotation(newRotation: Radians): Text
def withScale(newScale: Vector2): Text
def withText(newText: String): Text

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy val x: Int
lazy val y: Int