indigo.shared.scenegraph.TextBox
See theTextBox companion object
final case class TextBox(text: String, style: TextStyle, size: Size, eventHandlerEnabled: Boolean, eventHandler: ((TextBox, GlobalEvent)) => Option[GlobalEvent], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends RenderNode[TextBox], SpatialModifiers[TextBox]
Used to draw text on the screen quickly based on a font. Much quicker and eaiser to use that Text
, however suffers from all the problems of browser rendered fonts, most notably, you cannot have pixel perfect fonts (fine for mock-ups of HD UI layers perhaps).
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SpatialModifiers[TextBox]trait BasicSpatialModifiers[TextBox]trait RenderNode[TextBox]trait SceneNodeclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- RenderNode
Value members
Concrete methods
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article