Layout

trait Layout extends Algebra
trait Algebra
class Object
trait Matchable
class Any
trait GenericLayout[G]
trait Basic

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.

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]
def at[A](img: Drawing[A], landmark: Landmark): Drawing[A]

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.

Source:
Layout.scala
def beside[A](left: Drawing[A], right: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
def margin[A](img: Drawing[A], top: Double, right: Double, bottom: Double, left: Double): Drawing[A]

Expand the bounding box of img by the given amounts.

Expand the bounding box of img by the given amounts.

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

Source:
Layout.scala
def originAt[A](img: Drawing[A], landmark: Landmark): Drawing[A]

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.

Source:
Layout.scala

Concrete methods

def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
def at[A](img: Drawing[A], offset: Vec): Drawing[A]
def at[A](img: Drawing[A], offset: Point): Drawing[A]
def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
def margin[A](img: Drawing[A], width: Double): Drawing[A]
def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]

Implicits

Inherited implicits

Inherited from:
Algebra
Source:
Algebra.scala