📄 wgui_categories_util.h
字号:
extern void leave_idle_screen(void);
extern MMI_BOOL if_full_screen_hide_status_icons(void);
extern void reset_title_status_icon(void);
extern void close_title_status_icon(void);
extern void show_title_status_icon(void);
extern U8 history_valid(U16 history_ID, U16 category_screen_ID);
extern void change_list_menu_category_history(U8 *history_buffer, S32 new_highlighted_index, S32 new_n_items, U8 flag);
extern void create_list_menu_category_history(
S32 history_ID,
U8 *history_buffer,
S32 new_highlighted_index,
S32 new_n_items,
U8 flag);
extern U8 set_list_menu_category_history(U16 history_ID, U8 *history_buffer);
extern void set_list_menu_category_history_state(U16 history_ID, U8 *history_buffer, S8 state); /* MTK 2004-02-12 Wilson */
extern void change_cat184_list_menu_history_highlighted_item(S32 index, U8 *history_buffer); /* MTK Leo add, for SMS updating list */
extern void get_list_menu_category_history(U16 history_ID, U8 *history_buffer);
extern S32 get_list_menu_category_history_size(void);
extern S8 get_list_menu_category_history_state(U16 history_ID, U8 *history_buffer); /* MTK 2004-02-12 Wilson */
extern U8 set_matrix_menu_category_history(U16 history_ID, U8 *history_buffer);
extern void get_matrix_menu_category_history(U16 history_ID, U8 *history_buffer);
extern U8 set_object_list_category_history(U16 history_ID, U8 *history_buffer, S32 *index);
extern void get_object_list_category_history(U16 history_ID, U8 *history_buffer, S32 *index);
extern void get_slide_control_category_history(U16 history_ID, U8 *history_buffer);
extern U8 set_slide_control_category_history(U16 history_ID, U8 *history_buffer);
/* MTK Leo add 20050225, for new list_matrix menu style */
#ifdef __MMI_BI_DEGREE_MAIN_MENU_STYLE__
extern U8 set_list_matrix_menu_category_history(U16 history_ID, U8 *history_buffer);
extern void get_list_matrix_menu_category_history(U16 history_ID, U8 *history_buffer);
#endif /* __MMI_BI_DEGREE_MAIN_MENU_STYLE__ */
/* MTK Leo add 20050225 end */
extern U8 set_dialer_inputbox_category_history(U16 history_ID, U8 *history_buffer);
extern void get_dialer_inputbox_category_history(U16 history_ID, U8 *history_buffer);
extern U8 set_panel_category_history(U16 history_ID, U8 *history_buffer);
extern void get_panel_category_history(U16 history_ID, U8 *history_buffer);
extern void wgui_pen_set_curr_menuitem_wait_longpress(void);
extern void wgui_save_key_handlers(void);
extern void wgui_execute_key_handler(S32 key_code, S32 key_event);
extern void wgui_restore_key_handlers(void);
extern void hide_status_icons_bar0(void);
extern void hide_status_icons_bar1(void);
/* 041205 Calvin added to support wallpaper ob bottom */
extern void hide_status_icons_bar0_by_transparent(void);
extern void wgui_set_wallpaper_on_bottom(MMI_BOOL state);
extern void wgui_reset_wallpaper_on_bottom(void);
extern MMI_BOOL wgui_is_wallpaper_on_bottom(void);
/* Calvin end */
/* 071205 Calvin added */
extern void wgui_set_disable_shortcut_display(void);
extern void wgui_reset_disable_shortcut_display(void);
extern BOOL wgui_is_disable_shortcut_display(void);
/* 071205 Calvin end */
extern void ShowStatusIconsTitle(void);
extern void show_softkey_background(void);
extern void MMI_hide_left_softkey(void);
extern void MMI_hide_right_softkey(void);
extern void register_default_hide_softkeys(void);
extern void register_default_hide_softkeys_to_transparent(void);
extern void ChangeLeftSoftkey(U16 s, U16 i);
extern void ChangeRightSoftkey(U16 s, U16 i);
extern void EnableLeftSoftkey(U16 s, U16 i);
extern void DisableLeftSoftkey(U16 s, U16 i);
extern void EnableRightSoftkey(U16 s, U16 i);
extern void DisableRightSoftkey(U16 s, U16 i);
extern void SetLeftSoftkeyAlwaysKeyUpByPen(void);
extern void SetRightSoftkeyAlwaysKeyUpByPen(void);
extern void SetLeftSoftkeyFunction(void (*f) (void), MMI_key_event_type k);
extern void SetRightSoftkeyFunction(void (*f) (void), MMI_key_event_type k);
#ifdef __MMI_WGUI_CSK_ENABLE__
extern void ChangeCenterSoftkey(U16 s, U16 i);
extern void EnableCenterSoftkey(U16 s, U16 i);
extern void ResetCenterSoftkey(void);
extern void SetCenterSoftkeyAlwaysKeyUpByPen(void);
extern void SetCenterSoftkeyFunction(void (*f) (void), MMI_key_event_type k);
#endif /* __MMI_WGUI_CSK_ENABLE__ */
/* 030705 Calvin added */
extern void ChangeLeftSoftkeyByStringLength(UI_string_type s, PU8 i);
extern void ChangeRightSoftkeyByStringLength(UI_string_type s, PU8 i);
extern void ChangeLeftSoftkeyByString(UI_string_type s, PU8 i);
extern void ChangeRightSoftkeyByString(UI_string_type s, PU8 i);
/* Calvin end */
extern void resize_fixed_list_to_content_height(void);
extern void toggle_check_list_handle_left_softkey_up(void);
extern void special_check_list_handle_left_softkey_up(void);
extern void toggle_check_list_handle_item_select(S32 h);
void SetCheckboxToggleRightSoftkeyFunctions(void (*done_function) (void), void (*back_function) (void));
extern void standard_check_list_handle_item_select(S32 h);
extern void standard_check_list_handle_left_softkey_up(void);
extern void standard_check_list_handle_left_softkey_up(void);
extern void radio_list_handle_item_select(S32 h);
extern void radio_list_handle_item_select_no_draw(S32 h);
extern UI_string_type get_asyncdynamic_item_text(S32 index);
extern void asyncdynamic_list_highlight_handler(S32 item_index);
extern void set_asyncdynamic_pop_up_descriptions(S32 highlighted_item);
void RegisterHighlightHandler(void (*f) (S32 item_index));
extern void MMI_dummy_highlight_handler(S32 item_index);
extern void ClearHighlightHandler(void);
extern void standard_list_highlight_handler(S32 item_index);
extern void toggle_check_list_highlight_handler(S32 item_index);
extern void standard_check_list_highlight_handler(S32 item_index);
extern void standard_radio_list_highlight_handler(S32 item_index);
extern void inputbox_radio_list_highlight_handler(S32 item_index);
extern void dynamic_list_highlight_handler(S32 item_index);
extern void standard_stop_watch_list_highlight_handler(S32 item_index);
extern void standard_matrix_highlight_handler(S32 item_index);
extern void standard_animated_list_highlight_handler(S32 item_index);
extern void standard_animated_matrix_highlight_handler(S32 item_index);
extern void standard_noshortcut_matrix_highlight_handler(S32 item_index);
// #if(UI_MAIN_MENU_CATEGORY_TYPE==UI_MAIN_MENU_CATEGORY_TYPE2)//032305 Calvin removed
extern void standard_animated_matrix_highlight_handler_type2(S32 item_index);
// #endif
#ifdef __MMI_MATRIX_MAIN_MENU_FULL_BACKGROUND__ /* 060505 Calvin added */
extern void standard_animated_matrix_highlight_handler_full_background(S32 item_index);
#endif
extern void wgui_display_fixed_text_list_pop_up_description(void);
extern void wgui_display_dynamic_text_list_pop_up_description(void);
extern void wgui_display_asyncdynamic_text_list_pop_up_description(void);
extern void wgui_handle_fixed_text_list_pop_up_description(S32 x, S32 y, S32 width, S32 height);
extern void set_pop_up_descriptions(S32 n_strings, S32 n_items, S32 highlighted_item);
extern void set_dynamic_pop_up_descriptions(S32 highlighted_item);
extern void reset_pop_up_descriptions(void);
#ifdef __MMI_UI_HINT_TOGGLE_TRANSITION__
extern void wgui_setup_pop_up_description_transition(void);
#endif
extern void wgui_override_list_menu_slim_style(wgui_list_menu_slim_style_enum style);
extern void wgui_restore_list_menu_slim_style(void);
extern PU8 wgui_get_list_menu_icon(int index, MMI_ID_TYPE default_image_id);
extern PU8 wgui_get_list_menu_icon_if_not_empty(int index, MMI_ID_TYPE default_image_id);
extern void wgui_slide_control_set_focus(slide_control *s);
extern void wgui_show_slide_control(void);
extern void wgui_show_slide_control_focus(void);
extern void wgui_hide_slide_control_focus(void);
extern void wgui_slide_control_previous(void);
extern void wgui_slide_control_next(void);
extern void wgui_show_slide_control_value(S32 x1, S32 y1, S32 x2, S32 y2, S32 value);
extern void wgui_slide_control_set_value(S32 value);
extern void show_fixed_matrix_bar(void);
extern U16 GetRootTitleIcon(U16 ItemId);
extern void draw_title(void);
extern void wgui_stop_title_animation(void);
extern void draw_title_wap(void); /* 070705 Calvin added */
extern void draw_title_left_align(void);
// wangbei add start 20071010
#ifdef __NEW_STATUS_ICONS_STYLE__
extern void draw_submenu_statusicons(void);
extern void draw_charger_connected_batteryicon(void);
#endif
// wangbei add end
/* PMT NEERAJ START 20050616 */
#ifdef __MMI_UI_TITLE_TRANSITION__
extern void set_title_transition_based_on_keys(void);
extern void set_title_transition(wgui_transition_styles style);
extern wgui_transition_styles get_title_transition(void);
extern void reset_title_transition(void);
extern void draw_transition_tite(void);
/* PMT VIKAS START 20051209 */
extern S32 is_mmi_title_transition_on_keys(void);
#define TITLE_TRANSITION_STYLE_NON_BLOCKING 1
#define TITLE_TRANSITION_NON_BLOCKING_TIMER 10
#if(TITLE_TRANSITION_STYLE_NON_BLOCKING)
#define TITLE_TRANSITION_WITH_PREVIOUS_TITLE_MOVEMENT
#ifdef TITLE_TRANSITION_WITH_PREVIOUS_TITLE_MOVEMENT
#define MAX_TITLE_AREA_HEIGHT_FOR_TRANSITION (MMI_TITLE_HEIGHT + MMI_MENUITEM_HEIGHT)
#endif
extern void draw_transition_title_non_blocking(void);
extern void wgui_stop_transition_title_non_blocking(void);
extern void save_copy_original_title_x(void);
extern S32 is_in_nonblocking_title_transition(void);
extern void wgui_title_tranisition_abort_cleanup_function(void);
extern void enable_title_transition(void);
extern void disable_title_transition(void);
extern S32 is_enable_title_transition(void);
#ifdef TITLE_TRANSITION_WITH_PREVIOUS_TITLE_MOVEMENT
extern S32 get_prev_menu_shortcut(void);
extern void reset_prev_menu_shortcut(void);
extern void set_prev_menu_shortcut(S32 menu_shortcut_index);
extern void get_bitmap_for_title_transition(void);
#else /* TITLE_TRANSITION_WITH_PREVIOUS_TITLE_MOVEMENT */
extern void set_previous_title_shortcut(S32 shortcut_no);
extern void draw_previous_title_for_transition(void);
#endif /* TITLE_TRANSITION_WITH_PREVIOUS_TITLE_MOVEMENT */
#endif /* (TITLE_TRANSITION_STYLE_NON_BLOCKING) */
/* PMT VIKAS END 20051209 */
#else /* __MMI_UI_TITLE_TRANSITION__ */
#define TITLE_TRANSITION_STYLE_NON_BLOCKING 0
#define TITLE_TRANSITION_NON_BLOCKING_TIMER 10
#endif /* __MMI_UI_TITLE_TRANSITION__ */
/* PMT NEERAJ END 20050616 */
extern void move_title(S32 s32X, S32 s32Y);
extern void resize_title(S32 s32Width, S32 s32Height);
extern void ChangeTitleString(U8 *string);
extern void ChangeTitleIcon(U16 image_ID);
extern void ChangeTitle(U16 image_ID, U8 *string);
extern void draw_scrolling_title(void);
extern void draw_scrolling_title_background(S32 x1, S32 y1, S32 x2, S32 y2);
extern void scrolling_title_timer_callback(void);
extern void setup_scrolling_title(void);
extern void close_scrolling_title(void);
extern void MMI_apply_current_theme(void);
extern void show_vertical_bar(S32 volume_level);
extern void show_vertical_bar_previous(void);
extern void show_vertical_bar_next(void);
extern void set_multiline_inputbox_change(void);
extern S32 get_mutliline_inputbox_change_status(void);
extern void set_multiline_inputbox_change_callback(void);
extern void fixed_matrix_loop_key_handler(S32 vkey_code, S32 key_state);
extern void register_fixed_matrix_loop_keys(void);
/* PMT HIMANSHU START 20050625 */
#if defined(__MMI_UI_TECHNO_STATUS_ICON__)
extern void show_signal_battery_icons(void);
#endif
//PMT HIMANSHU END
//PMT NEERAJ START 20050712
#ifdef __MMI_UI_HINTS_IN_MENUITEM__
extern UI_string_type wgui_get_current_pop_up_description_string(void);
extern void set_force_all_hints_in_menuitem(void);
extern void reset_force_all_hints_in_menuitem(void);
extern S32 is_set_force_all_hints_in_menuitem(void);
extern void set_force_hints_on_highlight_in_menuitem(void);
extern void reset_force_hints_on_highlight_in_menuitem(void);
extern S32 is_set_force_hints_on_highlight_in_menuitem(void);
extern void set_force_icon_on_highlight_only_in_menuitem(void);
extern void reset_force_icon_on_highlight_only_in_menuitem(void);
extern S32 is_set_force_icon_on_highlight_only_in_menuitem(void);
extern void reset_all_force_flags_for_hints(void);
#endif /* __MMI_UI_HINTS_IN_MENUITEM__ */
/* PMT NEERAJ END 20050712 */
/* PMT VIKAS START 20050720 */
#ifdef __MMI_UI_ANIMATED_TITLE_EFFECT__
extern void wgui_stop_animate_title(void);
extern void wgui_start_animate_title(void);
extern void disable_animated_title_effect(void);
extern void enable_animated_title_effect(void);
extern void wgui_draw_animate_title_image(S32 x1, S32 y1, S32 x2, S32 y2);
extern void wgui_animate_title_image(void);
extern void wgui_draw_animate_title_image_frame_0(S32 x1, S32 y1, S32 x2, S32 y2);
extern S32 is_enable_animated_title_effect(void);
#endif /* __MMI_UI_ANIMATED_TITLE_EFFECT__ */
/* PMT VIKAS END 20050720 */
/* PMT HIMANSHU START 20050815 */
#if defined(__MMI_TOUCH_SCREEN__)
extern FuncPtr gMMI_touch_title_button1_down_handler;
extern FuncPtr gMMI_touch_title_button1_up_handler;
extern FuncPtr gMMI_touch_title_button2_down_handler;
extern FuncPtr gMMI_touch_title_button2_up_handler;
extern void register_touch_button_handlers(FuncPtr f1_up, FuncPtr f1_down, FuncPtr f2_up, FuncPtr f2_down);
#endif /* defined(__MMI_TOUCH_SCREEN__) */
extern void wgui_set_touch_title_bar_buttons(void);
extern void wgui_reset_touch_title_bar_buttons(void);
extern MMI_BOOL wgui_is_touch_title_bar_buttons(void);
/* PMT HIMANSHU END 20050815 */
#endif /* __WGUI_CATEGORIES_UTIL_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -