api-impl: misc stubs and trivial impls

This commit is contained in:
Mis012
2025-02-15 21:34:37 +01:00
parent df03617f13
commit 453224cf31
12 changed files with 123 additions and 6 deletions

View File

@@ -112,6 +112,10 @@ public class Path {
native_rel_quad_to(getBuilder(), x1, y1, x2, y2);
}
public void addArc (RectF oval, float startAngle, float sweepAngle) {}
public void addArc (float left, float top, float right, float bottom, float startAngle, float sweepAngle) {}
public void addPath(Path path, Matrix matrix) {
native_add_path(getBuilder(), path.getGskPath(), matrix.ni());
}
@@ -153,6 +157,13 @@ public class Path {
path = 0;
}
public void transform(Matrix matrix, Path out_path) {
if(out_path == null)
out_path = this;
out_path.transform(matrix);
}
public void computeBounds(RectF bounds, boolean exact) {
native_get_bounds(getGskPath(), bounds);
}