1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: expand C.ANativeActivity struct definition (#9231)

This commit is contained in:
Larpon 2021-03-10 17:38:20 +01:00 committed by GitHub
parent 0abb38472b
commit 0a39c2b9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,20 @@ fn C.AConfiguration_getDensity(voidptr) u32
fn C.AConfiguration_delete(voidptr)
struct C.AAssetManager {}
// See https://developer.android.com/ndk/reference/struct/a-native-activity for more info.
struct C.ANativeActivity {
assetManager voidptr
pub:
assetManager voidptr // Pointer to the Asset Manager instance for the application. (AAssetManager *)
callbacks voidptr // Pointer to the callback function table of the native application. (struct ANativeActivityCallbacks *)
clazz voidptr // The NativeActivity object handle.
env voidptr // JNI context for the main thread of the app.
externalDataPath charptr // Path to this application's external (removable/mountable) data directory.
instance voidptr // This is the native instance of the application.
internalDataPath charptr // Path to this application's internal data directory.
obbPath charptr // Available starting with Honeycomb: path to the directory containing the application's OBB files (if any).
sdkVersion int // The platform's SDK version code.
vm voidptr // The global handle on the process's Java VM
}
pub fn android_dpi_scale() f32 {