GenericSize

trait GenericSize[G[_]] extends Size

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

Source:
GenericSize.scala
trait Size
trait Algebra
class Object
trait Matchable
class Any
GivenFunctor[G] & Algebra { type Drawing = [A] =>> Finalized[G, A]; }

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

Concrete methods

def boundingBox[A](picture: Finalized[G, A]): Finalized[G, BoundingBox]

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Source:
GenericSize.scala
def height[A](picture: Finalized[G, A]): Finalized[G, Double]

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Source:
GenericSize.scala
def size[A](picture: Finalized[G, A]): Finalized[G, (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:
GenericSize.scala
def width[A](picture: Finalized[G, A]): Finalized[G, Double]

Get the width of the bounding box enclosing the picture

Get the width of the bounding box enclosing the picture

Source:
GenericSize.scala

Implicits

Inherited implicits

Inherited from:
Algebra
Source:
Algebra.scala