package generic

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. generic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed abstract class BlendMode extends Product with Serializable
  2. type ContextTransform = (DrawingContext) => DrawingContext
  3. final case class DrawingContext(blendMode: BlendMode, strokeColor: Color, strokeWidth: Option[Double], strokeCap: Cap, strokeJoin: Join, strokeDash: Option[Array[Float]], fill: Option[Fill], font: Font) extends Product with Serializable

    Stores state about the current drawing style.

  4. sealed trait Fill extends Product with Serializable
  5. type Finalized[F[_], A] = IndexedStateT[Eval, List[ContextTransform], List[ContextTransform], (BoundingBox, Renderable[F, A])]

    A Finalized represents an effect that, when run, produces all the information needed to layout an image (it "finalizes" all the information needed for this process) and can eventually produce a value of type A (once it is rendered).

    A Finalized represents an effect that, when run, produces all the information needed to layout an image (it "finalizes" all the information needed for this process) and can eventually produce a value of type A (once it is rendered). Algorithmically this means:

    • for each shape work out its DrawingContext from which we can work out a doodle.core.BoundingBox.
    • apply transforms to bounding boxes at the point they are defined so each transformed subtree is laid out in its local coordinate system.

    The List of ContextTransform's are supplied in the order they should be applied: the innermost transform is at the head of the list.

  6. implicit class FinalizedOps[F[_], A] extends AnyRef
  7. trait GenericDebug[G[_]] extends Debug
  8. trait GenericLayout[G[_]] extends Layout
  9. trait GenericPath[G[_]] extends Path
  10. trait GenericShape[G[_]] extends Shape
  11. trait GenericSize[G[_]] extends Size

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

  12. trait GenericStyle[G[_]] extends Style
  13. trait GenericText[G[_]] extends Text
  14. trait GenericTransform[G[_]] extends Transform
  15. trait GivenApply[Drawing[_]] extends AnyRef
  16. trait GivenFunctor[Drawing[_]] extends AnyRef
  17. type Renderable[F[_], A] = IndexedStateT[Eval, core.Transform, core.Transform, F[A]]

    A Renderable represents some effect producing a value of type A and also creating a concrete implementation specific drawing.

    A Renderable represents some effect producing a value of type A and also creating a concrete implementation specific drawing.

    Invoking a Renderable does any layout (usually using bounding box information calculated in Finalized) and as such requires a doodle.core.Transform. Transforms should be applied outermost last. So any transformation in a Renderable should be applied before the trasform it receives from its surrounding context.

  18. final case class Stroke(color: Color, width: Double, cap: Cap, join: Join, dash: Option[Array[Float]]) extends Product with Serializable

Value Members

  1. object BlendMode extends Serializable
  2. object DrawingContext extends Serializable
  3. object Fill extends Serializable
  4. object Finalized
  5. object Renderable

Inherited from AnyRef

Inherited from Any

Ungrouped