Group

final case class Group(children: List[SceneNode], position: Point, rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip) extends DependentNode with SpatialModifiers[Group]

Used to group elements to allow them to be manipulated as a collection.

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

Value members

Concrete methods

def addChild(child: SceneNode): Group
def addChildren(additionalChildren: List[SceneNode]): Group
def flipHorizontal(isFlipped: Boolean): Group
def flipVertical(isFlipped: Boolean): Group
def moveBy(pt: Point): Group
def moveBy(x: Int, y: Int): Group
def moveTo(pt: Point): Group
def moveTo(x: Int, y: Int): Group
def rotateBy(angle: Radians): Group
def rotateTo(angle: Radians): Group
def scaleBy(x: Double, y: Double): Group
def scaleBy(amount: Vector2): Group
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Group
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Group
def withDepth(newDepth: Depth): Group
def withFlip(newFlip: Flip): Group
def withPosition(newPosition: Point): Group
def withRef(newRef: Point): Group
def withRef(x: Int, y: Int): Group
def withRotation(newRotation: Radians): Group
def withScale(newScale: Vector2): Group

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