Packages

c

cc.drx

DrawContext

abstract class DrawContext extends AnyRef

Source
DrawContext.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DrawContext
  2. AnyRef
  3. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DrawContext()

Abstract Value Members

  1. abstract def !(s: Html): Unit
  2. abstract def !(s: Svg): Unit
  3. abstract def !(s: Img): Unit
  4. abstract def !(s: Video): Unit
  5. abstract def !(s: Star): Unit
  6. abstract def !(s: Text): Unit
  7. abstract def !(s: Arc): Unit
  8. abstract def !(s: Tri): Unit
  9. abstract def !(s: Poly): Unit
  10. abstract def !(s: Line): Unit
  11. abstract def !(s: Rect): Unit
  12. abstract def !(s: Ellipse): Unit
  13. abstract def !(s: Circ): Unit
  14. abstract def !(p: Path): Unit
  15. abstract def !(p: Rotate): Unit
  16. abstract def !(p: ScaleProperty): Unit
  17. abstract def !(p: Translate): Unit
  18. abstract def !(p: Align): Unit
  19. abstract def !(p: Font): Unit
  20. abstract def !(p: Weight): Unit
  21. abstract def !(p: StrokeNone.type): Unit
  22. abstract def !(p: FillNone.type): Unit
  23. abstract def !(p: Stroke): Unit
  24. abstract def !(p: Fill): Unit
  25. abstract def !(p: Background): Unit
  26. abstract def close(): Unit

    this is called before exiting in case resources are still being used

  27. abstract def fill: Option[Color]
  28. abstract def remote(video: Video): MediaRemote
  29. abstract def size: Vec
  30. abstract def stroke: Option[Color]
  31. abstract def style(f: => Unit): Unit
  32. abstract def textSize(text: Text, font: Font): Vec
  33. abstract def weight: Double

Concrete Value Members

  1. def ![A, B](a: Axes[A, B]): Unit
  2. final def !(style: Style): Unit
  3. final def !(p: Transform): Unit
  4. final def !(p: Sketch): Unit
  5. final def !(ps: Empty): Unit
  6. final def !(ps: Iterable[Shape]): Unit
  7. final def !(p: Grouped): Unit
  8. final def !(s: Styled): Unit
  9. final def !(p: AlignVertical): Unit
  10. final def !(p: AlignHorizontal): Unit
  11. def !(arrow: Arrow): Unit
  12. def !(s: SvgPath): Unit
  13. def !(s: Polys): Unit
  14. def !(s: Bezier): Unit
  15. def !(p: Default.type): Unit
  16. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. final def ##: Int
    Definition Classes
    AnyRef → Any
  18. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DrawContext toany2stringadd[DrawContext] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  19. def ->[B](y: B): (DrawContext, B)
    Implicit
    This member is added by an implicit conversion from DrawContext toArrowAssoc[DrawContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  20. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def applyIf(t: Boolean, f: (DrawContext) => DrawContext): DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  22. def applyIf(t: (DrawContext) => Boolean)(f: (DrawContext) => DrawContext): DrawContext

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  25. def drag: Option[Line]
  26. final def drawShape(shape: Shape): Unit
  27. def drop: Option[String]
  28. def elementOf(xs: Set[DrawContext]): Boolean
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  29. def ensuring(cond: (DrawContext) => Boolean, msg: => Any): DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toEnsuring[DrawContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. def ensuring(cond: (DrawContext) => Boolean): DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toEnsuring[DrawContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: Boolean, msg: => Any): DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toEnsuring[DrawContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: Boolean): DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toEnsuring[DrawContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  35. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  36. def focus: Boolean
  37. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DrawContext toStringFormat[DrawContext] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  38. final def fps: Int
  39. final def frame: Long
  40. final def frameRate: Frequency
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. implicit val keyboard: Keyboard
  45. def lastClick: Option[Vec]
  46. def lastDrag: Option[Line]
  47. def lastPress: Option[Vec]
  48. def lastRelease: Option[Vec]
  49. def mouse: Vec
  50. def mouseOption: Option[Vec]
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. def noneIf(f: (DrawContext) => Boolean): Option[DrawContext]
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. def onInit(f: => Unit): Unit
  56. def onRelease(f: (Vec) => Unit): Unit
  57. def optionIf(f: (DrawContext) => Boolean): Option[DrawContext]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  58. def preApply[B](f: (DrawContext) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  59. def press: Option[Vec]
  60. def save: drx.Try[File]
  61. def save(file: File): drx.Try[File]
  62. def save(img: Img, file: File): drx.Try[File]
  63. def screen: Rect
  64. def scrollSum: Vec
  65. def sideEffect(f: (DrawContext) => Unit): DrawContext

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  66. def snapshot: Img
  67. def snapshot(size: Vec): Img
  68. def someIf(f: (DrawContext) => Boolean): Option[DrawContext]
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  69. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  70. val thisAny: DrawContext
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. def touch: List[Line]
  73. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  75. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def ?>(f: (DrawContext) => Boolean): Option[DrawContext]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. def |>[B](f: (DrawContext) => B): B
    Implicit
    This member is added by an implicit conversion from DrawContext toDrxAny[DrawContext] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  3. def [B](y: B): (DrawContext, B)
    Implicit
    This member is added by an implicit conversion from DrawContext toArrowAssoc[DrawContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromDrawContext to DrxAny[DrawContext]

Inherited by implicit conversion any2stringadd fromDrawContext to any2stringadd[DrawContext]

Inherited by implicit conversion StringFormat fromDrawContext to StringFormat[DrawContext]

Inherited by implicit conversion Ensuring fromDrawContext to Ensuring[DrawContext]

Inherited by implicit conversion ArrowAssoc fromDrawContext to ArrowAssoc[DrawContext]

Ungrouped