GenericSize

doodle.algebra.generic.GenericSize
trait GenericSize[G[_]] extends Size

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

Attributes

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

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

Concrete methods

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Attributes

Source
GenericSize.scala

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Attributes

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

Attributes

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

Attributes

Source
GenericSize.scala

Implicits

Inherited implicits

Attributes

Inherited from:
Algebra
Source
Algebra.scala