Size

trait Size extends Algebra

Get information about the size of the bounding box enclosing an picture.

Source:
Size.scala
trait Algebra
class Object
trait Matchable
class Any
trait GenericSize[G]
class Algebra
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

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Source:
Size.scala
def height[A](picture: Drawing[A]): Drawing[Double]

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Source:
Size.scala
def size[A](picture: Drawing[A]): Drawing[(Double, Double)]

Get the width and height of the bounding box enclosing the picture

Get the width and height of the bounding box enclosing the picture

Source:
Size.scala
def width[A](picture: Drawing[A]): Drawing[Double]

Get the width of the bounding box enclosing the picture

Get the width of the bounding box enclosing the picture

Source:
Size.scala

Implicits

Inherited implicits

Inherited from:
Algebra
Source:
Algebra.scala