object Drxl extends SketchAppFX
- Source
- drxl.scala
- Alphabetic
- By Inheritance
- Drxl
- SketchAppFX
- SketchApp
- Sketch
- Shape
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def +=(f: (DrawContext) => Unit): Sketch
safely add new draw functions
safely add new draw functions
- Definition Classes
- Sketch
- final def :=(f: (DrawContext) => Unit): Sketch
- Definition Classes
- Sketch
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _args: Array[String]
- final def applySettings(scene: Scene, ctx: DrawContext): Unit
- Definition Classes
- SketchAppFX
- final def applySettings(stage: Stage, ctx: DrawContext): Unit
- Definition Classes
- SketchAppFX
- def args: Array[String]
- Definition Classes
- SketchApp
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def background: Color
- Definition Classes
- SketchApp
- final def clear: Unit
remove all draw functions
remove all draw functions
- Definition Classes
- Sketch
- def clearEachFrame: Boolean
- Definition Classes
- SketchApp
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def draw(implicit g: DrawContext): Unit
the interface of any Shape that can be sent to a render the fact that a Sketch itself can be a shape provides nice composability
- final def drawFunctions: Iterable[(DrawContext) => Unit]
safely access the iterator over all drawFunctions
safely access the iterator over all drawFunctions
- Definition Classes
- Sketch
- 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def icon: ImgFile
- Definition Classes
- SketchApp
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def launch(args: Array[String]): Unit
- Definition Classes
- SketchAppFX → SketchApp
- final def launch(): drx.Future[Unit]
- Definition Classes
- SketchApp
- final def launch(implicit ec: drx.ExecutionContext): drx.Future[Unit]
- Definition Classes
- SketchApp
- def main(args: Array[String]): Unit
- def maxFPS: Option[Int]
- Definition Classes
- SketchApp
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def onDraw(f: (DrawContext) => Unit): Unit
alias to '+=' (add) a draw function, this is a helper function to reduce boiler plate; (adds return of unit ()) when only a single draw funtion is desired in an automatic app
alias to '+=' (add) a draw function, this is a helper function to reduce boiler plate; (adds return of unit ()) when only a single draw funtion is desired in an automatic app
- Definition Classes
- SketchApp
- val repl: DrxIMain
- def size: Vec
- Definition Classes
- SketchApp
- def sketch: SketchApp
alias to this so a SketchApp can be easily and automatically constructed
alias to this so a SketchApp can be easily and automatically constructed
- Definition Classes
- SketchApp
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def title: String
- Definition Classes
- SketchApp
- def toString(): String
- Definition Classes
- SketchApp → AnyRef → Any
- def transparent: Boolean
- Definition Classes
- SketchApp
- 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()
- def ~(color: Color): Styled
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
provide a quick automatic way to set a fill or stroke all shapes have a stroke even if they can be filled (but the ClosedShape overrides this to provide a fill color)
- Definition Classes
- Shape
- def ~(property: Property): Styled
initialize shape with a style
initialize shape with a style
- Definition Classes
- Shape
- def ~(style: Style): Styled
Attach a style to a shape
Attach a style to a shape
- Definition Classes
- Shape