mteGprot.h 83.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*******************************************************************************
 * Filename:
 * ---------
 *  mteGprot.h
 *
 * Project:
 * --------
 *  PlutoMMI
 *
 * Description:
 * ------------
 *  MoDIS Theme Editor External Interface
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

#ifndef __MTEGPROT_H__
#define __MTEGPROT_H__

/***************************************************************************** 
 * Include
 *****************************************************************************/

/***************************************************************************** 
 * Define
 *****************************************************************************/
/* MTE RPC */
#define MMI_MTE_RPC_GET_RETURN_VALUE_API_INDEX            666
#define MMI_MTE_RPC_REGISTER_FINISH_CALLBACK_API_INDEX    888

#define MMI_MTE_MAX_THEME_NUMBER    10

/***************************************************************************** 
 * Typedef
 *****************************************************************************/
typedef enum
{
    MMI_MTE_SUCCESS,
    MMI_MTE_ERROR,
    MMI_MTE_END
} mmi_mte_return_code_enum;

typedef enum
{
    MMI_MTE_THEME_DATA_TYPE_COLOR,              // color*
    MMI_MTE_THEME_DATA_TYPE_TEXT_BORDER_COLOR,  // color* for text border
    MMI_MTE_THEME_DATA_TYPE_FILLER,             // UI_filled_area*
    MMI_MTE_THEME_DATA_TYPE_IMAGE,              // PU8  (unsigned char *)
    MMI_MTE_THEME_DATA_TYPE_FONT,               // UI_font_type
    MMI_MTE_THEME_DATA_TYPE_INTEGER,            // S32 (signed int)
    MMI_MTE_THEME_DATA_TYPE_SYMBOL              // A fixed symbol
} mmi_mte_theme_data_type_enum;

typedef enum
{
    MMI_MTE_LCD_TYPE_MAIN,
    MMI_MTE_LCD_TYPE_SUB
} mmi_mte_lcd_type_enum;

/* LCD DIMENSION */
typedef enum
{
    MMI_MTE_LCD_DEFAULT,
    MMI_MTE_LCD_128x128,
    MMI_MTE_LCD_128x160,
    MMI_MTE_LCD_176x220,
#if defined(__MMI_MAINLCD_240X240__)    
    MMI_MTE_LCD_240x240,
#endif    
    MMI_MTE_LCD_240x320,        
    MMI_MTE_LCD_320x240,            
    MMI_MTE_LCD_240x400,            
    MMI_MTE_LCD_320x480,            
    MMI_MTE_LCD_RESOLUTION_NUM    
} mmi_mte_lcd_dimension_enum;

typedef enum
{
    MMI_MTE_FILLER_ALLOW_NULL = 1 << 0,     /* transparent */
    MMI_MTE_FILLER_ALLOW_BORDER = 1 << 1,   /* single line border */
    MMI_MTE_FILLER_ALLOW_IMAGE = 1 << 2     /* image. NOT USED YET. */
} mmi_mte_filler_capability_enum;

typedef struct
{
    unsigned int mmi_theme_offset;      /* theme byte offset in MMI_theme structure */
    unsigned int image_type;            /* image type flag */
    char *symbol_name;                  /* symbol name */
    int image_dimension[MMI_MTE_LCD_RESOLUTION_NUM][2]; /* image dimension for each resolution */
    int *category_filter;
} mmi_mte_theme_component_internal_struct;

typedef struct
{
    char *name;                         /* component name in ASCII */
    unsigned int id;                    /* component ID */
    unsigned int group_id;              /* component group id. (group names are in Unicode) */
    mmi_mte_theme_data_type_enum type;  /* component data type */
    char *description;                  /* component detail description in Unicode */
    int allow_editing;                  /* component allow editing in [Screen 5] */
    mmi_mte_lcd_type_enum lcd_type;     /* component LCD type */
    int min_value;                      /* min value */
    int max_value;                      /* max value */
    mmi_mte_filler_capability_enum filler_flag; /* filler capability flag */
    mmi_mte_theme_component_internal_struct internal_data;	/* internal data, should not be accessed by MTE UI. */
} mmi_mte_theme_component_struct;

typedef enum
{
    MMI_MTE_FONT_TYPE_DEFAULT,
    MMI_MTE_FONT_TYPE_UI_DEFAULT,
    MMI_MTE_FONT_TYPE_SMALL,
    MMI_MTE_FONT_TYPE_MEDIUM,
    MMI_MTE_FONT_TYPE_LARGE,
    MMI_MTE_FONT_TYPE_VKBD,             /* for virtual keyboard */
    MMI_MTE_FONT_TYPE_SUBLCD, 
    MMI_MTE_FONT_TYPE_DIALER_F1,        /* dialer input box */
    MMI_MTE_FONT_TYPE_DIALER_F2,        /* dialer input box */
    MMI_MTE_FONT_TYPE_MEDIUM_BOLD,      
    MMI_MTE_FONT_TYPE_NEW_FONT1,
    MMI_MTE_FONT_TYPE_NEW_FONT2,
    MMI_MTE_FONT_TYPE_NEW_FONT3,
    MMI_MTE_FONT_TYPE_NEW_FONT4,    
    MMI_MTE_FONT_TYPE_NUM,
    MMI_MTE_FONT_TYPE_UNDEF = MMI_MTE_FONT_TYPE_NUM  /* undefined. It also marks the end of the enum. */
} mmi_mte_theme_font_data_type_enum;

typedef enum
{
    MMI_MTE_IMAGE_NONE = 0,             /* NONE */
    MMI_MTE_IMAGE_GIF = 1 << 0,         /* GIF */
    MMI_MTE_IMAGE_JPG = 1 << 1,         /* JPG */
    MMI_MTE_IMAGE_BMP = 1 << 2,         /* BMP */
    MMI_MTE_IMAGE_PNG = 1 << 3,         /* Standard PNG format (only allowed after MT6238) */
    MMI_MTE_IMAGE_9SLICE = 1 << 4,  /* BMP files will be converted to ABM internally. */	
    MMI_MTE_IMAGE_PNG_TO_ABM = 1 << 5,  /* PNG files will be converted to ABM internally. */
    MMI_MTE_IMAGE_BMP_SEQUENCE = 1 << 6,    /* BMP sequence */
    MMI_MTE_IMAGE_JPG_SEQUENCE = 1 << 7,    /* JPG sequence */
    MMI_MTE_IMAGE_PNG_SEQUENCE = 1 << 8,    /* PNG sequence */
    MMI_MTE_IMAGE_BMP_TO_ABM_SEQUENCE = 1 << 9, /* BMP sequences will be converted to ABM sequences. */
    MMI_MTE_IMAGE_PNG_TO_ABM_SEQUENCE = 1 << 10,/* PNG sequences will be converted to ABM sequences. */
    MMI_MTE_IMAGE_ABM_SEQUENCE = 1 << 11,    /* ABM sequence */
    MMI_MTE_IMAGE_BMP_TO_AB2 = 1 << 12,  /* BMP files will be converted to AB2 internally. */	
    MMI_MTE_IMAGE_PNG_TO_AB2 = 1 << 13,  /* PNG files will be converted to AB2 internally. */
    MMI_MTE_IMAGE_BMP_TO_AB2_SEQUENCE = 1 << 14, /* BMP sequences will be converted to AB2 sequences. */
    MMI_MTE_IMAGE_PNG_TO_AB2_SEQUENCE = 1 << 15,/* PNG sequences will be converted to AB2sequences. */
    MMI_MTE_IMAGE_AB2_SEQUENCE = 1 << 16,    /* AB2 sequence */
    MMI_MTE_IMAGE_BMP_TO_ABM = 1 << 17    /* AB2 sequence */
} mmi_mte_image_enum;

typedef enum
{
    MMI_MTE_STATE_INACTIVE,
    MMI_MTE_STATE_ACTIVE
} mmi_mte_state_enum;


/* ABM encoder error code */
typedef enum
{
    MMI_MTE_ABMENC_NO_ERROR,            /* success */
    MMI_MTE_ABMENC_INPUT_TYPE_ERROR,    /* only support BMP and PNG input */
    MMI_MTE_ABMENC_PNG_CONVERT_ERROR,   /* convert PNG to BMP by convert.exe error */
    MMI_MTE_ABMENC_ABM_ENCODE_ERROR,    /* convert BMP to ABM error */
    MMI_MTE_ABMENC_OUTPUT_ABM_FILE_ERROR, /* output ABM file error */
    MMI_MTE_ABMENC_OUTPUT_BUFFER_OVERFLOW, /* output size is more than given. */
    MMI_MTE_AB2ENC_NO_ERROR            /* success ab2*/
} mmi_mte_abm_encoder_error_enum;

/* ABM encoder mode */
typedef enum
{
    MMI_MTE_ABMENC_MODE_OUTPUT_MEM,
    MMI_MTE_ABMENC_MODE_OUTPUT_FILE
} mmi_mte_abmenc_mode_enum;


/* MTE system variables */
typedef enum
{
    MMI_MTE_SYSTEM_VALUE_CONVERT_EXE_PATH,
    MMI_MTE_SYSTEM_VALUE_TEMP_PATH,
    MMI_MTE_SYSTEM_VALUE_NUM
} mmi_mte_system_value_enum;


/***************************************************************************** 
 * Global Function
 *****************************************************************************/
// TODO: using __MMI_FEATURES__ to differentiate between MTE UI and MMI seems not an elegant way.
#ifdef __MMI_FEATURES__ /* __MMI_FEATURES__ */

/*
 * MoDIS MMI API
 */
