You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement Window.setLayout()
This commit is contained in:
@@ -46,3 +46,10 @@ JNIEXPORT void JNICALL Java_android_view_Window_take_1input_1queue(JNIEnv *env,
|
||||
g_object_set_data(G_OBJECT(window), "input_queue_callback", (gpointer)_REF(callback));
|
||||
g_object_set_data(G_OBJECT(window), "input_queue", (gpointer)_REF(queue));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_view_Window_set_1layout(JNIEnv *env, jobject this, jlong window, jint width, jint height)
|
||||
{
|
||||
GtkWindow *gtk_window = GTK_WINDOW(_PTR(window));
|
||||
if (width > 0 && height > 0)
|
||||
gtk_window_set_default_size(gtk_window, width, height);
|
||||
}
|
||||
|
||||
@@ -35,6 +35,14 @@ JNIEXPORT void JNICALL Java_android_view_Window_set_1title
|
||||
JNIEXPORT void JNICALL Java_android_view_Window_take_1input_1queue
|
||||
(JNIEnv *, jobject, jlong, jobject, jobject);
|
||||
|
||||
/*
|
||||
* Class: android_view_Window
|
||||
* Method: set_layout
|
||||
* Signature: (JII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_view_Window_set_1layout
|
||||
(JNIEnv *, jobject, jlong, jint, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user