gui_inputs.h 103 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 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976
/*****************************************************************************
*  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:
 * ---------
 *   gui_inputs.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   Input box - UI component
 *
 * 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!
 * 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!
 *
 * 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!
 *
 * 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!
 * 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 __GUI_INPUTS_H__
#define __GUI_INPUTS_H__

#ifndef __MMI_FWUI_SLIM__
    #define GUI_INPUT_BOX_CACHE_SUPPORT
#endif

#ifndef __MMI_FTE_SUPPORT__
#define __MMI_EDITOR_FORCE_AUTO_SCROLLBAR__
#endif

#ifdef __MMI_FTE_SUPPORT__
#define GUI_INPUT_BOX_FLOATING_COUNTER
#define __MMI_FTE_EDITOR_SCROLLBAR_STYLE__
#endif

#define __MMI_EDITOR_MULTILINE_DIALER_STYLE_SUPPORT__

#if defined(__MMI_MOBILE_TV_CMMB_SUPPORT__) || defined(__MMI_MRE_MSPACE__) 
#define  __MMI_EDITOR_MULTILINE_SUPPORT_RICH_TEXT__  //slim_slim
#endif
#if defined(__MMI_MSG_EDITOR_WITH_RECIPIENT__) 
#define  __MMI_EDITOR_SINGLE_SUPPORT_RECIPIENT_MODE__ //slim_slim
#endif 

#if defined(__MMI_MSG_EDITOR_WITH_RECIPIENT__) || defined(__MMI_SEARCH_WEB__)
#define  __MMI_EDITOR_SL_AUTO_CLEAR_HILITE_MODE__   //slim_slim
#endif
            
#if defined(__MMI_MV_SUPPORT_USE_DETAIL_HIGHLIGHT__) || defined(__EMAIL__) //|| defined(__IMPS__)
#define  __MMI_EDITOR_MULTILINE_SUPPORT_HILITE_LIST__  //slim_slim
#endif


#if defined(__MMI_MULTIGRAPH_SUPPORT__) 
#define  __MMI_EDITOR_MULTILINE_SUPPORT_MULTIGRAPH__  //slim_slim
#define  __MMI_EDITOR_SINGLE_SUPPORT_MULTIGRAPH__  //slim_slim
#endif

#if defined(__MMI_MOBILE_TV_CMMB_SUPPORT__) || defined(__CTM_SUPPORT__) //|| defined(__IMPS__)
#define  __MMI_EDITOR_MULTILINE_SUPPORT_ICON_CALLBACK__  //slim_slim
#endif

#if defined(__MMI_INLINE_ITEM_MULTILINE_READ_ONLY__) 
#define __MMI_EDITOR_MULTILINE_SUPPORT_SEMITRANSPARENT_BACKGROUND__ //slim_slim
#endif
#if defined(__MMI_MAINLCD_96X64__) 
#define __MMI_EDITOR_MULTILINE_SUPPORT_96_64_STYLE__ //SLIM_96_64_SLIM
#define __MMI_EDITOR_SINGLELINE_SUPPORT_96_64_STYLE__ 
#endif

#if 0
#if defined(__MMI_MAINLCD_96X64__)
/* under construction !*/
#endif
/* under construction !*/
#ifdef    __MMI_EDITOR_MULTILINE_SUPPORT_BOX_DISPLAY_BORDER__  
/* under construction !*/
#endif /* __MMI_EDITOR_MULTILINE_SUPPORT_BOX_DISPLAY_BORDER__*/
/* under construction !*/
#endif
#if defined( __MMI_INLINE_ITEM_MULTILINE_READ_ONLY__) || defined( __MMI_INLINE_ITEM_MULTILINE_EDIT__)
#define __MMI_MULTILINE_IN_INLINE_SCEEN_SLIM__
#endif

#if 0
#ifndef __MMI_FWUI_SLIM__
/* under construction !*/
#endif
#endif
/* Used for Singleline editor adjust view for cursor position */
#define GUI_INPUTS_SL_LOCATE_CURSOR_ADJUST_WIDTH    30
#define GUI_INPUTS_SL_LOCATE_CURSOR_L2R_EXTRA_WIDTH  6
#define GUI_INPUTS_SL_LOCATE_CURSOR_R2L_EXTRA_WIDTH  9

#include "MMI_features.h"
#include "gui.h"
#include "gui_scrollbars.h"
/* MTK Leo add,20040318, for new simulator */
#include "gui_theme_struct.h"
/* MTK Leo end */

#include "Gui_setting.h"
#include "ProfilesSrvGprot.h"





#if  defined(__MMI_FTE_SUPPORT__) || defined(__MMI_DIALER_SEARCH__)|| defined(__MMI_BRW_URL_AUTO_COMPLETION__)|| \
defined(__MMI_BRW_SEARCH_HISTORY_SUPPORT__)|| defined(__MMI_MSG_EDITOR_WITH_RECIPIENT__ )||\
defined(__MMI_MOBILE_TV_CMMB_SUPPORT__ )|| defined(__MMI_SNS_CONTACTS__ )||defined(__WGUI_CAT280_SUPPORT_RECIPIENTS__)||\
defined(__MMI_USSD_REPLY_IN_SAME_SCREEN__  )||(!defined(__MMI_INLINE_SLIM__ ))||defined(__FMGR_FTE_TOOLBAR_SUPPORT__  )||\
((!defined(__DISABLE_SANDBOX_LIB__ ))&&(!defined(__MRE_PACKAGE_SLIM__)))||(defined(__MCARE_COMMON__ ))||\
defined(__MMI_EM_AUDIO__ )|| defined(__MMI_BT_DIALER_SUPPORT__ )						
	
	#define  __MMI_EDITOR_SINGLINE_SUPPORT__  // use singline editor
 
#else

	#define  __MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__  //multline input box can support singleine 					 

#endif 

#ifdef __MMI_EBOOK_READER__
#define __UI_LINEBASE_IN_MULTILINE_EDITOR__
#endif

#ifdef __MMI_TOUCH_SCREEN__
/* start vijay 20050221, for Touch Dialing Screen */
//#include "gdi_datatype.h"
//#include "gdi_image_bmp.h"
//#include "wgui.h"
//#include "wgui_categories_defs.h"
//#include "mmi_frm_gprot.h"
//#include "gui_fixed_menus.h"
/* end vijay */
#endif /* __MMI_TOUCH_DIAL_SCREEN__ */ 

    #include "MMIDataType.h"
    #include "gui_data_types.h"
    #include "PixcomFontEngine.h"
    #include "CustThemesRes.h"
    #include "kal_general_types.h"
    #include "mmi_frm_input_gprot.h"
    #include "lcd_sw_inc.h"

typedef void (*gui_inputs_draw_back_ground_funcptr)(S32 x1, S32 y1, S32 x2, S32 y2);

typedef void (*gui_inputs_pen_scroll_cb)(S32 text_offset_y);

typedef struct
{
    U8 top_margin;
    U8 down_margin;
    U8 left_margin;
    U8 right_margin;
} gui_inputs_margin_struct;

typedef struct
{
    PU8 data;
    S32 len;
    U8 type;
} gui_inputs_bg_mem_image_struct;


/* floating counter*/
#define GUI_INPUT_BOX_FLOATING_COUNTER_GAP_Y                    2
#define GUI_INPUT_BOX_FLOATING_COUNTER_GAP_X                    8
#define GUI_INPUT_BOX_FLOATING_COUNTER_INDENT                   3

#define GUI_INPUT_BOX_FLOATING_COUNTER_DISPLAY_THRESHOLD        3

#if GUI_INPUTS_KEYWORDS_SUPPORT
#define GUI_INPUTS_KEYWORDS_MAX_COUNT               40
#define GUI_INPUTS_KEYWORDS_EACH_TYPE_MAX_COUNT     10
#include "app_usedetails.h"
#endif

/* Inputbox State */
typedef enum
{
    GUI_INPUT_BOX_STATE_IDLE,
    GUI_INPUT_BOX_STATE_SSP_HOLD,
    GUI_INPUT_BOX_STATE_SSP_FREERUN,
    GUI_INPUT_BOX_STATE_SELECTING_TEXT
}gui_input_box_state_enum;

#if defined(__MMI_TOUCH_SCREEN__) // || defined(__MMI_HANDWRITING_PAD__)
//#include "kal_non_specific_general_types.h"

typedef enum
{
    GUI_SINGLE_LINE_INPUT_BOX_PEN_NONE,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_LEFT_DOWN,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_LEFT_UP,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_RIGHT_DOWN,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_RIGHT_UP,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_TEXT_DOWN,
    GUI_SINGLE_LINE_INPUT_BOX_PEN_TEXT_UP
} gui_single_line_input_box_pen_enum;

typedef struct
{
    U8 pen_inside;
} gui_single_line_input_box_pen_state_struct;

typedef enum
{
    GUI_MULTI_LINE_INPUT_BOX_PEN_NONE,
    GUI_MULTI_LINE_INPUT_BOX_PEN_TEXT_DOWN,
    GUI_MULTI_LINE_INPUT_BOX_PEN_TEXT_UP,
    GUI_MULTI_LINE_INPUT_BOX_PEN_SCROLL_BAR,
    GUI_MULTI_LINE_INPUT_BOX_PEN_CONTROL_AREA,
    GUI_MULTI_LINE_INPUT_BOX_PEN_MAX
} gui_multi_line_input_box_pen_enum;

typedef struct
{
    U8 pen_inside;
    U8 pen_on_scroll_bar;
} gui_multi_line_input_box_pen_state_struct;
#endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */ 

    extern UI_information_bar_theme *current_information_bar_theme;
    extern UI_header_information_text_theme *current_header_information_text_theme;

    /* UI multitap_input structure                  */

#define UI_MULTITAP_INPUT_CENTER_X                 0x00000010
#define UI_MULTITAP_INPUT_CENTER_Y                 0x00000020

#ifdef __MMI_TOUCH_SCREEN__
    /* start vijay 20050224, for Touch Dialing Screen */
    typedef enum
    {
        GUI_DIALING_PEN_NONE,
        GUI_DIALING_KEYPAD_HIGHLIGHT_CHANGED,
        GUI_DIALING_KEYPAD_PEN_INSERT_DIG_I,
        GUI_DIALING_KEYPAD_PEN_INSERT_STAR,
        GUI_DIALING_KEYPAD_PEN_INSERT_HASH
            /* 053005 Calvin added for function key */
    #if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
            , GUI_DIALING_KEYPAD_PEN_INSERT_FUNC,
        GUI_DIALING_KEYPAD_PEN_INSERT_PHB = GUI_DIALING_KEYPAD_PEN_INSERT_FUNC,
        GUI_DIALING_KEYPAD_PEN_INSERT_CALL
#ifdef __MMI_CAT_VIDEO_CALL__        
        ,GUI_DIALING_KEYPAD_PEN_INSERT_VIDEO
#endif /* #ifdef __MMI_CAT_VIDEO_CALL__ */    

#if defined(__DUALMODE_TOUCH_DIAL_SCREEN_WITH_SLAVE_FUNCTION__)	\
	&& (!(defined(__MMI_DYNAMIC_SIM_DYNAMIC_UI__) || defined(__MMI_DIALER_DYNAMIC_CALL_UI__)))
        ,GUI_DIALING_KEYPAD_PEN_INSERT_CALL_SLAVE
#endif  /* __DUALMODE_TOUCH_DIAL_SCREEN_WITH_SLAVE_FUNCTION__ */
    #endif /* defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__) */ 
            /* Calvin end */
    } gui_dialing_key_pen_enum;
    /* end vijay */
#endif /* __MMI_TOUCH_DIAL_SCREEN__ */ 

    typedef struct _multitap_input
    {
        UI_string_type text;
        S32 length;
        S32 current_position;
        U32 flags;
        void (*input_complete_callback) (void);
        void (*input_callback) (UI_character_type);
    } multitap_input;

    typedef enum
    {
        GUI_MULTI_LINE_INPUT_BOX_INSERT_CHAR,
        GUI_MULTI_LINE_INPUT_BOX_DELETE_CHAR,
        GUI_MULTI_LINE_INPUT_BOX_DELETEALL,
        GUI_MULTI_LINE_INPUT_BOX_INSERT_STRING
    } gui_multi_line_input_box_change_event_enum;


    /* MTK Elvis for color dialling font */
    typedef struct _color_dialing_font
    {
        UI_character_type ch;
        color c;
    } color_dialing_font;
    /* MTK end */

    extern void gui_create_multitap_input(multitap_input *b, S32 x, S32 y, S32 width, S32 height, UI_string_type text);
    void gui_set_multitap_input_callbacks(multitap_input *b, void (*input_callback) (UI_character_type),
                                          void (*input_complete_callback) (void));
    extern void gui_change_multitap_input_state(multitap_input *b);
    extern void gui_multitap_input_complete(multitap_input *b);

extern const U8 g_newline_symbol_LF[4];
extern const U8 g_newline_symbol_CRLF[6];

#ifndef LF_NEW_LINE_SYMBOL
#define LF_NEW_LINE_SYMBOL  1
#ifdef LF_NEW_LINE_SYMBOL
#define GUI_NEWLINE_STRING  ((UI_string_type)g_newline_symbol_LF)
#else
#define GUI_NEWLINE_STRING  ((UI_string_type)g_newline_symbol_CRLF)
#endif
#endif

    /* UI Single line Input box structure              */

#define  UI_SINGLE_LINE_INPUT_BOX_STATE_NORMAL           0x00000000
#define UI_SINGLE_LINE_INPUT_BOX_STATE_DISABLED          0x00000001
#define UI_SINGLE_LINE_INPUT_BOX_STATE_SELECTED          0x00000002
#define UI_SINGLE_LINE_INPUT_BOX_STATE_MULTITAP          0x00000004
#define UI_SINGLE_LINE_INPUT_BOX_CENTER_Y             0x00000008
#define UI_SINGLE_LINE_INPUT_BOX_MASK_CHARACTERS         0x00000010
#define UI_SINGLE_LINE_INPUT_BOX_DISABLE_DRAW            0x00000020
#define UI_SINGLE_LINE_INPUT_BOX_DISABLE_BACKGROUND         0x00000040
#define UI_SINGLE_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW     0x00000080
#define UI_SINGLE_LINE_INPUT_BOX_CENTER_JUSTIFY          0x00000100
#define UI_SINGLE_LINE_INPUT_BOX_OVERWRITE_MODE          0x00000200
#define UI_SINGLE_LINE_INPUT_BOX_RIGHT_JUSTIFY           0x00000400
#define UI_SINGLE_LINE_INPUT_BOX_DISABLE_SCROLLING       0x00000800
#define UI_SINGLE_LINE_INPUT_BOX_SHOW_BLOCK_CURSOR       0x00001000
#define UI_SINGLE_LINE_INPUT_BOX_NO_BORDER               0x00002000
#define UI_SINGLE_LINE_INPUT_BOX_USE_ENCODING_BASED_LENGTH  0x00004000
#define UI_SINGLE_LINE_INPUT_BOX_WORD_HIGHLIGHT          0x00008000
#define UI_SINGLE_LINE_INPUT_BOX_ONE_LESS_CHARACTER         0x00010000
#define UI_SINGLE_LINE_INPUT_BOX_DISABLE_TONES           0x00020000
#define UI_SINGLE_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING 0x00040000
#define UI_SINGLE_LINE_INPUT_BOX_CHARACTER_HIGHLIGHT     0x00080000
#define UI_SINGLE_LINE_INPUT_BOX_FULL_HEIGHT_BLOCK_CURSOR   0x00100000
#define UI_SINGLE_LINE_INPUT_BOX_VIEW_FULL_CHARACTERS    0x00200000
#define UI_SINGLE_LINE_INPUT_BOX_CHECK_GSM_EXTENDED         0x00400000
    /* MTK Leo add 1125, trucate too long number/name with "..." in call list. */
