⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui_typedef.h

📁 MTK手机QQ游戏开发指南,有详细说明,只收GPRS流量费
💻 H
📖 第 1 页 / 共 4 页
字号:
 * Typedef 
 *****************************************************************************/
/*--------------------------------------------------------------------------------------------*/
/* text label                                                                                 */
/*--------------------------------------------------------------------------------------------*/
/***************************************************************************** 
 * Typedef 
 *****************************************************************************/
typedef enum
{
    GUI_TEXT_LABEL_H_ALIGN_START,
    GUI_TEXT_LABEL_H_ALIGN_LEFT,
    GUI_TEXT_LABEL_H_ALIGN_CENTER,
    GUI_TEXT_LABEL_H_ALIGN_RIGHT,
    GUI_TEXT_LABEL_H_ALIGN_LANG_DEP,
    GUI_TEXT_LABEL_H_ALIGN_END,
    GUI_TEXT_LABEL_V_ALIGN_START,
    GUI_TEXT_LABEL_V_ALIGN_TOP,
    GUI_TEXT_LABEL_V_ALIGN_CENTER,
    GUI_TEXT_LABEL_V_ALIGN_BOTTOM,
    GUI_TEXT_LABEL_V_ALIGN_END
} gui_text_label_align_enum;

/*--------------------------------------------------------------------------------------------*/
/* softkey                                                                                    */
/*--------------------------------------------------------------------------------------------*/
/***************************************************************************** 
 * Typedef 
 *****************************************************************************/
typedef enum
{
    MMI_LEFT_SOFTKEY,
        MMI_RIGHT_SOFTKEY,
#ifdef __MMI_WGUI_CSK_ENABLE__
        MMI_CENTER_SOFTKEY,
#endif 
        WGUI_MAX_SOFTKEYS
} WGUI_SOFTKEY_ENUM;


/*--------------------------------------------------------------------------------------------*/
/* Tab bar                                                                                   */
/*--------------------------------------------------------------------------------------------*/
/***************************************************************************** 
 * Typedef 
 *****************************************************************************/

typedef struct
{
    U32 flags;
    S8 first_displayed_item;
    S8 last_displayed_item;
    S8 focused_item;
} wgui_tab_bar_history_struct;

typedef struct _tab_bar_item_type
{
    PU8 icon;
    UI_string_type text;
    U32 flags;
#ifdef GUI_TAB_BAR_ORANGE
    S32 blink_duration;
#endif
} tab_bar_item_type;


/***************************************************************************** 
* Utility
*****************************************************************************/
typedef enum
{CONF_NONE = 0,
    CONF_ACTIVE = 1,
    CONF_HOLD = 2
} CATEGORY_CM_CONFERENCE_STATES;

typedef struct _list_menu_category_history
{
    U16 history_ID;
#ifdef __MMI_DICTIONARY__
    S32 highlighted_item;
    S32 first_displayed_item;
    S32 last_displayed_item;
    S32 displayed_items;
#else /* __MMI_DICTIONARY__ */ 
    S16 highlighted_item;
    S16 first_displayed_item;
    S16 last_displayed_item;
    S16 displayed_items;
#endif /* __MMI_DICTIONARY__ */ 
    U32 flags;
    S8 state;
    S32 num_items;              /* Number of menu items*/
} list_menu_category_history;

typedef struct _list_menu_category_history140
{
    U16 history_ID;
    S16 highlighted_item;
    S16 first_displayed_item;
    S16 last_displayed_item;
    S16 displayed_items;
    U32 flags;
    S32 no_of_items;
    S8 state;   /* To keep current screen state in history buffer. */
    U8 list_of_states[MAX_FIXED_TWOSTATE_MENU_ITEMS];
} list_menu_category_history_cat140;

typedef struct _matrix_menu_category_history
{
    U16 history_ID;
    S16 highlighted_item;
    S16 highlighted_column;
    S16 highlighted_row;
    S16 displayed_columns;
    S16 displayed_rows;
    S16 first_displayed_column;
    S16 first_displayed_row;
    U32 flags;
} matrix_menu_category_history;

typedef struct _object_list_category_history
{
    U16 history_ID;
    S16 index;
} object_list_category_history;

typedef struct _list_matrix_menu_category_history
{
    list_menu_category_history list_menu_history;
    matrix_menu_category_history matrix_menu_history;
} list_matrix_menu_category_history;