extern const char *mmi_mte_get_baseband_chip(void);
extern int mmi_mte_get_lcd_resolution(mmi_mte_lcd_type_enum lcd_type, int *width, int *height);
extern const char *mmi_mte_get_theme_component_symbol_info(const mmi_mte_theme_component_struct *theme_component);
extern mmi_mte_theme_data_type_enum mmi_mte_translate_font_pointer(UI_font_type font_ptr);
extern const char *mmi_mte_get_font_symbol(mmi_mte_theme_font_data_type_enum font_type);
extern void mmi_mte_get_theme_component_image_info(mmi_mte_theme_component_struct *theme_component, int *recommend_width, int *recommend_height, int *max_width, int *max_height, unsigned int *allowed_image_type, mmi_mte_image_enum *recommend_image_type);
extern const char *mmi_mte_get_image_info_string(mmi_mte_image_enum image_type);
extern int mmi_mte_get_image_dimension(mmi_mte_image_enum image_type, char *image_data, int *width, int *height);
extern mmi_mte_return_code_enum mmi_mte_start_decode_image(mmi_mte_image_enum image_type, char *image_data, int image_size, char *output_buffer, unsigned int output_buffer_size, int output_image_width, int output_image_height, void (*frame_finish_callback)(char *output_buffer, int output_image_width, int output_image_height), int start_frame);
extern void mmi_mte_stop_decode_image(void);
extern const char *mmi_mte_get_theme_schema_version(int *major_verno, int *minor_verno);
extern int mmi_mte_get_theme_component_num(void);
extern const mmi_mte_theme_component_struct *mmi_mte_get_theme_component(int component_id);
extern int mmi_mte_get_theme_components_in_current_screen(int max_component_number, const mmi_mte_theme_component_struct *theme_component_list[]);
extern int mmi_mte_get_component_group_num(void);
extern const char *mmi_mte_get_component_group_name(int group_id);
extern int mmi_mte_get_system_theme_data(int max_theme_number, const MMI_theme **theme_list, const char *theme_name_list[]);
extern void mmi_mte_refresh_screen(mmi_mte_lcd_type_enum lcd_type);
extern void mmi_mte_activate_theme(MMI_theme *theme, U16 index);
extern void *mmi_mte_translate_theme_component_data_pointer(const mmi_mte_theme_component_struct *theme_component, MMI_theme *theme);
extern void mmi_mte_register_switch_screen_callback(void (*switch_screen_callback)(void));
extern int mmi_mte_get_example_screen_num(void);
extern const char* mmi_mte_get_example_screen_name(int screen_index);
extern int mmi_mte_show_example_screen(int screen_index);
extern int mmi_mte_set_image_source(int use_image_folder, const char *folder_path);
extern int mmi_mte_get_image_resource_total_size(int in_local_folder);
extern void mmi_mte_set_language(int language_id);
extern const char *mmi_mte_get_welcome_string(const MMI_theme *theme);
extern int mmi_mte_get_image_data_length(char *image_ptr);
extern void mmi_mte_get_image_header(char *header, mmi_mte_image_enum image_type, int width, int height, int size);
extern MMI_theme *mmi_mte_get_current_system_theme(void);
extern void mmi_mte_get_image_resource_info(char *img_res_ptr, int frame_index, char **img_data_ptr, mmi_mte_image_enum *mte_image_type, int *width, int *height, int *size, int *delay, int *repeat_count);
extern void mmi_mte_set_state(mmi_mte_state_enum state);
extern int mmi_mte_show_example_screen_by_group(int group_index);
extern mmi_mte_abm_encoder_error_enum mmi_mte_encode_abm_image(mmi_mte_abmenc_mode_enum mode, mmi_mte_image_enum input_image_type, char *input_filename, char *output_abm_bitstream, int *output_size);
extern void *mmi_mte_get_value(mmi_mte_system_value_enum name);
extern int mmi_mte_set_value(mmi_mte_system_value_enum name, void *value);
extern char *mmi_mte_map_theme_component_name_to_old_branch(int old_major_verno, char *theme_component_name);
extern mmi_mte_return_code_enum mmi_mte_get_image_frame_count(char *image_ptr, int *frame_count);
extern mmi_mte_return_code_enum mmi_mte_get_image_sequence_header(char *header, mmi_mte_image_enum image_type, int *output_header_size, int width, int height, int frame_num, int repeat_count, int *frame_size, int *frame_delay);
extern mmi_mte_return_code_enum mmi_mte_is_controlarea_in_current_screen(void);
extern mmi_mte_return_code_enum mmi_mte_get_image_9slice_header(char *header, mmi_mte_image_enum image_type, int *output_header_size, int width, int height, int len, int left, int top, int right, int bottom);


#else /* __MMI_FEATURES__ */

/* 
 * MTE UI interface API
 */

/*
 * DO NOT CHANGE THE FOLLOWING TYPE DEFINITIONS.
 */
typedef unsigned int    U32;
typedef unsigned short  U16;
typedef unsigned char   U8;
typedef signed int      S32;

typedef U8* PU8;

typedef struct stFontAttribute
{
    U8 bold;
    U8 italic;
    U8 underline;
    U8 size;
    U8 color;
    U8 type;
    U8 oblique;
    U8 smallCaps;
} stFontAttribute;
typedef stFontAttribute*	UI_font_type;

typedef U8 UI_transparent_color_type;

typedef struct
{	U8 r; // 0 ~ 255
	U8 g; // 0 ~ 255
	U8 b; // 0 ~ 255
	U8 alpha; // 0 ~ 100
} color;

typedef struct _gradient_color
{
    color *c;   /* List of colors in the gradient   */
    U8 *p;      /* Percentage of each color      */
    U8 n;       /* Number of colors in the list  */
} gradient_color;

/*
 * UI filled area structure
 * -------------------
 * bits 0-7:         filler types
 * bit    8:            1=vertical filler, 0=horizontal filler (used for gradients and textures)
 * bit  9:           flip filler
 * bit    10:        (reserved)
 * bit  11:       (reserved)
 * bit    12:        border yes/no
 * bit  13:       border size 0=single line, 1=double line
 * bit  14:       3D border
 * bit  15:       rounded border
 * bit    16:        1=elevated border, 0=depressed border
 * bit    17:        1=filled area with shadow
 * bit  18:            1=filled area with double line shadow, 0=single line shadow
 * bit  19:       (reserved)
 * bit  20:       left rounded border
 * bit  21:       right rounded border
 * bit  22:       Draw only horizontal lines in borders
 * bit  24:       transparent color
 */

/* Bits 0-7: filler type */
#define UI_FILLED_AREA_MASK_TYPE                            0x000000FF
#define UI_FILLED_AREA_TYPE_COLOR                           0x00000000
#define UI_FILLED_AREA_TYPE_GRADIENT_COLOR                  0x00000001
#define UI_FILLED_AREA_TYPE_TEXTURE                         0x00000002
#define UI_FILLED_AREA_TYPE_BITMAP                          0x00000003
#define UI_FILLED_AREA_TYPE_HATCH_COLOR                     0x00000004
#define UI_FILLED_AREA_TYPE_ALTERNATE_HATCH_COLOR           0x00000005
#define UI_FILLED_AREA_TYPE_CROSS_HATCH_COLOR               0x00000006
#define UI_FILLED_AREA_TYPE_ALTERNATE_CROSS_HATCH_COLOR     0x00000007
#define UI_FILLED_AREA_TYPE_NO_BACKGROUND                   0x00000008
#define UI_FILLED_AREA_TYPE_CUSTOM_FILL_TYPE1               0x00000009  /* Popup description 1 */
#define UI_FILLED_AREA_TYPE_CUSTOM_FILL_TYPE2               0x0000000A  /* Popup description 2 */
#define UI_FILLED_AREA_TYPE_3D_BORDER                       0x0000000B

/* Bit 8: horiztonal or vertical fill for gradient color */
#define UI_FILLED_AREA_MASK_FILL_DIRECTION                  0x00000100
/* --- */
#define UI_FILLED_AREA_HORIZONTAL_FILL                      0x00000000
#define UI_FILLED_AREA_VERTICAL_FILL                        0x00000100

/* Bit 9: flip fill or not */
#define UI_FILLED_AREA_FLIP_FILL                            0x00000200

/* Bits 12-13: single-double-border */
#define UI_FILLED_AREA_MASK_BORDER_WIDTH                    0x00003000
#define UI_FILLED_AREA_TYPE_NO_BORDER                       0x00000000
#define UI_FILLED_AREA_BORDER                               0x00001000
#define UI_FILLED_AREA_SINGLE_BORDER                        0x00001000  /* Contain UI_FILLED_AREA_BORDER */
#define UI_FILLED_AREA_DOUBLE_BORDER                        0x00003000  /* Contain UI_FILLED_AREA_BORDER */

/* Bits 14: 3D border */
#define UI_FILLED_AREA_3D_BORDER                            0x00004000

/* Bits 15: Rounded border */
#define UI_FILLED_AREA_ROUNDED_BORDER                       0x00008000

/* Bits 16: Elevated or depressed border */
#define UI_FILLED_AREA_MASK_ELEVATION                       0x00010000
/* --- */
#define UI_FILLED_AREA_ELEVATED_BORDER                      0x00010000
#define UI_FILLED_AREA_DEPRESSED_BORDER                     0x00000000

/* Combination of Bit 14 and 16 */
#define UI_FILLED_AREA_3D_ELEVATED_BORDER                   (UI_FILLED_AREA_ELEVATED_BORDER | UI_FILLED_AREA_3D_BORDER)
#define UI_FILLED_AREA_3D_DEPRESSED_BORDER                  (UI_FILLED_AREA_DEPRESSED_BORDER | UI_FILLED_AREA_3D_BORDER)

/* Bits 17-18: single-double-shadown */
#define UI_FILLED_AREA_MASK_SHADOW                          0x00060000
#define UI_FILLED_AREA_SHADOW                               0x00020000
#define UI_FILLED_AREA_SHADOW_DOUBLE_LINE                   0x00040000

/* Bit 20: Left rounded border for Dalmatian style */
#define UI_FILLED_AREA_LEFT_ROUNDED_BORDER                  0x00100000

/* Bit 21: Right rounded border for Dalmatian style */
#define UI_FILLED_AREA_RIGHT_ROUNDED_BORDER                 0x00200000

/* Bit 22: Draw only horizontal lines w/o vertical lines in UI_FILLED_AREA_BORDER */
#define UI_FILLED_AREA_NO_VERTICAL_LINE                     0x00400000

