comparison dw.h @ 2475:16d195d46f2a

Android: Implement dw_window_new(), dw_box_new() and dw_box_pack(). Initialize JNI when creating new threads. Include jni.h from dw.h so we can type HWND as jobject. Remove our own resize code, we are going to try to use LinearLayout.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 21 Apr 2021 11:15:26 +0000
parents a13e6db064f4
children fa976a5bc7bd
comparison
equal deleted inserted replaced
2474:a13e6db064f4 2475:16d195d46f2a
723 typedef HWND HMENUI; 723 typedef HWND HMENUI;
724 #endif 724 #endif
725 725
726 /* Android section */ 726 /* Android section */
727 #if defined(__ANDROID__) 727 #if defined(__ANDROID__)
728 #include <jni.h>
728 #include <stdio.h> 729 #include <stdio.h>
729 #include <stdlib.h> 730 #include <stdlib.h>
730 #include <stdarg.h> 731 #include <stdarg.h>
731 #include <limits.h> 732 #include <limits.h>
732 #include <pthread.h> 733 #include <pthread.h>
737 #endif 738 #endif
738 739
739 #define TRUE 1 740 #define TRUE 1
740 #define FALSE 0 741 #define FALSE 0
741 742
742 typedef void *HWND; 743 typedef jobject HWND;
743 744
744 typedef unsigned long ULONG; 745 typedef unsigned long ULONG;
745 typedef long LONG; 746 typedef long LONG;
746 typedef unsigned short USHORT; 747 typedef unsigned short USHORT;
747 typedef short SHORT; 748 typedef short SHORT;