#define MMI_MAX_SLIDE_CONTROL 3
typedef struct _slide_control_category_history
{
    U16 n_items;
    U16 history_ID;
    S32 value[MMI_MAX_SLIDE_CONTROL];
    U16 current_focus;
} slide_control_category_history;

#define MMI_MAX_PANEL 1

typedef struct _panel_category_history
{
    U16 history_ID;  
    U16 focused_panel;
    S32 n_items;  
    S32 focused_element[MMI_MAX_PANEL];
} panel_category_history;

/* SLIM Version Menu Style */
typedef enum
{
    WGUI_LIST_MENU_SLIM_STYLE_DEFAULT,  /* By system setting */
    WGUI_LIST_MENU_SLIM_STYLE_NO_ICON,  /* Disable icon display */
    WGUI_LIST_MENU_SLIM_STYLE_NUMBER,   /* Auto numbering */
    WGUI_LIST_MENU_SLIM_STYLE_DRAW_ICON
} wgui_list_menu_slim_style_enum;

/*   Animted title effect   */
#ifdef __MMI_UI_ANIMATED_TITLE_EFFECT__
#define TITLE_IMAGE_ANIMATION_TIMER 50
#define SHIFT_TITLE_IMAGE 5

#endif /* __MMI_UI_ANIMATED_TITLE_EFFECT__ */ 

#define WGUI_ORDER_TEXT_IMAGE 0x00000000
#define WGUI_ORDER_IMAGE_TEXT 0x00000001

#define WGUI_MAX_POP_UP_DESCRIPTION_STRINGS      MAX_FIXED_ICONTEXT_MENU_ITEMS
#define GDI_TRANSFORM_GRADIENT_COLOR(Color)  gdi_act_color_from_rgb(255,Color.r,Color.g,Color.b),gdi_act_color_from_rgb(255,(Color.r>>1),(Color.g>>1),(Color.b>>1))

#define MMI_BEFORE_SCREEN                             0x00000000
#define MMI_LEAVE_FULL_SCREEN                         0x00000001
#define MMI_LEAVE_FULL_IDLE_SCREEN                    0x00000002
#define MMI_IN_FULL_SCREEN                            0x00000004
#define MMI_IN_NORMAL_SCREEN                          0x00000008
#define MMI_IN_NORMAL_SCREEN_WITHOUT_STATUSBAR        0x00000010
#define MMI_IN_IDLE_SCREEN                            0x00000020
#define MMI_LEAVE_BG_ON_BOTTOM_SCREEN                 0x00000040        /* redraw status */
#define MMI_IN_JAVA_SCREEN                            0x00000080        /* Java title */

/***************************************************************************** 
* Extern Global Variable
*****************************************************************************/
extern U32 category_screen_layout_flags;
extern S32 MMI_matrix_bar_height;
extern S32 MMI_matrix_bar_width;
extern S32 MMI_matrix_bar_x;
extern S32 MMI_matrix_bar_y;
extern S32 MMI_title_height;
extern S32 MMI_title_width;
extern S32 MMI_title_x;
extern S32 MMI_title_y;
extern S32 MMI_button_bar_height;
extern S32 MMI_thick_menuitem_height;
extern S32 MMI_menuitem_height;
extern void (*UI_hide_animation_frame_function) (void);

/* high level wrappers  */
extern UI_string_type MMI_message_string;
extern PU8 MMI_message_icon;
extern S32 MMI_menu_shortcut_number;
extern UI_string_type MMI_highlighted_item_text;

extern S32 MMI_current_menu_type;

/* extern S32 MMI_main_menu_type; */
extern S16 MMI_current_input_type;

/* extern S16 MMI_saved_input_type; */
extern U8 flag_scroll;
extern U8 MMI_english_input_mode_flag;
extern stFontAttribute UI_DEFAULT_FONT;
extern void (*MMI_list_highlight_handler) (S32 item_index);
extern void (*MMI_matrix_highlight_handler) (S32 item_index);
extern void (*MMI_circular_3D_highlight_handler) (S32 item_index);

extern void (*wgui_inputbox_RSK_function) (void);

extern void (*ExitCategoryFunction) (void);
extern void (*RedrawCategoryFunction) (void);
extern void (*RedrawSpellingOrCandidateBoxesFunction) (void);
extern U8 *(*GetCategoryHistory) (U8 *history_buffer);
extern S32(*GetCategoryHistorySize) (void);

/* Globals  */
extern gdi_handle animation_handle;

