add some stubs needed since we now handle onMeasure() for more Views

This commit is contained in:
Julian Winkler
2023-12-29 11:09:37 +01:00
parent 757d689689
commit 0614e6c245
7 changed files with 25 additions and 2 deletions

View File

@@ -215,6 +215,14 @@ JNIEXPORT jlong JNICALL Java_android_widget_LinearLayout_native_1constructor
JNIEXPORT void JNICALL Java_android_widget_LinearLayout_setOrientation
(JNIEnv *, jobject, jint);
/*
* Class: android_widget_LinearLayout
* Method: getOrientation
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_android_widget_LinearLayout_getOrientation
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif

View File

@@ -45,3 +45,8 @@ JNIEXPORT void JNICALL Java_android_widget_LinearLayout_setOrientation(JNIEnv *e
{
gtk_orientable_set_orientation(GTK_ORIENTABLE(_PTR(_GET_LONG_FIELD(this, "widget"))), orientation ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL);
}
JNIEXPORT jint JNICALL Java_android_widget_LinearLayout_getOrientation(JNIEnv *env, jobject this)
{
return gtk_orientable_get_orientation(GTK_ORIENTABLE(_PTR(_GET_LONG_FIELD(this, "widget"))));
}