Package playn.robovm
Class RoboCanvas
java.lang.Object
playn.core.Canvas
playn.robovm.RoboCanvas
- All Implemented Interfaces:
AutoCloseable,Closeable
Implements
Canvas.-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.Canvas
Canvas.Composite, Canvas.Drawable, Canvas.LineCap, Canvas.LineJoinNested classes/interfaces inherited from interface react.Closeable
Closeable.Set, Closeable.Util -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.robovm.apple.coregraphics.CGImagecgimage()clear()clearRect(float x, float y, float width, float height) clipRect(float x, float y, float width, float height) voidclose()drawArc(float cx, float cy, float r, float startAngle, float arcAngle) drawLine(float x0, float y0, float x1, float y1) drawPoint(float x, float y) fillCircle(float x, float y, float radius) fillRect(float x, float y, float width, float height) fillRoundRect(float x, float y, float width, float height, float radius) fillText(TextLayout layout, float x, float y) restore()rotate(float radians) save()scale(float x, float y) setAlpha(float alpha) setCompositeOperation(Canvas.Composite composite) setFillColor(int color) setFillGradient(Gradient gradient) setFillPattern(Pattern pattern) setLineCap(Canvas.LineCap cap) setLineJoin(Canvas.LineJoin join) setMiterLimit(float miter) setStrokeColor(int color) setStrokeWidth(float strokeWidth) snapshot()strokeCircle(float x, float y, float radius) strokePath(Path path) strokeRect(float x, float y, float width, float height) strokeRoundRect(float x, float y, float width, float height, float radius) strokeText(TextLayout layout, float x, float y) intinttexWidth()transform(float m11, float m12, float m21, float m22, float dx, float dy) translate(float x, float y) Methods inherited from class playn.core.Canvas
createGradient, createPath, draw, draw, draw, drawCentered, toTexture, toTexture
-
Constructor Details
-
RoboCanvas
-
-
Method Details
-
texWidth
public int texWidth() -
texHeight
public int texHeight() -
cgimage
public org.robovm.apple.coregraphics.CGImage cgimage() -
clear
-
clearRect
-
clip
-
clipRect
-
close
public void close() -
drawLine
-
drawPoint
-
drawArc
-
drawText
-
fillCircle
- Specified by:
fillCirclein classCanvas
-
fillPath
-
fillRect
-
fillRoundRect
- Specified by:
fillRoundRectin classCanvas
-
fillText
-
restore
-
rotate
-
save
-
scale
-
setAlpha
-
setCompositeOperation
- Specified by:
setCompositeOperationin classCanvas
-
setFillColor
- Specified by:
setFillColorin classCanvas
-
setFillGradient
- Specified by:
setFillGradientin classCanvas
-
setFillPattern
- Specified by:
setFillPatternin classCanvas
-
setLineCap
- Specified by:
setLineCapin classCanvas
-
setLineJoin
- Specified by:
setLineJoinin classCanvas
-
setMiterLimit
- Specified by:
setMiterLimitin classCanvas
-
setStrokeColor
- Specified by:
setStrokeColorin classCanvas
-
setStrokeWidth
- Specified by:
setStrokeWidthin classCanvas
-
snapshot
-
strokeCircle
- Specified by:
strokeCirclein classCanvas
-
strokePath
- Specified by:
strokePathin classCanvas
-
strokeRect
- Specified by:
strokeRectin classCanvas
-
strokeRoundRect
- Specified by:
strokeRoundRectin classCanvas
-
strokeText
- Specified by:
strokeTextin classCanvas
-
transform
-
translate
-