Shape

indigo.shared.scenegraph.Shape
See theShape companion trait
object Shape

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Shape.type

Members list

Type members

Classlikes

final case class Box(dimensions: Rectangle, fill: Fill, stroke: Stroke, lighting: LightingModel, eventHandlerEnabled: Boolean, eventHandler: ((Box, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Box]

Draws a coloured box that occupies a rectangle on the screen.

Draws a coloured box that occupies a rectangle on the screen.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Shape[Box]
trait Cloneable
trait RenderNode[Box]
trait SceneNode
class Object
trait Matchable
class Any
Show all
object Box

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Box.type
final case class Circle(circle: Circle, fill: Fill, stroke: Stroke, lighting: LightingModel, eventHandlerEnabled: Boolean, eventHandler: ((Circle, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Circle]

Draws a coloured circle from it's center outwards.

Draws a coloured circle from it's center outwards.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Shape[Circle]
trait Cloneable
trait SceneNode
class Object
trait Matchable
class Any
Show all
object Circle

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Circle.type
final case class Line(start: Point, end: Point, stroke: Stroke, lighting: LightingModel, eventHandlerEnabled: Boolean, eventHandler: ((Line, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Line]

Draws a straight line.

Draws a straight line.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Shape[Line]
trait Cloneable
trait RenderNode[Line]
trait SceneNode
class Object
trait Matchable
class Any
Show all
object Line

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Line.type
final case class Polygon(vertices: Batch[Point], fill: Fill, stroke: Stroke, lighting: LightingModel, eventHandlerEnabled: Boolean, eventHandler: ((Polygon, GlobalEvent)) => Option[GlobalEvent], rotation: Radians, scale: Vector2, depth: Depth, ref: Point, flip: Flip, shaderId: Option[ShaderId]) extends Shape[Polygon]

Draws an arbitrary polygon with up to 16 vertices.

Draws an arbitrary polygon with up to 16 vertices.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Shape[Polygon]
trait Cloneable
trait SceneNode
class Object
trait Matchable
class Any
Show all
object Polygon

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Polygon.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fillType(fill: Fill): Float
def toShaderData(shape: Shape[_], bounds: Rectangle): ShaderData

Givens

Givens

given derived$CanEqual[T_$_L <: Shape[_], T_$_R <: Shape[_]](implicit x$0: CanEqual[T_$_L, T_$_R]): CanEqual[Shape[T_$_L], Shape[T_$_R]]