/* Bit 24: Transparent color filler */
#define UI_FILLED_AREA_TYPE_TRANSPARENT_COLOR               0x01000000

typedef struct _UI_filled_area
{
    U32 flags;
    PU8 b;
    gradient_color *gc;
    color c;
    color ac;   /* alternate color used for hatch fills   */
    color border_color;
    color shadow_color;
    UI_transparent_color_type transparent_color;
} UI_filled_area;


/* 
 * UPDATE THE FOLLOWING MMI THEME STRUCTURE FOR NEW BRANCHES 
 */
/* 08A */
typedef struct _MMI_theme
{
    /* Editor area theme */
    UI_filled_area  *inputbox_filler;

    /* Back ground filler of scrollbar */
    UI_filled_area  *scrollbar_background_filler;
    /* Indicator filler of scrollbar */
    UI_filled_area  *scrollbar_indicator_filler;

    /* Back ground filler of title */
    UI_filled_area  *title_filler;

    /* List menu background filler */
    UI_filled_area  *list_background_filler;
    /* Normal list menu item background filler */
    UI_filled_area  *list_normal_item_filler;
    /* Highlighted list menu item background filler */
    UI_filled_area  *list_selected_item_filler;
    /* Disabled list menu item background filler */
    UI_filled_area  *list_disabled_item_filler;
    /* Highlighted matrix menu item background filler */
    UI_filled_area  *matrix_selected_item_filler;
    /* Normal list main menu item background filler */
    UI_filled_area  *list_main_menu_normal_item_filler;
    /* Highlighted list main menu item background filler */
    UI_filled_area  *list_main_menu_selected_item_filler;
    /* Disabled list main menu item background filler */
    UI_filled_area  *list_main_menu_disabled_item_filler;

    /* Highlighted matrix main menu item background filler */
    UI_filled_area  *matrix_main_menu_selected_item_filler;

    /* General background filler, background of text and picture, usually is transparent color. 
    preview just an example. */
    UI_filled_area  *general_background_filler;

    UI_filled_area  *popup_description_background_filler;

    /* The theme for memu list seted by Inline Screen. It's the similar to the list filler, 
    such as list_background_filler */
    UI_filled_area  *inline_list_normal_item_filler;
    UI_filled_area  *inline_list_selected_item_filler;
    UI_filled_area  *inline_list_disabled_item_filler;

    /* The filler for inline singleline editor without border. At current, no one use it. */
    UI_filled_area  *inline_edit_focussed_filler;
    UI_filled_area  *inline_edit_unfocussed_filler;
    UI_filled_area  *inline_edit_noboundary_filler;

    /* Pin input editor filler */
    UI_filled_area  *PIN_inputbox_background_filler;
    UI_filled_area  *PIN_screen_background_filler;
    /* Data time background */
    UI_filled_area  *network_screen_background_filler;
    /* Background filler of call manager screen */
    UI_filled_area  *CM_screen_background_filler;
    /* The dialer input box background filler */
    UI_filled_area  *dialer_inputbox_background_filler;

    /* background filler of key when it is selected. */
    UI_filled_area  *virtual_keyboard_key_down_filler;

    /* Menu background filler of small list screen */
    UI_filled_area  *small_list_menu_normal_filler;
    /* Border filler of small list screen */
    UI_filled_area  *small_list_screen_border_filler;

    color           *lite_disp_scr_bg_color;

    /* Text color of normal left softkey */
    color           *LSK_up_text_color;
    /* Text color of down left softkey */
    color           *LSK_down_text_color;
    /* Text color of disabled left softkey */
    color           *LSK_disabled_text_color;
    /* Text color of normal right softkey */
   // color           *RSK_up_text_color;
    /* Text color of down right softkey */
  //  color           *RSK_down_text_color;
    /* Text color of disabled right  softkey */
  //  color           *RSK_disabled_text_color;

    /* Editor area theme */
    color           *inputbox_normal_text_color;
    color           *inputbox_selected_text_color;
    color           *inputbox_selector_color;
    color           *inputbox_cursor_color;

    /* Text color in title */
    color           *title_text_color;
    /* Text border color in title */
    color           *title_text_border_color;
    /* Text color of shortcut */
    color           *title_shortcut_text_color;

    /* Text color of the normal (unhighlited) list menu item */
    color           *list_normal_text_color;
    /* Text color of the highlighted list menu item */
    color           *list_selected_text_color;
    /* Text color of the disabled list menu item */
    color           *list_disabled_text_color;

    /* Text color of the normal (unhighlited) matrix menu item */
    color           *matrix_normal_text_color;
    /* Text color of the highlighted matrix menu item */
    color           *matrix_selected_text_color;
    /* Text color of the disabled matrix menu item */
    color           *matrix_disabled_text_color;

//    color           *formatted_inputbox_cursor_color;

    /* Text color of the normal (unhighlited) list menu item for category 14*/
    color           *list_main_menu_normal_text_color;
    /* Text color of the highlighted list menu item for category 14 */
    color           *list_main_menu_selected_text_color;
    /* Text color of the disabled list menu item for category 14 */
    color           *list_main_menu_disabled_text_color;

    /* Text color of the normal (unhighlited) matrix menu item for category 14 */
    color           *matrix_main_menu_normal_text_color;
    /* Text color of the highlighted matrix menu item for category 14 */
    color           *matrix_main_menu_selected_text_color;
    /* Text color of the disabled matrix menu item for category 14 */
    color           *matrix_main_menu_disabled_text_color;

    color           *popup_description_text_color;

    /* Call manager screen text color */
    color           *CM_screen_text_color;

    /* Call manager screen data Time background */
    color           *datetime_bar_background_color;
    color           *datetime_bar_duration_background_color;
    color           *datetime_bar_date_text_color;
    color           *datetime_bar_time_text_color;
    color           *datetime_bar_duration_text_color;
    /* AOC text color */
    color           *datetime_bar_AOC_text_color;

    /* UCE information bar color */
    color           *information_bar_color;
    color           *input_method_text_color;
    /* The message remaining length text color */
    color           *remaining_length_text_color;

    /* Inline single line editor text color */
    color           *inline_edit_focussed_text_color;
    /* Not used */
    color           *inline_edit_unfocussed_text_color;
    /* Inline single line editor selected text color */
    color           *inline_edit_selected_text_color;
    /* Inline single line editor selector color */
    color           *inline_edit_selector_color;
    /* Inline single line editor cursor color */
    color           *inline_edit_cursor_color;

    color           *inline_list_normal_text_color;
    color           *inline_list_selected_text_color;
    color           *inline_list_disabled_text_color;

    /* Pin input editor text color */
    color           *PIN_inputbox_normal_text_color;
    /* Pin input editor selected text color	 */
    color           *PIN_inputbox_selected_text_color;
    /* Pin input editor selector color */
    color           *PIN_inputbox_selector_color;
    /* Pin input editor cursor color */
    color           *PIN_inputbox_cursor_color;

    /* The dialer input box text color */
    color           *dialer_inputbox_normal_text_color;
    /* The dialer input box selected text color */
    color           *dialer_inputbox_selected_text_color;
    /* The dialer input box selector color */
    color           *dialer_inputbox_selector_color;
    /* The dialer input box corsor color */
    color           *dialer_inputbox_cursor_color;

    /* text color of key when it is selected */
    color           *virtual_keyboard_key_down_text_color;
    /* text color of key when it is not selected */
    color           *virtual_keyboard_key_up_text_color;
    /* text color of dead key when it is selected */
    color           *virtual_keyboard_dead_key_down_text_color;
    /* text color of dead key when it is not selected */
    color           *virtual_keyboard_dead_key_up_text_color;
    /* text color of display area */
    color           *virtual_keyboard_disp_area_text_color;

    /* Data color */
    color           *idle_scr_date_color; 
    /* Time color */
    color           *idle_scr_time_color;
    /* Data border color */
    color           *idle_scr_date_border_color; 
    /* Time border color */
    color           *idle_scr_time_border_color;
    /* Network name color */
    color           *idle_scr_network_name_color; 
    /* Network name border color */
    color           *idle_scr_network_name_border_color; 
    /* Network status color */
    color           *idle_scr_network_status_color; 
    /* Network status border color */
    color           *idle_scr_network_status_border_color; 
    /* Network extra color */
    color           *idle_scr_network_extra_color; 
    /* Net work extra border color */
    color           *idle_scr_network_extra_border_color; 

    /* width of vertical scroll bar or height of horizontal scroll bar */
    S32             scrollbar_size;

    /* Full opacity of screen */
    S32             bg_opacity_full;
    /* High opacity of screen (Not used) */
    S32             bg_opacity_high;
    /* Medium opacity of screen */
//    S32             bg_opacity_medium;
    /* Low opacity of screen */
    S32             bg_opacity_low;

    /* highlight fillers */
    /*
     * Highlight dimension for menu items
     *
     * HIGHLIGHT WIDTH = LCD_WIDTH - UI_SCROLLBAR_WIDTH - GUI_MENUITEM_X1_GAP - GUI_MENUITEM_X2_GAP
     * HIGHLIGT HEIGHT: 
     *      Single-line     = MMI_MENUITEM_HEIGHT
     *      Two-line        = MMI_MENUITEM_HEIGHT * 2
     *      Multi-row       = MMI_MULTIROW_MENUITEM_HEIGHT
     *      Thick           = MMI_THICK_MENUITEM_HEIGHT = CAT425_MENUITEM_HEIGHT
     *      Thick with tab  = CAT425_MENUITEM_HEIGHT_NO_TAB
     *
     * If the menu item dimension does not fit perfectly, the highlight filler will be list_selected_item_filler.
     */
     /* Single-line highlighted menu item background filler */
    UI_filled_area  *menuitem_single_line_highlight_filler;
    /* Two-line highlighted menu item background filler */
    UI_filled_area  *menuitem_two_line_highlight_filler;
    /* Multi-row highlighted menu item background filler */
    UI_filled_area  *menuitem_multirow_highlight_filler;
    /* Thick highlighted menu item background filler */
    UI_filled_area  *menuitem_thick_highlight_filler;
    /* Thick with tab menu item background filler (Category 425 only)*/
    UI_filled_area  *menuitem_thick_with_tab_highlight_filler;
    /* Symbol picker highlight filler (Category 22 only)*/
    UI_filled_area  *symbol_picker_highlight_filler;
    /* Not used */
    UI_filled_area  *matrix_highlight_filler;

    /* full-screen background */
    /* Main menu background filler */
    UI_filled_area  *main_menu_bkg_filler;
    /* Sub menu background filler */
    UI_filled_area  *sub_menu_bkg_filler;
    /* Idle background filler */
    UI_filled_area  *idle_bkg_filler;

    /* popup background*/
    color           *popup_text_color;

    /* weekday in idle */
    color           *idle_scr_weekday_color;
    color           *idle_scr_weekday_border_color;

    /* clock */    
    /* Clock component: text color of date text for digital clock in main lcd */
    color           *date_text_color;
    /* Clock component: text border color of date text for digital clock in main lcd */
    color           *date_text_border_color;
    /* Clock component: text color of time text for digital clock in main lcd */
    color           *time_text_color;
    /* Clock component: text border color of time text for digital clock in main lcd */
    color           *time_text_border_color;
    /* Clock component: hour hand color of analog clock in main lcd */
    color           *analog_hand_hour_color;
    /* Clock component: minute hand color of analog clock in main lcd */
    color           *analog_hand_min_color;
    /* Clock component: Not used */
    color           *analog_axis_color;

    /* softkey */
    /* Text border color softkey((0, 0, 255)means no border) */
    color           *softkey_text_border_color;
    /* Back ground filler of softkey bar
                            128x128     128x160     176x220     240x320
    Wdith of softkey            50          50          70          74
    Height of softkey           18          19          20          36
    */
    UI_filled_area  *softkey_bar_bkg_filler;

    /* tab title */
    /* Filler of tab title */
    UI_filled_area  *tab_title_filler;
    /* Text color of tab title */
    color           *tab_title_text_color;
    /* Text border color of tab title */
    color           *tab_title_text_border_color;
    /* Shortcut color of tab title */
    color           *tab_title_shortcut_text_color;
    
    /* calendar */
    /* text color of title */
    color           *calendar_title_text_color;
    /* text color of year select */
    color           *calendar_horizontal_text_color;
    /* text border color of year select */
    color           *calendar_horizontal_border_color;
    /* text color of week number */
    color           *calendar_vertical_text_color;
    /* text color of month select */
    color           *calendar_horizontal_string_text_color;
    /* cell background color of one task state */
    color           *calendar_one_task_color;
    /* cell background color of more tasks state */
    color           *calendar_more_task_color;
    /* cell background color of menstrual state */
    color           *calendar_menstrual_color;
    /* cell background color of PP state */
    color           *calendar_PP_color;
    /* cell background color of danger state */
    color           *calendar_danger_color;
    /* cell background color of invalid state */
    color           *calendar_invalid_color;
    /* text color of cell valid state */
    color           *calendar_valid_text_color;
    /* text color of cell invalid state */
    color           *calendar_invalid_text_color;
    /* cell background color of highlight state */
    color           *calendar_highlight_color;
    /* background color of info box */
    color           *calendar_infobox_bg_color;
    /* background color of info box item */
    color           *calendar_infobox_entry_bg_color;
    /* text color of info box */
    color           *calendar_infobox_text_color;
    
    /* Status icon bar */
    /* Back ground filler of status icon bar */
    UI_filled_area  *status_icon_bar_filler;

    /* thick title */
    /* thick title back gournd filler */
    UI_filled_area  *thick_title_filler;
    /* text color of thick title */
    color           *thick_title_text_color;
    /* text border of thick title */
    color           *thick_title_text_border_color;
    /* shortcut color of thick title */
    color           *thick_title_shortcut_text_color;

    /* rotated screen */
    /* back ground filler of rotate screen*/
    UI_filled_area  *rotated_bkg_filler;
    /* filler of title in rotate screen */
    UI_filled_area  *rotated_title_filler;

    /* small screen */    
    /* filler of title in small screen */
    UI_filled_area  *small_screen_title_filler;

    /* tab bar */
    /* normal image for tab bar */
    UI_filled_area  *tab_normal_tab_filler;
    /* focused image for tab bar */
    UI_filled_area  *tab_highlight_tab_filler;
    /* focused image for tab bar */
    UI_filled_area  *tab_blink_tab_filler;

    /* main menu */
    /* high light filler of bidegree main menu */
    UI_filled_area  *main_menu_bidegree_tab_highlight_filler;
    /* high light image of matrix main menu */
    PU8             matrix_main_menu_highlight_image;
    /* background filler of bidegree main menu */
    UI_filled_area  *main_menu_bidegree_tab_background_filler;

    /* list menu */
    /* separator color in list menu */
//    color           *list_separator_color;

    /* cascade menu */
    /* separator color of cascade menu */
    color           *cascade_menu_separator_color;
    /* normal text color of cascade menu */
    color           *cascade_menu_normal_text_color;
    /* selected text color of cascade menu */
    color           *cascade_menu_selected_text_color;
    /* disabled text color of cascade menu */
    color           *cascade_menu_disabled_text_color;
    /* border color of cascade menu */
    color           *cascade_menu_border_color;
    /* back ground filler of cascade menu */
    UI_filled_area  *cascade_menu_background_filler;
    /* high light filler of cascade menu */
    UI_filled_area  *cascade_menu_highlight_filler;
    /* left arrow image of cascade submenu */
    PU8             cascade_menu_submenu_left_arrow_image;
    /* right arrow image of cascade submenu */
    PU8             cascade_menu_submenu_right_arrow_image;

    /* check & radio */
    /* selected image for check */
    PU8             list_check_selected_image;
    /* unselected image for check */
    PU8             list_check_unselected_image;
    /* selected image for radio */
    PU8             list_radio_selected_image;
    /* unselected image for radio */
    PU8             list_radio_unselected_image;

  
/*list menuite auto number icons*/
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img1;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img2;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img3;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img4; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img5;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img6;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img7;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img8; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img9;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img10;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img11;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img12; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img13;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img14;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img15;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img16; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img17;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img18;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img19;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img20; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img21;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img22;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img23;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img24; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img25;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img26;   
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img27;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img28; 
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img29;
	/*list menuite auto number icon 1*/
	PU8 			list_menuitem_auto_number_img30;   

    /* Inline edit */
    /* left arrow image in inline edit */
    PU8             inline_edit_left_arrow_image;
    /* right arrow image in inline edit */
    PU8             inline_edit_right_arrow_image;

    /* inputbox */
    /* color of base line in inputbox */
    color           *inputbox_base_line_color;
    /* color of control character base line in ems */
    color           *inputbox_ems_cr_base_line_color;
    
    /* dialing */
    /* text color in dialer inputbox */
    color           *dialer_inputbox_text_color;
    /* border color in dialer inputbox */
    color           *dialer_inputbox_text_border_color;
        
    /* reserved for the future */
    /* left softkey down filler */
    UI_filled_area  *softkey_lsk_down_filler;
    /* left softkey up filler */
    UI_filled_area  *softkey_lsk_up_filler;       
    /* right softkey down filler */
//    UI_filled_area  *softkey_rsk_down_filler;        
    /* right softkey up filler */
  //  UI_filled_area  *softkey_rsk_up_filler; 
    
    /* color of title background rect */
    color           *calendar_title_bg_color;
    /* color of horizontal_string background rect */
    color           *calendar_horizontal_string_bg_color;
    /* color of vertical_select background rect */
    color           *calendar_vertical_select_bg_color;
    /* color of cell_array background rect */
    color           *calendar_cell_array_bg_color;
    /* color of frame_line */
    color           *calendar_frame_line_color;
    /* color of cell frame line */
    color           *calendar_cell_line_color;
    /* text color of cell's current */   
    color           *calendar_cell_current_text_color;
    /* text color of popup */   
    color           *calendar_popup_text_color;
    /* color of popup background rect */
    color           *calendar_popup_bg_color;
    /* color of popup border */
    color           *calendar_popup_border_color;    
    /* alpha value of infobox's background */
    S32             calendar_infobox_bg_alpha;
    /* alpha value of title's background */
    S32             calendar_title_bg_alpha;
    /* alpha value of horizontal_string's background */
    S32             calendar_horizontal_string_bg_alpha;
    /* alpha value of vertical_select's background */
    S32             calendar_vertical_select_bg_alpha;
    /* alpha value of cell_array's background */
    S32             calendar_cell_array_bg_alpha;
    /* alpha value of frame line */
    S32             calendar_frame_line_alpha;   
    /* text color of title for static calendar on idle screen */
    color           *calendar_horizontal_string_text_for_idle_color;
    /* color of title background rect for static calendar on idle screen */
    color           *calendar_horizontal_string_bg_for_idle_color;
    /* text color of cell valid date for static calendar on idle screen */
    color           *calendar_cell_valid_text_for_idle_color;
    /* text color of cell invalid date for static calendar on idle screen */
    color           *calendar_cell_invalid_text_for_idle_color;
    /* color of cell array background rect for static calendar on idle screen */
    color           *calendar_cell_array_bg_for_idle_color;
    /* text of cell current date for static calendar on idle screen */
    color           *calendar_cell_current_text_for_idle_color;
    /* color of cell current date's rect border for static calendar on idle screen */
    color           *calendar_cell_highlight_for_idle_color;
    /* color of frame line for static calendar on idle screen */
    color           *calendar_frame_line_for_idle_color;
    /* color of cell line for static calendar on idle screen */
    color           *calendar_cell_line_for_idle_color;    
    /* alpha value of title rect background for static calendar on idle screen */
    S32             calendar_horizontal_string_bg_for_idle_alpha;
    /* alpha value of cell array rect background for static calendar on idle screen */
    S32             calendar_cell_array_bg_for_idle_alpha;
    /* alpha value of current date's rect background for static calendar on idle screen */
    S32             calendar_cell_current_bg_for_idle_alpha;
    /* alpha value of cell current date's border for static calendar on idle screen */
    S32             calendar_cell_highlight_for_idle_alpha;
    /* alpha value of frame line for static calendar on idle screen */
    S32             calendar_frame_line_for_idle_alpha;
    /* alpha value of cell line for static calendar on idle screen */
    S32             calendar_cell_line_for_idle_alpha;
    
    /* arrow indication color */
    color           *arrow_indication_color;
    /* arrow indication border color */
    color           *arrow_indication_border_color;
    
    /* idle back ground filler for dcd */
    UI_filled_area  *dcd_idle_bkg_filler;
    /* read text color for dcd */
    color           *dcd_idle_read_text_color;
    /* unread text color for dcd */
    color           *dcd_idle_unread_text_color;
    /* highlight filler for dcd channel list */
    UI_filled_area  *dcd_channel_list_highlight_filler;
    /* text color for dcd story view */
    color           *dcd_story_text_color;
    /* visited color for dcd story view */
    color           *dcd_story_visited_text_color;
    /* unvisited color for dcd story view */
    color           *dcd_story_unvisited_text_color;
    /* highlight bar color for dcd story view */
    color           *dcd_story_highlight_bar_color;

    /* SIM2 network name color */
    color           *idle_scr_sim2_network_name_color;
    /* SIM2 network name border color */
    color           *idle_scr_sim2_network_name_border_color;
    /* SIM2 network status color */
    color           *idle_scr_sim2_network_status_color;
    /* SIM2 network status border color */
    color           *idle_scr_sim2_network_status_border_color ;

    /* bakc ground filler for full height popup */
    UI_filled_area  *popup_full_height_screen_bg_filler;
    /* content text color for popup */
//    color           *popup_content_text_color;

    /* text color for main menu */
    color           *main_menu_title_color;
    /* text border color for main menu */
    color           *main_menu_title_border_color;

    /* Under line color */
    color           *ime_underline_color;
    /* Indicator color */
    color           *ime_indicator_color;
    /* Focused area background filler */
    UI_filled_area  *ime_focused_background_filler;
    /* Non-focused area background filler */
    UI_filled_area  *ime_background_filler;
    /* Focused area border color */
    color           *ime_focused_border_color;
    /* Non-focused area background color */
    color           *ime_border_color;
    /* separator width */
    S32             ime_separator_width;
    /* separator color */
    color           *ime_separator_normal_color;
    /* focused separator color */
    color           *ime_focused_separator_color;
    /* text space */
    S32             ime_text_space;
    /* Label color */
    color           *ime_label_color;
    /* Cursor color */
    color           *ime_cursor_color;
    /* Arrow disabled color */
    color           *ime_arrow_disable_color;
    /* Arrow down color */
    color           *ime_arrow_down_color;
    /* Arrow up color */
    color           *ime_arrow_up_color;
    /* cand text color */
    color           *ime_cand_text_color;
    /* cand highlight text color */
    color           *ime_cand_highlighted_text_color;
    /* cand highlight color */
    color           *ime_cand_highlight_color;
    /* comp text color */
    color           *ime_comp_text_color;
    /* comp highlight text color */
    color           *ime_comp_highlighted_text_color;
    /* comp highlight color */
    color           *ime_comp_highlight_color;
    /* input text color */
    color           *ime_input_text_color;
    /* input highlight text color */
    color           *ime_input_highlighted_text_color;
    /* input highlight color */
    color           *ime_input_highlight_color;
    /* stroke color */
    color           *ime_stroke_color;
    /* highlighted stroke color */
    color           *ime_highlighted_stroke_color;
    /* stroke highlight color */
    color           *ime_stroke_highlight_color;
    /* tab special filler */
    UI_filled_area  *tab_special_filler;
    /* mini indicator background color */
//    color           *mini_indicator_bg_color;
    /* mini indicator normal color */
//    color           *mini_indicator_normal_color;
    /* mini indicator tab color */
//    color           *mini_indicator_tab_color;
    /* media player content text color */
    color           *media_player_content_text_color;
    /* media player content border color */
    color           *media_player_content_text_border_color;
    /* first line text color in two line list */
//    color           *two_line_first_line_text_color;
//    /* first line highlight text color in two line list */
    color           *two_line_first_line_highlight_text_color;
    /* second line text color in two line list */
    color           *two_line_second_line_text_color;
    /* second line highlight text color in two line list */
    color           *two_line_second_line_highlight_text_color;
    /* two line second line selector filler */
//    UI_filled_area  *two_line_second_line_selector_filler;
    /* two line second line selector text color*/
//    color           *two_line_second_line_selector_text_color;
    /* first line text color in multirow*/
//    color           *multirow_first_line_text_color;
    /* first line highlight text color in multirow*/
//    color           *multirow_first_line_highlight_text_color;
    /* second line text color in multirow*/
//    color           *multirow_second_line_text_color;
    /* second line highlight text color in multirow*/
//    color           *multirow_second_line_highlight_text_color;
    /* third line text color in multirow*/
    color           *multirow_third_line_text_color;
    /* third line highlight text color in multirow*/
    color           *multirow_third_line_highlight_text_color;
    /* grid line color in list */
    color           *list_grid_line_color;
    /* alpha of grid line in list */
    S32             list_grid_line_alpha;
    /* highlight filler without scroll bar for single line */
//    UI_filled_area  *menuitem_single_line_highlight_without_scroll_filler;
    /* highlight filler without scroll bar for two line */
//    UI_filled_area  *menuitem_two_line_highlight_without_scroll_filler;
    /* highlight filler without scroll bar for multirow */
//    UI_filled_area  *menuitem_multirow_highlight_without_scroll_filler;
    /* highlight filler without scroll bar for thick line */
//    UI_filled_area  *menuitem_thick_highlight_without_scroll_filler;
    /* highlight filler without scroll bar for thick with tab */
//    UI_filled_area  *menuitem_thick_with_tab_highlight_without_scroll_filler;
    /* back ground image for dialing screen */
    PU8             dialing_screen_bg_image;
    /* small key up image for dialing screen */
    PU8             dialing_screen_skey_up_image;
    /* small key down image for dialing screen */
    PU8             dialing_screen_skey_down_image;
    /* large key up image for dialing screen */
    PU8             dialing_screen_lkey_up_image;
    /* large key down image for dialing screen */
    PU8             dialing_screen_lkey_down_image;
    /* editor text color in void dialer */
    color           *voip_dialer_editor_text_color;
    /* text color in header bar and information bar */
    color           *header_information_text_color;
    /* back ground image for popup call screen */
    PU8             CM_screen_popup_bkg_image;
    /* left softkey up filler in popup */
    UI_filled_area  *popup_embedded_lsk_normal_up_filler;
    /* left softkey down filler in popup */
    UI_filled_area  *popup_embedded_lsk_normal_down_filler;
    /* right softkey up filler in popup */
    UI_filled_area  *popup_embedded_rsk_normal_up_filler;
    /* right softkey down filler in popup */
    UI_filled_area  *popup_embedded_rsk_normal_down_filler;
    /* softkey text color in popup */
    color           *popup_embedded_softkey_text_color;
    /* softkey text border color in popup */
    color           *popup_embedded_softkey_text_border_color;
    /* softkey bar filler for popup screen */
    UI_filled_area  *popup_softkey_bar_filler;
    /* highlight filler in small list */
    UI_filled_area  *small_list_menu_highlight_filler;
    /* small list highlight text color*/
    color           *small_list_menu_highlight_text_color;
    /* small list text color */
    color           *small_list_menu_text_color;
    /* large current day text color in idle calendar */
    color           *calendar_idle_large_current_day_text_color;
    /* large current date text color in idle calendar */
    color           *calendar_idle_large_current_date_text_color;
    /* entry alpha in calendar */
    S32             calendar_infobox_entry_alpha;
    /* calendar idle background image */
    PU8             calendar_idle_bg_image;
    /* icon bar hint text color */
    color           *icon_bar_hint_text_color;
    /* hint filler for icon bar */
    UI_filled_area  *icon_bar_hint_filler;
    /* alphabet bar highlight color */
//    color           *alphabet_bar_highlight_color;
    /* alphabet bar highlight alpha */
//    S32             alphabet_bar_highlight_alpha;   
    /* virtual_keyboard_key_disabled_bg_color */
    color           *virtual_keyboard_key_disabled_bg_color;
    /* virtual_keyboard_key_disabled_bg_alpha */ 
    S32             virtual_keyboard_key_disabled_bg_alpha;
    /* virtual keyboard key disabled text color */
    color           *virtual_keyboard_key_disabled_text_color;
    /* virtual keyboard key large left icon image */
    PU8             virtual_keyboard_key_large_icon_left_image;    
    /* virtual keyboard key large right icon image */
    PU8             virtual_keyboard_key_large_icon_right_image;
    /* alpha for information bar */
    S32             information_bar_alpha;
    /* back ground filler for special screen */
    UI_filled_area  *special_screen_bkg_filler;
    /* highlight filler without scroll bar for small screen */
//    UI_filled_area  *small_list_menu_highlight_without_scrollbar_filler;
    /* back ground color for virtual keyboard */
//    color           *virtual_keyboard_bg_color;
    /* alpha for virtual keyboard */
//    S32             virtual_keyboard_bg_alpha;
    /* back gournd color for key in virtual keyboard */
//    color           *virtual_keyboard_key_bg_color;
    /* alpha for key in virtual keyboard */
//    S32             virtual_keyboard_key_bg_alpha;
    /* border color for key in virtual keyboard */
//    color           *virtual_keyboard_key_border_color;
    /*border alpha for key in virtual keyboard */
//    S32             virtual_keyboard_key_border_alpha;
    /* color for disabled key in virtual keyboard */
//    color           *virtual_keyboard_key_disable_color;
    /* alpha for disabled key in virtual keyboard */
//    S32             virtual_keyboard_key_disable_alpha;
    /* border color for disabled key in virtual keyboard */
//    color           *virtual_keyboard_key_disable_border_color;
    /* border alpha for disabled key in virtual keyboard */
//    S32             virtual_keyboard_key_disable_border_alpha;
    /* color for highlight key in virtual keyboard */
//    color           *virtual_keyboard_key_highlight_bg_color;
    /* alpha for highlight key in virtual keyboard */
//    S32             virtual_keyboard_key_highlight_bg_alpha;
    /* border color for highlight key in virtual keyboard */
//    color           *virtual_keyboard_key_highlight_border_color;
    /* border alpha for highlight key in virtual keyboard */
//    S32             virtual_keyboard_key_highlight_border_alpha;
    /* text color for popup hint key in virtual keyboard */
//    color           *virtual_keyboard_key_popup_hint_text_color;
    /* dialing screen large key disabled image*/
    PU8             dialing_screen_lkey_disable_image;
    /* back ground filler for ime information bar */
    UI_filled_area  *ime_information_bar_background_filler;
    /* focussed filler for inline datatime */
    UI_filled_area  *inline_datatime_focussed_filler;
    /* unfocussed filler for inline datatime */
    UI_filled_area  *inline_datatime_unfocussed_filler;
    /* cascading menu highlight left arrow*/
    PU8             cascade_menu_submenu_highlight_left_arrow_image;
    /* cascading menu highlight left arrow*/
    PU8             cascade_menu_submenu_highlight_right_arrow_image;
    /* color for subject in UCE */
    color           *uce_screen_subject_color;
    /* alpha for the background of readonly inline multiline */
    S32             inline_multiline_readonly_bg_alpha;
    /* color for the background of readonly inline multiline */
    color           *inline_multiline_readonly_bg_color;
    /* disabled left arrow image for cascading menu */
    PU8             cascade_menu_submenu_disabled_left_arrow_image;
    /* disabled right arrow image for cascading menu */
    PU8             cascade_menu_submenu_disabled_right_arrow_image;
    /* the image of pre button in UCE screen */
    PU8             UCE_screen_pre_button_image;
    /* the disabled image of pre button in UCE screen */
    PU8             UCE_screen_pre_button_disabled_image;
    /* the image of next button in UCE screen */
    PU8             UCE_screen_next_button_image;
    /* the disabled image of next button in UCE screen */
    PU8             UCE_screen_next_button_disabled_image;
    /* left area filler for normal tab */
//    UI_filled_area  *tab_normal_l_tab_filler;
    /* right area filler for normal tab */
//    UI_filled_area  *tab_normal_r_tab_filler;
    /* left area filler for highlight tab */
//    UI_filled_area  *tab_highlight_l_tab_filler;
    /* right area filler for highlight tab */
//    UI_filled_area  *tab_highlight_r_tab_filler;
    /* left area filler for blink tab */
//    UI_filled_area  *tab_blink_l_tab_filler;
    /* right area filler for blink tab */
//    UI_filled_area  *tab_blink_r_tab_filler;
    /* color for the icon bar item's text in its normal state */
    color           *icon_bar_item_text_normal_color;
    /* color for the icon bar item's text in its disabled state */
    color           *icon_bar_item_text_disable_color;
    /* the image of icon bar item left background in its normal up state */
    PU8             icon_bar_item_normal_left_background;
    /* the image of icon bar item left background in its press down state */
    PU8             icon_bar_item_pressed_left_background;
    /* the image of icon bar item right background in its normal up state */
    PU8             icon_bar_item_normal_right_background;
    /* the image of icon bar item right background in its press down state */
    PU8             icon_bar_item_pressed_right_background;
    /* the image of icon bar item left-right background in its normal up state */
    PU8             icon_bar_item_normal_left_right_background;
    /* the image of icon bar item left-right background in its press down state */
    PU8             icon_bar_item_pressed_left_right_background;
    /* the image of icon bar item center background in its normal up state */
    PU8             icon_bar_item_normal_center_background;
    /* the image of icon bar item center background in its press down state */
    PU8             icon_bar_item_pressed_center_background;
    /* The title text color of idle calendar */
    color           *calendar_title_text_color_for_idle;
    /* Idle calendar's cell text color for those cells that have event.  */
    color           *calendar_cell_event_text_color_for_idle;
    /* the area filler of DOW disabled background */
    UI_filled_area  *DOW_normal_background_filler;
    /* the area filler of DOW normal background */
    UI_filled_area  *DOW_highlight_background_filler;
    /* the area filler of DOW highlight background */
    UI_filled_area  *DOW_cell_normal_selected_filler;
    /* the area filler of DOW cell normal background */
    UI_filled_area  *DOW_cell_focus_selected_filler;
    /* the area filler of DOW cell highlight background */
    UI_filled_area  *DOW_cell_highlight_filler;    
    /* The background image for vk large icon. */
    PU8             virtual_keyboard_normal_popup_background;
    /* inline_item_color_select_highlighted_index_image */
    PU8             inline_item_color_select_highlighted_index_image;
    /* inline_item_color_select_highlighted_bg_image */
    PU8             inline_item_color_select_highlighted_bg_image;
    /* inline_item_color_select_unhighlighted_bg_image */
    PU8             inline_item_color_select_unhighlighted_bg_image;
    /* inilne_item_select_left_arrow_push_image */
    PU8             inline_item_select_left_arrow_push_image;
    /* inilne_item_select_right_arrow_push_image */
    PU8             inline_item_select_right_arrow_push_image;    
    /* The candidate box background of small size */
    PU8             ime_cand_background_small;
    /* The candidate box background of medium size */
    PU8             ime_cand_background_medium;
    /* The candidate box background of large size */
    PU8             ime_cand_background_large;
    /* The candidate box focus frame of small size */
    PU8             ime_cand_focus_frame_small;
    /* The candidate box focus frame of medium size */
    PU8             ime_cand_focus_frame_medium;
    /* The candidate box focus frame of large size */
    PU8             ime_cand_focus_frame_large;
    /* The candidates separator line of small size */
    PU8             ime_cand_separator_small;
    /* The candidates separator line of medium size */
    PU8             ime_cand_separator_medium;
    /* The candidates separator line of large size */
    PU8             ime_cand_separator_large;
    /* The pressed left arrow of small size */
    PU8             ime_cand_left_arrow_down_small;
    /* The pressed left arrow of medium size */
    PU8             ime_cand_left_arrow_down_medium;
    /* The pressed left arrow of large size */
    PU8             ime_cand_left_arrow_down_large;
    /* The normal left arrow of small size */
    PU8             ime_cand_left_arrow_up_small;
    /* The normal left arrow of medium size */
    PU8             ime_cand_left_arrow_up_medium;
    /* The normal left arrow of large size */
    PU8             ime_cand_left_arrow_up_large;
    /* The disabled left arrow of small size */
    PU8             ime_cand_left_arrow_disable_small;
    /* The disabled left arrow of medium size */
    PU8             ime_cand_left_arrow_disable_medium;
    /* The disabled left arrow of large size */
    PU8             ime_cand_left_arrow_disable_large;
    /* The pressed right arrow of small size */
    PU8             ime_cand_right_arrow_down_small;
    /* The pressed right arrow of medium size */
    PU8             ime_cand_right_arrow_down_medium;
    /* The pressed right arrow of large size */
    PU8             ime_cand_right_arrow_down_large;
    /* The normal right arrow of small size */
    PU8             ime_cand_right_arrow_up_small;
    /* The normal right arrow of medium size */
    PU8             ime_cand_right_arrow_up_medium;
    /* The normal right arrow of large size */
    PU8             ime_cand_right_arrow_up_large;
    /* The disabled right arrow of small size */
    PU8             ime_cand_right_arrow_disable_small;
    /* The disabled right arrow of medium size */
    PU8             ime_cand_right_arrow_disable_medium;
    /* The disabled right arrow of large size */
    PU8             ime_cand_right_arrow_disable_large;
    /* The focused candidate highlight background of small size */
    PU8             ime_cand_highlight_small;
    /* The focused candidate highlight background of medium size */
    PU8             ime_cand_highlight_medium;
    /* The focused candidate highlight background of large size */
    PU8             ime_cand_highlight_large;
    /* The unfocused candidate highlight background of small size */
    PU8             ime_cand_dull_highlight_small;
    /* The unfocused candidate highlight background of medium size */
    PU8             ime_cand_dull_highlight_medium;
    /* The unfocused candidate highlight background of large size */
    PU8             ime_cand_dull_highlight_large;
    /* The input box background of small size */
    PU8             ime_input_background_small;
    /* The input box background of medium size */
    PU8             ime_input_background_medium;
    /* The input box background of large size */
    PU8             ime_input_background_large;
    /* thin vertical scrollbar image */
    PU8             scrollbar_v_scroll_button_image;
    /* thin horizontal scrollbar image */
    PU8             scrollbar_h_scroll_button_image;
    /* wider vertical scrollbar top button image */
    PU8             wider_scrollbar_v_top_button_image;
    /* wider vertical scrollbar top clicked button image */
    PU8             wider_scrollbar_v_top_clicked_button_image;
    /* wider vertical scrollbar bottom button image */
    PU8             wider_scrollbar_v_bottom_button_image;
    /* wider vertical scrollbar bottom clicked button image */
    PU8             wider_scrollbar_v_bottom_clicked_button_image;
    /* wider vertical scrollbar middle background image */
    PU8             wider_scrollbar_v_background_button_image;
    /* wider vertical scrollbar scroll button image */
    PU8             wider_scrollbar_v_scroll_button_image;
    /* wider vertical scrollbar scroll clicked button image */
    PU8             wider_scrollbar_v_scroll_clicked_button_image;
    /* wider horizontal scrollbar left button image */
    PU8             wider_scrollbar_h_left_button_image;
    /* wider horizontal scrollbar left clicked button image */
    PU8             wider_scrollbar_h_left_clicked_button_image;
    /* wider horizontal scrollbar right button image */
    PU8             wider_scrollbar_h_right_button_image;
    /* wider horizontal scrollbar right clicked button image */
    PU8             wider_scrollbar_h_right_clicked_button_image;
    /* wider horizontal scrollbar middle background image */
    PU8             wider_scrollbar_h_background_button_image;
    /* wider horizontal scrollbar scroll button image */
    PU8             wider_scrollbar_h_scroll_button_image;
    /* wider horizontal scrollbar scroll clicked button image */
    PU8             wider_scrollbar_h_scroll_clicked_button_image;    
    /* slide bar background image */
    PU8             slide_bar_background_image;
    /* slide bar indicator image */
    PU8             slide_bar_indicator_image;    
    /* tab bar left button image */
    PU8             tab_bar_left_indicator_image;
    /* tab bar right button image */
    PU8             tab_bar_right_indicator_image;    
    /* All Editor default text color */
    color           *inputbox_default_text_color;
    /* Clipboard floating menu 1 button normal image normal background(Unpressed)  */
    PU8             clipboard_floating_menu_1_menu_button_normal_bg;
    /* Clipboard floating menu 1 button normal image press down background */
    PU8             clipboard_floating_menu_1_menu_button_pressed_bg;
    /* Clipboard floating menu left button of 2 button normal image background (Unpressed) */
    PU8             clipboard_floating_menu_2_menu_left_button_normal_bg;
    /* Clipboard floating menu left button of 2 button pressed down image background */
    PU8             clipboard_floating_menu_2_menu_left_button_pressed_bg;
    /* Clipboard floating menu right button of 2 button normal image background (Unpressed) */
    PU8             clipboard_floating_menu_2_menu_right_button_normal_bg;
    /* Clipboard floating menu right button of 2 button pressed down image background */
    PU8             clipboard_floating_menu_2_menu_right_button_pressed_bg;
    /* Clipboard floating menu middle button of 3 button normal image background (Unpressed) */
    PU8             clipboard_floating_menu_3_menu_middle_button_normal_bg;
    /* Clipboard floating menu middle button of 3 button pressed down image background */
    PU8             clipboard_floating_menu_3_menu_middle_button_pressed_bg;
    /* Clipboard floating menu arrow normal image background */
    PU8             clipboard_floating_menu_down_arrow_button_normal_bg_image;
    /* Clipboard floating menu arrow pressed down image background */
    PU8             clipboard_floating_menu_down_arrow_button_pressed_bg_image;
    /* clipboard floating menu text color */
    color           *clipboard_floating_menu_text_color;
    /* Editor remaining counter background */
    PU8             inputbox_remaining_counter_bg;
    /* All Editor highlighter alpha */
    S32             inputbox_highlighter_alpha;
    /* Color for the icon bar item's text border in its normal state */
    color           *icon_bar_item_text_border_normal_color;
    /* Color for the icon bar item's text border in its disabled state */
    color           *icon_bar_item_text_border_disable_color;
    /* Text border color of down softkey */
    color           *softkey_down_text_border_color;
    /* Text border color of disabled softkey */
    color           *softkey_disabled_text_border_color;
    /* Call manager screen text border color */
    color           *CM_screen_text_border_color;
    /* The text color of the highlight item of the unfocused candidate box */
//    color           *ime_cand_dull_highlighted_text_color;
    /* slide bar's background image in focused state */
    PU8             slide_bar_focused_bg_image;
    /* slide bar's indicator image in focused state */
    PU8             slide_bar_focused_indicator_image;
    /* horizontal select background filler */
    UI_filled_area  *horizontal_select_bg_filler;
    /* horizontal select focused background filler */
    UI_filled_area  *horizontal_select_focused_bg_filler;
    
    UI_filled_area  *inline_item_progress_bar_highlight_bg_filler;
    
    UI_filled_area  *inline_item_progress_bar_unhighlight_bg_filler;
    
    UI_filled_area  *inline_item_progress_bar_gradient_progress_filler;
    
    UI_filled_area  *inline_item_progress_bar_normal_progress_filler;
    
    UI_filled_area  *inline_item_progress_bar_step_filler;
    
    UI_filled_area  *inline_item_progress_bar_button_pressed_filler;
    
    UI_filled_area  *inline_item_progress_bar_button_normal_filler;
    
    color           *inline_item_progress_bar_text_color;
    
    UI_filled_area  *inline_item_displayonly_rdonly_style_bg_filler;
    /* button filler showed when buttion item is highlight and is pushed down */
    UI_filled_area  *inline_item_button_highlighted_pressed_bg_filler;
    /* button filler showed when buttion item is highlight and is normal */
    UI_filled_area  *inline_item_button_highlighted_normal_bg_filler;
    /* button filler showed when buttion item is not highlight and is pushed down */
    UI_filled_area  *inline_item_button_unhighlighted_pressed_bg_filler;
    /* button filler showed when buttion item is not highlight and is normal */
    UI_filled_area  *inline_item_button_unhighlighted_normal_bg_filler;
    /* text edit background showed when text edit item is highlight */
    UI_filled_area  *inline_item_textedit_highlighted_bg_filler;
     /* text edit background showed when text edit item is unhighlight */
    UI_filled_area  *inline_item_textedit_unhighlighted_bg_filler;
    /* Clipboard floating menu up arrow normal image background */
    PU8             clipboard_floating_menu_up_arrow_button_normal_bg_image;
    /* Clipboard floating menu up arrow presses image background */
    PU8             clipboard_floating_menu_up_arrow_button_pressed_bg_image;
    /* calendar current date background filler */
    UI_filled_area  *calendar_current_bg_filler;
    /* idle calendar current date background filler */
    UI_filled_area  *calendar_current_bg_for_idle_filler;
    /* Popup background filler */
    UI_filled_area  *popup_screen_bg_filler;
    /* background filler of rotate popup screen */
    UI_filled_area  *rotated_popup_screen_bg_filler;
    
    /* Small screen editor border color. */
    color           *editor_small_screen_border_color;
    /* In the message editor screen, the background color of the add recipient button. */
    PU8             editor_recipient_button_image;
    /* In the message editor screen, the text color of the add recipient button. */
    color           *editor_recipient_button_text_color;
    /* singleline editor background color. */
    UI_filled_area  *singleline_editor_bg_filler;
    /* In the stopwatch screen, the active timer text color. */
    color           *stopwatch_active_timer_text_color;
    /* In the stopwatch screen, the inactive timer text color. */
    color           *stopwatch_inactive_timer_text_color;
    /* Progress bar to show the slide progress. */
    PU8             mms_viewer_progress_bar_img;
} MMI_theme;