#define UI_SINGLE_LINE_INPUT_BOX_TRUNCATE_CONTENT        0x00800000
/* slim_2_2 */ //#define UI_SINGLE_LINE_INPUT_BOX_SECOND_WORD_HIGHLIGHT              0x01000000
/* slim_2_2 */ //#define UI_SINGLE_LINE_INPUT_BOX_SWITCH_WORD_HIGHLIGHT_COLOR        0x02000000
/* slim_2_2 */ //#define UI_SINGLE_LINE_INPUT_BOX_FORCE_BORDER_DISPLAY             0x04000000
    /* 022405 Calvin added to trucate too long number/name without */
#define UI_SINGLE_LINE_INPUT_BOX_TRUNCATE_CONTENT_NO_BRIEF  0x08000000
    /* Calvin end */
#define UI_SINGLE_LINE_INPUT_BOX_INPUT_METHOD_MODE  0x10000000

	/* Baidu Search requirement */
#define UI_SINGLE_LINE_INPUT_BOX_AUTO_CLEAR_HIGHLIGHT_MODE       0x20000000

/* ASCII based encoding length */
#define UI_SINGLE_LINE_INPUT_BOX_USE_ASCII_ENCODING_BASE_LENGTH  0x40000000

	/* Inline single clip */
#define UI_SINGLE_LINE_INPUT_BOX_USE_PRESET_CLIPPING  0x80000000

/* these are used in ext_flags */

/* recipient added from phonebook*/
#define GUI_SINGLE_LINE_INPUT_BOX_RECIPIENT_MODE                0x00000001

/* recipient input by user */
#define GUI_SINGLE_LINE_INPUT_BOX_RECIPIENT_SEMICOLON_MODE   0x00000002

    /* transparent singleline editor background */
#define GUI_SINGLE_LINE_INPUT_BOX_TRANSPARENT_BACKGROUND        0x00000004

#define GUI_SINGLE_LINE_INPUT_BOX_AUTO_DISPLAY_REMAINING_COUNTER  0x00000008

#define GUI_SINGLE_LINE_INPUT_BOX_CUSTOM_STYLE_BACKGROUND         0X00000010

    /* TODO: remove the following line */
