class Context extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Context
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Context(canvas: Canvas, _ratio: ⇒ Double)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def begin(): Unit
- def bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double): Unit
- val canvas: Canvas
- def clear(): Unit
- def clipPath(path: Path, x: Double = 0.0, y: Double = 0.0): Unit
- def clipRect(x1: Double, y1: Double, x2: Double, y2: Double): Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def close(): Unit
- def composite(composite: Composite): Unit
- def createPattern(repetition: Repetition): CanvasPattern
- def ctx: CanvasRenderingContext2D
- def drawCanvas(canvas: Canvas)(x: Double = 0.0, y: Double = 0.0, width: Double = canvas.width, height: Double = canvas.height): Unit
- def drawImage(image: Image)(x: Double = 0.0, y: Double = 0.0, width: Double = image.width, height: Double = image.height): Unit
- def drawVideo(video: Video)(x: Double = 0.0, y: Double = 0.0, width: Double = video.width, height: Double = video.height): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fill: Paint
- def fill(paint: Paint, apply: Boolean): Unit
- def fillText(text: String, x: Double = 0.0, y: Double = 0.0, maxWidth: Double = 10000.0): Unit
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def height: Double
- def identity(): Unit
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lineJoin(value: String): Unit
- def lineTo(x: Double, y: Double): Unit
- def measureText(text: String, size: Size = Size.zero): Size
- def miterLimit(value: Double): Unit
- def moveTo(x: Double, y: Double): Unit
-
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()
- def opacity: Double
- def opacity_=(value: Double): Unit
- def quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double): Unit
- def ratioX: Double
- def ratioY: Double
- def rect(x: Double, y: Double, width: Double, height: Double, begin: Boolean = true, close: Boolean = true): Unit
- def reset(): Unit
- def restore(): Unit
- def rotate(angle: Double): Unit
- def roundedRect(x: Double, y: Double, width: Double, height: Double, radius: Double): Unit
- def save(): Unit
- def scale(x: Double, y: Double): Unit
- def setFont(family: String, size: Double, style: String, variant: String, weight: String): Unit
- def setShadow(blur: Double, color: Color, x: Double, y: Double): Unit
- def state[R](f: ⇒ R): R
- def stroke: Stroke
- def stroke(paint: Paint, lineWidth: Double = 1.0, lineDash: List[Double] = Nil, lineDashOffset: Double = 0.0, lineCap: LineCap = LineCap.Butt, lineJoin: LineJoin = LineJoin.Miter, apply: Boolean): Unit
- def stroke(stroke: Stroke, apply: Boolean): Unit
- def strokeText(text: String, x: Double = 0.0, y: Double = 0.0, maxWidth: Double = 10000.0): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def textBaseline(value: String): Unit
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def transform(matrix: Matrix3): Unit
- def translate(x: Double, y: Double): Unit
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def width: Double
- def withScale[R](x: Double = 1.0, y: Double = 1.0)(f: ⇒ R): R