implement some APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-03-29 23:56:28 +01:00
parent 0352a307b9
commit 2f4cd3917f
36 changed files with 329 additions and 25 deletions

View File

@@ -209,6 +209,12 @@ public class Paint {
private Join(int nativeInt) {}
}
public enum Align {
CENTER,
LEFT,
RIGHT,
}
public void setStrokeCap(Cap cap) {}
public void setStrokeJoin(Join join) {}
@@ -217,6 +223,12 @@ public class Paint {
return new Typeface();
}
public void setTextAlign(Align align) {}
public Shader getShader() {
return new Shader();
}
private native long native_constructor();
private native void native_set_color(long skia_paint, int color);
private native int native_get_color(long skia_paint);