第一范文网 - 专业文章范例文档资料分享平台

MTK开发参考MTK - Dev - Guide

来源:用户分享 时间:2025/7/28 21:07:29 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

4.4 note

We just read all the titles of messages into list when we browse the message list, but not all the message bodies because the data size may too large.

We read one message body into RAM when we enter the message body screen.

wgui_categories_inputs.c

wgui_EMS_inputbox_input_type

wgui_EMS_inputbox_input_mode_changed ;

wgui.c

S32 MMI_status_bar_height; S32 MMI_content_x; S32 MMI_content_y; S32 MMI_content_width; S32 MMI_content_height;

wgui_categories_util.c

MMI_title_string = (UI_string_type) get_string(title); MMI_title_icon = (PU8) get_image(title_icon);

smscore.c

2个有关ems输入和显示的全局变量: static msg_ems_data_struct bufForDisplay; static msg_ems_data_struct bufForEdit; 这个是这2个全局变量的外部接口:

EMSData *GetEMSDataForEdit(EMSData **p, U8 force)

MMI_current_input_box_type = EDITOR_EMS_INPUT_BOX

test_change_input_mode

gdi_layer.c

GDI_LCD is a global value to control the gdi context gdi_layer_lock_frame_buffer();

wgui_categories_util.c

UI_common_screen_exit? ExitCategoryFunction

13

event.c

U8 EntryNewScreen(U16 newscrnID, FuncPtr newExitHandler, FuncPtr newEntryHandler, void *peerBuf)

static FuncPtr currEntryFuncPtr;

static U16 currExitScrnID, currTopScrnID; /* curr exit func ptr with scrn id */ static FuncPtr currExitFuncPtr;

typedef enum { KEY_0= 0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9,

KEY_LSK, KEY_RSK, KEY_UP_ARROW, KEY_DOWN_ARROW, KEY_LEFT_ARROW, KEY_RIGHT_ARROW, KEY_SEND, KEY_END, KEY_CLEAR, KEY_STAR, KEY_POUND,

KEY_VOL_UP, KEY_VOL_DOWN, KEY_QUICK_ACS, KEY_CAMERA KEY_ENTER, KEY_WAP KEY_IP

MAX_KEYS,

KEY_INVALID

} mmi_keypads_enum;

= KEY_QUICK_ACS,

=KEY_ENTER, =KEY_ENTER,

/* max key codes support */

=0xFE// 255 /* By JL, to sync with driver */

14

typedef enum {

KEY_EVENT_DOWN, KEY_EVENT_UP, KEY_LONG_PRESS, KEY_REPEAT, MAX_KEY_TYPE

} mmi_key_types_enum;

FuncPtr currKeyFuncPtrs[MAX_KEYS][MAX_KEY_TYPE];

#define GDI_ENTER_CRITICAL_SECTION(func) GDI_LOCK; {int gdi_mutex_level = gdi_mutex.cnt;

#define GDI_EXIT_CRITICAL_SECTION(func) GDI_ASSERT(gdi_mutex_level == gdi_mutex.cnt);} GDI_UNLOCK;

wgui_ems.c

wgui_EMS_redraw_input_information_bar wgui_EMS_show_input_mode

wgui_EMS_redraw_remaining_characters_display

use this register function to register control_area_callback dm_register_category_controlled_callback

wgui_categories.c

ShowCategory66Screen

This category is special because it‘s redraw function will be called repeatedly if this category is being on show.

For a category:

ShowCategoryScreen ExitCategoryScreen

dm:draw manager

dm_setup_and_draw_ems_inputbox ?

15

move_EMS_inputbox (0, 120); MMI_multitap_height = 17 resize_EMS_inputbox(176, 63); hide_multitap

gui_show_EMS_input_box_ext

MMI_multitap_height is for the softkeyboard under the input text.

scroll bar:

void gui_set_vertical_scrollbar_scale(vertical_scrollbar *v, S32 scale) : length

void gui_set_vertical_scrollbar_range(vertical_scrollbar *v, S32 range) : total length void gui_set_vertical_scrollbar_value(vertical_scrollbar *v, S32 value) : position

void gui_move_vertical_scrollbar(vertical_scrollbar *v, S32 x, S32 y) void gui_show_vertical_scrollbar(vertical_scrollbar *v)

从ems中取出输入的数据: EMSData *pEMS;

GetEMSDataForEdit(&pEMS, 0);

5 screen管理

5.1 U8 GoBackToHistory(U16 scrnid)

回到history中的某个screen,返回值:0 失败,1 成功

入栈操作为:historyData[++currHistoryIndex] = data;currHistoryIndex 初始值为-1

16

搜索更多关于: MTK开发参考MTK - Dev - Guide 的文档
MTK开发参考MTK - Dev - Guide.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4hbrb9mwbj75cln2zb53_4.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top