Size

doodle.algebra.Size
trait Size extends Algebra

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

Attributes

Source
Size.scala
Graph
Supertypes
trait Algebra
class Object
trait Matchable
class Any
Known subtypes
trait GenericSize[G]
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 boundingBox[A](picture: Drawing[A]): Drawing[BoundingBox]

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Attributes

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

Attributes

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

Attributes

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

Attributes

Source
Size.scala

Implicits

Inherited implicits

implicit val drawingInstance: Monad[Drawing]

Attributes

Inherited from:
Algebra
Source
Algebra.scala