native_window.h File Reference

native_window.h File Reference
#include <android/rect.h>

Data Structures

struct  ANativeWindow_Buffer
 

Typedefs

typedef struct ANativeWindow ANativeWindow
 
typedef struct ANativeWindow_Buffer ANativeWindow_Buffer
 

Enumerations

enum  { WINDOW_FORMAT_RGBA_8888 = 1, WINDOW_FORMAT_RGBX_8888 = 2, WINDOW_FORMAT_RGB_565 = 4 }
 

Functions

void ANativeWindow_acquire (ANativeWindow *window)
 
void ANativeWindow_release (ANativeWindow *window)
 
int32_t ANativeWindow_getWidth (ANativeWindow *window)
 
int32_t ANativeWindow_getHeight (ANativeWindow *window)
 
int32_t ANativeWindow_getFormat (ANativeWindow *window)
 
int32_t ANativeWindow_setBuffersGeometry (ANativeWindow *window, int32_t width, int32_t height, int32_t format)
 
int32_t ANativeWindow_lock (ANativeWindow *window, ANativeWindow_Buffer *outBuffer, ARect *inOutDirtyBounds)
 
int32_t ANativeWindow_unlockAndPost (ANativeWindow *window)