BoundaryLocator

indigo.shared.BoundaryLocator
See theBoundaryLocator companion object
final class BoundaryLocator(animationsRegister: AnimationsRegister, fontRegister: FontRegister, dynamicText: DynamicText)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def bounds(sceneNode: SceneNode): Rectangle

Finds the bounds or returns a Rectangle of size zero for convenience.

Finds the bounds or returns a Rectangle of size zero for convenience.

Attributes

def findBounds(sceneNode: SceneNode): Option[Rectangle]

Safely finds the bounds of any given scene node, if the node has bounds. It is not possible to sensibly measure the bounds of some node types, such as clones, and some nodes are dependant on external data that may be missing.

Safely finds the bounds of any given scene node, if the node has bounds. It is not possible to sensibly measure the bounds of some node types, such as clones, and some nodes are dependant on external data that may be missing.

Attributes

def measureText(textBox: TextBox): Rectangle

Measures the size of a TextBox using the browsers canvas APIs. This is a slow operation.

Measures the size of a TextBox using the browsers canvas APIs. This is a slow operation.

Attributes

def spriteFrameBounds(sprite: Sprite[_]): Option[Rectangle]
def textAllLineBounds(text: String, fontKey: FontKey, letterSpacing: Int, lineHeight: Int): Array[Rectangle]
def textAsLinesWithBounds(text: String, fontKey: FontKey, letterSpacing: Int, lineHeight: Int): Batch[TextLine]
def textBounds(text: Text[_]): Rectangle
def textLineBounds(lineText: String, fontInfo: FontInfo, letterSpacing: Int, lineHeight: Int): Rectangle