/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
- #include "ftk.h"
- int main(int argc, char* argv[])
- {
- FtkBitmap* bitmap = NULL;
- FtkIconCache* thiz = NULL;
- ftk_init(argc, argv);
- thiz = ftk_icon_cache_create(NULL, "theme/default");
- bitmap = ftk_icon_cache_load(thiz, "close-32.png");
- assert(bitmap != NULL);
- ftk_bitmap_unref(bitmap);
- ftk_icon_cache_destroy(thiz);
- return 0;
- }