/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. int main(int argc, char* argv[])
  3. {
  4. FtkBitmap* bitmap = NULL;
  5. FtkIconCache* thiz = NULL;
  6. ftk_init(argc, argv);
  7. thiz = ftk_icon_cache_create(NULL, "theme/default");
  8. bitmap = ftk_icon_cache_load(thiz, "close-32.png");
  9. assert(bitmap != NULL);
  10. ftk_bitmap_unref(bitmap);
  11. ftk_icon_cache_destroy(thiz);
  12. return 0;
  13. }