diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:53:18 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-29 16:03:34 +0100 |
commit | 9add1e5e9ceb80afad8bda54ac34bfa8dfb59c61 (patch) | |
tree | 572b68f2fb0621895a561738c63902388a02697d /platform/java/mupdf_native.h | |
parent | dba81b84129c4ef2870274c771bef5c05a7b3343 (diff) | |
download | mupdf-9add1e5e9ceb80afad8bda54ac34bfa8dfb59c61.tar.xz |
jni: Add font and image constructors.
Diffstat (limited to 'platform/java/mupdf_native.h')
-rw-r--r-- | platform/java/mupdf_native.h | 76 |
1 files changed, 66 insertions, 10 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index b6a9499d..771412d6 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -572,12 +572,36 @@ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Font_finalize /* * Class: com_artifex_mupdf_fitz_Font + * Method: newNative + * Signature: (Ljava/lang/String;I)J + */ +JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Font_newNative + (JNIEnv *, jobject, jstring, jint); + +/* + * Class: com_artifex_mupdf_fitz_Font * Method: getName * Signature: ()Ljava/lang/String; */ JNIEXPORT jstring JNICALL Java_com_artifex_mupdf_fitz_Font_getName (JNIEnv *, jobject); +/* + * Class: com_artifex_mupdf_fitz_Font + * Method: encodeCharacter + * Signature: (I)I + */ +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Font_encodeCharacter + (JNIEnv *, jobject, jint); + +/* + * Class: com_artifex_mupdf_fitz_Font + * Method: advanceGlyph + * Signature: (II)F + */ +JNIEXPORT jfloat JNICALL Java_com_artifex_mupdf_fitz_Font_advanceGlyph + (JNIEnv *, jobject, jint, jint); + #ifdef __cplusplus } #endif @@ -599,6 +623,22 @@ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Image_finalize /* * Class: com_artifex_mupdf_fitz_Image + * Method: newNativeFromPixmap + * Signature: (Lcom/artifex/mupdf/fitz/Pixmap;)J + */ +JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Image_newNativeFromPixmap + (JNIEnv *, jobject, jobject); + +/* + * Class: com_artifex_mupdf_fitz_Image + * Method: newNativeFromFile + * Signature: (Ljava/lang/String;)J + */ +JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Image_newNativeFromFile + (JNIEnv *, jobject, jstring); + +/* + * Class: com_artifex_mupdf_fitz_Image * Method: getWidth * Signature: ()I */ @@ -615,34 +655,34 @@ JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getHeight /* * Class: com_artifex_mupdf_fitz_Image - * Method: getNumberOfComponents + * Method: getXResolution * Signature: ()I */ -JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getNumberOfComponents +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getXResolution (JNIEnv *, jobject); /* * Class: com_artifex_mupdf_fitz_Image - * Method: getBitsPerComponent + * Method: getYResolution * Signature: ()I */ -JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getBitsPerComponent +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getYResolution (JNIEnv *, jobject); /* * Class: com_artifex_mupdf_fitz_Image - * Method: getXResolution + * Method: getNumberOfComponents * Signature: ()I */ -JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getXResolution +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getNumberOfComponents (JNIEnv *, jobject); /* * Class: com_artifex_mupdf_fitz_Image - * Method: getYResolution + * Method: getBitsPerComponent * Signature: ()I */ -JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getYResolution +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Image_getBitsPerComponent (JNIEnv *, jobject); /* @@ -669,6 +709,14 @@ JNIEXPORT jboolean JNICALL Java_com_artifex_mupdf_fitz_Image_getInterpolate JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Image_getMask (JNIEnv *, jobject); +/* + * Class: com_artifex_mupdf_fitz_Image + * Method: toPixmap + * Signature: (II)Lcom/artifex/mupdf/fitz/Pixmap; + */ +JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Image_toPixmap + (JNIEnv *, jobject, jint, jint); + #ifdef __cplusplus } #endif @@ -1506,10 +1554,18 @@ JNIEXPORT jlong JNICALL Java_com_artifex_mupdf_fitz_Text_cloneNative /* * Class: com_artifex_mupdf_fitz_Text * Method: showGlyph - * Signature: (Lcom/artifex/mupdf/fitz/Font;ZLcom/artifex/mupdf/fitz/Matrix;II)V + * Signature: (Lcom/artifex/mupdf/fitz/Font;Lcom/artifex/mupdf/fitz/Matrix;III)V */ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Text_showGlyph - (JNIEnv *, jobject, jobject, jboolean, jobject, jint, jint); + (JNIEnv *, jobject, jobject, jobject, jint, jint, jint); + +/* + * Class: com_artifex_mupdf_fitz_Text + * Method: showString + * Signature: (Lcom/artifex/mupdf/fitz/Font;Lcom/artifex/mupdf/fitz/Matrix;Ljava/lang/String;I)V + */ +JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Text_showString + (JNIEnv *, jobject, jobject, jobject, jstring, jint); /* * Class: com_artifex_mupdf_fitz_Text |