Layout

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

Value members

Abstract methods

def above[A](top: F[A], bottom: F[A])(implicit s: Semigroup[A]): F[A]
def at[A](img: F[A], landmark: Landmark): F[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.

def beside[A](left: F[A], right: F[A])(implicit s: Semigroup[A]): F[A]
def margin[A](img: F[A], top: Double, right: Double, bottom: Double, left: Double): F[A]

Expand the bounding box of img by the given amounts.

Expand the bounding box of img by the given amounts.

def on[A](top: F[A], bottom: F[A])(implicit s: Semigroup[A]): F[A]

Place the origin of top on the origin of bottom

Place the origin of top on the origin of bottom

def originAt[A](img: F[A], landmark: Landmark): F[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.

Concrete methods

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