implement more GskCanvas methods

This commit is contained in:
Julian Winkler
2024-05-25 16:32:01 +02:00
committed by Mis012
parent 8afdd181d0
commit d941fd5a81
3 changed files with 64 additions and 15 deletions

View File

@@ -65,6 +65,22 @@ JNIEXPORT void JNICALL Java_android_graphics_GskCanvas_native_1save
JNIEXPORT void JNICALL Java_android_graphics_GskCanvas_native_1restore
(JNIEnv *, jobject, jlong);
/*
* Class: android_graphics_GskCanvas
* Method: native_drawLine
* Signature: (JFFFFJ)V
*/
JNIEXPORT void JNICALL Java_android_graphics_GskCanvas_native_1drawLine
(JNIEnv *, jobject, jlong, jfloat, jfloat, jfloat, jfloat, jlong);
/*
* Class: android_graphics_GskCanvas
* Method: native_drawText
* Signature: (JLjava/lang/String;FFJ)V
*/
JNIEXPORT void JNICALL Java_android_graphics_GskCanvas_native_1drawText
(JNIEnv *, jobject, jlong, jstring, jfloat, jfloat, jlong);
#ifdef __cplusplus
}
#endif