/*** Store the value of height, width , x, y position of title bar ,status icons
popup dialog in global variables these valeu r also #define in wgui.h */

/* move init value to wgui.c */
extern S32 MMI_matrix_bar_height;
extern S32 MMI_matrix_bar_x;
extern S32 MMI_matrix_bar_y;
extern S32 MMI_matrix_bar_width;
extern S32 MMI_title_height;
extern S32 MMI_title_width;
extern S32 MMI_title_x;
extern S32 MMI_title_y;
extern S32 MMI_button_bar_height;
extern S32 MMI_menuitem_height;

extern S32 MMI_pop_up_dialog_x;
extern S32 MMI_pop_up_dialog_y;
extern S32 MMI_pop_up_dialog_width;
extern S32 MMI_pop_up_dialog_height;
extern S32 MMI_pop_up_dialog_full_height;

extern U8 wgui_switch_title_with_status_bar;    /* 0: Title, 1: Status icons  */
extern U8 wgui_category_screen_no_buttons;

/* Store the clipping value of current image */
extern S32 wgui_image_clip_x1;
extern S32 wgui_image_clip_y1;
extern S32 wgui_image_clip_x2;
extern S32 wgui_image_clip_y2;

/* Support for displaying animations in Category screens:
   These functions allow the display of a single animated
   icon in any category screen. The position of the icon
   is decided by the category screen                  */
extern PU8 _MMI_animated_icon;
extern U8 *_MMI_animated_icon_name;
extern S32 _MMI_animated_icon_x;
extern S32 _MMI_animated_icon_y;
extern UI_animated_image_handle _MMI_animated_icon_handle;

extern UI_pop_up_description wgui_pop_up_description;

/* store number of strigs of pop up */
extern S32 wgui_pop_up_descriptions_n_strings;

/* store current index of popup */
extern S32 wgui_current_pop_up_description_index;

/* store number of popup */
extern S32 wgui_pop_up_descriptions_n_items;

/* store flag of popup */
extern U8 wgui_pop_up_description_flag;

extern wgui_pop_up_description_string_type wgui_pop_up_description_strings[WGUI_MAX_POP_UP_DESCRIPTION_STRINGS];

extern U8 *checklist_category_menu_item_states;
extern S32 item_checked;
extern void (*checkbox_toggle_DONE_RSK_function) (void);
extern void (*checkbox_toggle_BACK_RSK_function) (void);

/** Store the title string of current main lcd scrren */
extern UI_string_type MMI_title_string;

/** Store the address of title icon display on current main lcd scrren title bar */
extern PU8 MMI_title_icon;

/** Store the address of title icon display on current main lcd scrren title bar */
extern PU8 MMI_title_icon2;


/* Store the message of current multibox dispaly on main lcd */
extern UI_string_type MMI_message_string;
extern UI_string_type MMI_message_string2;

/** Store the address of icon display on content area of current main lcd scrren */
extern PU8 MMI_message_icon;
extern PU8 MMI_message_icon2;

/* store teh current shorcut number display on right side of title bar in case of menu screen */
extern S32 MMI_menu_shortcut_number;

/* Store the text of current highlighted item in menu */
extern UI_string_type MMI_highlighted_item_text;

/* high level wrappers  */
extern PU8 MMI_mm_animation;

extern U8 gMMI_UI_U8_flag_1, gMMI_UI_U8_flag_2;
extern U16 gMMI_UI_U16_var_1, gMMI_UI_U16_var_2;
extern S32 gMMI_UI_S32_var_1, gMMI_UI_S32_var_2, gMMI_UI_S32_var_3, gMMI_UI_S32_var_4;
extern void *gMMI_UI_ptr_1, *gMMI_UI_ptr_2, *gMMI_UI_ptr_3, *gMMI_UI_ptr_4;

/* varbale of type slide_control used in slide control screen */
extern slide_control *MMI_current_slide_control;

/* extern slide_control MMI_slide_control1,MMI_slide_control2; */
extern slide_control MMI_slide_control[MMI_MAX_SLIDE_CONTROL];

/* store current slide control value */
extern S32 *MMI_current_slide_control_value;

extern S32 *MMI_slide_control_value[MMI_MAX_SLIDE_CONTROL];

extern S32 gOnFullScreen;

/* Add for Draw Manager */
extern S32 g_gui_current_catid;


#endif /* __GUI_TYPEDEF_H__ */


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -