public class RoboCanvas extends AbstractCanvasGL<org.robovm.apple.coregraphics.CGBitmapContext>
Canvas.Canvas.Composite, Canvas.LineCap, Canvas.LineJoin| Constructor and Description |
|---|
RoboCanvas(RoboGLContext ctx,
float width,
float height,
boolean interpolate) |
| Modifier and Type | Method and Description |
|---|---|
org.robovm.apple.coregraphics.CGImage |
cgImage() |
Canvas |
clear() |
Canvas |
clearRect(float x,
float y,
float width,
float height) |
Canvas |
clip(Path clipPath) |
Canvas |
clipRect(float x,
float y,
float width,
float height) |
Path |
createPath() |
org.robovm.rt.bro.ptr.IntPtr |
data() |
void |
dispose() |
Canvas |
drawLine(float x0,
float y0,
float x1,
float y1) |
Canvas |
drawPoint(float x,
float y) |
Canvas |
drawText(String text,
float x,
float y) |
Canvas |
fillCircle(float x,
float y,
float radius) |
Canvas |
fillPath(Path path) |
Canvas |
fillRect(float x,
float y,
float width,
float height) |
Canvas |
fillRoundRect(float x,
float y,
float width,
float height,
float radius) |
Canvas |
fillText(TextLayout layout,
float x,
float y) |
Canvas |
restore() |
Canvas |
rotate(float radians) |
Canvas |
save() |
Canvas |
scale(float x,
float y) |
Canvas |
setAlpha(float alpha) |
Canvas |
setCompositeOperation(Canvas.Composite composite) |
Canvas |
setFillColor(int color) |
Canvas |
setFillGradient(Gradient gradient) |
Canvas |
setFillPattern(Pattern pattern) |
Canvas |
setLineCap(Canvas.LineCap cap) |
Canvas |
setLineJoin(Canvas.LineJoin join) |
Canvas |
setMiterLimit(float miter) |
Canvas |
setStrokeColor(int color) |
Canvas |
setStrokeWidth(float strokeWidth) |
Canvas |
strokeCircle(float x,
float y,
float radius) |
Canvas |
strokePath(Path path) |
Canvas |
strokeRect(float x,
float y,
float width,
float height) |
Canvas |
strokeRoundRect(float x,
float y,
float width,
float height,
float radius) |
Canvas |
strokeText(TextLayout layout,
float x,
float y) |
int |
texHeight() |
int |
texWidth() |
Canvas |
transform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy) |
Canvas |
translate(float x,
float y) |
clearDirty, dirty, drawImage, drawImage, drawImage, drawImageCenteredheight, widthpublic RoboCanvas(RoboGLContext ctx, float width, float height, boolean interpolate)
public org.robovm.rt.bro.ptr.IntPtr data()
public int texWidth()
public int texHeight()
public org.robovm.apple.coregraphics.CGImage cgImage()
public void dispose()
public Canvas clear()
public Canvas clearRect(float x, float y, float width, float height)
public Canvas clipRect(float x, float y, float width, float height)
public Path createPath()
public Canvas drawLine(float x0, float y0, float x1, float y1)
public Canvas drawPoint(float x, float y)
public Canvas fillCircle(float x, float y, float radius)
public Canvas fillRect(float x, float y, float width, float height)
public Canvas fillRoundRect(float x, float y, float width, float height, float radius)
public Canvas fillText(TextLayout layout, float x, float y)
public Canvas restore()
public Canvas rotate(float radians)
public Canvas save()
public Canvas scale(float x, float y)
public Canvas setAlpha(float alpha)
public Canvas setCompositeOperation(Canvas.Composite composite)
public Canvas setFillColor(int color)
public Canvas setLineCap(Canvas.LineCap cap)
public Canvas setLineJoin(Canvas.LineJoin join)
public Canvas setMiterLimit(float miter)
public Canvas setStrokeColor(int color)
public Canvas setStrokeWidth(float strokeWidth)
public Canvas strokeCircle(float x, float y, float radius)
public Canvas strokeRect(float x, float y, float width, float height)
public Canvas strokeRoundRect(float x, float y, float width, float height, float radius)
public Canvas strokeText(TextLayout layout, float x, float y)
public Canvas transform(float m11, float m12, float m21, float m22, float dx, float dy)
public Canvas translate(float x, float y)
Copyright © 2015. All Rights Reserved.