#define UI_MULTI_LINE_INPUT_BOX_LINE_HEIGHT_WITH_UNDERLINE  20

    extern UI_single_line_input_box_theme *current_single_line_input_box_theme;

    typedef struct _single_line_input_box
    {
        S32 x, y;
        S32 width, height;
        UI_filled_area *normal_filler;
        UI_filled_area *disabled_filler;
        UI_filled_area *selected_filler;
        gui_inputs_bg_mem_image_struct *normal_mem_bg_image;
        gui_inputs_bg_mem_image_struct *selected_mem_bg_image;
        U32 flags;
        U32 ext_flags;
        S32 grid_width;
        UI_buffer_type text;
        UI_string_type default_text;
        S32 text_length;
        S32 allocated_length;
        S32 available_length;
        S32 show_action_flag;
        UI_buffer_type current_text_p;
        UI_buffer_type input_mode_cursor_p;
        /* This variable is required as we need information from which
           position the input started for multitap. This change was implemented while
           imlpementing multigraph support for editor */
        UI_buffer_type input_start_cursor_p;
        UI_buffer_type last_position_p;
        S32 text_x;
        S32 text_y;
        S32 text_offset_x;
        S32 cursor_x;
        S32 text_width;
        S32 UCS2_count;
        S32 GSM_ext_count;
        S32 non_ascii_count;
        gui_inputs_margin_struct margin;
        void (*overflow_callback) (void);
        void (*change_callback) (void);
        void (*validation_callback) (UI_buffer_type text, UI_buffer_type cursor_p, S32 text_length);
        UI_buffer_type highlight_start_position;
        UI_buffer_type highlight_end_position;
/* slim_2_2 */ //        UI_buffer_type second_highlight_start_position;
/* slim_2_2 */ //        UI_buffer_type second_highlight_end_position;
        /* Change Event Handler */
        MMI_BOOL (*change_event_handler)(gui_multi_line_input_box_change_event_enum event,U16 C);
        S16 left_width, right_width, left_height, right_height;
        /* Customized left area draw function */
        void (*left_callback) ( S32 x, S32 y, S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        /* Customized right area draw function */
        void (*right_callback) ( S32 x, S32 y, S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        /*the callback function while the pen down at left or right*/
        void (*pen_down_control_area_callback)(U8 area_type, S32 x, S32 y);

        /* cursor offset of last change */
        S32  last_cursor_offset;
    #ifdef __MMI_VUI_ENGINE__
        void *venus_text_view;
    #endif
        /* Highlight coordinate */
        S16 hilite_s_x, hilite_s_y, hilite_e_x, hilite_e_y;
        color normal_text_color;
        color disabled_text_color;
        color selected_text_color;
        color selection_text_color;
        color selection_color;
        color cursor_color;
        UI_font_type text_font;
        gui_input_box_state_enum state;
        S8 text_gap;
        U8 mask_character;
        U8 show_special_counter;
    #if defined(__MMI_TOUCH_SCREEN__) //|| defined(__MMI_HANDWRITING_PAD__)
        gui_single_line_input_box_pen_state_struct pen_state;
    #endif 
    
    } single_line_input_box;
    extern void gui_single_line_cursor_info_update(single_line_input_box *b);
    extern void gui_set_single_line_input_box_current_theme(single_line_input_box *b);
    extern void gui_set_single_line_input_box_theme(single_line_input_box *b, UI_single_line_input_box_theme *t);
    #if 0  /* slim_2_2 */ //
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
    #endif 
    extern void gui_create_single_line_input_box_set_buffer(
                    single_line_input_box *b,
                    S32 x,
                    S32 y,
                    S32 width,
                    S32 height,
                    UI_string_type buffer,
                    S32 length,
                    S32 text_length,
                    S32 edit_position);
    extern void gui_single_line_input_box_show_cursor(single_line_input_box *b, S32 x, S32 y, S32 height);
    extern void gui_show_single_line_input_box(single_line_input_box *b);
/* slim_2_2 */ //    extern void gui_destroy_single_line_input_box(single_line_input_box *b);
    extern MMI_BOOL gui_single_line_input_box_delete_character(single_line_input_box *b);
    extern MMI_BOOL gui_single_line_input_box_insert_character(single_line_input_box *b, UI_character_type c);
    extern MMI_BOOL gui_single_line_input_box_insert_multitap_character(single_line_input_box *b, UI_character_type c);
    extern void gui_single_line_input_box_confirm_multitap_character(single_line_input_box *b);
    extern void gui_single_line_input_box_insert_character_in_pos(single_line_input_box *b, UI_character_type c, S32 pos);
    extern void gui_single_line_input_box_delete_character_in_pos(single_line_input_box *b, S32 pos);
    extern S32 gui_single_line_input_box_insert_multitap_string(single_line_input_box *b, UI_string_type s);

    /* PMT dara added for Multitap thai */
    extern U8 gui_single_line_input_box_get_previous_character(single_line_input_box *b, UI_character_type *c);
    extern MMI_BOOL gui_single_line_input_box_previous(single_line_input_box *b);
    extern MMI_BOOL gui_single_line_input_box_next(single_line_input_box *b);
    extern void gui_resize_single_line_input_box(single_line_input_box *b, S32 width, S32 height);
    extern void gui_move_single_line_input_box(single_line_input_box *b, S32 x, S32 y);
    extern MMI_BOOL gui_single_line_input_box_delete_all(single_line_input_box *b);
    extern void gui_single_line_input_box_delete_current_character(single_line_input_box *b);
    extern void gui_single_line_input_box_toggle_insert_mode(single_line_input_box *b);
    extern void gui_single_line_input_box_goto_first_character(single_line_input_box *b);
    extern void gui_single_line_input_box_goto_last_character(single_line_input_box *b);
    extern void gui_single_line_input_box_clear(single_line_input_box *b);
/* slim_2_2 */ //    extern U8 gui_single_line_input_box_test_overflow(single_line_input_box *b);
    extern U8 gui_single_line_input_box_test_first_position(single_line_input_box *b);
    extern U8 gui_single_line_input_box_test_last_position(single_line_input_box *b);
    extern U8 gui_single_line_input_box_test_last_position_overflow(single_line_input_box *b);
    extern S32 gui_single_line_input_box_get_text_length(single_line_input_box *b);
    extern U8 gui_single_line_input_box_test_last_character_position(single_line_input_box *b);
    extern void gui_create_single_line_input_box_set_buffer_first_position(
                    single_line_input_box *b,
                    S32 x,
                    S32 y,
                    S32 width,
                    S32 height,
                    UI_string_type buffer,
                    S32 length,
                    S32 text_length,
                    S32 edit_position);
    extern S32 gui_single_line_input_box_highlight_cursor_end(single_line_input_box *b);
    /* MTK Elvis */
    extern S32 gui_single_line_input_box_highlight_cursor_number(single_line_input_box *b, S32 numOfChar);
    /* MTK end */
    extern S32 gui_single_line_input_box_highlight_cursor_start(single_line_input_box *b);
    /* MTK Add By Elvis */
    extern S32 gui_single_line_input_box_insert_string(single_line_input_box *b, UI_string_type s, S32 o);
    /* MTK end */
/* slim_2_2 */ //    extern S32 gui_single_line_input_box_next_steps(single_line_input_box *b, S32 steps);
/* slim_2_2 */ //    extern S32 gui_single_line_input_box_previous_steps(single_line_input_box *b, S32 steps);
    extern void gui_single_line_input_box_start_input(single_line_input_box *b);
    extern void gui_single_line_input_box_stop_input(single_line_input_box *b);
    extern int gui_single_line_input_box_get_remaining_length(single_line_input_box *b);

    extern void gui_single_line_input_box_set_callback_area(
                    single_line_input_box *b,
                    U32 left_width,
                    U32 left_height,
                    void (*left_callback) (S32 x, S32 y, S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2),
                    U32 right_width,
                    U32 right_height,
                    void (*right_callback) (S32 x, S32 y, S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2));

#if defined(__MMI_TOUCH_SCREEN__)// || defined(__MMI_HANDWRITING_PAD__)
    extern BOOL gui_single_line_input_box_translate_pen_event(
                    single_line_input_box *b,
                    mmi_pen_event_type_enum pen_event,
                    S16 x,
                    S16 y,
                    gui_single_line_input_box_pen_enum *single_line_input_box_event);
#endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
    extern void gui_show_single_line_input_box_ext(single_line_input_box *b, S32 move_to_x, S32 move_to_y);
    extern void gui_single_line_input_box_locate_cursor(single_line_input_box *b);
    extern UI_character_type gui_single_line_next_character(single_line_input_box *b);
    
    extern void gui_single_line_input_box_set_margin(single_line_input_box *b, S32 top, S32 down, S32 left, s32 right);

    /* UI multiline input box structure          */
    extern UI_multi_line_input_box_theme *current_multi_line_input_box_theme;

#define  UI_MULTI_LINE_INPUT_BOX_STATE_NORMAL            0x00000000
#define UI_MULTI_LINE_INPUT_BOX_STATE_DISABLED           0x00000001
#define UI_MULTI_LINE_INPUT_BOX_STATE_FOCUSSED           0x00000002
#define UI_MULTI_LINE_INPUT_BOX_DISABLE_BACKGROUND       0x00000004
#define UI_MULTI_LINE_INPUT_BOX_STATE_MULTITAP           0x00000008
#define UI_MULTI_LINE_INPUT_BOX_DISABLE_SCROLLBAR        0x00000010
#define UI_MULTI_LINE_INPUT_BOX_OVERWRITE_MODE           0x00000020
#define UI_MULTI_LINE_INPUT_BOX_DISABLE_DRAW             0x00000040
#define UI_MULTI_LINE_INPUT_BOX_DISABLE_CURSOR_DRAW      0x00000080
#define UI_MULTI_LINE_INPUT_BOX_MASK_CHARACTERS             0x00000100
#define UI_MULTI_LINE_INPUT_BOX_CENTER_JUSTIFY              0x00000200
#define UI_MULTI_LINE_INPUT_BOX_RIGHT_JUSTIFY               0x00000400
#define UI_MULTI_LINE_INPUT_BOX_USE_ENCODING_BASED_LENGTH   0x00000800
#define UI_MULTI_LINE_INPUT_BOX_AUTO_DISABLE_SCROLLBAR      0x00001000
#define UI_MULTI_LINE_INPUT_BOX_WORD_HIGHLIGHT              0x00002000
#define UI_MULTI_LINE_INPUT_BOX_USE_PRESET_CLIPPING         0x00004000
#define UI_MULTI_LINE_INPUT_BOX_VIEW_MODE                   0x00008000
#define UI_MULTI_LINE_INPUT_BOX_ONE_LESS_CHARACTER          0x00010000
#define UI_MULTI_LINE_INPUT_BOX_PLUS_CHARACTER_HANDLING     0x00020000
#define UI_MULTI_LINE_INPUT_BOX_CHECK_GSM_EXTENDED          0x00040000
#define UI_MULTI_LINE_INPUT_BOX_ONLY_SHOW_FIRST_LINE        0x00080000
#define UI_MULTI_LINE_INPUT_BOX_DISABLE_WRAPPING_BY_WORD    0x00100000
    /* Multiline inputbox inside inline editor */
#define UI_MULTI_LINE_INPUT_BOX_INSIDE_INLINE_MENU          0x00200000
    /* WAP CSS input format */
#define UI_MULTI_LINE_WCSS_INPUT_BOX_ENABLE                 0x00400000
#define UI_MULTI_LINE_INPUT_BOX_AUTO_VERTICAL_SCROLL        0x00800000
#define  UI_MULTI_LINE_INPUT_BOX_INCLUDE_INFO_AREA          0x01000000
#define  UI_MULTI_LINE_INPUT_BOX_FORTY_FOUR_LESS_CHARACTER  0x02000000
    /* Replace CRLF as a separator line  */
#define UI_MULTI_LINE_INPUT_BOX_DRAW_SEPARATOR              0x04000000
    /* Draw underline for each line. Used with min_line_height */
#define UI_MULTI_LINE_INPUT_BOX_DRAW_UNDERLINE              0x08000000
/* slim_2_2 */ //#define UI_MULTI_LINE_INPUT_BOX_DISPLAY_LASTLINE            0x10000000
    /* Change text format (color/size/alignment)  when marker code is identified */
#define UI_MULTI_LINE_INPUT_BOX_RICHTEXT                    0x20000000
/* slim_2_2 */ //#define UI_MULTI_LINE_INPUT_BOX_SMS_MAX_LENGTH_HANDLING     0x40000000
#define UI_MULTI_LINE_INPUT_BOX_TRANSPARENT_BACKGROUND      0x80000000  /* 070405 Calvin added */

/* these are used in ext_flags */
#define GUI_MULTI_LINE_INPUT_BOX_VIEW_PAGING_MODE                0x00000001
#define GUI_MULTI_LINE_INPUT_BOX_AUTO_SCROLL_MODE                0x00000002
#define GUI_MULTI_LINE_INPUT_BOX_TRUNCATE_CONTENT                0x00000004
/* slim_2_2 */ //#define GUI_MULTI_LINE_INPUT_BOX_CHAT_ICON_DISPLAY               0x00000008
#define GUI_MULTI_LINE_INPUT_BOX_DISABLE_DALMATIAN_EDITOR        0x00000010
#define GUI_MULTI_LINE_INPUT_BOX_DISABLE_FORCE_CURSOR_APPEAR     0x00000020
#define GUI_MULTI_LINE_INPUT_BOX_HIDE_TEXT_CONTENT               0x00000040
#define GUI_MULTI_LINE_INPUT_BOX_UNDERLINE_CURSOR_LINE           0x00000080
#define GUI_MULTI_LINE_INPUT_BOX_NONE_BORDER                     0x00000100
#define GUI_MULTI_LINE_INPUT_BOX_SINGLE_BORDER                   0x00000200
#define GUI_MULTI_LINE_INPUT_BOX_DOUBLE_BORDER                   0x00000400
#define GUI_MULTI_LINE_INPUT_BOX_SET_BG_COLOR                    0x00000800
#define GUI_MULTI_LINE_INPUT_BOX_LOCATE_CURSOR                   0x00001000
#define GUI_MULTI_LINE_INPUT_BOX_SEARCH_WORD                     0x00002000
#define GUI_MULTI_LINE_INPUT_BOX_PREVIOUSE_LINE                  0x00004000
#define GUI_MULTI_LINE_INPUT_BOX_NEXT_LINE                       0x00008000
#define GUI_MULTI_LINE_INPUT_BOX_USE_HILITE_FORMAT               0x00010000
#define GUI_MULTI_LINE_INPUT_BOX_USE_BORDER_FONT                 0x00020000
#define GUI_MULTI_LINE_INPUT_BOX_INPUT_METHOD_MODE               0x00040000
#define GUI_MULTI_LINE_INPUT_BOX_FIXED_TEXT_AREA                 0x00080000
#define GUI_MULTI_LINE_INPUT_BOX_FIXED_Y_OFFSET                    0x00100000
#define GUI_MULTI_LINE_INPUT_BOX_DISABLE_CLIPBOARD               0x00200000 /* Disable clipboard function in touch panel */
#define GUI_MULTI_LINE_INPUT_BOX_USE_ASCII_ENCODING_BASE_LENGTH  0x00400000
#define GUI_MULTI_LINE_INPUT_BOX_CONTENT_REQUEST_MODE            0x00800000
#define GUI_MULTI_LINE_INPUT_BOX_ONLY_VISIBLE_LINE               0x01000000
#define GUI_MULTI_LINE_INPUT_BOX_SEMITRANSPARENT_BACKGROUND      0x02000000
#define GUI_MULTI_LINE_INPUT_BOX_DIALER_STYLE                    0x04000000
#define GUI_MULTI_LINE_INPUT_BOX_AUTO_DISPLAY_REMAINING_COUNTER  0x08000000
#define GUI_MULTI_LINE_INPUT_BOX_DISPLAY_BORDER                  0x10000000 /*editor display border in 96X64*/ //SLIM_96_64_SLIM
#define GUI_MULTI_LINE_INPUT_BOX_SINGLINE_STYLE                  0x20000000
/* these are used in ext2_flags , they are for singline style*/
#define UI_MULTI_LINE_INPUT_BOX_SHOW_BLOCK_CURSOR                0x00000001
        /* Baidu Search requirement */
#define UI_MULTI_LINE_INPUT_BOX_AUTO_CLEAR_HIGHLIGHT_MODE        0x00000002

    /* Max length for character sequence that can be translated into an icon */
#define MMI_MULTILINE_ICON_MAX_STRING_LEN 5

    /* Type of callback handler to translate a string into an icon */
    typedef S32(*multi_line_input_box_icon_hdlr) (const U8 *s, BOOL do_draw, S32 *icon_width, S32 *icon_height,
                                                  S32 x, S32 y);

#define GUI_MULTI_LINE_INPUT_HILITE_TEXT_COLOR                   0x1
#define GUI_MULTI_LINE_INPUT_HILITE_BACKGROUND_COLOR             0x2
#define GUI_MULTI_LINE_INPUT_HILITE_UNDERLINE_COLOR              0x4

typedef enum
{
    GUI_INPUT_BOX_AREA_HEADER,
    GUI_INPUT_BOX_AREA_FOOTER,
    GUI_INPUT_BOX_AREA_TEXT,
    GUI_INPUT_BOX_AREA_LEFT,
    GUI_INPUT_BOX_AREA_RIGHT,
    GUI_INPUT_BOX_AREA_END
}gui_input_box_area_enum;

typedef enum
{
     EDITOR_HILITE_NONE   = 0,
     EDITOR_HILITE_NUMBER = 0x1,
     EDITOR_HILITE_EMAIL  = 0x2,
     EDITOR_HILITE_URL    = 0x4,
     EDITOR_HILITE_USSD   = 0x8,
     EDITOR_HILITE_END
} EDITOR_HILITE_TYPE;

typedef struct
{
    PS8   str_addr;
    U16   length;
    EDITOR_HILITE_TYPE hilite_type;
} HILITE_STR;

#ifdef __UI_ENHANCED_HILITE_IN_MULTILINE_EDITOR__
typedef struct 
{
    U8   format_flag;
    color text_color;
    color filler_color;
    color underline_color;
} HILITE_STR_FORMAT;
#endif

/*** ritesh started****/
#if defined(__UI_PAGING_IN_MULTILINE_EDITOR__)


#define GUI_SHARED_BYTES MAIN_LCD_DEVICE_HEIGHT/2       /* As LCD_WIDTH=220 shared bytes =LCD_WIDTH/2 */
#define GUI_NO_OF_PAGES 4

#define GUI_PAGE_SIZE 512
#define GUI_PAGE_SIZE_IN_UCS2 GUI_PAGE_SIZE*ENCODING_LENGTH

#define GUI_SCROLL_STEPS_LINE_BY_LINE 5

    typedef struct _page_details
    {
        U32 page_id;
        U16 page_height;
        U8 shared_no_of_bytes;
        U8 shared_data[GUI_SHARED_BYTES];
    } gui_page_details;
//PMT SUKRIT START MMSVIEWER
typedef void (*get_page_callback)(U32 start_id, U32 end_id, PU8 buffer);
#endif /* defined(__UI_PAGING_IN_MULTILINE_EDITOR__) */ 

#define GUI_MAX_VISIBLE_LINE    MAIN_LCD_DEVICE_HEIGHT/10
#define GUI_REUSED_VISIBLE_LINE_COUNT       1

typedef struct _gui_line_info_struct
{
    S32 offset;         /* the line start position */
} gui_line_info_struct;


typedef struct _gui_line_struct
{
    gui_line_info_struct array[GUI_MAX_VISIBLE_LINE];
    S32 line_count;
    S32 start_line_index;
    U16 line_height[GUI_MAX_VISIBLE_LINE];
    MMI_BOOL b_to_end;
} gui_line_struct;

typedef MMI_BOOL (*gui_inputs_get_data_callback)(U8 **buffer, S32 *buf_len, S32 start_line, S32 end_line);

    typedef struct _multi_line_input_box
    {
        S32 x, y;
        S32 width, height;
        UI_filled_area *normal_filler;
        UI_filled_area *disabled_filler;
        UI_filled_area *focussed_filler;
        UI_filled_area *text_filler;
        gui_inputs_bg_mem_image_struct *normal_mem_bg_image;
        gui_inputs_bg_mem_image_struct *focussed_mem_bg_image;   
        UI_font_type text_font;
        U32 flags;
        U32 ext_flags;
#ifdef __MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__
        U32 ext2_flags;
#endif /*__MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__*/
        gui_input_box_state_enum state;
        U8 trans_alpha;
        S8 text_gap;
        U8 scrollbar_state;
        U8 pre_scrollbar_state;
        U8 mask_character;
        S32 pre_height;
        UI_buffer_type text;
        UI_string_type default_text;
        S32 text_length;
        S32 allocated_length;
        S32 available_length;
        S32 edit_width;
        S32 edit_height;
        S32 fixed_text_start_x;
        S32 fixed_text_width;
        S32 text_x;
        S32 text_y;    
        S16 hilite_s_x, hilite_s_y, hilite_e_x, hilite_e_y; /* Highlight coordinate */
        S32 text_x2_gap_width; /* The gap between editor edge and the rightmost text edge */
        S32 text_offset_x;
        S32 text_offset_y;
        S32 cursor_fixed_x;
        S32 cursor_x;
        S32 cursor_y;
        S32 n_lines;
        S32 text_height;
#ifdef __MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__     
        S32 text_width; 
#endif /*__MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__*/
        S32 cursor_line_position_counter;
        S32 visible_start, visible_end;        /* Full line visible */
        S32 visible_start_ex, visible_end_ex;  /* Half line visible */
        UI_buffer_type line_before_cursor_line_p;
        UI_buffer_type cursor_line_p;
        UI_buffer_type cursor_p;
        UI_buffer_type input_mode_cursor_p;
        UI_buffer_type input_start_cursor_p;
        UI_buffer_type line_after_cursor_line_p;
        UI_buffer_type line_after_cursor_line_last_p;
        UI_buffer_type last_position_p;
        S32 UCS2_count;
        S32 GSM_ext_count;
        void (*overflow_callback) (void);
        void (*change_callback) (void);
        void (*validation_callback) (UI_buffer_type text, UI_buffer_type cursor_p, S32 text_length);
        vertical_scrollbar vbar;
        UI_buffer_type highlight_start_position;
        UI_buffer_type highlight_end_position;
        S32 max_line_height;
        S32 editor_changed;        /* Variable to track change in multiline input box. */
        S32 vertical_scroll_on;    /* Start a vertical scroll timer. 0- Not started, 1 - Started */
        void (*infobar_redraw_callback)(S32 x1,S32 y1,S32 x2,S32 y2); /* Customized information bar draw function */
        void (*infobar_reminder_char_callback)(S32 x1,S32 y1,S32 x2,S32 y2);
        void (*header_callback) (MMI_BOOL is_draw,S32 yoffset, S32 height,S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        void (*footer_callback) (MMI_BOOL is_draw,S32 yoffset, S32 height,S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        void (*left_callback) (MMI_BOOL is_draw,S32 yoffset, S32 height,S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        void (*right_callback) (MMI_BOOL is_draw,S32 yoffset, S32 height,S32 clip_x1, S32 clip_y1, S32 clip_x2, S32 clip_y2);
        void (*pen_down_control_area_callback)(U8 area_type, S32 x, S32 y); /* the callback function while the pen down at header, footer, left or right */
        /* the callback function while pen down/up/long press on header, footer, left or right */
        void (*pen_control_area_callback)(gui_input_box_area_enum area_type, mmi_pen_event_type_enum pen_event, S32 x, S32 y);
        MMI_BOOL (*change_event_handler)(gui_multi_line_input_box_change_event_enum event,U16 C); /* Change Event Handler */
        /*
         * Customized function to replace a string with icon. Return the number of characters consumed. 
         * * If icon height is taller than typical character height, 'min_line_height' should be also set.
         */
        multi_line_input_box_icon_hdlr icon_callback;
        void (*cursor_move_callback)(S32 cursor_offset);
		void (*hide_callback)(S32 x1, S32 y1, S32 x2, S32 y2);
        S32  last_cursor_offset;
        S16* predefine_char_pos;  
    	S32 curr_hilite_text_offset_y, highlight_end_y;
    	HILITE_STR *hilite_list;
    	void (*hilite_cb)(S32 idx);
    	S32 current_hilite_idx;
    #ifdef __MMI_TOUCH_SCREEN__
        void (*hilite_click_cb)(S32 idx); /* Pen click callback */
    #endif /* __MMI_TOUCH_SCREEN__ */
        gui_line_struct *visible_line_info;
        gui_line_struct *line_info;    /* store the current layout line infomation */
        S32 force_stop_line_index;            /* -1 means auto stop */
        S32 total_line_count;
        gui_inputs_get_data_callback get_data_cb;
        S16 min_text_height;       /* Minimum height of text area */
        S16 max_empty_text_height; /* Maximum height of text area when text is empty */
        S16 min_line_height;       /* Minimum line height */
        S16 header_height, footer_height, left_width, right_width, left_height, right_height, header_gap;
        U16 hilite_str_number;
        U8 scroll_speed;
        U8 font_style;       /* speed of the auto scrolling. */
        U8 override_direction;
        pBOOL scroll_type;
        MMI_BOOL is_dirty;   /* If the editor content is dirty or not */
        MMI_BOOL is_hide_floating_counter;
    #ifdef __UI_ENHANCED_HILITE_IN_MULTILINE_EDITOR__
        HILITE_STR_FORMAT   *hilite_format_list;
    #endif
    #if defined(__MMI_TOUCH_SCREEN__) //|| defined(__MMI_HANDWRITING_PAD__)
        S16 pen_scroll_delay_time;
        S16 pen_scroll_after_delay;
        gui_multi_line_input_box_pen_state_struct pen_state;
    #endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
    #if defined(__UI_PAGING_IN_MULTILINE_EDITOR__)
        U32 start_id;                                   /* needed to give the appropriate id to page during next page or previous page requirement.At every call to next page and previous page its value gets changed. */
        U32 end_id;                                     /* needed to give the appropriate id to page during next page or previous page requirement.At every call to next page and previous page its value gets changed. */
        S32 edit_height_displayed_lines;                /* height of the currently displayed text. */
        U32 last_page_id;                               /* id of the last page */
        S32 page_zero_prev_height;                      /* to maintain the text relocation while new page entry in buffer during previous page requirement. */
        S32 size_of_total_data;                         /* size of the whole text currently in the buffer */
        S32 text_offset;                                /* this variable shows the position of the chracter where text_offset_y is currently pointing.During exit ,Application wants the current offset of the displayed window. */
        S32 current_page_count;                         /* the character count of the current page */
        S16 last_page_size;                             /* size of the last page */
        S16 page_offset;                                /* for text display from the same position.This variable is needed when concerned application give some offset. */
        S16 jump_offset_from_app;
        S16 last_window_text_height;                    /* height of the text in the last multiline window of last page. */
        pBOOL last_page_flag;                           /* to maintain the text relocation last page flag is taken. */
        pBOOL jump_to_offset_flag;
        pBOOL next_line_scroll_flag;
        pBOOL search_flag_is_on;
        U8 previous_shared_bytes;                       /* shared bytes between page at 0th index to last page out from the buffer.This variable is needed to copy the pages in upward and downward direction. */
        gui_page_details page_details[GUI_NO_OF_PAGES]; /* page details structure */
        get_page_callback get_page_cb;
        void (*displayed_text_callback) (UI_buffer_type first_display_text, S32 text_length); /* callback for displayed text */
    #endif /* defined(__UI_PAGING_IN_MULTILINE_EDITOR__) */ 
        void (*locate_cursor_callback) (UI_buffer_type text, UI_buffer_type cursor_p, S32 buffer_pos, S32 text_length);
        void (*underline_callback) (UI_buffer_type text, S32 cursor_offset, S32 text_length);

    #ifdef GUI_INPUT_BOX_CACHE_SUPPORT
        S32 (*cache_begin_callback)(struct _multi_line_input_box *b, void* param);
        S32 (*cache_line_ready_callback)(struct _multi_line_input_box *b, void* param);
        S32 cache_update_type;
    #endif
        U32 show_action_flag;
        U32 debug_flag;
        S32 non_ascii_count;
    #ifdef __MMI_VUI_ENGINE__
        void *venus_text_view;
    #endif
    #ifdef GUI_INPUT_BOX_FLOATING_COUNTER
        MMI_BOOL (*get_remaining_counter)(UI_character_type *buffer, S32 buffer_size);
    #endif
        color special_text_color;
        color normal_text_color;
        color disabled_text_color;
        color focussed_text_color;
        color selected_text_color;
        color selector_color;
        color cursor_color;
        color boundary_color;
        color default_bg_color;
        color underline_color;
        color border_color;
        color trans_color;
        gui_inputs_margin_struct margin;
    } multi_line_input_box;

    extern void gui_set_multi_line_input_box_current_theme(multi_line_input_box *b);
    extern void gui_set_multi_line_input_box_theme(multi_line_input_box *b, UI_multi_line_input_box_theme *t);
    #if 0 /* slim_2_2 */ //
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
    #endif
    extern void gui_create_multi_line_input_box_set_buffer(
                    multi_line_input_box *b,
                    S32 x,
                    S32 y,
                    S32 width,
                    S32 height,
                    UI_string_type buffer,
                    S32 length,
                    S32 text_length,
                    S32 edit_position);
    extern void gui_move_multi_line_input_box(multi_line_input_box *b, S32 x, S32 y);
    extern void gui_resize_multi_line_input_box(multi_line_input_box *b, S32 width, S32 height);
    extern void gui_resize_multi_line_input_box_no_draw(multi_line_input_box *b, S32 width, S32 height);
    extern void gui_show_multi_line_input_box(multi_line_input_box *b);
    extern void gui_show_multi_line_input_box_no_draw(multi_line_input_box *b);
/* slim_2_2 */ //    extern void gui_destroy_multi_line_input_box(multi_line_input_box *b);
    extern void gui_multi_line_input_box_delete_character(multi_line_input_box *b);
    extern void gui_multi_line_input_box_delete_all(multi_line_input_box *b);
    extern void gui_multi_line_input_box_delete_current_character(multi_line_input_box *b);
    extern MMI_BOOL gui_multi_line_input_box_insert_character(multi_line_input_box *b, UI_character_type c);
    extern MMI_BOOL gui_multi_line_input_box_insert_multitap_character(multi_line_input_box *b, UI_character_type c);
    extern void gui_multi_line_input_box_confirm_multitap_character(multi_line_input_box *b);
    extern void gui_multi_line_input_box_register_infobar_callback(
                        multi_line_input_box *b,
                        void(*redraw_callback)(S32 x1,S32 y1,S32 x2,S32 y2),
                        void(*reminder_char_callback)(S32 x1,S32 y1,S32 x2,S32 y2),
                        U32 height);
    extern void gui_multi_line_input_box_register_change_event_handler(multi_line_input_box *b,MMI_BOOL (*handler)(gui_multi_line_input_box_change_event_enum event,U16 C));
    extern void gui_single_line_input_box_register_change_event_handler(single_line_input_box *b,MMI_BOOL (*handler)(gui_multi_line_input_box_change_event_enum event,U16 C));
    extern void gui_set_multi_line_input_box_underline_color(multi_line_input_box *b, color c);
    extern void gui_multi_line_input_box_delete_character_in_pos(multi_line_input_box *b, S32 pos);
    extern void gui_multi_line_input_box_insert_character_in_pos(multi_line_input_box *b, UI_character_type c, S32 pos);
    extern void gui_multi_line_input_box_stop_input(multi_line_input_box *b);
    extern void gui_multi_line_input_box_start_input(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_is_in_shown(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_insert_multitap_string(multi_line_input_box *b, PU8 s);

#ifdef GUI_INPUT_BOX_CACHE_SUPPORT
    extern void gui_inputs_cache_switch(S32 b_off);
    extern void gui_mlc_all_line_update(void);
    extern void gui_inputs_cache_destroy(void);
#endif

    extern void gui_update_multi_line_linebase_scrollbar(multi_line_input_box *b);


#if defined(__UI_PAGING_IN_MULTILINE_EDITOR__)

    typedef enum
    {
        PAGE_ZERO,
        PAGE_ONE,
        PAGE_TWO,
        PAGE_THREE,
//PMT SUKRIT START MMSVIEWER
        PAGE_MAX
//PMT SUKRIT END MMSVIEWER
    } gui_paging_no_of_pages;

    typedef enum
    {
        FONT_DEFAULT,
        FONT_ITALIC,
        FONT_BOLD
    } gui_paging_font_style;
    //PMT SUKRIT START MMSVIEWER
    #if 0
/* under construction !*/
    #endif
    //PMT SUKRIT END 
    extern void gui_paging_multi_line_input_box_get_previous_page_callback(multi_line_input_box *b);
    extern void gui_paging_multi_line_input_box_get_next_page_callback(multi_line_input_box *b);
    extern void gui_paging_multi_line_input_box_previous_page(multi_line_input_box *b);
    extern void gui_paging_multi_line_input_box_next_page(multi_line_input_box *b);
    extern void gui_paging_multi_line_input_box_previous_line_in_paging(multi_line_input_box *b);
    extern void gui_paging_multi_line_input_box_next_line_in_paging(multi_line_input_box *b);
#endif /* defined(__UI_PAGING_IN_MULTILINE_EDITOR__) */ 
    extern U8 gui_multi_line_input_box_get_previous_character(multi_line_input_box *b, UI_character_type *c);
    extern MMI_BOOL gui_multi_line_input_box_previous(multi_line_input_box *b);
    extern MMI_BOOL gui_multi_line_input_box_next(multi_line_input_box *b);
    extern void gui_multi_line_input_box_previous_line(multi_line_input_box *b);
    extern void gui_multi_line_input_box_next_line(multi_line_input_box *b);
    extern void gui_multi_line_input_box_previous_page(multi_line_input_box *b);
    extern void gui_multi_line_input_box_next_page(multi_line_input_box *b);
    extern void gui_multi_line_input_box_toggle_insert_mode(multi_line_input_box *b);
    extern void gui_multi_line_input_box_clear(multi_line_input_box *b);
/* slim_2_2 */ //    extern U8 gui_multi_line_input_box_test_overflow(multi_line_input_box *b);
    extern U8 gui_multi_line_input_box_test_first_position(multi_line_input_box *b);
    extern U8 gui_multi_line_input_box_test_last_position(multi_line_input_box *b);
    extern U8 gui_multi_line_input_box_test_first_line(multi_line_input_box *b);
    extern U8 gui_multi_line_input_box_test_last_line(multi_line_input_box *b);
    extern U8 gui_multi_line_input_box_test_last_position_overflow(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_get_text_length(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_highlight_cursor_end(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_highlight_cursor_start(multi_line_input_box *b);
    extern S32 gui_multi_line_input_box_highlight_cursor_number(multi_line_input_box *b, S32 n);
    extern MMI_BOOL gui_multi_line_input_box_insert_newline(multi_line_input_box *b);
#if defined(__MMI_TOUCH_SCREEN__) // || defined(__MMI_HANDWRITING_PAD__)
    extern BOOL gui_multi_line_input_box_translate_pen_event(
                    multi_line_input_box *b,
                    mmi_pen_event_type_enum pen_event,
                    S16 x,
                    S16 y,
                    gui_multi_line_input_box_pen_enum *multi_line_input_box_event);
#endif /* defined(__MMI_TOUCH_SCREEN__) || defined(__MMI_HANDWRITING_PAD__) */ 
    extern void gui_show_multi_line_input_box_ext(multi_line_input_box *b, S32 move_to_x, S32 move_to_y);
    extern void gui_multi_line_input_box_scroll_timer_hdlr(void);
    /* barcode */
    extern void gui_multi_line_input_box_previous_line_with_hilite_list(multi_line_input_box *b);
    extern void gui_multi_line_input_box_next_line_with_hilite_list(multi_line_input_box *b);
    extern void gui_multi_line_input_box_go_to_hilite_no_draw(multi_line_input_box *b, U16 idx);
    extern void gui_multi_line_input_box_go_to_hilite(multi_line_input_box *b, U16 idx, MMI_BOOL need_scroll_to_pos);
    extern void gui_multi_line_input_box_go_to_pre_hilite_ext(multi_line_input_box *b, MMI_BOOL b_adjust_y);
    extern void gui_multi_line_input_box_go_to_pre_hilite(multi_line_input_box *b);
    extern void gui_multi_line_input_box_go_to_next_hilite_ext(multi_line_input_box *b, MMI_BOOL b_adjust_y);
    extern void gui_multi_line_input_box_go_to_next_hilite(multi_line_input_box *b);
    extern MMI_BOOL gui_multi_line_input_box_is_pen_down_in_hilite(multi_line_input_box *b);
    extern S32 gui_mlc_change_request(S32 char_index);
    extern S32 gui_multi_line_input_box_is_highligter_in_visible_area(multi_line_input_box *b);
    extern void gui_multi_line_input_box_set_auto_display_remaining_counter(multi_line_input_box *b);

    extern void gui_multi_line_input_box_set_margin(multi_line_input_box *b, S32 top, S32 down, S32 left, s32 right);
#if defined(__MMI_MULTILINE_INPUT_BOX_SINGLINE_STYLE__) && defined(__MMI_EDITOR_SL_AUTO_CLEAR_HILITE_MODE__)
    extern void gui_multi_line_input_box_disable_auto_clear_hilite_mode(multi_line_input_box *b);
#endif
    
/*****************************************************************************
 * FUNCTION
 *  gui_multi_line_input_box_is_hilite_in_visible_range
 * DESCRIPTION
 *  Check if specific hilite index in the visible range
 * PARAMETERS
 *  b                [IN]        multiline inputbox object
 *  hilite_idx       [IN]        hilite index
 * RETURNS
 *  MMI_BOOL
 *****************************************************************************/
MMI_BOOL gui_multi_line_input_box_is_hilite_in_visible_range(multi_line_input_box *b, U16 hilite_idx);

    /*
     * UI_MULTI_LINE_INPUT_BOX_RICHTEXT
     *
     * Specical marker code for styles and colors  
     *
     * "Private Use" Region in Unicode is 0xE000 (57344) - 0xF900 (63744)
     * Regions defined in gRange_Properitory[] must not be overlapped.
     */

#define GUI_INPUT_MARKER_BEGIN                     0xEA00
#define GUI_INPUT_MARKER_END                       0xEFFF

    /* 
     * Font Format. Multiple format can be combined with bitwise OR 
     */

    /* The significant byte is 0xEA */
#define GUI_INPUT_MARKER_FORMAT                    0xEA00
#define GUI_INPUT_MARKER_FORMAT_MASK               0xFF00

    /* 1-bit flag */
#define GUI_INPUT_MARKER_BOLD                      0xEA01
#define GUI_INPUT_MARKER_ITALIC                    0xEA02
#define GUI_INPUT_MARKER_UNDERLINE                 0xEA04
#define GUI_INPUT_MARKER_BORDER                    0xEA08
    /* USAT */
#define GUI_INPUT_MARKER_STRIKETHROUGH             0xEA10

    /* 2 bits are reserved */

    /* 2-bit flag for size */
#define GUI_INPUT_MARKER_SIZE_MASK                 0xFFC0
#define GUI_INPUT_MARKER_MEDIUM                    0xEA40
#define GUI_INPUT_MARKER_SMALL                     0xEA80
#define GUI_INPUT_MARKER_LARGE                     0xEAC0

    /* 
     * Paragraph Format. Multiple format can be combined with bitwise OR 
     */

    /* The significant byte is 0xEB */
#define GUI_INPUT_MARKER_PARAGRAPH                 0xEB00
#define GUI_INPUT_MARKER_PARAGRAPH_MASK            0xFF00

    /* 2-bit flag for alignment. Flag still valid in the next line */
#define GUI_INPUT_MARKER_ALIGN_MASK                0xFF03
#define GUI_INPUT_MARKER_ALIGN_LEFT                0xEB01
#define GUI_INPUT_MARKER_ALIGN_CENTER              0xEB02
#define GUI_INPUT_MARKER_ALIGN_RIGHT               0xEB03

    /* 3-bit flag for more spacing between the previous line. (Flag cleared in the next line) */
#define GUI_INPUT_MARKER_LINE_SPACING_MASK               0xFF1C
#define GUI_INPUT_MARKER_LINE_SPACING_1                  0xEB04
#define GUI_INPUT_MARKER_LINE_SPACING_2                  0xEB08
#define GUI_INPUT_MARKER_LINE_SPACING_3                  0xEB0C
#define GUI_INPUT_MARKER_LINE_SPACING_4                  0xEB10
#define GUI_INPUT_MARKER_LINE_SPACING_5                  0xEB14
#define GUI_INPUT_MARKER_LINE_SPACING_6                  0xEB18
#define GUI_INPUT_MARKER_LINE_SPACING_7                  0xEB1C

    /* 2 bits are reserved */

    /* 1-bit flag separator between the previous line. (Flag cleared in the next line) */
#define GUI_INPUT_MARKER_LINE_SEPARATOR            0xEB80

    /* 
     * One-byte marker 
     */

    /* Reset all  */
#define GUI_INPUT_MARKER_RESET_ALL                 0xEC00
    /* Reset paragraph */
#define GUI_INPUT_MARKER_RESET_PARAGRAPH           0xEC01
    /* Reset font format */
#define GUI_INPUT_MARKER_RESET_FORMAT              0xEC02
    /* Reset font color */
#define GUI_INPUT_MARKER_RESET_COLOR               0xEC03

    /* Range of W3C color marker */
#define GUI_INPUT_MARKER_W3C_COLOR_BEGIN           0xEC04
#define GUI_INPUT_MARKER_W3C_COLOR_END             0xECFF

    /* Range of default color marker */
#define GUI_INPUT_MARKER_COLOR_BEGIN               0xED00
#define GUI_INPUT_MARKER_COLOR_END                 0xED7F
    /* USAT */
    /* Range of text background color marker */
#define GUI_INPUT_MARKER_TEXT_BACKGROUND_COLOR_BEGIN              0xED80
#define GUI_INPUT_MARKER_TEXT_BACKGROUND_COLOR_END                0xEDFF

    /* Range of border color marker */
#define GUI_INPUT_MARKER_W3C_BORDER_COLOR_BEGIN          0xEE04
#define GUI_INPUT_MARKER_W3C_BORDER_COLOR_END            0xEEFF

#define GUI_INPUT_MARKER_BORDER_COLOR_BEGIN              0xEF00
#define GUI_INPUT_MARKER_BORDER_COLOR_END                0xEFFF

    /*
     * Default color marker code (122 colors)
     */
    typedef enum
    {
        GUI_INPUT_COLOR_00 = GUI_INPUT_MARKER_COLOR_BEGIN,
        GUI_INPUT_COLOR_01,
        GUI_INPUT_COLOR_02,
        GUI_INPUT_COLOR_03,
        GUI_INPUT_COLOR_04,
        GUI_INPUT_COLOR_05,
        GUI_INPUT_COLOR_06,
        GUI_INPUT_COLOR_07,
        GUI_INPUT_COLOR_08,
        GUI_INPUT_COLOR_09,
        GUI_INPUT_COLOR_0A,
        GUI_INPUT_COLOR_0B,
        GUI_INPUT_COLOR_0C,
        GUI_INPUT_COLOR_0D,
        GUI_INPUT_COLOR_0E,
        GUI_INPUT_COLOR_0F,
        GUI_INPUT_COLOR_10,
        GUI_INPUT_COLOR_11,
        GUI_INPUT_COLOR_12,
        GUI_INPUT_COLOR_13,
        GUI_INPUT_COLOR_14,
        GUI_INPUT_COLOR_15,
        GUI_INPUT_COLOR_16,
        GUI_INPUT_COLOR_17,
        GUI_INPUT_COLOR_18,
        GUI_INPUT_COLOR_19,
        GUI_INPUT_COLOR_1A,
        GUI_INPUT_COLOR_1B,
        GUI_INPUT_COLOR_1C,
        GUI_INPUT_COLOR_1D,
        GUI_INPUT_COLOR_1E,
        GUI_INPUT_COLOR_1F,
        GUI_INPUT_COLOR_20,
        GUI_INPUT_COLOR_21,
        GUI_INPUT_COLOR_22,
        GUI_INPUT_COLOR_23,
        GUI_INPUT_COLOR_24,
        GUI_INPUT_COLOR_25,
        GUI_INPUT_COLOR_26,
        GUI_INPUT_COLOR_27,
        GUI_INPUT_COLOR_28,
        GUI_INPUT_COLOR_29,
        GUI_INPUT_COLOR_2A,
        GUI_INPUT_COLOR_2B,
        GUI_INPUT_COLOR_2C,
        GUI_INPUT_COLOR_2D,
        GUI_INPUT_COLOR_2E,
        GUI_INPUT_COLOR_2F,
        GUI_INPUT_COLOR_30,
        GUI_INPUT_COLOR_31,
        GUI_INPUT_COLOR_32,
        GUI_INPUT_COLOR_33,
        GUI_INPUT_COLOR_34,
        GUI_INPUT_COLOR_35,
        GUI_INPUT_COLOR_36,
        GUI_INPUT_COLOR_37,
        GUI_INPUT_COLOR_38,
        GUI_INPUT_COLOR_39,
        GUI_INPUT_COLOR_3A,
        GUI_INPUT_COLOR_3B,
        GUI_INPUT_COLOR_3C,
        GUI_INPUT_COLOR_3D,
        GUI_INPUT_COLOR_3E,
        GUI_INPUT_COLOR_3F,
        GUI_INPUT_COLOR_40,
        GUI_INPUT_COLOR_41,
        GUI_INPUT_COLOR_42,
        GUI_INPUT_COLOR_43,
        GUI_INPUT_COLOR_44,
        GUI_INPUT_COLOR_45,
        GUI_INPUT_COLOR_46,
        GUI_INPUT_COLOR_47,
        GUI_INPUT_COLOR_48,
        GUI_INPUT_COLOR_49,
        GUI_INPUT_COLOR_4A,
        GUI_INPUT_COLOR_4B,
        GUI_INPUT_COLOR_4C,
        GUI_INPUT_COLOR_4D,
        GUI_INPUT_COLOR_4E,
        GUI_INPUT_COLOR_4F,
        GUI_INPUT_COLOR_50,
        GUI_INPUT_COLOR_51,
        GUI_INPUT_COLOR_52,
        GUI_INPUT_COLOR_53,
        GUI_INPUT_COLOR_54,
        GUI_INPUT_COLOR_55,
        GUI_INPUT_COLOR_56,
        GUI_INPUT_COLOR_57,
        GUI_INPUT_COLOR_58,
        GUI_INPUT_COLOR_59,
        GUI_INPUT_COLOR_5A,
        GUI_INPUT_COLOR_5B,
        GUI_INPUT_COLOR_5C,
        GUI_INPUT_COLOR_5D,
        GUI_INPUT_COLOR_5E,
        GUI_INPUT_COLOR_5F,
        GUI_INPUT_COLOR_60,
        GUI_INPUT_COLOR_61,
        GUI_INPUT_COLOR_62,
        GUI_INPUT_COLOR_63,
        GUI_INPUT_COLOR_64,
        GUI_INPUT_COLOR_65,
        GUI_INPUT_COLOR_66,
        GUI_INPUT_COLOR_67,
        GUI_INPUT_COLOR_68,
        GUI_INPUT_COLOR_69,
        GUI_INPUT_COLOR_6A,
        GUI_INPUT_COLOR_6B,
        GUI_INPUT_COLOR_6C,
        GUI_INPUT_COLOR_6D,
        GUI_INPUT_COLOR_6E,
        GUI_INPUT_COLOR_6F,
        GUI_INPUT_COLOR_70,
        GUI_INPUT_COLOR_71,
        GUI_INPUT_COLOR_72,
        GUI_INPUT_COLOR_73,
        GUI_INPUT_COLOR_74,
        GUI_INPUT_COLOR_75,
        GUI_INPUT_COLOR_76,
        GUI_INPUT_COLOR_77,
        GUI_INPUT_COLOR_78,
        GUI_INPUT_COLOR_79,
        GUI_INPUT_COLOR_7A
    } gui_input_color_marker_enum;

    /* 
     * http://www.w3.org/TR/css3-color/ 
     * W3C color marker code (147 colors)
     */
    typedef enum
    {
        GUI_INPUT_COLOR_ALICEBLUE = GUI_INPUT_MARKER_W3C_COLOR_BEGIN,
        GUI_INPUT_COLOR_ANTIQUEWHITE,
        GUI_INPUT_COLOR_AQUA,
        GUI_INPUT_COLOR_AQUAMARINE,
        GUI_INPUT_COLOR_AZURE,
        GUI_INPUT_COLOR_BEIGE,
        GUI_INPUT_COLOR_BISQUE,
        GUI_INPUT_COLOR_BLACK,
        GUI_INPUT_COLOR_BLANCHEDALMOND,
        GUI_INPUT_COLOR_BLUE,
        GUI_INPUT_COLOR_BLUEVIOLET,
        GUI_INPUT_COLOR_BROWN,
        GUI_INPUT_COLOR_BURLYWOOD,
        GUI_INPUT_COLOR_CADETBLUE,
        GUI_INPUT_COLOR_CHARTREUSE,
        GUI_INPUT_COLOR_CHOCOLATE,
        GUI_INPUT_COLOR_CORAL,
        GUI_INPUT_COLOR_CORNFLOWERBLUE,
        GUI_INPUT_COLOR_CORNSILK,
        GUI_INPUT_COLOR_CRIMSON,
        GUI_INPUT_COLOR_CYAN,
        GUI_INPUT_COLOR_DARKBLUE,
        GUI_INPUT_COLOR_DARKCYAN,
        GUI_INPUT_COLOR_DARKGOLDENROD,
        GUI_INPUT_COLOR_DARKGRAY,
        GUI_INPUT_COLOR_DARKGREEN,
        GUI_INPUT_COLOR_DARKGREY,
        GUI_INPUT_COLOR_DARKKHAKI,
        GUI_INPUT_COLOR_DARKMAGENTA,
        GUI_INPUT_COLOR_DARKOLIVEGREEN,
        GUI_INPUT_COLOR_DARKORANGE,
        GUI_INPUT_COLOR_DARKORCHID,
        GUI_INPUT_COLOR_DARKRED,
        GUI_INPUT_COLOR_DARKSALMON,
        GUI_INPUT_COLOR_DARKSEAGREEN,
        GUI_INPUT_COLOR_DARKSLATEBLUE,
        GUI_INPUT_COLOR_DARKSLATEGRAY,
        GUI_INPUT_COLOR_DARKSLATEGREY,
        GUI_INPUT_COLOR_DARKTURQUOISE,
        GUI_INPUT_COLOR_DARKVIOLET,
        GUI_INPUT_COLOR_DEEPPINK,
        GUI_INPUT_COLOR_DEEPSKYBLUE,
        GUI_INPUT_COLOR_DIMGRAY,
        GUI_INPUT_COLOR_DIMGREY,
        GUI_INPUT_COLOR_DODGERBLUE,
        GUI_INPUT_COLOR_FIREBRICK,
        GUI_INPUT_COLOR_FLORALWHITE,
        GUI_INPUT_COLOR_FORESTGREEN,
        GUI_INPUT_COLOR_FUCHSIA,
        GUI_INPUT_COLOR_GAINSBORO,
        GUI_INPUT_COLOR_GHOSTWHITE,
        GUI_INPUT_COLOR_GOLD,
        GUI_INPUT_COLOR_GOLDENROD,
        GUI_INPUT_COLOR_GRAY,
        GUI_INPUT_COLOR_GREY,
        GUI_INPUT_COLOR_GREEN,
        GUI_INPUT_COLOR_GREENYELLOW,
        GUI_INPUT_COLOR_HONEYDEW,
        GUI_INPUT_COLOR_HOTPINK,
        GUI_INPUT_COLOR_INDIANRED,
        GUI_INPUT_COLOR_INDIGO,
        GUI_INPUT_COLOR_IVORY,
        GUI_INPUT_COLOR_KHAKI,
        GUI_INPUT_COLOR_LAVENDER,
        GUI_INPUT_COLOR_LAVENDERBLUSH,
        GUI_INPUT_COLOR_LAWNGREEN,
        GUI_INPUT_COLOR_LEMONCHIFFON,
        GUI_INPUT_COLOR_LIGHTBLUE,
        GUI_INPUT_COLOR_LIGHTCORAL,
        GUI_INPUT_COLOR_LIGHTCYAN,
        GUI_INPUT_COLOR_LIGHTGOLDENRODYELLOW,
        GUI_INPUT_COLOR_LIGHTGRAY,
        GUI_INPUT_COLOR_LIGHTGREEN,
        GUI_INPUT_COLOR_LIGHTGREY,
        GUI_INPUT_COLOR_LIGHTPINK,
        GUI_INPUT_COLOR_LIGHTSALMON,
        GUI_INPUT_COLOR_LIGHTSEAGREEN,
        GUI_INPUT_COLOR_LIGHTSKYBLUE,
        GUI_INPUT_COLOR_LIGHTSLATEGRAY,
        GUI_INPUT_COLOR_LIGHTSLATEGREY,
        GUI_INPUT_COLOR_LIGHTSTEELBLUE,
        GUI_INPUT_COLOR_LIGHTYELLOW,
        GUI_INPUT_COLOR_LIME,
        GUI_INPUT_COLOR_LIMEGREEN,
        GUI_INPUT_COLOR_LINEN,
        GUI_INPUT_COLOR_MAGENTA,
        GUI_INPUT_COLOR_MAROON,
        GUI_INPUT_COLOR_MEDIUMAQUAMARINE,
        GUI_INPUT_COLOR_MEDIUMBLUE,
        GUI_INPUT_COLOR_MEDIUMORCHID,
        GUI_INPUT_COLOR_MEDIUMPURPLE,
        GUI_INPUT_COLOR_MEDIUMSEAGREEN,
        GUI_INPUT_COLOR_MEDIUMSLATEBLUE,
        GUI_INPUT_COLOR_MEDIUMSPRINGGREEN,
        GUI_INPUT_COLOR_MEDIUMTURQUOISE,
        GUI_INPUT_COLOR_MEDIUMVIOLETRED,
        GUI_INPUT_COLOR_MIDNIGHTBLUE,
        GUI_INPUT_COLOR_MINTCREAM,
        GUI_INPUT_COLOR_MISTYROSE,
        GUI_INPUT_COLOR_MOCCASIN,
        GUI_INPUT_COLOR_NAVAJOWHITE,
        GUI_INPUT_COLOR_NAVY,
        GUI_INPUT_COLOR_OLDLACE,
        GUI_INPUT_COLOR_OLIVE,
        GUI_INPUT_COLOR_OLIVEDRAB,
        GUI_INPUT_COLOR_ORANGE,
        GUI_INPUT_COLOR_ORANGERED,
        GUI_INPUT_COLOR_ORCHID,
        GUI_INPUT_COLOR_PALEGOLDENROD,
        GUI_INPUT_COLOR_PALEGREEN,
        GUI_INPUT_COLOR_PALETURQUOISE,
        GUI_INPUT_COLOR_PALEVIOLETRED,
        GUI_INPUT_COLOR_PAPAYAWHIP,
        GUI_INPUT_COLOR_PEACHPUFF,
        GUI_INPUT_COLOR_PERU,
        GUI_INPUT_COLOR_PINK,
        GUI_INPUT_COLOR_PLUM,
        GUI_INPUT_COLOR_POWDERBLUE,
        GUI_INPUT_COLOR_PURPLE,
        GUI_INPUT_COLOR_RED,
        GUI_INPUT_COLOR_ROSYBROWN,
        GUI_INPUT_COLOR_ROYALBLUE,
        GUI_INPUT_COLOR_SADDLEBROWN,
        GUI_INPUT_COLOR_SALMON,
        GUI_INPUT_COLOR_SANDYBROWN,
        GUI_INPUT_COLOR_SEAGREEN,
        GUI_INPUT_COLOR_SEASHELL,
        GUI_INPUT_COLOR_SIENNA,
        GUI_INPUT_COLOR_SILVER,
        GUI_INPUT_COLOR_SKYBLUE,
        GUI_INPUT_COLOR_SLATEBLUE,
        GUI_INPUT_COLOR_SLATEGRAY,
        GUI_INPUT_COLOR_SLATEGREY,
        GUI_INPUT_COLOR_SNOW,
        GUI_INPUT_COLOR_SPRINGGREEN,
        GUI_INPUT_COLOR_STEELBLUE,
        GUI_INPUT_COLOR_TAN,
        GUI_INPUT_COLOR_TEAL,
        GUI_INPUT_COLOR_THISTLE,
        GUI_INPUT_COLOR_TOMATO,
        GUI_INPUT_COLOR_TURQUOISE,
        GUI_INPUT_COLOR_VIOLET,
        GUI_INPUT_COLOR_WHEAT,
        GUI_INPUT_COLOR_WHITE,
        GUI_INPUT_COLOR_WHITESMOKE,
        GUI_INPUT_COLOR_YELLOW,
        GUI_INPUT_COLOR_YELLOWGREEN
    } gui_input_w3c_color_marker_enum;

    /* 
     * http://www.w3.org/TR/css3-color/ 
     * W3C color marker code (147 colors)
     * For text background color only define 17 colors
     */
    typedef enum
    {
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKGREY = GUI_INPUT_MARKER_TEXT_BACKGROUND_COLOR_BEGIN,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKRED,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_YELLOW,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKGREEN,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKCYAN,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKBLUE,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_DARKMAGENTA,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_GRAY,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_WHITE,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_RED,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_LIGHTYELLOW,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_LIGHTGREEN,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_LIGHTCYAN,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_LIGHTBLUE,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_MAGENTA,
        GUI_INPUT_TEXT_BACKGROUND_COLOR_BLACK
    } gui_input_w3c_text_background_color_marker_enum;

    /*
     * Default color marker code (122 colors)
     */

    typedef enum
    {
        GUI_INPUT_BORDER_COLOR_00 = GUI_INPUT_MARKER_BORDER_COLOR_BEGIN,
        GUI_INPUT_BORDER_COLOR_01,
        GUI_INPUT_BORDER_COLOR_02,
        GUI_INPUT_BORDER_COLOR_03,
        GUI_INPUT_BORDER_COLOR_04,
        GUI_INPUT_BORDER_COLOR_05,
        GUI_INPUT_BORDER_COLOR_06,
        GUI_INPUT_BORDER_COLOR_07,
        GUI_INPUT_BORDER_COLOR_08,
        GUI_INPUT_BORDER_COLOR_09,
        GUI_INPUT_BORDER_COLOR_0A,
        GUI_INPUT_BORDER_COLOR_0B,
        GUI_INPUT_BORDER_COLOR_0C,
        GUI_INPUT_BORDER_COLOR_0D,
        GUI_INPUT_BORDER_COLOR_0E,
        GUI_INPUT_BORDER_COLOR_0F,
        GUI_INPUT_BORDER_COLOR_10,
        GUI_INPUT_BORDER_COLOR_11,
        GUI_INPUT_BORDER_COLOR_12,
        GUI_INPUT_BORDER_COLOR_13,
        GUI_INPUT_BORDER_COLOR_14,
        GUI_INPUT_BORDER_COLOR_15,
        GUI_INPUT_BORDER_COLOR_16,
        GUI_INPUT_BORDER_COLOR_17,
        GUI_INPUT_BORDER_COLOR_18,
        GUI_INPUT_BORDER_COLOR_19,
        GUI_INPUT_BORDER_COLOR_1A,
        GUI_INPUT_BORDER_COLOR_1B,
        GUI_INPUT_BORDER_COLOR_1C,
        GUI_INPUT_BORDER_COLOR_1D,
        GUI_INPUT_BORDER_COLOR_1E,
        GUI_INPUT_BORDER_COLOR_1F,
        GUI_INPUT_BORDER_COLOR_20,
        GUI_INPUT_BORDER_COLOR_21,
        GUI_INPUT_BORDER_COLOR_22,
        GUI_INPUT_BORDER_COLOR_23,
        GUI_INPUT_BORDER_COLOR_24,
        GUI_INPUT_BORDER_COLOR_25,
        GUI_INPUT_BORDER_COLOR_26,
        GUI_INPUT_BORDER_COLOR_27,
        GUI_INPUT_BORDER_COLOR_28,
        GUI_INPUT_BORDER_COLOR_29,
        GUI_INPUT_BORDER_COLOR_2A,
        GUI_INPUT_BORDER_COLOR_2B,
        GUI_INPUT_BORDER_COLOR_2C,
        GUI_INPUT_BORDER_COLOR_2D,
        GUI_INPUT_BORDER_COLOR_2E,
        GUI_INPUT_BORDER_COLOR_2F,
        GUI_INPUT_BORDER_COLOR_30,
        GUI_INPUT_BORDER_COLOR_31,
        GUI_INPUT_BORDER_COLOR_32,
        GUI_INPUT_BORDER_COLOR_33,
        GUI_INPUT_BORDER_COLOR_34,
        GUI_INPUT_BORDER_COLOR_35,
        GUI_INPUT_BORDER_COLOR_36,
        GUI_INPUT_BORDER_COLOR_37,
        GUI_INPUT_BORDER_COLOR_38,
        GUI_INPUT_BORDER_COLOR_39,
        GUI_INPUT_BORDER_COLOR_3A,
        GUI_INPUT_BORDER_COLOR_3B,
        GUI_INPUT_BORDER_COLOR_3C,
        GUI_INPUT_BORDER_COLOR_3D,
        GUI_INPUT_BORDER_COLOR_3E,
        GUI_INPUT_BORDER_COLOR_3F,
        GUI_INPUT_BORDER_COLOR_40,
        GUI_INPUT_BORDER_COLOR_41,
        GUI_INPUT_BORDER_COLOR_42,
        GUI_INPUT_BORDER_COLOR_43,
        GUI_INPUT_BORDER_COLOR_44,
        GUI_INPUT_BORDER_COLOR_45,
        GUI_INPUT_BORDER_COLOR_46,
        GUI_INPUT_BORDER_COLOR_47,
        GUI_INPUT_BORDER_COLOR_48,
        GUI_INPUT_BORDER_COLOR_49,
        GUI_INPUT_BORDER_COLOR_4A,
        GUI_INPUT_BORDER_COLOR_4B,
        GUI_INPUT_BORDER_COLOR_4C,
        GUI_INPUT_BORDER_COLOR_4D,
        GUI_INPUT_BORDER_COLOR_4E,
        GUI_INPUT_BORDER_COLOR_4F,
        GUI_INPUT_BORDER_COLOR_50,
        GUI_INPUT_BORDER_COLOR_51,
        GUI_INPUT_BORDER_COLOR_52,
        GUI_INPUT_BORDER_COLOR_53,
        GUI_INPUT_BORDER_COLOR_54,
        GUI_INPUT_BORDER_COLOR_55,
        GUI_INPUT_BORDER_COLOR_56,
        GUI_INPUT_BORDER_COLOR_57,
        GUI_INPUT_BORDER_COLOR_58,
        GUI_INPUT_BORDER_COLOR_59,
        GUI_INPUT_BORDER_COLOR_5A,
        GUI_INPUT_BORDER_COLOR_5B,
        GUI_INPUT_BORDER_COLOR_5C,
        GUI_INPUT_BORDER_COLOR_5D,
        GUI_INPUT_BORDER_COLOR_5E,
        GUI_INPUT_BORDER_COLOR_5F,
        GUI_INPUT_BORDER_COLOR_60,
        GUI_INPUT_BORDER_COLOR_61,
        GUI_INPUT_BORDER_COLOR_62,
        GUI_INPUT_BORDER_COLOR_63,
        GUI_INPUT_BORDER_COLOR_64,
        GUI_INPUT_BORDER_COLOR_65,
        GUI_INPUT_BORDER_COLOR_66,
        GUI_INPUT_BORDER_COLOR_67,
        GUI_INPUT_BORDER_COLOR_68,
        GUI_INPUT_BORDER_COLOR_69,
        GUI_INPUT_BORDER_COLOR_6A,
        GUI_INPUT_BORDER_COLOR_6B,
        GUI_INPUT_BORDER_COLOR_6C,
        GUI_INPUT_BORDER_COLOR_6D,
        GUI_INPUT_BORDER_COLOR_6E,
        GUI_INPUT_BORDER_COLOR_6F,
        GUI_INPUT_BORDER_COLOR_70,
        GUI_INPUT_BORDER_COLOR_71,
        GUI_INPUT_BORDER_COLOR_72,
        GUI_INPUT_BORDER_COLOR_73,
        GUI_INPUT_BORDER_COLOR_74,
        GUI_INPUT_BORDER_COLOR_75,
        GUI_INPUT_BORDER_COLOR_76,
        GUI_INPUT_BORDER_COLOR_77,
        GUI_INPUT_BORDER_COLOR_78,
        GUI_INPUT_BORDER_COLOR_79
    } gui_input_border_color_marker_enum;

    /* 
     * http://www.w3.org/TR/css3-color/ 
     * W3C color marker code (147 colors)
     */

    typedef enum
    {
        GUI_INPUT_BORDER_COLOR_ALICEBLUE = GUI_INPUT_MARKER_W3C_BORDER_COLOR_BEGIN,
        GUI_INPUT_BORDER_COLOR_ANTIQUEWHITE,
        GUI_INPUT_BORDER_COLOR_AQUA,
        GUI_INPUT_BORDER_COLOR_AQUAMARINE,
        GUI_INPUT_BORDER_COLOR_AZURE,
        GUI_INPUT_BORDER_COLOR_BEIGE,
        GUI_INPUT_BORDER_COLOR_BISQUE,
        GUI_INPUT_BORDER_COLOR_BLACK,
        GUI_INPUT_BORDER_COLOR_BLANCHEDALMOND,
        GUI_INPUT_BORDER_COLOR_BLUE,
        GUI_INPUT_BORDER_COLOR_BLUEVIOLET,
        GUI_INPUT_BORDER_COLOR_BROWN,
        GUI_INPUT_BORDER_COLOR_BURLYWOOD,
        GUI_INPUT_BORDER_COLOR_CADETBLUE,
        GUI_INPUT_BORDER_COLOR_CHARTREUSE,
        GUI_INPUT_BORDER_COLOR_CHOCOLATE,
        GUI_INPUT_BORDER_COLOR_CORAL,
        GUI_INPUT_BORDER_COLOR_CORNFLOWERBLUE,
        GUI_INPUT_BORDER_COLOR_CORNSILK,
        GUI_INPUT_BORDER_COLOR_CRIMSON,
        GUI_INPUT_BORDER_COLOR_CYAN,
        GUI_INPUT_BORDER_COLOR_DARKBLUE,
        GUI_INPUT_BORDER_COLOR_DARKCYAN,
        GUI_INPUT_BORDER_COLOR_DARKGOLDENROD,
        GUI_INPUT_BORDER_COLOR_DARKGRAY,
        GUI_INPUT_BORDER_COLOR_DARKGREEN,
        GUI_INPUT_BORDER_COLOR_DARKGREY,
        GUI_INPUT_BORDER_COLOR_DARKKHAKI,
        GUI_INPUT_BORDER_COLOR_DARKMAGENTA,
        GUI_INPUT_BORDER_COLOR_DARKOLIVEGREEN,
        GUI_INPUT_BORDER_COLOR_DARKORANGE,
        GUI_INPUT_BORDER_COLOR_DARKORCHID,
        GUI_INPUT_BORDER_COLOR_DARKRED,
        GUI_INPUT_BORDER_COLOR_DARKSALMON,
        GUI_INPUT_BORDER_COLOR_DARKSEAGREEN,
        GUI_INPUT_BORDER_COLOR_DARKSLATEBLUE,
        GUI_INPUT_BORDER_COLOR_DARKSLATEGRAY,
        GUI_INPUT_BORDER_COLOR_DARKSLATEGREY,
        GUI_INPUT_BORDER_COLOR_DARKTURQUOISE,
        GUI_INPUT_BORDER_COLOR_DARKVIOLET,
        GUI_INPUT_BORDER_COLOR_DEEPPINK,
        GUI_INPUT_BORDER_COLOR_DEEPSKYBLUE,
        GUI_INPUT_BORDER_COLOR_DIMGRAY,
        GUI_INPUT_BORDER_COLOR_DIMGREY,
        GUI_INPUT_BORDER_COLOR_DODGERBLUE,
        GUI_INPUT_BORDER_COLOR_FIREBRICK,
        GUI_INPUT_BORDER_COLOR_FLORALWHITE,
        GUI_INPUT_BORDER_COLOR_FORESTGREEN,
        GUI_INPUT_BORDER_COLOR_FUCHSIA,
        GUI_INPUT_BORDER_COLOR_GAINSBORO,
        GUI_INPUT_BORDER_COLOR_GHOSTWHITE,
        GUI_INPUT_BORDER_COLOR_GOLD,
        GUI_INPUT_BORDER_COLOR_GOLDENROD,
        GUI_INPUT_BORDER_COLOR_GRAY,
        GUI_INPUT_BORDER_COLOR_GREY,
        GUI_INPUT_BORDER_COLOR_GREEN,
        GUI_INPUT_BORDER_COLOR_GREENYELLOW,
        GUI_INPUT_BORDER_COLOR_HONEYDEW,
        GUI_INPUT_BORDER_COLOR_HOTPINK,
        GUI_INPUT_BORDER_COLOR_INDIANRED,
        GUI_INPUT_BORDER_COLOR_INDIGO,
        GUI_INPUT_BORDER_COLOR_IVORY,
        GUI_INPUT_BORDER_COLOR_KHAKI,
        GUI_INPUT_BORDER_COLOR_LAVENDER,
        GUI_INPUT_BORDER_COLOR_LAVENDERBLUSH,
        GUI_INPUT_BORDER_COLOR_LAWNGREEN,
        GUI_INPUT_BORDER_COLOR_LEMONCHIFFON,
        GUI_INPUT_BORDER_COLOR_LIGHTBLUE,
        GUI_INPUT_BORDER_COLOR_LIGHTCORAL,
        GUI_INPUT_BORDER_COLOR_LIGHTCYAN,
        GUI_INPUT_BORDER_COLOR_LIGHTGOLDENRODYELLOW,
        GUI_INPUT_BORDER_COLOR_LIGHTGRAY,
        GUI_INPUT_BORDER_COLOR_LIGHTGREEN,
        GUI_INPUT_BORDER_COLOR_LIGHTGREY,
        GUI_INPUT_BORDER_COLOR_LIGHTPINK,
        GUI_INPUT_BORDER_COLOR_LIGHTSALMON,
        GUI_INPUT_BORDER_COLOR_LIGHTSEAGREEN,
        GUI_INPUT_BORDER_COLOR_LIGHTSKYBLUE,
        GUI_INPUT_BORDER_COLOR_LIGHTSLATEGRAY,
        GUI_INPUT_BORDER_COLOR_LIGHTSLATEGREY,
        GUI_INPUT_BORDER_COLOR_LIGHTSTEELBLUE,
        GUI_INPUT_BORDER_COLOR_LIGHTYELLOW,
        GUI_INPUT_BORDER_COLOR_LIME,
        GUI_INPUT_BORDER_COLOR_LIMEGREEN,
        GUI_INPUT_BORDER_COLOR_LINEN,
        GUI_INPUT_BORDER_COLOR_MAGENTA,
        GUI_INPUT_BORDER_COLOR_MAROON,
        GUI_INPUT_BORDER_COLOR_MEDIUMAQUAMARINE,
        GUI_INPUT_BORDER_COLOR_MEDIUMBLUE,
        GUI_INPUT_BORDER_COLOR_MEDIUMORCHID,
        GUI_INPUT_BORDER_COLOR_MEDIUMPURPLE,
        GUI_INPUT_BORDER_COLOR_MEDIUMSEAGREEN,
        GUI_INPUT_BORDER_COLOR_MEDIUMSLATEBLUE,
        GUI_INPUT_BORDER_COLOR_MEDIUMSPRINGGREEN,
        GUI_INPUT_BORDER_COLOR_MEDIUMTURQUOISE,
        GUI_INPUT_BORDER_COLOR_MEDIUMVIOLETRED,
        GUI_INPUT_BORDER_COLOR_MIDNIGHTBLUE,
        GUI_INPUT_BORDER_COLOR_MINTCREAM,
        GUI_INPUT_BORDER_COLOR_MISTYROSE,
        GUI_INPUT_BORDER_COLOR_MOCCASIN,
        GUI_INPUT_BORDER_COLOR_NAVAJOWHITE,
        GUI_INPUT_BORDER_COLOR_NAVY,
        GUI_INPUT_BORDER_COLOR_OLDLACE,
        GUI_INPUT_BORDER_COLOR_OLIVE,
        GUI_INPUT_BORDER_COLOR_OLIVEDRAB,
        GUI_INPUT_BORDER_COLOR_ORANGE,
        GUI_INPUT_BORDER_COLOR_ORANGERED,
        GUI_INPUT_BORDER_COLOR_ORCHID,
        GUI_INPUT_BORDER_COLOR_PALEGOLDENROD,
        GUI_INPUT_BORDER_COLOR_PALEGREEN,
        GUI_INPUT_BORDER_COLOR_PALETURQUOISE,
        GUI_INPUT_BORDER_COLOR_PALEVIOLETRED,
        GUI_INPUT_BORDER_COLOR_PAPAYAWHIP,
        GUI_INPUT_BORDER_COLOR_PEACHPUFF,
        GUI_INPUT_BORDER_COLOR_PERU,
        GUI_INPUT_BORDER_COLOR_PINK,
        GUI_INPUT_BORDER_COLOR_PLUM,
        GUI_INPUT_BORDER_COLOR_POWDERBLUE,
        GUI_INPUT_BORDER_COLOR_PURPLE,
        GUI_INPUT_BORDER_COLOR_RED,
        GUI_INPUT_BORDER_COLOR_ROSYBROWN,
        GUI_INPUT_BORDER_COLOR_ROYALBLUE,
        GUI_INPUT_BORDER_COLOR_SADDLEBROWN,
        GUI_INPUT_BORDER_COLOR_SALMON,
        GUI_INPUT_BORDER_COLOR_SANDYBROWN,
        GUI_INPUT_BORDER_COLOR_SEAGREEN,
        GUI_INPUT_BORDER_COLOR_SEASHELL,
        GUI_INPUT_BORDER_COLOR_SIENNA,
        GUI_INPUT_BORDER_COLOR_SILVER,
        GUI_INPUT_BORDER_COLOR_SKYBLUE,
        GUI_INPUT_BORDER_COLOR_SLATEBLUE,
        GUI_INPUT_BORDER_COLOR_SLATEGRAY,
        GUI_INPUT_BORDER_COLOR_SLATEGREY,
        GUI_INPUT_BORDER_COLOR_SNOW,
        GUI_INPUT_BORDER_COLOR_SPRINGGREEN,
        GUI_INPUT_BORDER_COLOR_STEELBLUE,
        GUI_INPUT_BORDER_COLOR_TAN,
        GUI_INPUT_BORDER_COLOR_TEAL,
        GUI_INPUT_BORDER_COLOR_THISTLE,
        GUI_INPUT_BORDER_COLOR_TOMATO,
        GUI_INPUT_BORDER_COLOR_TURQUOISE,
        GUI_INPUT_BORDER_COLOR_VIOLET,
        GUI_INPUT_BORDER_COLOR_WHEAT,
        GUI_INPUT_BORDER_COLOR_WHITE,
        GUI_INPUT_BORDER_COLOR_WHITESMOKE,
        GUI_INPUT_BORDER_COLOR_YELLOW,
        GUI_INPUT_BORDER_COLOR_YELLOWGREEN
    } gui_input_w3c_border_color_marker_enum;

    /* UI General input box structure            */
    extern UI_dialer_input_box_theme *current_dialer_input_box_theme;

#define UI_DIALER_INPUT_BOX_DISABLE_BACKGROUND        0x00000001
#define UI_DIALER_INPUT_BOX_DISABLE_DRAW           0x00000002
#define UI_DIALER_INPUT_BOX_DISABLE_CURSOR_DRAW       0x00000004
/* slim_2_2 */ // //#define UI_DIALER_INPUT_BOX_USE_ENCODING_BASED_LENGTH 0x00000008
#define UI_DIALER_INPUT_BOX_STATE_MULTITAP            0x00000010
#define UI_DIALER_INPUT_BOX_OVERWRITE_MODE            0x00000020
/* slim_2_2 */ // //#define UI_DIALER_INPUT_BOX_MASK_CHARACTERS           0x00000040
/* slim_2_2 */ // //#define UI_DIALER_INPUT_BOX_SHOW_BLOCK_CURSOR         0x00000080
#define UI_DIALER_INPUT_BOX_CHARACTER_QUEUE           0x00000100
/* slim_2_2 */ // //#define UI_DIALER_INPUT_BOX_ONE_LESS_CHARACTER        0x00000200
#define UI_DIALER_INPUT_BOX_PLUS_CHARACTER_HANDLING      0x00000400
#define UI_DIALER_INPUT_BOX_SHOW_BORDER               0x00000800

#define MAX_DIALER_LINE_COUNT       8

    typedef struct _dialer_input_box
    {
        S32 x, y;
        S32 width, height;
        UI_filled_area *background_filler;
        U32 flags;
        UI_buffer_type text;
        S32 text_length;
        S32 allocated_length;
        S32 available_length;
        S32 n_lines;
        color text_color;
        color selection_text_color;
        color selection_color;
        color cursor_color;
        UI_font_type text_font;
        UI_buffer_type current_text_p;
        UI_buffer_type last_position_p;
        UI_buffer_type first_position_p;
#if 0
#ifdef __MMI_FIXED_DIALER_FONT__
/* under construction !*/
/* under construction !*/
#endif
#endif
        S32 UCS2_count;
        S32 cursor_x, cursor_y, fixed_cursor_x;
        void (*overflow_callback) (void);
        void (*change_callback) (void);
        void (*validation_callback) (UI_buffer_type text, UI_buffer_type cursor_p, S32 text_length);
        S32 text_gap;
    } dialer_input_box;

    /* MTK Elvis for color dialling font */
    extern color gui_get_dialing_font_color(UI_character_type c);
    /* MTK end */

    extern void gui_set_dialer_input_box_current_theme(dialer_input_box *b);
    extern void gui_set_dialer_input_box_theme(dialer_input_box *b, UI_dialer_input_box_theme *t);
/* slim_2_2 */ //    extern void gui_create_dialer_input_box(dialer_input_box *b, S32 x, S32 y, S32 width, S32 height, S32 length);
    #if 0  /* slim_2_2 */ //
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
    #endif
    extern void gui_create_dialer_input_box_set_buffer(
                    dialer_input_box *b,
                    S32 x,
                    S32 y,
                    S32 width,
                    S32 height,
                    UI_string_type buffer,
                    S32 length,
                    S32 text_length,
                    S32 edit_position);
    extern void gui_dialer_input_box_show_cursor(dialer_input_box *b, S32 x, S32 y, S32 height);
    extern void gui_show_dialer_input_box(dialer_input_box *b);
    extern void gui_show_dialer_input_box_ext(dialer_input_box *b, S32 move_to_x, S32 move_to_y);
/* slim_2_2 */ //    extern void gui_destroy_dialer_input_box(dialer_input_box *b);
    extern void gui_dialer_input_box_delete_character(dialer_input_box *b);
    extern void gui_dialer_input_box_insert_character(dialer_input_box *b, UI_character_type c);
    extern void gui_dialer_input_box_insert_multitap_character(dialer_input_box *b, UI_character_type c);
    extern void gui_dialer_input_box_confirm_multitap_character(dialer_input_box *b);
    extern void gui_dialer_input_box_previous(dialer_input_box *b);
    extern void gui_dialer_input_box_next(dialer_input_box *b);
    extern void gui_resize_dialer_input_box(dialer_input_box *b, S32 width, S32 height);
    extern void gui_move_dialer_input_box(dialer_input_box *b, S32 x, S32 y);
    extern void gui_dialer_input_box_delete_all(dialer_input_box *b);
    extern void gui_dialer_input_box_delete_current_character(dialer_input_box *b);
    extern void gui_dialer_input_box_toggle_insert_mode(dialer_input_box *b);
    extern void gui_dialer_input_box_goto_first_character(dialer_input_box *b);
    extern void gui_dialer_input_box_goto_last_character(dialer_input_box *b);
    extern void gui_dialer_input_box_clear(dialer_input_box *b);
/* slim_2_2 */ //    extern U8 gui_dialer_input_box_test_overflow(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_first_position(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_last_position(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_first_line(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_last_line(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_last_position_overflow(dialer_input_box *b);
    extern S32 gui_dialer_input_box_get_text_length(dialer_input_box *b);
    extern U8 gui_dialer_input_box_test_last_character_position(dialer_input_box *b);
    extern void gui_dialer_input_box_next_line(dialer_input_box *b);
    extern void gui_dialer_input_box_prev_line(dialer_input_box *b);

#if 0
#ifdef __MMI_FIXED_DIALER_FONT__
/* under construction !*/
/* under construction !*/
#endif
#endif

    extern void UI_dummy_validation_function(UI_buffer_type text, UI_buffer_type cursor_p, S32 text_length);

    //extern void UI_editor_play_tone_cannot_change(void);
    //extern void UI_editor_play_tone_cannot_navigate(void);
    //extern void UI_editor_play_tone_cannot_insert(void);
    //extern void UI_editor_play_tone_invalid_data(void);
    #define UI_editor_play_tone_cannot_change()    UI_editor_Play_tone(SRV_PROF_TONE_ERROR)
    #define UI_editor_play_tone_cannot_navigate()  UI_editor_Play_tone(SRV_PROF_TONE_ERROR)
    #define UI_editor_play_tone_cannot_insert()    UI_editor_Play_tone(SRV_PROF_TONE_ERROR)
    #define UI_editor_play_tone_invalid_data()     UI_editor_Play_tone(SRV_PROF_TONE_ERROR)
    extern void UI_editor_Play_tone(srv_prof_tone_enum tone_type);
    extern void UI_editor_disable_tones(void);
    extern void UI_editor_enable_tones(void);

    extern void UI_inputbox_blink_cursor(void);
    extern void UI_inputbox_start_cursor(void);

    extern void gui_inputs_register_cursor_callback(void);
    extern void UI_inputbox_register_floating_counter_position(S32 x1, S32 y1, S32 x2, S32 y2);
    extern MMI_BOOL UI_inputbox_stop_cursor_ext(S32 x1, S32 y1, S32 x2, S32 y2, MMI_BOOL stop_ssp);
    extern MMI_BOOL UI_inputbox_stop_cursor(S32 x1, S32 y1, S32 x2, S32 y2);
    extern void UI_inputbox_show_cursor(S32 x1, S32 y1, S32 x2, S32 y2, color c);
    extern void gui_multi_line_input_box_change(multi_line_input_box *b);

    extern void gui_get_multi_line_input_box_default_font_style(
                        multi_line_input_box *b,
                        UI_font_type text_font);
    extern void gui_set_multi_line_input_box_default_font_style(
                        multi_line_input_box *b,
                        UI_font_type text_font);
    extern void gui_set_multi_line_input_box_default_bg_color(
                          multi_line_input_box *b, 
                          color c, 
                          MMI_BOOL b_set);
    extern BOOL gui_multi_line_input_box_test_cursor_pos(multi_line_input_box *b, S32 cursor_offset);
    extern BOOL gui_multi_line_input_box_forword_cursor_pos(multi_line_input_box *b, S32* cursor_offset);
    extern BOOL gui_multi_line_input_box_backword_cursor_pos(multi_line_input_box *b, S32* cursor_offset);
    extern void gui_multi_line_input_box_set_predefine_char_pos(multi_line_input_box *b, S16* predefine_pos);
    extern UI_buffer_type gui_multi_line_inputbox_adjust_cursor_for_icon_callback(multi_line_input_box *b, UI_buffer_type current_p, U8 direction);
    extern void UI_inputbox_hide_cursor(void);
    extern U8 gui_multi_line_reset_create_flag(void);
    extern U8 gui_multi_line_set_create_flag(void);
    extern void gui_inputs_ml_register_pen_control_area_callback(
                    multi_line_input_box *b,
                    void (*f)(gui_input_box_area_enum area_type, mmi_pen_event_type_enum pen_event, S32 x, S32 y));
    extern UI_character_type gui_multi_line_next_character(multi_line_input_box *b);

#if defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__)
    extern S32 gui_parse_WCSS_string(U8 *s1, U8 *s2, U8 *s3, S16 str_len, U8 reserve_data);
    extern U8 gui_WCSS_check_next_multitap_input(multi_line_input_box *b);
    extern S32 get_category_115_format_buffer_length(U8 *s1, S32 buffer_size);
#endif /* defined(__MMI_WCSS_INPUT_FORMAT_SUPPORT__) */ 
    /* Gurinder - 5/5/2004 Inline Multiline Box History Control */
    extern void gui_create_multi_line_input_box_set_buffer_no_text_reset(
                    multi_line_input_box *,
                    S32,
                    S32,
                    S32,
                    S32,
                    UI_string_type,
                    S32,
                    S32,
                    S32);

#ifdef __MMI_TOUCH_SCREEN__

    typedef enum
    {
        MMI_DIALING_KEY_START = 0,
        MMI_DIALING_KEY_STAR = 10,
        MMI_DIALING_KEY_ZERO,
        MMI_DIALING_KEY_HASH,
        MMI_DIALING_KEY_FUNC,
    #if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
        

#if defined(__MMI_FTE_SUPPORT__)
        MMI_DIALING_KEY_CALL = MMI_DIALING_KEY_FUNC,
#else /* defined(__MMI_FTE_SUPPORT__) */
        MMI_DIALING_KEY_PHB = MMI_DIALING_KEY_FUNC,
        MMI_DIALING_KEY_CALL,
#endif /* defined(__MMI_FTE_SUPPORT__) */

#if defined(__DUALMODE_TOUCH_DIAL_SCREEN_WITH_SLAVE_FUNCTION__)	\
	&& (!(defined(__MMI_DYNAMIC_SIM_DYNAMIC_UI__) || defined(__MMI_DIALER_DYNAMIC_CALL_UI__)))
        MMI_DIALING_KEY_CALL_SLAVE,
#endif  /* __DUALMODE_TOUCH_DIAL_SCREEN_WITH_SLAVE_FUNCTION__ */

#ifdef __MMI_CAT_VIDEO_CALL__
        MMI_DIALING_KEY_VIDEO,
#endif /* __MMI_CAT_VIDEO_CALL__ */

#if defined(__MMI_FTE_SUPPORT__)
        MMI_DIALING_KEY_PHB,
#endif /* defined(__MMI_FTE_SUPPORT__) */

    #endif /* defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__) */ 
        MMI_DIALING_KEY_END
    } gui_dialing_key;

    typedef struct _dialing_keypad_struct
    {
        S32 keypad_x, keypad_y;
        S32 keypad_width, keypad_height;
        S32 key_width, key_height;
        S32 horizontal_gap, vertical_gap;
        S32 selected_key_x, selected_key_y;
        S32 n_rows, n_column;
    #ifdef __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__
        S32 keypad_func_x, keypad_func_y;
        S32 func_key_width, func_key_height, call_key_width;
        S32 func_horizontal_gap, func_vertical_gap;
        S32 func_n_rows, func_n_column;
    #endif /* __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__ */ 
        S32 key_type;   /* selected key index */
    #ifndef __GDI_MEMORY_PROFILE_2__
        gdi_image_cache_bmp_struct selected_key_bitmap;
    #endif 
    } dialing_keypad_struct;

    extern void gui_setup_dialing_keypad(dialing_keypad_struct *dialing_keypad);
    extern void gui_dialing_screen_translate_pen_position(
                    dialing_keypad_struct *dialing_keypad,
                    S32 x,
                    S32 y,
                    S32 *item_index);
    extern BOOL gui_dialing_screen_translate_pen_event(
                    dialing_keypad_struct *dialing_keypad,
                    S32 x,
                    S32 y,
                    mmi_pen_event_type_enum pen_event,
                    gui_dialing_key_pen_enum *menu_event,
                    gui_pen_event_param_struct *dialing_key_param);
    extern void gui_dialing_key_unselect(dialing_keypad_struct *dialing_keypad);
    extern void gui_dialing_key_select(dialing_keypad_struct *dialing_keypad, S32 item_index);

    /* 110105 dialing deflect Calvin Start */
#ifdef __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__
    extern void gui_show_dialing_key(gui_dialing_key key, BOOL enableFlag);
    extern void gui_reset_dialing_func_key_flag(void);
#if defined(__MMI_DYNAMIC_SIM_DYNAMIC_UI__) || defined(__MMI_DIALER_DYNAMIC_CALL_UI__)
	extern void gui_set_dialing_emergency_func_key(MMI_BOOL IsEmergency);
#endif
#endif 
    /* 110105 dialing deflect Calvin End */

#if (defined(__MMI_MAINLCD_320X480__)||defined(__MMI_MAINLCD_360X640__) || defined(__MMI_MAINLCD_480X800__)) || defined(__MMI_FTE_SUPPORT__)
    extern void gui_show_dialing_keypad(dialing_keypad_struct *dialing_keypad);
#endif /* defined(__MMI_MAINLCD_320X480__) */
#endif /* __MMI_TOUCH_DIAL_SCREEN__ */ 

    extern void gui_multi_line_input_box_ascii_encoding_handling(multi_line_input_box *b, UI_character_type old_c, UI_character_type c);

	extern void UI_inputbox_pre2_show_cursor(void);

    extern void set_leading_zero(U8 u8type);
	
    extern void gui_single_line_input_box_set_default_text(single_line_input_box *b, UI_string_type default_text);

    extern void gui_multi_line_input_box_set_default_text(multi_line_input_box *b, UI_string_type default_text);

    extern void  UI_inputbox_move_cursor(
            S32 offset_x, 
            S32 offset_y,
            S32 clip_x1,
            S32 clip_y1,
            S32 clip_x2,
            S32 clip_y2);
	
#if defined(__MMI_TOUCH_SCREEN__) && defined(__MMI_FTE_SUPPORT__)
#define __MMI_EDITOR_SSP_SUPPORT__
#define __EDITOR_SSP_NO_RECOVER__
#endif

#ifdef __MMI_EDITOR_SSP_SUPPORT__
#if 0
/* under construction !*/
/* under construction !*/
#endif 
#define GUI_INPUT_BOX_ABS(x)  (((x) > 0) ? (x) : -(x))

/*
 * Smooth Scrolling by Pen (SSP)
 */
typedef enum
{
    GUI_INPUT_BOX_SSP_STATE_UNFOCUS,
    GUI_INPUT_BOX_SSP_STATE_FOCUS,
    GUI_INPUT_BOX_SSP_STATE_HOLD,
    GUI_INPUT_BOX_SSP_STATE_FREE_RUN,
    GUI_INPUT_BOX_SSP_STATE_TOTAL
} gui_input_box_ssp_state_enum;

typedef enum
{
    GUI_INPUT_BOX_SSP_FREE_RUN_MODE_RECOVER,
    GUI_INPUT_BOX_SSP_FREE_RUN_MODE_RUN,
    GUI_INPUT_BOX_SSP_FREE_RUN_MODE_TOTAL
} gui_input_box_ssp_free_run_mode_enum;  

/*
 * SSP parameters
 */
#define GUI_INPUT_BOX_SSP_FRAME_UPDATE_INTERVAL           0   /* SSP frame update interval in ms */

#define GUI_INPUT_BOX_SSP_FREE_RUN_THRESHOLD_TIME         350 /* free run state duration threshold between pen down and up in ms */
#define GUI_INPUT_BOX_SSP_FREE_RUN_MASS_RANGE_SPEED       1300
#define GUI_INPUT_BOX_SSP_FREE_RUN_MOVEMENT_Y_THRESOLD    10  /* free run state y absolute movement threshold between pen down and up */
#define GUI_INPUT_BOX_SSP_FREE_RUN_SCROLL_COEFFICIENT     0.85F
#define GUI_INPUT_BOX_SSP_FREE_RUN_RECOVER_COEFFICIENT    0.6F
#define GUI_INPUT_BOX_SSP_FREE_RUN_SENSITIVITY            0.1F

#define GUI_INPUT_BOX_SSP_FOCUS_TO_HOLD_STATE_Y_THRESHOLD 5    /* focus to hold state y absolute movement threshold */

#define GUI_INPUT_BOX_SSP_POS_DELTA                       10
#define GUI_INPUT_BOX_SSP_FREE_RUN_STOP_Y_RANGE           2  
#define GUI_INPUT_BOX_SSP_BY_X                            0
#define GUI_INPUT_BOX_SSP_BY_Y                            1

#define GUI_INPUT_BOX_SSP_PARABOLIC_FRAME_COUNTER         10
#define GUI_INPUT_BOX_SSP_PARABOLIC_MODEL_CENTER_X        100

typedef struct _gui_input_box_ssp_params
{
    U8      free_run_update_frame_interval;
    U8      free_run_move_y_threshold;
    U8      focus_to_move_y_threshold;
    U8      pos_delta;
    U16     free_run_threshold_time;
    U16     free_run_mass_range_threshold_speed;
    float   free_run_scroll_coefficient;
    float   free_run_recover_coefficient;
    float   free_run_sensitivity;
}gui_input_box_ssp_params_struct, *gui_input_box_ssp_params_struct_p;

void gui_input_box_ssp_update_frame(void);
MMI_BOOL gui_input_box_ssp_pen_translate(mmi_pen_point_struct point, mmi_pen_event_type_enum pen_event);

typedef void (*gui_input_box_ssp_update_client)(void *user_data, S32 offset);
typedef void (*gui_input_box_ssp_get_client_info)(void *user_data, S32 *total_offset, S32 *cur_offset, S32 *move_type);
typedef void (*gui_input_box_ssp_notify_status)(void *user_data, S32 status);

extern MMI_BOOL gui_input_box_ssp_set_client_callback(
    gui_input_box_ssp_update_client callback1, 
    gui_input_box_ssp_get_client_info callback2, 
    void* user_data);

extern MMI_BOOL gui_input_box_ssp_set_client_callback_ext(
    gui_input_box_ssp_update_client callback1, 
    gui_input_box_ssp_get_client_info callback2, 
    gui_input_box_ssp_notify_status callback3,
    void* user_data);

extern void gui_input_box_ssp_change_speed_multiple(S32 value);
extern void gui_input_box_ssp_change_parabolic_model(S32 value);

extern MMI_BOOL gui_input_box_ssp_is_scrolling(void);
extern gui_input_box_ssp_state_enum gui_input_box_ssp_get_state(void);
extern void* gui_input_box_ssp_get_userdata(void);

extern void gui_input_box_ssp_set_parameters(const gui_input_box_ssp_params_struct* params);
extern void gui_input_box_ssp_get_parameters(gui_input_box_ssp_params_struct* params);
extern void gui_input_box_ssp_reset_parameter(void);

#endif /* __MMI_EDITOR_SSP_SUPPORT__ */
	
/* event for EVT_ID_GUI_INPUTS_CURSOR_CHANGED */
typedef struct
{
    MMI_EVT_PARAM_HEADER
    S32 cursor_pos;
} gui_evt_inputs_cursor_changed_struct;

extern S32 UI_cursor_x1;                   /* cursor x1 postioon */
extern S32 UI_cursor_y1;                   /* cursor y1 position */
extern S32 UI_cursor_x2;                   /* cursor x2 postion */
extern S32 UI_cursor_y2;                   /* cursor y2 position */

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_register_redraw_background_filler
 * DESCRIPTION
 *  Register filler editor background filler function when redraw
 * PARAMETERS
 *  f              [IN]        redraw background function
 * RETURNS
 *  void
 *****************************************************************************/
extern void gui_inputs_register_redraw_background_filler(gui_inputs_draw_back_ground_funcptr f);


/*****************************************************************************
 * FUNCTION
 *  gui_inputs_set_cursor_change_event_state
 * DESCRIPTION
 *  Set cursor change event state
 * PARAMETERS
 *  b_enable              [IN]        enable or not
 * RETURNS
 *  void
 *****************************************************************************/
void gui_inputs_set_cursor_change_event_state(MMI_BOOL b_enable);


/*****************************************************************************
 * FUNCTION
 *  gui_inputs_get_cursor_change_event_state
 * DESCRIPTION
 *  Get cursor change event state
 * PARAMETERS
 *  void
 * RETURNS
 *  MMI_BOOL
 *****************************************************************************/
MMI_BOOL gui_inputs_get_cursor_change_event_state(void);


/*****************************************************************************
 * FUNCTION
 *  gui_inputs_set_transparent_background
 * DESCRIPTION
 *  Set force transparent editor background or not
 * PARAMETERS
 *  void
 * RETURNS
 *  MMI_BOOL
 *****************************************************************************/
extern void gui_inputs_set_transparent_background(MMI_BOOL b_trans);

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_set_pen_scrollbar_cb
 * DESCRIPTION
 *  Set scrollbar pen callback
 * PARAMETERS
 *  f              [IN]         scrollbar pen callback
 * RETURNS
 *  void
 *****************************************************************************/
extern void gui_inputs_set_pen_scrollbar_cb(gui_inputs_pen_scroll_cb f);


extern gui_inputs_pen_scroll_cb g_inputs_pen_scroll_cb;

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_ml_hide_floating_counter
 * DESCRIPTION
 *  hide multiline floating counter
 * PARAMETERS
 *  value              [IN]         hide or not
 * RETURNS
 *  void
 *****************************************************************************/
extern void gui_inputs_ml_hide_floating_counter(multi_line_input_box *b, MMI_BOOL value);


/*****************************************************************************
* FUNCTION
*  gui_inputs_get_char_info_for_all_lang
* DESCRIPTION
*  To get maximum char height regardless of language
* PARAMETERS
*  size:        [IN]        the font size
* RETURNS
*  S32  
*****************************************************************************/
extern S32 gui_inputs_get_char_info_for_all_lang(U8 size, S32 *ascent_p, S32 *dscent_p);


/*****************************************************************************
 * FUNCTION
 *  gui_inputs_set_clip_preset
 * DESCRIPTION
 *  set preset clip
 * PARAMETERS
 *  x1      [IN]        
 *  y1      [IN]        
 *  x2      [IN]        
 *  y2      [IN]        
 * RETURNS
 *  void
 *****************************************************************************/
extern void gui_inputs_set_clip_preset(S32 x1, S32 y1, S32 x2, S32 y2);

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_ml_set_hilite_list
 * DESCRIPTION
 *  Set mulltiline hilite list
 * PARAMETERS
 *  b              [IN]    single line inputbox instance
 * hilite_list     [IN]    hilite list
 * number_of_list  [IN]    hilite list number
 * curr_hilite_idx [IN]    current hilite index
 * hilite_cb       [IN]    the callback when the hilite is highlighted(Usually register as set LSK/RSK according to hilite type)
 * click_cb        [IN]    the callback when the hilite is clicked(Usually register as GO TO function)
 * RETURNS
 *  void
 *****************************************************************************/
extern void gui_inputs_ml_set_hilite_list(
        multi_line_input_box *b,
        HILITE_STR *hilite_list,
        U16 number_of_list,
        U16 curr_hilite_idx,
        void (*hilite_cb)(S32 idx),
        void (*click_cb)(S32 idx));

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_ml_get_hilite_list
 * DESCRIPTION
 *  get hilite list from editor
 * PARAMETERS
 * b                [IN]            editor input box pointer
 * list             [IN]            hilite list
 * RETURNS
 *  U32
 *****************************************************************************/
extern U32 gui_inputs_ml_get_hilite_list(multi_line_input_box *b, HILITE_STR **list);



#if GUI_INPUTS_KEYWORDS_SUPPORT

/*****************************************************************************
 * FUNCTION
 *  gui_inputs_ml_parse_keywords
 * DESCRIPTION
 *  Parse keyword from editor text buffer
 *  Type support: email, url, phone number, ussd
 *  Limitation:
 *   1. Support max 10 keywords for each type and total 40 keywords.
 *   2. Support max 2k text buffer size (1k text length) with default memory malloc/free function. 
 *      If the text buffer large then 2K bytes, please pass custom memory malloc/free function
 *  After parse the keyword from text buffer, use gui_inputs_ml_get_hilite_list to get result list
 * PARAMETERS
 * b               : [IN]            editor input box pointer
 * type            : [IN]            keyword type, the type is defined in EDITOR_HILITE_TYPE
 * mallocF         : [IN]            custom memory malloc function
 * freeF           : [IN]            custom memory free function
 * RETURNS
 *  U32: keyword number
 *****************************************************************************/
extern U32 gui_inputs_ml_parse_keywords(multi_line_input_box *b, U32 type, applib_mem_alloc_fn mallocF, applib_mem_free_fn freeF);


#endif

#ifdef __cplusplus
}
#endif 

#endif /* __GUI_INPUTS_H__ */