PageRenderTime 443ms CodeModel.GetById 221ms app.highlight 2ms RepoModel.GetById 159ms app.codeStats 0ms

/src/test/icon_cache_test.c

http://ftk.googlecode.com/
C | 18 lines | 13 code | 5 blank | 0 comment | 1 complexity | e6be70e5ff5312c4db83493192b8414b MD5 | raw file
 1#include "ftk.h"
 2
 3int main(int argc, char* argv[])
 4{
 5	FtkBitmap* bitmap = NULL;
 6	FtkIconCache* thiz = NULL;
 7
 8	ftk_init(argc, argv);
 9
10	thiz = ftk_icon_cache_create(NULL, "theme/default");
11	bitmap = ftk_icon_cache_load(thiz, "close-32.png");
12	assert(bitmap != NULL);
13	ftk_bitmap_unref(bitmap);
14
15	ftk_icon_cache_destroy(thiz);
16
17	return 0;
18}