PageRenderTime 237ms CodeModel.GetById 114ms app.highlight 3ms RepoModel.GetById 117ms app.codeStats 1ms

/src/compiler/android/jni/ftkapp/ftk_jni.h

http://ftk.googlecode.com/
C++ Header | 32 lines | 21 code | 11 blank | 0 comment | 0 complexity | af19dce290220b8eb7e3f695a1c74fe5 MD5 | raw file
 1
 2#ifndef FTK_JNI_H
 3#define FTK_JNI_H
 4
 5#include "ftk_typedef.h"
 6#include "ftk_bitmap.h"
 7
 8FTK_BEGIN_DECLS
 9
10int main(int argc, char* argv[]);
11
12void Android_SetScreenResolution(int width, int height);
13
14void Android_Log(const char* fmt, ...);
15int Android_OpenAsset(const char* filename, size_t* size);
16FtkBitmap* Android_LoadImage(const char* filename);
17
18void Android_InitEGL(void);
19Ret Android_PreRender(void);
20void Android_Render(void);
21
22int* Android_GetBitmapPixels(void);
23void Android_ReleaseBitmapPixels(int* pixels);
24void Android_DrawBitmap(int offset, int stride, int x, int y, int width, int height);
25
26void Android_ShowKeyboard(void);
27void Android_HideKeyboard(void);
28void Android_ShowInputMethodChooser(void);
29
30FTK_END_DECLS
31
32#endif/*FTK_JNI_H*/