Line

indigo.shared.scenegraph.Shape.Line
See theLine companion object
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.

Attributes

Companion
object
Graph
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

Members list

Type members

Inherited types

type Out = T

Attributes

Inherited from:
RenderNode

Value members

Concrete methods

def flipHorizontal(isFlipped: Boolean): Line
def flipVertical(isFlipped: Boolean): Line
def modifyStroke(modifier: Stroke => Stroke): Line
def moveBy(amount: Point): Line
def moveBy(x: Int, y: Int): Line
def moveEndBy(amount: Point): Line
def moveEndBy(x: Int, y: Int): Line
def moveEndTo(newPosition: Point): Line
def moveEndTo(x: Int, y: Int): Line
def moveStartBy(amount: Point): Line
def moveStartBy(x: Int, y: Int): Line
def moveStartTo(newPosition: Point): Line
def moveStartTo(x: Int, y: Int): Line
def moveTo(newPosition: Point): Line
def moveTo(x: Int, y: Int): Line
def onEvent(f: PartialFunction[(Line, GlobalEvent), GlobalEvent]): Line
def rotateBy(angle: Radians): Line
def rotateTo(angle: Radians): Line
def scaleBy(amount: Vector2): Line
def scaleBy(x: Double, y: Double): Line
def transformBy(positionDiff: Point, rotationDiff: Radians, scaleDiff: Vector2): Line
def transformTo(newPosition: Point, newRotation: Radians, newScale: Vector2): Line
def withDepth(newDepth: Depth): Line
def withEventHandler(f: ((Line, GlobalEvent)) => Option[GlobalEvent]): Line
def withFlip(newFlip: Flip): Line
def withLighting(newLighting: LightingModel): Line
def withPosition(newPosition: Point): Line
def withRef(newRef: Point): Line
def withRef(x: Int, y: Int): Line
def withRotation(newRotation: Radians): Line
def withScale(newScale: Vector2): Line
def withShaderId(newShaderId: ShaderId): Line
def withStroke(newStroke: Stroke): Line
def withStrokeColor(newStrokeColor: RGBA): Line
def withStrokeWidth(newWidth: Int): Line

Inherited methods

Attributes

Inherited from:
Shape
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val position: Point
lazy val size: Size