abstract class DrawContext extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- DrawContext
- AnyRef
- Any
Implicitly
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DrawContext()
Abstract Value Members
- abstract def !(s: Html): Unit
- abstract def !(s: Svg): Unit
- abstract def !(s: Img): Unit
- abstract def !(s: Video): Unit
- abstract def !(s: Star): Unit
- abstract def !(s: Text): Unit
- abstract def !(s: Arc): Unit
- abstract def !(s: Tri): Unit
- abstract def !(s: Poly): Unit
- abstract def !(s: Line): Unit
- abstract def !(s: Rect): Unit
- abstract def !(s: Ellipse): Unit
- abstract def !(s: Circ): Unit
- abstract def !(p: Path): Unit
- abstract def !(p: Rotate): Unit
- abstract def !(p: ScaleProperty): Unit
- abstract def !(p: Translate): Unit
- abstract def !(p: Align): Unit
- abstract def !(p: Font): Unit
- abstract def !(p: Weight): Unit
- abstract def !(p: StrokeNone.type): Unit
- abstract def !(p: FillNone.type): Unit
- abstract def !(p: Stroke): Unit
- abstract def !(p: Fill): Unit
- abstract def !(p: Background): Unit
- abstract def close(): Unit
this is called before exiting in case resources are still being used
- abstract def fill: Option[Color]
- abstract def remote(video: Video): MediaRemote
- abstract def size: Vec
- abstract def stroke: Option[Color]
- abstract def style(f: => Unit): Unit
- abstract def textSize(text: Text, font: Font): Vec
- abstract def weight: Double
Concrete Value Members
- def ![A, B](a: Axes[A, B]): Unit
- final def !(style: Style): Unit
- final def !(p: Transform): Unit
- final def !(p: Sketch): Unit
- final def !(ps: Empty): Unit
- final def !(ps: Iterable[Shape]): Unit
- final def !(p: Grouped): Unit
- final def !(s: Styled): Unit
- final def !(p: AlignVertical): Unit
- final def !(p: AlignHorizontal): Unit
- def !(arrow: Arrow): Unit
- def !(s: SvgPath): Unit
- def !(s: Polys): Unit
- def !(s: Bezier): Unit
- def !(p: Default.type): Unit
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def drag: Option[Line]
- final def drawShape(shape: Shape): Unit
- def drop: Option[String]
- 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
- 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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def focus: Boolean
- 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()
- final def fps: Int
- final def frame: Long
- final def frameRate: Frequency
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val keyboard: Keyboard
- def lastClick: Option[Vec]
- def lastDrag: Option[Line]
- def lastPress: Option[Vec]
- def lastRelease: Option[Vec]
- def mouse: Vec
- def mouseOption: Option[Vec]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onInit(f: => Unit): Unit
- def onRelease(f: (Vec) => Unit): Unit
- 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
- 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
- def press: Option[Vec]
- def save: drx.Try[File]
- def save(file: File): drx.Try[File]
- def save(img: Img, file: File): drx.Try[File]
- def screen: Rect
- def scrollSum: Vec
- 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
- def snapshot: Img
- def snapshot(size: Vec): Img
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- def toString(): String
- Definition Classes
- AnyRef → Any
- def touch: List[Line]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- 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
- 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)
- 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.