Julian Winkler
def91a688d
handle overwritten onDraw function in WrapperWidget
...
This makes it easy to support for example ImageView with custom
onDraw function
2023-08-08 14:18:20 +02:00
Julian Winkler
22dcaf45e8
View: use GTK_ALIGN_CENTER for Androids GRAVITY_CENTER
2023-08-08 13:35:47 +02:00
Julian Winkler
520569f7c7
implement View.invalidate()
2023-08-08 13:35:47 +02:00
Julian Winkler
8c1e98b09c
GLSurfaceView: fix eglGetDisplay for Wayland only sessions
...
EGL_DEFAULT_DISPLAY always tries to use X11
2023-08-08 10:54:20 +02:00
Mis012
08998b0076
make Looper, Handler, and MessageQueue work properly
...
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Mis012
a61e44aad8
api-impl-jni/audio/android_media_AudioTrack.c: make this stuff noop by default
...
this particular implementation never worked particularly great, and thanks
to hardcoding could cause more harm then good.
export `HAX_AUDIOTRACK_PCM_DEVICE=sysdefault:CARD=Generic_1` to restore
previous behavior
TODO: use libOpenSLES to implement this maybe? we have to have it anyway...
2023-06-23 17:27:48 +02:00
Julian Winkler
997642d93a
auto find main activity using AndroidManifest.xml
2023-06-21 22:38:08 +02:00
Julian Winkler
12e9e9788a
load assets and bitmaps directly from apk
2023-06-21 22:38:08 +02:00
Julian Winkler
1a8e198e05
make RelativeLayout vertical by default and vexpand GLSurfaceView
2023-06-18 11:31:03 +02:00
Julian Winkler
c70e333883
View: handle View.INVISIBLE the same way as View.GONE
2023-06-18 11:31:03 +02:00
Julian Winkler
9e706927de
implement android.media.SoundPool using GtkMediaStream
2023-06-18 11:31:01 +02:00
Julian Winkler
48ef2fffdf
implement GLES20 java bindings
...
These are just one to one bindings for the native OpenGL 2.0 APIs
2023-06-18 11:28:40 +02:00
Julian Winkler
58ec3733d3
Bitmap: implement decodeStream, getPixels and recycle
2023-06-18 11:28:40 +02:00
Julian Winkler
c21d8532bc
ImageView: use GtkPicture and actually show the image
...
GtkImage is intended for icons GtkPicture fits better
2023-06-18 11:28:40 +02:00
Mis012
34858d2fa6
remove incorrect offset correction from GLSurfaceView; handle ATL_DISABLE_WINDOW_DECORATIONS env
2023-01-09 14:50:17 +01:00
Mis012
4dd31731f9
src/api-impl: misc stubbing
2023-01-09 12:07:57 +01:00
Mis012
eabfaeaeba
GLSurfaceView: handle touch events in addition to mouse clicks
2023-01-07 19:16:09 +01:00
Mis012
2a7345e44e
src/libandroid/native_window.c: the part that should go in libEGL_bio: intercept eglGetProcAddress so we can stub extensions
2023-01-05 19:00:27 +01:00
Mis012
2e4590c4d8
src/api-impl: misc stubbing
2022-12-31 17:17:10 +01:00
Mis012
1c94d56a11
src/api-impl-jni/util.c: add caching for SurfaceHolder; add gdb helper functions
2022-12-27 17:14:30 +01:00
Mis012
63d7427d0e
GLSurfaceView: call SurfaceHolderCallback.surfaceCreated in case the app expects that; compensate for mismatch between touch input and the rendering area
2022-12-27 17:11:59 +01:00
Mis012
9db07691fe
fix native activity input handling to work in the general case
2022-12-01 14:44:16 +01:00
Mis012
894f7b99c3
inform Java about apk path; allow specifying port for jdwp debugging with JDWP_LISTEN env; hackily work around onWindowFocusChanged being called at a time where it causes some apps to crash
2022-11-24 16:13:41 +01:00
Mis012
bf0cd46647
SQM: src/api-impl-jni/widgets/android_view_SurfaceView.c: fix typo
2022-11-24 15:49:55 +01:00
Mis012
85b2a60fb0
src/api-impl-jni/android_app_NativeActivity.c: strdup datadir paths before freeing them
2022-11-24 15:46:43 +01:00