/*
 * MTE UI RPC
 */
static HANDLE _mte_rpc_event;

static void mmi_mte_rpc_finish_cb(void *msg)
{
    SetEvent(_mte_rpc_event);
}

#define MTE_RPC_GET_RETURN_VALUE()  (int)w32_mmi_mte_api(MMI_MTE_RPC_GET_RETURN_VALUE_API_INDEX)
#define mmi_mte_set_finish_cb(arg0) ((void (*)( void (*)(void*)))w32_mmi_mte_api(MMI_MTE_RPC_REGISTER_FINISH_CALLBACK_API_INDEX))(arg0)

#define MTE_RPC_BEGIN   { _mte_rpc_event = CreateEvent(NULL, 0, 0, "MTE_EV"); mmi_mte_set_finish_cb(mmi_mte_rpc_finish_cb);
#define MTE_RPC_END     WaitForSingleObject(_mte_rpc_event, INFINITE); CloseHandle(_mte_rpc_event); }

/*
 * !!! The following data are program-generated. DO NOT MODIFY THEM. !!!
 */
#define mmi_mte_get_baseband_chip() ((const char * (*)(void))w32_mmi_mte_api(0))()
#define mmi_mte_get_lcd_resolution(arg0, arg1, arg2) ((int  (*)(mmi_mte_lcd_type_enum lcd_type, int *width, int *height))w32_mmi_mte_api(1))(arg0, arg1, arg2)
#define mmi_mte_get_theme_component_symbol_info(arg0) ((const char * (*)(const mmi_mte_theme_component_struct *theme_component))w32_mmi_mte_api(2))(arg0)
#define mmi_mte_translate_font_pointer(arg0) ((mmi_mte_theme_data_type_enum  (*)(UI_font_type font_ptr))w32_mmi_mte_api(3))(arg0)
#define mmi_mte_get_font_symbol(arg0) ((const char * (*)(mmi_mte_theme_font_data_type_enum font_type))w32_mmi_mte_api(4))(arg0)
#define mmi_mte_get_theme_component_image_info(arg0, arg1, arg2, arg3, arg4, arg5, arg6) ((void  (*)(mmi_mte_theme_component_struct *theme_component, int *recommend_width, int *recommend_height, int *max_width, int *max_height, unsigned int *allowed_image_type, mmi_mte_image_enum *recommend_image_type))w32_mmi_mte_api(5))(arg0, arg1, arg2, arg3, arg4, arg5, arg6)
#define mmi_mte_get_image_info_string(arg0) ((const char * (*)(mmi_mte_image_enum image_type))w32_mmi_mte_api(6))(arg0)
#define mmi_mte_get_image_dimension(arg0, arg1, arg2, arg3) mmi_mte_get_image_dimension_RPC(arg0, arg1, arg2, arg3, w32_mmi_mte_api)
static int mmi_mte_get_image_dimension_RPC(mmi_mte_image_enum image_type, char *image_data, int *width, int *height, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((int  (*)(mmi_mte_image_enum image_type, char *image_data, int *width, int *height))w32_mmi_mte_api(7))(image_type, image_data, width, height);    MTE_RPC_END    return (int )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_start_decode_image(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) mmi_mte_start_decode_image_RPC(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, w32_mmi_mte_api)
static mmi_mte_return_code_enum mmi_mte_start_decode_image_RPC(mmi_mte_image_enum image_type, char *image_data, int image_size, char *output_buffer, unsigned int output_buffer_size, int ouput_image_width, int output_image_height, void (*frame_finish_callback)(char *output_buffer, int output_image_width, int output_image_height), int start_frame, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((int  (*)(mmi_mte_image_enum image_type, char *image_data, int image_size, char *output_buffer, unsigned int output_buffer_size, int ouput_image_width, int output_image_height, void (*frame_finish_callback)(char *output_buffer, int output_image_width, int output_image_height), int start_frame))w32_mmi_mte_api(8))(image_type, image_data, image_size, output_buffer, output_buffer_size, ouput_image_width, output_image_height, frame_finish_callback, start_frame);    MTE_RPC_END    return (mmi_mte_return_code_enum )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_stop_decode_image() do { MTE_RPC_BEGIN ((void  (*)(void))w32_mmi_mte_api(9))(); MTE_RPC_END } while (0)
#define mmi_mte_get_theme_schema_version(arg0, arg1) ((const char * (*)(int *major_verno, int *minor_verno))w32_mmi_mte_api(10))(arg0, arg1)
#define mmi_mte_get_theme_component_num() ((int  (*)(void))w32_mmi_mte_api(11))()
#define mmi_mte_get_theme_component(arg0) ((const mmi_mte_theme_component_struct * (*)(int component_id))w32_mmi_mte_api(12))(arg0)
#define mmi_mte_get_theme_components_in_current_screen(arg0, arg1) mmi_mte_get_theme_components_in_current_screen_RPC(arg0, arg1, w32_mmi_mte_api)
static int mmi_mte_get_theme_components_in_current_screen_RPC(int max_component_number, const mmi_mte_theme_component_struct *theme_component_list[], void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((int  (*)(int max_component_number, const mmi_mte_theme_component_struct *theme_component_list[]))w32_mmi_mte_api(13))(max_component_number, theme_component_list);    MTE_RPC_END    return (int )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_get_component_group_num() ((int  (*)(void))w32_mmi_mte_api(14))()
#define mmi_mte_get_component_group_name(arg0) ((const char * (*)(int group_id))w32_mmi_mte_api(15))(arg0)
#define mmi_mte_get_system_theme_data(arg0, arg1, arg2) ((int  (*)(int max_theme_number, const MMI_theme *theme_list[], const char *theme_name_list[]))w32_mmi_mte_api(16))(arg0, arg1, arg2)
#define mmi_mte_refresh_screen(arg0) do { MTE_RPC_BEGIN ((void  (*)(mmi_mte_lcd_type_enum lcd_type))w32_mmi_mte_api(17))(arg0); MTE_RPC_END } while (0)
#define mmi_mte_activate_theme(arg0, arg1) do { MTE_RPC_BEGIN ((void  (*)(MMI_theme *theme, U16 index))w32_mmi_mte_api(18))(arg0, arg1); MTE_RPC_END } while (0)
#define mmi_mte_translate_theme_component_data_pointer(arg0, arg1) ((void * (*)(const mmi_mte_theme_component_struct *theme_component, MMI_theme *theme))w32_mmi_mte_api(19))(arg0, arg1)
#define mmi_mte_register_switch_screen_callback(arg0) do { MTE_RPC_BEGIN ((void  (*)(void (*switch_screen_callback)(void)))w32_mmi_mte_api(20))(arg0); MTE_RPC_END } while (0)
#define mmi_mte_get_example_screen_num() ((int  (*)(void))w32_mmi_mte_api(21))()
#define mmi_mte_get_example_screen_name(arg0) ((const char * (*)(int screen_index))w32_mmi_mte_api(22))(arg0)
#define mmi_mte_show_example_screen(arg0) mmi_mte_show_example_screen_RPC(arg0, w32_mmi_mte_api)
static int mmi_mte_show_example_screen_RPC(int screen_index, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((int  (*)(int screen_index))w32_mmi_mte_api(23))(screen_index);    MTE_RPC_END    return (int )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_set_image_source(arg0, arg1) ((int  (*)(int use_image_folder, const char *folder_path))w32_mmi_mte_api(24))(arg0, arg1)
#define mmi_mte_get_image_resource_total_size(arg0) ((int  (*)(int in_local_folder))w32_mmi_mte_api(25))(arg0)
#define mmi_mte_set_language(arg0) ((void  (*)(int language_id))w32_mmi_mte_api(26))(arg0)
#define mmi_mte_get_welcome_string(arg0) ((const char * (*)(const MMI_theme *theme))w32_mmi_mte_api(27))(arg0)
#define mmi_mte_get_image_data_length(arg0) ((int  (*)(char *image_ptr))w32_mmi_mte_api(28))(arg0)
#define mmi_mte_get_image_header(arg0, arg1, arg2, arg3, arg4) ((void  (*)(char *header, mmi_mte_image_enum image_type, int width, int height, int size))w32_mmi_mte_api(29))(arg0, arg1, arg2, arg3, arg4)
#define mmi_mte_get_current_system_theme() mmi_mte_get_current_system_theme_RPC(w32_mmi_mte_api)
static MMI_theme *mmi_mte_get_current_system_theme_RPC(void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((MMI_theme * (*)(void))w32_mmi_mte_api(30))();    MTE_RPC_END    return (MMI_theme *)MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_get_image_resource_info(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) ((void  (*)(char *img_res_ptr, int frame_index, char **img_data_ptr, mmi_mte_image_enum *mte_image_type, int *width, int *height, int *size, int *delay, int *repeat_count))w32_mmi_mte_api(31))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
#define mmi_mte_set_state(arg0) ((void  (*)(mmi_mte_state_enum state))w32_mmi_mte_api(32))(arg0)
#define mmi_mte_show_example_screen_by_group(arg0) mmi_mte_show_example_screen_by_group_RPC(arg0, w32_mmi_mte_api)
static int mmi_mte_show_example_screen_by_group_RPC(int group_index, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((int  (*)(int group_index))w32_mmi_mte_api(33))(group_index);    MTE_RPC_END    return (int )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_encode_abm_image(arg0, arg1, arg2, arg3, arg4) mmi_mte_encode_abm_image_RPC(arg0, arg1, arg2, arg3, arg4, w32_mmi_mte_api)
static mmi_mte_abm_encoder_error_enum mmi_mte_encode_abm_image_RPC(mmi_mte_abmenc_mode_enum mode, mmi_mte_image_enum input_image_type, char *input_filename, char *output_abm_bitstream, int *output_size, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((mmi_mte_abm_encoder_error_enum  (*)(mmi_mte_abmenc_mode_enum mode, mmi_mte_image_enum input_image_type, char *input_filename, char *output_abm_bitstream, int *output_size))w32_mmi_mte_api(34))(mode, input_image_type, input_filename, output_abm_bitstream, output_size);    MTE_RPC_END    return (mmi_mte_abm_encoder_error_enum)(int)MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_get_value(arg0) ((void * (*)(mmi_mte_system_value_enum name))w32_mmi_mte_api(35))(arg0)
#define mmi_mte_set_value(arg0, arg1) ((int  (*)(mmi_mte_system_value_enum name, void *value))w32_mmi_mte_api(36))(arg0, arg1)
#define mmi_mte_map_theme_component_name_to_old_branch(arg0, arg1) ((char * (*)(int old_major_verno, char *theme_component_name))w32_mmi_mte_api(37))(arg0, arg1)
#define mmi_mte_get_image_frame_count(arg0, arg1) mmi_mte_get_image_frame_count_RPC(arg0, arg1, w32_mmi_mte_api)
static mmi_mte_return_code_enum mmi_mte_get_image_frame_count_RPC(char *image_ptr, int *frame_count, void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((mmi_mte_return_code_enum  (*)(char *image_ptr, int *frame_count))w32_mmi_mte_api(38))(image_ptr, frame_count);    MTE_RPC_END    return (mmi_mte_return_code_enum )(int)MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_get_image_sequence_header(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) ((mmi_mte_return_code_enum  (*)(char *header, mmi_mte_image_enum image_type, int *output_header_size, int width, int height, int frame_num, int repeat_count, int *frame_size, int *frame_delay))w32_mmi_mte_api(39))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
#define mmi_mte_is_controlarea_in_current_screen() mmi_mte_is_controlarea_in_current_screen_RPC(w32_mmi_mte_api)
static mmi_mte_return_code_enum mmi_mte_is_controlarea_in_current_screen_RPC(void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((mmi_mte_return_code_enum  (*)(void))w32_mmi_mte_api(41))();    MTE_RPC_END    return (mmi_mte_return_code_enum )MTE_RPC_GET_RETURN_VALUE();}
#define mmi_mte_get_image_9slice_header(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8,arg9) ((mmi_mte_return_code_enum  (*)(char *header, mmi_mte_image_enum image_type, int *output_header_size, int width, int height, int len,int left, int top, int right, int bottom))w32_mmi_mte_api(42))(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)


#if defined(__MSLT__)
/* for MSLT tool, NOT MTE-RELATED */
#define mmi_mslt_check_string(arg0, arg1, arg2, arg3, arg4, arg5, arg6) mmi_mslt_check_string_RPC(arg0, arg1, arg2, arg3, arg4, arg5, arg6, w32_mmi_mte_api)
static mmi_mte_return_code_enum mmi_mslt_check_string_RPC(int number_of_strings, int string_ids[], char *strings[], int number_of_regions[], int *region_ids[], int ret[], char *display_strings[], void (*(*w32_mmi_mte_api)(int))(void)){     MTE_RPC_BEGIN    ((mmi_mte_return_code_enum  (*)(int number_of_strings, int string_ids[], char *string[], int number_of_regions[], int *region_ids[], int ret[], char *display_strings[]))w32_mmi_mte_api(40))(number_of_strings, string_ids, strings, number_of_regions, region_ids, ret, display_strings);    MTE_RPC_END    return (mmi_mte_return_code_enum )(int)MTE_RPC_GET_RETURN_VALUE();}
#endif /* defined(__MSLT__) */

#endif /* __MMI_FEATURES__ */

#endif /* __MTEGPROT_H__ */