Layout

doodle.algebra.Layout
trait Layout extends Algebra

Attributes

Source
Layout.scala
Graph
Supertypes
trait Algebra
class Object
trait Matchable
class Any
Known subtypes
trait GenericLayout[G]
class Algebra
trait BaseAlgebra
class JvmAlgebra
trait Basic

Members list

Type members

Inherited types

type Drawing[_]

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

The effect type that methods on this algebra produce. Represents an effect that, when run, will draw something and produce a value.

Attributes

Inherited from:
Algebra
Source
Algebra.scala

Value members

Abstract methods

def above[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Source
Layout.scala

Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

Displace img by the given landmark relative to the origin, expanding the bounding box if necessary to include the relocated image.

Attributes

Source
Layout.scala
def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Source
Layout.scala

Expand the bounding box of img by the given amounts.

Expand the bounding box of img by the given amounts.

Attributes

Source
Layout.scala
def on[A](top: Drawing[A], bottom: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Place the origin of top on the origin of bottom

Place the origin of top on the origin of bottom

Attributes

Source
Layout.scala

Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

Place the origin of img at the given landmark, expanding the bounding box if necessary to include the relocated origin.

Attributes

Source
Layout.scala

Concrete methods

def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

Source
Layout.scala
def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]

Attributes

Source
Layout.scala
def at[A](img: Drawing[A], offset: Vec): Drawing[A]

Attributes

Source
Layout.scala
def at[A](img: Drawing[A], offset: Point): Drawing[A]

Attributes

Source
Layout.scala
def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Source
Layout.scala

Attributes

Source
Layout.scala

Attributes

Source
Layout.scala

Attributes

Source
Layout.scala
def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]

Attributes

Source
Layout.scala

Attributes

Source
Layout.scala

Attributes

Source
Layout.scala
def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Attributes

Source
Layout.scala

Implicits

Inherited implicits

implicit val drawingInstance: Monad[Drawing]

Attributes

Inherited from:
Algebra
Source
Algebra.scala