diff options
Diffstat (limited to 'native/include/android/native_window.h')
-rw-r--r-- | native/include/android/native_window.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/native/include/android/native_window.h b/native/include/android/native_window.h index e6d5fea..b3f47b2 100644 --- a/native/include/android/native_window.h +++ b/native/include/android/native_window.h @@ -25,6 +25,23 @@ extern "C" { struct ANativeWindow; typedef struct ANativeWindow ANativeWindow; +/* + * Return the current width in pixels of the window surface. Returns a + * negative value on error. + */ +int32_t ANativeWindow_getWidth(ANativeWindow* window); + +/* + * Return the current height in pixels of the window surface. Returns a + * negative value on error. + */ +int32_t ANativeWindow_getHeight(ANativeWindow* window); + +/* + * Return the current pixel format of the window surface. Returns a + * negative value on error. + */ +int32_t ANativeWindow_getFormat(ANativeWindow* window); #ifdef __cplusplus }; |