mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
678 lines
33 KiB
C++
678 lines
33 KiB
C++
#include "awtk.h"
|
|
#include "base/assets_manager.h"
|
|
#if !defined(WITH_FS_RES) || defined(AWTK_WEB)
|
|
#include "assets/default/inc/strings/zh_CN.data"
|
|
#include "assets/default/inc/strings/en_US.data"
|
|
#include "assets/default/inc/styles/slide_menu.data"
|
|
#include "assets/default/inc/styles/color_tile.data"
|
|
#include "assets/default/inc/styles/digit_clock.data"
|
|
#include "assets/default/inc/styles/dialog_toast.data"
|
|
#include "assets/default/inc/styles/edit.data"
|
|
#include "assets/default/inc/styles/modeless.data"
|
|
#include "assets/default/inc/styles/number.data"
|
|
#include "assets/default/inc/styles/keyboard.data"
|
|
#include "assets/default/inc/styles/color.data"
|
|
#include "assets/default/inc/styles/tab_bottom.data"
|
|
#include "assets/default/inc/styles/calibration.data"
|
|
#include "assets/default/inc/styles/tab_list.data"
|
|
#include "assets/default/inc/styles/gauge.data"
|
|
#include "assets/default/inc/styles/list_view_dynamic.data"
|
|
#include "assets/default/inc/styles/default.data"
|
|
#include "assets/default/inc/styles/system_bar_bottom.data"
|
|
#include "assets/default/inc/styles/5key_main.data"
|
|
#include "assets/default/inc/styles/big_font.data"
|
|
#include "assets/default/inc/styles/tab_top_compact.data"
|
|
#include "assets/default/inc/styles/dialog_info.data"
|
|
#include "assets/default/inc/styles/file_browser.data"
|
|
#include "assets/default/inc/styles/dialog_confirm.data"
|
|
#include "assets/default/inc/styles/image_value.data"
|
|
#include "assets/default/inc/styles/dialog.data"
|
|
#include "assets/default/inc/styles/tab_top.data"
|
|
#include "assets/default/inc/styles/button.data"
|
|
#include "assets/default/inc/styles/system_bar.data"
|
|
#include "assets/default/inc/styles/tab_bottom_compact.data"
|
|
#include "assets/default/inc/styles/dialog_warn.data"
|
|
#include "assets/default/inc/styles/image_packed.data"
|
|
#include "assets/default/inc/ui/menu_up_right.data"
|
|
#include "assets/default/inc/ui/kb_ascii.data"
|
|
#include "assets/default/inc/ui/vgcanvas.data"
|
|
#include "assets/default/inc/ui/rich_text1.data"
|
|
#include "assets/default/inc/ui/vpage_vtrans.data"
|
|
#include "assets/default/inc/ui/slider.data"
|
|
#include "assets/default/inc/ui/menu_point.data"
|
|
#include "assets/default/inc/ui/slide_menu.data"
|
|
#include "assets/default/inc/ui/radial_gradient.data"
|
|
#include "assets/default/inc/ui/menu_left_bottom.data"
|
|
#include "assets/default/inc/ui/auto_play_landscape.data"
|
|
#include "assets/default/inc/ui/color_picker_simple.data"
|
|
#include "assets/default/inc/ui/bidi.data"
|
|
#include "assets/default/inc/ui/animator_fscript.data"
|
|
#include "assets/default/inc/ui/slide_view_v3.data"
|
|
#include "assets/default/inc/ui/dialog_highlight_update_bg.data"
|
|
#include "assets/default/inc/ui/progress_circle.data"
|
|
#include "assets/default/inc/ui/accordion2.data"
|
|
#include "assets/default/inc/ui/combo_box.data"
|
|
#include "assets/default/inc/ui/color_tile.data"
|
|
#include "assets/default/inc/ui/kb_phone.data"
|
|
#include "assets/default/inc/ui/tab_scrollable.data"
|
|
#include "assets/default/inc/ui/main.data"
|
|
#include "assets/default/inc/ui/tab_button_view_page1.data"
|
|
#include "assets/default/inc/ui/digit_clock.data"
|
|
#include "assets/default/inc/ui/scroll_bar.data"
|
|
#include "assets/default/inc/ui/kb_foo.data"
|
|
#include "assets/default/inc/ui/lua.data"
|
|
#include "assets/default/inc/ui/linear_gradient.data"
|
|
#include "assets/default/inc/ui/preload.data"
|
|
#include "assets/default/inc/ui/images.data"
|
|
#include "assets/default/inc/ui/soft_keyboard.data"
|
|
#include "assets/default/inc/ui/animate_widget.data"
|
|
#include "assets/default/inc/ui/edit.data"
|
|
#include "assets/default/inc/ui/modeless.data"
|
|
#include "assets/default/inc/ui/close_window.data"
|
|
#include "assets/default/inc/ui/menu_up_left.data"
|
|
#include "assets/default/inc/ui/locale.data"
|
|
#include "assets/default/inc/ui/kb_ascii_t9.data"
|
|
#include "assets/default/inc/ui/kb_default_t9.data"
|
|
#include "assets/default/inc/ui/animator_layout.data"
|
|
#include "assets/default/inc/ui/kb_int.data"
|
|
#include "assets/default/inc/ui/tab_control.data"
|
|
#include "assets/default/inc/ui/slide_view_v2.data"
|
|
#include "assets/default/inc/ui/animation.data"
|
|
#include "assets/default/inc/ui/basic_fscript.data"
|
|
#include "assets/default/inc/ui/kb_int_floating.data"
|
|
#include "assets/default/inc/ui/keyboard.data"
|
|
#include "assets/default/inc/ui/kb_hex.data"
|
|
#include "assets/default/inc/ui/gauge_h.data"
|
|
#include "assets/default/inc/ui/popdown.data"
|
|
#include "assets/default/inc/ui/svg_test.data"
|
|
#include "assets/default/inc/ui/slide_view_remove.data"
|
|
#include "assets/default/inc/ui/color.data"
|
|
#include "assets/default/inc/ui/color_picker.data"
|
|
#include "assets/default/inc/ui/switch.data"
|
|
#include "assets/default/inc/ui/back_to_home.data"
|
|
#include "assets/default/inc/ui/menu_right_middle.data"
|
|
#include "assets/default/inc/ui/kb_default_t9ext.data"
|
|
#include "assets/default/inc/ui/dragger.data"
|
|
#include "assets/default/inc/ui/dialog2.data"
|
|
#include "assets/default/inc/ui/color_picker_hsv.data"
|
|
#include "assets/default/inc/ui/menu_down_right.data"
|
|
#include "assets/default/inc/ui/tab_bottom.data"
|
|
#include "assets/default/inc/ui/fruit.data"
|
|
#include "assets/default/inc/ui/list_view_m.data"
|
|
#include "assets/default/inc/ui/slide_view_h_loop.data"
|
|
#include "assets/default/inc/ui/main_fscript.data"
|
|
#include "assets/default/inc/ui/mutable_image.data"
|
|
#include "assets/default/inc/ui/drop_file.data"
|
|
#include "assets/default/inc/ui/calibration_win.data"
|
|
#include "assets/default/inc/ui/memtest.data"
|
|
#include "assets/default/inc/ui/list_view_sync.data"
|
|
#include "assets/default/inc/ui/slide_view_h2.data"
|
|
#include "assets/default/inc/ui/slide_view_h3.data"
|
|
#include "assets/default/inc/ui/folder_chooser.data"
|
|
#include "assets/default/inc/ui/slide_view_v_loop.data"
|
|
#include "assets/default/inc/ui/language.data"
|
|
#include "assets/default/inc/ui/kb_float.data"
|
|
#include "assets/default/inc/ui/htranslate.data"
|
|
#include "assets/default/inc/ui/tab_dynamic_list.data"
|
|
#include "assets/default/inc/ui/draggable.data"
|
|
#include "assets/default/inc/ui/tab_remove.data"
|
|
#include "assets/default/inc/ui/list_view_vh.data"
|
|
#include "assets/default/inc/ui/rich_text.data"
|
|
#include "assets/default/inc/ui/scroll_view.data"
|
|
#include "assets/default/inc/ui/overlay.data"
|
|
#include "assets/default/inc/ui/mledit.data"
|
|
#include "assets/default/inc/ui/menu_down_left.data"
|
|
#include "assets/default/inc/ui/svg_image.data"
|
|
#include "assets/default/inc/ui/tab_list.data"
|
|
#include "assets/default/inc/ui/animator.data"
|
|
#include "assets/default/inc/ui/slide_down.data"
|
|
#include "assets/default/inc/ui/value_anim.data"
|
|
#include "assets/default/inc/ui/gauge.data"
|
|
#include "assets/default/inc/ui/file_chooser_for_open.data"
|
|
#include "assets/default/inc/ui/scroll_view_h.data"
|
|
#include "assets/default/inc/ui/list_view_dynamic.data"
|
|
#include "assets/default/inc/ui/tab_invisible_compact.data"
|
|
#include "assets/default/inc/ui/menu_up_center.data"
|
|
#include "assets/default/inc/ui/slide_right.data"
|
|
#include "assets/default/inc/ui/scroll_bar_h.data"
|
|
#include "assets/default/inc/ui/spinbox.data"
|
|
#include "assets/default/inc/ui/label.data"
|
|
#include "assets/default/inc/ui/list_view_auto_resize.data"
|
|
#include "assets/default/inc/ui/gif_image.data"
|
|
#include "assets/default/inc/ui/menu_down_center.data"
|
|
#include "assets/default/inc/ui/test_view.data"
|
|
#include "assets/default/inc/ui/auto_play_portrait.data"
|
|
#include "assets/default/inc/ui/scroll_view_ym.data"
|
|
#include "assets/default/inc/ui/system_bar_bottom.data"
|
|
#include "assets/default/inc/ui/text_selector.data"
|
|
#include "assets/default/inc/ui/rich_text_view.data"
|
|
#include "assets/default/inc/ui/kb_default_5key.data"
|
|
#include "assets/default/inc/ui/5key_main.data"
|
|
#include "assets/default/inc/ui/big_font.data"
|
|
#include "assets/default/inc/ui/tab_top_compact.data"
|
|
#include "assets/default/inc/ui/dialog_highlight_dynamic.data"
|
|
#include "assets/default/inc/ui/slide_view_h.data"
|
|
#include "assets/default/inc/ui/spin_box.data"
|
|
#include "assets/default/inc/ui/dialogs.data"
|
|
#include "assets/default/inc/ui/selectm.data"
|
|
#include "assets/default/inc/ui/list_view.data"
|
|
#include "assets/default/inc/ui/stroke_gradient.data"
|
|
#include "assets/default/inc/ui/menu_left_middle.data"
|
|
#include "assets/default/inc/ui/slide_view_h1.data"
|
|
#include "assets/default/inc/ui/basic.data"
|
|
#include "assets/default/inc/ui/auto_play.data"
|
|
#include "assets/default/inc/ui/desktop.data"
|
|
#include "assets/default/inc/ui/file_browser.data"
|
|
#include "assets/default/inc/ui/color_picker_full.data"
|
|
#include "assets/default/inc/ui/dialog1.data"
|
|
#include "assets/default/inc/ui/dialog_highlight.data"
|
|
#include "assets/default/inc/ui/fade.data"
|
|
#include "assets/default/inc/ui/menu_right_top.data"
|
|
#include "assets/default/inc/ui/list_view_d_f.data"
|
|
#include "assets/default/inc/ui/image_list.data"
|
|
#include "assets/default/inc/ui/slide_view_v1.data"
|
|
#include "assets/default/inc/ui/test_fscript.data"
|
|
#include "assets/default/inc/ui/mono_test.data"
|
|
#include "assets/default/inc/ui/select1.data"
|
|
#include "assets/default/inc/ui/list_view_animate.data"
|
|
#include "assets/default/inc/ui/hscroll_label.data"
|
|
#include "assets/default/inc/ui/slide_left.data"
|
|
#include "assets/default/inc/ui/list_view_h1.data"
|
|
#include "assets/default/inc/ui/image_animation.data"
|
|
#include "assets/default/inc/ui/image_value.data"
|
|
#include "assets/default/inc/ui/slide_view.data"
|
|
#include "assets/default/inc/ui/time_clock.data"
|
|
#include "assets/default/inc/ui/grid.data"
|
|
#include "assets/default/inc/ui/tab_top.data"
|
|
#include "assets/default/inc/ui/slide_view_v.data"
|
|
#include "assets/default/inc/ui/top.data"
|
|
#include "assets/default/inc/ui/button.data"
|
|
#include "assets/default/inc/ui/edit_menu.data"
|
|
#include "assets/default/inc/ui/menu.data"
|
|
#include "assets/default/inc/ui/text_selector_fscript.data"
|
|
#include "assets/default/inc/ui/button_fscript.data"
|
|
#include "assets/default/inc/ui/file_chooser_for_save.data"
|
|
#include "assets/default/inc/ui/system_bar.data"
|
|
#include "assets/default/inc/ui/slide_view_appoint_remove.data"
|
|
#include "assets/default/inc/ui/accordion1.data"
|
|
#include "assets/default/inc/ui/menu_right_bottom.data"
|
|
#include "assets/default/inc/ui/list_view_d.data"
|
|
#include "assets/default/inc/ui/vtranslate.data"
|
|
#include "assets/default/inc/ui/dialog_highlight_static.data"
|
|
#include "assets/default/inc/ui/tab_invisible.data"
|
|
#include "assets/default/inc/ui/menu_left_top.data"
|
|
#include "assets/default/inc/ui/kb_ufloat.data"
|
|
#include "assets/default/inc/ui/kb_default.data"
|
|
#include "assets/default/inc/ui/tab_button_view_page2.data"
|
|
#include "assets/default/inc/ui/slide_view_remove_loop.data"
|
|
#include "assets/default/inc/ui/slide_up.data"
|
|
#include "assets/default/inc/ui/rich_text2.data"
|
|
#include "assets/default/inc/ui/list_view_h.data"
|
|
#include "assets/default/inc/ui/floating_keyboard.data"
|
|
#include "assets/default/inc/ui/color_picker_rgb.data"
|
|
#include "assets/default/inc/ui/tab_bottom_compact.data"
|
|
#include "assets/default/inc/ui/popup.data"
|
|
#include "assets/default/inc/ui/serial.data"
|
|
#include "assets/default/inc/ui/image_packed.data"
|
|
#include "assets/default/inc/ui/kb_uint.data"
|
|
#include "assets/default/inc/ui/scroll_view_v.data"
|
|
#include "assets/default/inc/ui/slide_view_animating_time.data"
|
|
#include "assets/default/inc/ui/win_anim/window.data"
|
|
#include "assets/default/inc/ui/win_anim/center.data"
|
|
#include "assets/default/inc/ui/win_anim/dialog.data"
|
|
#include "assets/default/inc/ui/win_anim/popup.data"
|
|
#include "assets/default/inc/xml/test.data"
|
|
#include "assets/default/inc/data/com_zlg_app_json.data"
|
|
#include "assets/default/inc/data/gpinyin_dat.data"
|
|
#include "assets/default/inc/data/test_dat.data"
|
|
#include "assets/default/inc/data/conf_test_json.data"
|
|
#include "assets/default/inc/data/custom_keys_json.data"
|
|
#include "assets/default/inc/data/suggest_words_zh_cn_dat.data"
|
|
#include "assets/default/inc/data/test_json.data"
|
|
#include "assets/default/inc/data/a_b_c_any.data"
|
|
#ifndef AWTK_WEB
|
|
#ifdef WITH_STB_IMAGE
|
|
#else /*WITH_STB_IMAGE*/
|
|
#include "assets/default/inc/images/arrow_right_o.data"
|
|
#include "assets/default/inc/images/image_packed_bg.data"
|
|
#include "assets/default/inc/images/num_4.data"
|
|
#include "assets/default/inc/images/0.data"
|
|
#include "assets/default/inc/images/close_o.data"
|
|
#include "assets/default/inc/images/battery_1.data"
|
|
#include "assets/default/inc/images/slider_bg.data"
|
|
#include "assets/default/inc/images/ani3.data"
|
|
#include "assets/default/inc/images/progress_circle.data"
|
|
#include "assets/default/inc/images/muted.data"
|
|
#include "assets/default/inc/images/file.data"
|
|
#include "assets/default/inc/images/num_plus.data"
|
|
#include "assets/default/inc/images/gauge_bg.data"
|
|
#include "assets/default/inc/images/num_8.data"
|
|
#include "assets/default/inc/images/earth.data"
|
|
#include "assets/default/inc/images/flag_none.data"
|
|
#include "assets/default/inc/images/shift.data"
|
|
#include "assets/default/inc/images/arrow_up_p.data"
|
|
#include "assets/default/inc/images/discovery_active.data"
|
|
#include "assets/default/inc/images/en.data"
|
|
#include "assets/default/inc/images/right_on.data"
|
|
#include "assets/default/inc/images/discovery.data"
|
|
#include "assets/default/inc/images/collapse.data"
|
|
#include "assets/default/inc/images/rgb.data"
|
|
#include "assets/default/inc/images/num_9.data"
|
|
#include "assets/default/inc/images/dot.data"
|
|
#include "assets/default/inc/images/ani2.data"
|
|
#include "assets/default/inc/images/battery_0.data"
|
|
#include "assets/default/inc/images/find.data"
|
|
#include "assets/default/inc/images/slider_fg.data"
|
|
#include "assets/default/inc/images/close_n.data"
|
|
#include "assets/default/inc/images/left_on.data"
|
|
#include "assets/default/inc/images/1.data"
|
|
#include "assets/default/inc/images/question.data"
|
|
#include "assets/default/inc/images/invisible.data"
|
|
#include "assets/default/inc/images/image_packed_fg.data"
|
|
#include "assets/default/inc/images/num_5.data"
|
|
#include "assets/default/inc/images/num_dot.data"
|
|
#include "assets/default/inc/images/arrow_right_n.data"
|
|
#include "assets/default/inc/images/bee.data"
|
|
#include "assets/default/inc/images/visible.data"
|
|
#include "assets/default/inc/images/clock_bg.data"
|
|
#include "assets/default/inc/images/me_active.data"
|
|
#include "assets/default/inc/images/cursor.data"
|
|
#include "assets/default/inc/images/clock_minute.data"
|
|
#include "assets/default/inc/images/switch.data"
|
|
#include "assets/default/inc/images/checked.data"
|
|
#include "assets/default/inc/images/middle_off.data"
|
|
#include "assets/default/inc/images/close_p.data"
|
|
#include "assets/default/inc/images/num_minus.data"
|
|
#include "assets/default/inc/images/folder.data"
|
|
#include "assets/default/inc/images/zh.data"
|
|
#include "assets/default/inc/images/arrow_right_p.data"
|
|
#include "assets/default/inc/images/ani9.data"
|
|
#include "assets/default/inc/images/anib.data"
|
|
#include "assets/default/inc/images/num_2.data"
|
|
#include "assets/default/inc/images/arrow_up_o.data"
|
|
#include "assets/default/inc/images/clock.data"
|
|
#include "assets/default/inc/images/empty.data"
|
|
#include "assets/default/inc/images/ani5.data"
|
|
#include "assets/default/inc/images/ani4.data"
|
|
#include "assets/default/inc/images/left_off.data"
|
|
#include "assets/default/inc/images/radio_unchecked.data"
|
|
#include "assets/default/inc/images/rgba.data"
|
|
#include "assets/default/inc/images/shifton.data"
|
|
#include "assets/default/inc/images/arrow_up_n.data"
|
|
#include "assets/default/inc/images/num_3.data"
|
|
#include "assets/default/inc/images/msg_active.data"
|
|
#include "assets/default/inc/images/anic.data"
|
|
#include "assets/default/inc/images/ani8.data"
|
|
#include "assets/default/inc/images/active_dot.data"
|
|
#include "assets/default/inc/images/close_d.data"
|
|
#include "assets/default/inc/images/right_off.data"
|
|
#include "assets/default/inc/images/unmuted.data"
|
|
#include "assets/default/inc/images/img_slider_icon.data"
|
|
#include "assets/default/inc/images/img_slider_bg.data"
|
|
#include "assets/default/inc/images/cross.data"
|
|
#include "assets/default/inc/images/expand.data"
|
|
#include "assets/default/inc/images/backspace.data"
|
|
#include "assets/default/inc/images/arrow_left_p.data"
|
|
#include "assets/default/inc/images/edit_clear_n.data"
|
|
#include "assets/default/inc/images/clock_second.data"
|
|
#include "assets/default/inc/images/contact.data"
|
|
#include "assets/default/inc/images/bricks.data"
|
|
#include "assets/default/inc/images/dialog_title.data"
|
|
#include "assets/default/inc/images/cursor_hand.data"
|
|
#include "assets/default/inc/images/ani7.data"
|
|
#include "assets/default/inc/images/play_p.data"
|
|
#include "assets/default/inc/images/battery_5.data"
|
|
#include "assets/default/inc/images/green_btn_p.data"
|
|
#include "assets/default/inc/images/red_btn_p.data"
|
|
#include "assets/default/inc/images/me.data"
|
|
#include "assets/default/inc/images/num_0.data"
|
|
#include "assets/default/inc/images/arrow_down_p.data"
|
|
#include "assets/default/inc/images/num_1.data"
|
|
#include "assets/default/inc/images/warn.data"
|
|
#include "assets/default/inc/images/contact_active.data"
|
|
#include "assets/default/inc/images/slider_drag_o.data"
|
|
#include "assets/default/inc/images/battery_4.data"
|
|
#include "assets/default/inc/images/ani6.data"
|
|
#include "assets/default/inc/images/message.data"
|
|
#include "assets/default/inc/images/edit_clear_o.data"
|
|
#include "assets/default/inc/images/img_slider_fg.data"
|
|
#include "assets/default/inc/images/ania.data"
|
|
#include "assets/default/inc/images/ani1.data"
|
|
#include "assets/default/inc/images/battery_3.data"
|
|
#include "assets/default/inc/images/logo.data"
|
|
#include "assets/default/inc/images/arrow_left_o.data"
|
|
#include "assets/default/inc/images/2.data"
|
|
#include "assets/default/inc/images/num_6.data"
|
|
#include "assets/default/inc/images/check.data"
|
|
#include "assets/default/inc/images/return_up.data"
|
|
#include "assets/default/inc/images/middle_on.data"
|
|
#include "assets/default/inc/images/arrow_down_o.data"
|
|
#include "assets/default/inc/images/radio_checked.data"
|
|
#include "assets/default/inc/images/red_btn_o.data"
|
|
#include "assets/default/inc/images/green_btn_o.data"
|
|
#include "assets/default/inc/images/slider_v_bg.data"
|
|
#include "assets/default/inc/images/clock_hour.data"
|
|
#include "assets/default/inc/images/flag_CN.data"
|
|
#include "assets/default/inc/images/play_o.data"
|
|
#include "assets/default/inc/images/play_n.data"
|
|
#include "assets/default/inc/images/slider_drag.data"
|
|
#include "assets/default/inc/images/unchecked.data"
|
|
#include "assets/default/inc/images/gauge_pointer.data"
|
|
#include "assets/default/inc/images/green_btn_n.data"
|
|
#include "assets/default/inc/images/red_btn_n.data"
|
|
#include "assets/default/inc/images/slider_drag_p.data"
|
|
#include "assets/default/inc/images/slider_v_fg.data"
|
|
#include "assets/default/inc/images/arrow_down_n.data"
|
|
#include "assets/default/inc/images/info.data"
|
|
#include "assets/default/inc/images/flag_US.data"
|
|
#include "assets/default/inc/images/msg.data"
|
|
#include "assets/default/inc/images/num_7.data"
|
|
#include "assets/default/inc/images/cursor_text.data"
|
|
#include "assets/default/inc/images/3.data"
|
|
#include "assets/default/inc/images/arrow_left_n.data"
|
|
#include "assets/default/inc/images/edit_clear_p.data"
|
|
#include "assets/default/inc/images/battery_2.data"
|
|
#endif /*WITH_STB_IMAGE*/
|
|
#ifdef WITH_TRUETYPE_FONT
|
|
#else /*WITH_TRUETYPE_FONT*/
|
|
#include "assets/default/inc/fonts/default_20.data"
|
|
#include "assets/default/inc/fonts/default_16.data"
|
|
#include "assets/default/inc/fonts/default_18.data"
|
|
#include "assets/default/inc/fonts/default_24.data"
|
|
#endif /*WITH_TRUETYPE_FONT*/
|
|
#endif /*AWTK_WEB*/
|
|
#ifdef WITH_VGCANVAS
|
|
#include "assets/default/inc/images/paths_data_02_t.bsvg"
|
|
#include "assets/default/inc/images/pointer_4.bsvg"
|
|
#include "assets/default/inc/images/htest.bsvg"
|
|
#include "assets/default/inc/images/ball.bsvg"
|
|
#include "assets/default/inc/images/shapes_polyline_01_t.bsvg"
|
|
#include "assets/default/inc/images/china.bsvg"
|
|
#include "assets/default/inc/images/meter_pointer.bsvg"
|
|
#include "assets/default/inc/images/pservers_grad_99_b.bsvg"
|
|
#include "assets/default/inc/images/tiger.bsvg"
|
|
#include "assets/default/inc/images/shapes_line_01_t.bsvg"
|
|
#include "assets/default/inc/images/painting_stroke_05_t.bsvg"
|
|
#include "assets/default/inc/images/paths_data_01_t.bsvg"
|
|
#include "assets/default/inc/images/pointer_1.bsvg"
|
|
#include "assets/default/inc/images/pointer.bsvg"
|
|
#include "assets/default/inc/images/shapes_circle_01_t.bsvg"
|
|
#include "assets/default/inc/images/shapes_rect_01_t.bsvg"
|
|
#include "assets/default/inc/images/girl.bsvg"
|
|
#include "assets/default/inc/images/shapes_ellipse_01_t.bsvg"
|
|
#include "assets/default/inc/images/shapes_polygon_01_t.bsvg"
|
|
#endif /*WITH_VGCANVAS*/
|
|
#endif /*!defined(WITH_FS_RES) || defined(AWTK_WEB)*/
|
|
|
|
ret_t assets_init(void) {
|
|
assets_manager_t* am = assets_manager();
|
|
assets_manager_set_theme(am, "default");
|
|
|
|
#if defined(WITH_FS_RES) && !defined(AWTK_WEB)
|
|
assets_manager_preload(am, ASSET_TYPE_STYLE, "default");
|
|
#else /*defined(WITH_FS_RES) && !defined(AWTK_WEB)*/
|
|
assets_manager_add(am, strings_zh_CN_default);
|
|
assets_manager_add(am, strings_en_US_default);
|
|
assets_manager_add(am, style_slide_menu_default);
|
|
assets_manager_add(am, style_color_tile_default);
|
|
assets_manager_add(am, style_digit_clock_default);
|
|
assets_manager_add(am, style_dialog_toast_default);
|
|
assets_manager_add(am, style_edit_default);
|
|
assets_manager_add(am, style_modeless_default);
|
|
assets_manager_add(am, style_number_default);
|
|
assets_manager_add(am, style_keyboard_default);
|
|
assets_manager_add(am, style_color_default);
|
|
assets_manager_add(am, style_tab_bottom_default);
|
|
assets_manager_add(am, style_calibration_default);
|
|
assets_manager_add(am, style_tab_list_default);
|
|
assets_manager_add(am, style_gauge_default);
|
|
assets_manager_add(am, style_list_view_dynamic_default);
|
|
assets_manager_add(am, style_default_default);
|
|
assets_manager_add(am, style_system_bar_bottom_default);
|
|
assets_manager_add(am, style_5key_main_default);
|
|
assets_manager_add(am, style_big_font_default);
|
|
assets_manager_add(am, style_tab_top_compact_default);
|
|
assets_manager_add(am, style_dialog_info_default);
|
|
assets_manager_add(am, style_file_browser_default);
|
|
assets_manager_add(am, style_dialog_confirm_default);
|
|
assets_manager_add(am, style_image_value_default);
|
|
assets_manager_add(am, style_dialog_default);
|
|
assets_manager_add(am, style_tab_top_default);
|
|
assets_manager_add(am, style_button_default);
|
|
assets_manager_add(am, style_system_bar_default);
|
|
assets_manager_add(am, style_tab_bottom_compact_default);
|
|
assets_manager_add(am, style_dialog_warn_default);
|
|
assets_manager_add(am, style_image_packed_default);
|
|
assets_manager_add(am, ui_menu_up_right_default);
|
|
assets_manager_add(am, ui_kb_ascii_default);
|
|
assets_manager_add(am, ui_vgcanvas_default);
|
|
assets_manager_add(am, ui_rich_text1_default);
|
|
assets_manager_add(am, ui_vpage_vtrans_default);
|
|
assets_manager_add(am, ui_slider_default);
|
|
assets_manager_add(am, ui_menu_point_default);
|
|
assets_manager_add(am, ui_slide_menu_default);
|
|
assets_manager_add(am, ui_radial_gradient_default);
|
|
assets_manager_add(am, ui_menu_left_bottom_default);
|
|
assets_manager_add(am, ui_auto_play_landscape_default);
|
|
assets_manager_add(am, ui_color_picker_simple_default);
|
|
assets_manager_add(am, ui_bidi_default);
|
|
assets_manager_add(am, ui_animator_fscript_default);
|
|
assets_manager_add(am, ui_slide_view_v3_default);
|
|
assets_manager_add(am, ui_dialog_highlight_update_bg_default);
|
|
assets_manager_add(am, ui_progress_circle_default);
|
|
assets_manager_add(am, ui_accordion2_default);
|
|
assets_manager_add(am, ui_combo_box_default);
|
|
assets_manager_add(am, ui_color_tile_default);
|
|
assets_manager_add(am, ui_kb_phone_default);
|
|
assets_manager_add(am, ui_tab_scrollable_default);
|
|
assets_manager_add(am, ui_main_default);
|
|
assets_manager_add(am, ui_tab_button_view_page1_default);
|
|
assets_manager_add(am, ui_digit_clock_default);
|
|
assets_manager_add(am, ui_scroll_bar_default);
|
|
assets_manager_add(am, ui_kb_foo_default);
|
|
assets_manager_add(am, ui_lua_default);
|
|
assets_manager_add(am, ui_linear_gradient_default);
|
|
assets_manager_add(am, ui_preload_default);
|
|
assets_manager_add(am, ui_images_default);
|
|
assets_manager_add(am, ui_soft_keyboard_default);
|
|
assets_manager_add(am, ui_animate_widget_default);
|
|
assets_manager_add(am, ui_edit_default);
|
|
assets_manager_add(am, ui_modeless_default);
|
|
assets_manager_add(am, ui_close_window_default);
|
|
assets_manager_add(am, ui_menu_up_left_default);
|
|
assets_manager_add(am, ui_locale_default);
|
|
assets_manager_add(am, ui_kb_ascii_t9_default);
|
|
assets_manager_add(am, ui_kb_default_t9_default);
|
|
assets_manager_add(am, ui_animator_layout_default);
|
|
assets_manager_add(am, ui_kb_int_default);
|
|
assets_manager_add(am, ui_tab_control_default);
|
|
assets_manager_add(am, ui_slide_view_v2_default);
|
|
assets_manager_add(am, ui_animation_default);
|
|
assets_manager_add(am, ui_basic_fscript_default);
|
|
assets_manager_add(am, ui_kb_int_floating_default);
|
|
assets_manager_add(am, ui_keyboard_default);
|
|
assets_manager_add(am, ui_kb_hex_default);
|
|
assets_manager_add(am, ui_gauge_h_default);
|
|
assets_manager_add(am, ui_popdown_default);
|
|
assets_manager_add(am, ui_svg_test_default);
|
|
assets_manager_add(am, ui_slide_view_remove_default);
|
|
assets_manager_add(am, ui_color_default);
|
|
assets_manager_add(am, ui_color_picker_default);
|
|
assets_manager_add(am, ui_switch_default);
|
|
assets_manager_add(am, ui_back_to_home_default);
|
|
assets_manager_add(am, ui_menu_right_middle_default);
|
|
assets_manager_add(am, ui_kb_default_t9ext_default);
|
|
assets_manager_add(am, ui_dragger_default);
|
|
assets_manager_add(am, ui_dialog2_default);
|
|
assets_manager_add(am, ui_color_picker_hsv_default);
|
|
assets_manager_add(am, ui_menu_down_right_default);
|
|
assets_manager_add(am, ui_tab_bottom_default);
|
|
assets_manager_add(am, ui_fruit_default);
|
|
assets_manager_add(am, ui_list_view_m_default);
|
|
assets_manager_add(am, ui_slide_view_h_loop_default);
|
|
assets_manager_add(am, ui_main_fscript_default);
|
|
assets_manager_add(am, ui_mutable_image_default);
|
|
assets_manager_add(am, ui_drop_file_default);
|
|
assets_manager_add(am, ui_calibration_win_default);
|
|
assets_manager_add(am, ui_memtest_default);
|
|
assets_manager_add(am, ui_list_view_sync_default);
|
|
assets_manager_add(am, ui_slide_view_h2_default);
|
|
assets_manager_add(am, ui_slide_view_h3_default);
|
|
assets_manager_add(am, ui_folder_chooser_default);
|
|
assets_manager_add(am, ui_slide_view_v_loop_default);
|
|
assets_manager_add(am, ui_language_default);
|
|
assets_manager_add(am, ui_kb_float_default);
|
|
assets_manager_add(am, ui_htranslate_default);
|
|
assets_manager_add(am, ui_tab_dynamic_list_default);
|
|
assets_manager_add(am, ui_draggable_default);
|
|
assets_manager_add(am, ui_tab_remove_default);
|
|
assets_manager_add(am, ui_list_view_vh_default);
|
|
assets_manager_add(am, ui_rich_text_default);
|
|
assets_manager_add(am, ui_scroll_view_default);
|
|
assets_manager_add(am, ui_overlay_default);
|
|
assets_manager_add(am, ui_mledit_default);
|
|
assets_manager_add(am, ui_menu_down_left_default);
|
|
assets_manager_add(am, ui_svg_image_default);
|
|
assets_manager_add(am, ui_tab_list_default);
|
|
assets_manager_add(am, ui_animator_default);
|
|
assets_manager_add(am, ui_slide_down_default);
|
|
assets_manager_add(am, ui_value_anim_default);
|
|
assets_manager_add(am, ui_gauge_default);
|
|
assets_manager_add(am, ui_file_chooser_for_open_default);
|
|
assets_manager_add(am, ui_scroll_view_h_default);
|
|
assets_manager_add(am, ui_list_view_dynamic_default);
|
|
assets_manager_add(am, ui_tab_invisible_compact_default);
|
|
assets_manager_add(am, ui_menu_up_center_default);
|
|
assets_manager_add(am, ui_slide_right_default);
|
|
assets_manager_add(am, ui_scroll_bar_h_default);
|
|
assets_manager_add(am, ui_spinbox_default);
|
|
assets_manager_add(am, ui_label_default);
|
|
assets_manager_add(am, ui_list_view_auto_resize_default);
|
|
assets_manager_add(am, ui_gif_image_default);
|
|
assets_manager_add(am, ui_menu_down_center_default);
|
|
assets_manager_add(am, ui_test_view_default);
|
|
assets_manager_add(am, ui_auto_play_portrait_default);
|
|
assets_manager_add(am, ui_scroll_view_ym_default);
|
|
assets_manager_add(am, ui_system_bar_bottom_default);
|
|
assets_manager_add(am, ui_text_selector_default);
|
|
assets_manager_add(am, ui_rich_text_view_default);
|
|
assets_manager_add(am, ui_kb_default_5key_default);
|
|
assets_manager_add(am, ui_5key_main_default);
|
|
assets_manager_add(am, ui_big_font_default);
|
|
assets_manager_add(am, ui_tab_top_compact_default);
|
|
assets_manager_add(am, ui_dialog_highlight_dynamic_default);
|
|
assets_manager_add(am, ui_slide_view_h_default);
|
|
assets_manager_add(am, ui_spin_box_default);
|
|
assets_manager_add(am, ui_dialogs_default);
|
|
assets_manager_add(am, ui_selectm_default);
|
|
assets_manager_add(am, ui_list_view_default);
|
|
assets_manager_add(am, ui_stroke_gradient_default);
|
|
assets_manager_add(am, ui_menu_left_middle_default);
|
|
assets_manager_add(am, ui_slide_view_h1_default);
|
|
assets_manager_add(am, ui_basic_default);
|
|
assets_manager_add(am, ui_auto_play_default);
|
|
assets_manager_add(am, ui_desktop_default);
|
|
assets_manager_add(am, ui_file_browser_default);
|
|
assets_manager_add(am, ui_color_picker_full_default);
|
|
assets_manager_add(am, ui_dialog1_default);
|
|
assets_manager_add(am, ui_dialog_highlight_default);
|
|
assets_manager_add(am, ui_fade_default);
|
|
assets_manager_add(am, ui_menu_right_top_default);
|
|
assets_manager_add(am, ui_list_view_d_f_default);
|
|
assets_manager_add(am, ui_image_list_default);
|
|
assets_manager_add(am, ui_slide_view_v1_default);
|
|
assets_manager_add(am, ui_test_fscript_default);
|
|
assets_manager_add(am, ui_mono_test_default);
|
|
assets_manager_add(am, ui_select1_default);
|
|
assets_manager_add(am, ui_list_view_animate_default);
|
|
assets_manager_add(am, ui_hscroll_label_default);
|
|
assets_manager_add(am, ui_slide_left_default);
|
|
assets_manager_add(am, ui_list_view_h1_default);
|
|
assets_manager_add(am, ui_image_animation_default);
|
|
assets_manager_add(am, ui_image_value_default);
|
|
assets_manager_add(am, ui_slide_view_default);
|
|
assets_manager_add(am, ui_time_clock_default);
|
|
assets_manager_add(am, ui_grid_default);
|
|
assets_manager_add(am, ui_tab_top_default);
|
|
assets_manager_add(am, ui_slide_view_v_default);
|
|
assets_manager_add(am, ui_top_default);
|
|
assets_manager_add(am, ui_button_default);
|
|
assets_manager_add(am, ui_edit_menu_default);
|
|
assets_manager_add(am, ui_menu_default);
|
|
assets_manager_add(am, ui_text_selector_fscript_default);
|
|
assets_manager_add(am, ui_button_fscript_default);
|
|
assets_manager_add(am, ui_file_chooser_for_save_default);
|
|
assets_manager_add(am, ui_system_bar_default);
|
|
assets_manager_add(am, ui_slide_view_appoint_remove_default);
|
|
assets_manager_add(am, ui_accordion1_default);
|
|
assets_manager_add(am, ui_menu_right_bottom_default);
|
|
assets_manager_add(am, ui_list_view_d_default);
|
|
assets_manager_add(am, ui_vtranslate_default);
|
|
assets_manager_add(am, ui_dialog_highlight_static_default);
|
|
assets_manager_add(am, ui_tab_invisible_default);
|
|
assets_manager_add(am, ui_menu_left_top_default);
|
|
assets_manager_add(am, ui_kb_ufloat_default);
|
|
assets_manager_add(am, ui_kb_default_default);
|
|
assets_manager_add(am, ui_tab_button_view_page2_default);
|
|
assets_manager_add(am, ui_slide_view_remove_loop_default);
|
|
assets_manager_add(am, ui_slide_up_default);
|
|
assets_manager_add(am, ui_rich_text2_default);
|
|
assets_manager_add(am, ui_list_view_h_default);
|
|
assets_manager_add(am, ui_floating_keyboard_default);
|
|
assets_manager_add(am, ui_color_picker_rgb_default);
|
|
assets_manager_add(am, ui_tab_bottom_compact_default);
|
|
assets_manager_add(am, ui_popup_default);
|
|
assets_manager_add(am, ui_serial_default);
|
|
assets_manager_add(am, ui_image_packed_default);
|
|
assets_manager_add(am, ui_kb_uint_default);
|
|
assets_manager_add(am, ui_scroll_view_v_default);
|
|
assets_manager_add(am, ui_slide_view_animating_time_default);
|
|
assets_manager_add(am, ui_window_default_win_anim);
|
|
assets_manager_add(am, ui_center_default_win_anim);
|
|
assets_manager_add(am, ui_dialog_default_win_anim);
|
|
assets_manager_add(am, ui_popup_default_win_anim);
|
|
assets_manager_add(am, xml_test_default);
|
|
assets_manager_add(am, data_com_zlg_app_json_default);
|
|
assets_manager_add(am, data_gpinyin_dat_default);
|
|
assets_manager_add(am, data_test_dat_default);
|
|
assets_manager_add(am, data_conf_test_json_default);
|
|
assets_manager_add(am, data_custom_keys_json_default);
|
|
assets_manager_add(am, data_suggest_words_zh_cn_dat_default);
|
|
assets_manager_add(am, data_test_json_default);
|
|
assets_manager_add(am, data_a_b_c_any_default);
|
|
#ifndef AWTK_WEB
|
|
#ifdef WITH_TRUETYPE_FONT
|
|
#else /*WITH_TRUETYPE_FONT*/
|
|
assets_manager_add(am, font_default_20_default);
|
|
assets_manager_add(am, font_default_16_default);
|
|
assets_manager_add(am, font_default_18_default);
|
|
assets_manager_add(am, font_default_24_default);
|
|
#endif /*WITH_TRUETYPE_FONT*/
|
|
#endif /*AWTK_WEB*/
|
|
#ifdef WITH_VGCANVAS
|
|
assets_manager_add(am, image_paths_data_02_t_default);
|
|
assets_manager_add(am, image_pointer_4_default);
|
|
assets_manager_add(am, image_htest_default);
|
|
assets_manager_add(am, image_ball_default);
|
|
assets_manager_add(am, image_shapes_polyline_01_t_default);
|
|
assets_manager_add(am, image_china_default);
|
|
assets_manager_add(am, image_meter_pointer_default);
|
|
assets_manager_add(am, image_pservers_grad_99_b_default);
|
|
assets_manager_add(am, image_tiger_default);
|
|
assets_manager_add(am, image_shapes_line_01_t_default);
|
|
assets_manager_add(am, image_painting_stroke_05_t_default);
|
|
assets_manager_add(am, image_paths_data_01_t_default);
|
|
assets_manager_add(am, image_pointer_1_default);
|
|
assets_manager_add(am, image_pointer_default);
|
|
assets_manager_add(am, image_shapes_circle_01_t_default);
|
|
assets_manager_add(am, image_shapes_rect_01_t_default);
|
|
assets_manager_add(am, image_girl_default);
|
|
assets_manager_add(am, image_shapes_ellipse_01_t_default);
|
|
assets_manager_add(am, image_shapes_polygon_01_t_default);
|
|
#endif /*WITH_VGCANVAS*/
|
|
#endif /*defined(WITH_FS_RES) && !defined(AWTK_WEB)*/
|
|
|
|
tk_init_assets();
|
|
return RET_OK;
|
|
}
|