Shape

sealed trait Shape[T <: Shape[_]] extends RenderNode[T] with Cloneable with SpatialModifiers[T]

Parent type for all Shapes, which are visible elements draw mathematically that require no textures. Shapes are quite versitile and support different fills and stroke effects, even lighting. Due to the way strokes around shapes are drawn, the corners are always rounded.

Companion:
object
trait Cloneable
trait RenderNode[T]
trait SceneNode
class Object
trait Matchable
class Any
class Box
class Circle
class Line
class Polygon

Type members

Inherited types

type Out = T
Inherited from:
RenderNode

Value members

Abstract methods

def flipHorizontal(isFlipped: Boolean): T
def flipVertical(isFlipped: Boolean): T
def moveBy(pt: Point): T
def moveBy(x: Int, y: Int): T
def moveTo(pt: Point): T
def moveTo(x: Int, y: Int): T
def rotateBy(angle: Radians): T
def rotateTo(angle: Radians): T
def scaleBy(amount: Vector2): T
def scaleBy(x: Double, y: Double): T
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): T
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): T
def withDepth(newDepth: Depth): T
def withFlip(newFlip: Flip): T
def withPosition(newPosition: Point): T
def withRotation(newRotation: Radians): T
def withScale(newScale: Vector2): T

Concrete methods

Inherited methods

Inherited from:
SceneNode
def eventHandler: (T, GlobalEvent) => Option[GlobalEvent]
Inherited from:
RenderNode
def eventHandlerEnabled: Boolean
Inherited from:
RenderNode
def flip: Flip
Inherited from:
SceneNode
Inherited from:
SceneNode
def ref: Point
Inherited from:
SceneNode
Inherited from:
SceneNode
Inherited from:
SceneNode
def size: Size
Inherited from:
RenderNode
def withRef(x: Int, y: Int): T
Inherited from:
SpatialModifiers
def withRef(newRef: Point): T
Inherited from:
SpatialModifiers