awtk/demos/resource.c
2018-04-01 19:44:39 +08:00

67 lines
2.3 KiB
C

#include "lftk.h"
#include "base/resource_manager.h"
#include "res/src/fonts/ap.data"
#include "res/src/fonts/default.data"
#include "res/src/images/bricks.data"
#include "res/src/images/checked.data"
#include "res/src/images/dialog_title.data"
#include "res/src/images/earth.data"
#include "res/src/images/green_btn_n.data"
#include "res/src/images/green_btn_o.data"
#include "res/src/images/green_btn_p.data"
#include "res/src/images/info.data"
#include "res/src/images/left_off.data"
#include "res/src/images/left_on.data"
#include "res/src/images/middle_off.data"
#include "res/src/images/middle_on.data"
#include "res/src/images/muted.data"
#include "res/src/images/radio_checked.data"
#include "res/src/images/radio_unchecked.data"
#include "res/src/images/red_btn_n.data"
#include "res/src/images/red_btn_o.data"
#include "res/src/images/red_btn_p.data"
#include "res/src/images/right_off.data"
#include "res/src/images/right_on.data"
#include "res/src/images/unchecked.data"
#include "res/src/images/unmuted.data"
#include "res/src/theme/default.data"
#include "res/src/ui/dialog1.data"
#include "res/src/ui/dialog2.data"
#include "res/src/ui/window1.data"
ret_t resource_init() {
resource_manager_init(15);
resource_manager_add(font_ap);
resource_manager_add(font_default);
resource_manager_add(image_bricks);
resource_manager_add(image_checked);
resource_manager_add(image_dialog_title);
resource_manager_add(image_earth);
resource_manager_add(image_green_btn_n);
resource_manager_add(image_green_btn_o);
resource_manager_add(image_green_btn_p);
resource_manager_add(image_info);
resource_manager_add(image_left_off);
resource_manager_add(image_left_on);
resource_manager_add(image_middle_off);
resource_manager_add(image_middle_on);
resource_manager_add(image_muted);
resource_manager_add(image_radio_checked);
resource_manager_add(image_radio_unchecked);
resource_manager_add(image_red_btn_n);
resource_manager_add(image_red_btn_o);
resource_manager_add(image_red_btn_p);
resource_manager_add(image_right_off);
resource_manager_add(image_right_on);
resource_manager_add(image_unchecked);
resource_manager_add(image_unmuted);
resource_manager_add(theme_default);
resource_manager_add(ui_dialog1);
resource_manager_add(ui_dialog2);
resource_manager_add(ui_window1);
lftk_init_resources();
return RET_OK;
}