GenericLayout

doodle.algebra.generic.GenericLayout
trait GenericLayout[G[_]] extends Layout

Attributes

Source:
GenericLayout.scala
Graph
Supertypes
trait Layout
trait Algebra
class Object
trait Matchable
class Any
Self type
GivenApply[G] & Algebra { type Drawing = [A] =>> Finalized[G, A]; }

Members list

Concise view

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

Concrete methods

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

Attributes

Source:
GenericLayout.scala
def at[A](img: Finalized[G, A], landmark: Landmark): Finalized[G, 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.

Attributes

Source:
GenericLayout.scala
def beside[A](left: Finalized[G, A], right: Finalized[G, A])(implicit s: Semigroup[A]): Finalized[G, A]

Attributes

Source:
GenericLayout.scala
def margin[A](img: Finalized[G, A], top: Double, right: Double, bottom: Double, left: Double): Finalized[G, A]

Expand the bounding box of img by the given amounts.

Expand the bounding box of img by the given amounts.

Attributes

Source:
GenericLayout.scala
def on[A](top: Finalized[G, A], bottom: Finalized[G, A])(implicit s: Semigroup[A]): Finalized[G, A]

Place the origin of top on the origin of bottom

Place the origin of top on the origin of bottom

Attributes

Source:
GenericLayout.scala
def originAt[A](img: Finalized[G, A], landmark: Landmark): Finalized[G, 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.

Attributes

Source:
GenericLayout.scala

Inherited methods

def at[A](img: Drawing[A], offset: Point): Drawing[A]

Attributes

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

Attributes

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

Attributes

Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

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

Attributes

Inherited from:
Layout
Source:
Layout.scala
def margin[A](img: Drawing[A], width: Double): Drawing[A]

Attributes

Inherited from:
Layout
Source:
Layout.scala
def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]

Attributes

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

Attributes

Inherited from:
Layout
Source:
Layout.scala

Implicits

Inherited implicits

Attributes

Inherited from:
Algebra
Source:
Algebra.scala