Shape

indigo.shared.scenegraph.Shape
See theShape companion object
sealed trait Shape[T <: Shape[_]] extends RenderNode[T], Cloneable, 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.

Attributes

Companion
object
Graph
Supertypes
trait SpatialModifiers[T]
trait Cloneable
trait RenderNode[T]
trait SceneNode
class Object
trait Matchable
class Any
Show all
Known subtypes
class Box
class Circle
class Line
class Polygon

Members list

Type members

Inherited types

type Out = T

Attributes

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

def depth: Depth

Attributes

Inherited from:
SceneNode
def eventHandler: ((T, GlobalEvent)) => Option[GlobalEvent]

Attributes

Inherited from:
RenderNode
def eventHandlerEnabled: Boolean

Attributes

Inherited from:
RenderNode
def flip: Flip

Attributes

Inherited from:
SceneNode

Attributes

Inherited from:
SceneNode
def ref: Point

Attributes

Inherited from:
SceneNode

Attributes

Inherited from:
SceneNode
def scale: Vector2

Attributes

Inherited from:
SceneNode
def size: Size

Attributes

Inherited from:
RenderNode
def withRef(x: Int, y: Int): T

Attributes

Inherited from:
SpatialModifiers
def withRef(newRef: Point): T

Attributes

Inherited from:
SpatialModifiers