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
|
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
module pango.c.types;
public import cairo.c.types;
public import glib.c.types;
public import gobject.c.types;
alias void* FTLibrary;
/**
* A #PangoGlyph represents a single glyph in the output form of a string.
*/
public alias uint PangoGlyph;
/**
* The #PangoGlyphUnit type is used to store dimensions within
* Pango. Dimensions are stored in 1/%PANGO_SCALE of a device unit.
* (A device unit might be a pixel for screen display, or
* a point on a printer.) %PANGO_SCALE is currently 1024, and
* may change in the future (unlikely though), but you should not
* depend on its exact value. The PANGO_PIXELS() macro can be used
* to convert from glyph units into device units with correct rounding.
*/
public alias int PangoGlyphUnit;
/**
* The #PangoLayoutRun structure represents a single run within
* a #PangoLayoutLine; it is simply an alternate name for
* #PangoGlyphItem.
* See the #PangoGlyphItem docs for details on the fields.
*/
public alias PangoGlyphItem PangoLayoutRun;
/**
* A #PangoAlignment describes how to align the lines of a #PangoLayout within the
* available space. If the #PangoLayout is set to justify
* using pango_layout_set_justify(), this only has effect for partial lines.
*/
public enum PangoAlignment
{
/**
* Put all available space on the right
*/
LEFT = 0,
/**
* Center the line within the available space
*/
CENTER = 1,
/**
* Put all available space on the left
*/
RIGHT = 2,
}
/**
* The #PangoAttrType
* distinguishes between different types of attributes. Along with the
* predefined values, it is possible to allocate additional values
* for custom attributes using pango_attr_type_register(). The predefined
* values are given below. The type of structure used to store the
* attribute is listed in parentheses after the description.
*/
public enum PangoAttrType
{
/**
* does not happen
*/
INVALID = 0,
/**
* language (#PangoAttrLanguage)
*/
LANGUAGE = 1,
/**
* font family name list (#PangoAttrString)
*/
FAMILY = 2,
/**
* font slant style (#PangoAttrInt)
*/
STYLE = 3,
/**
* font weight (#PangoAttrInt)
*/
WEIGHT = 4,
/**
* font variant (normal or small caps) (#PangoAttrInt)
*/
VARIANT = 5,
/**
* font stretch (#PangoAttrInt)
*/
STRETCH = 6,
/**
* font size in points scaled by %PANGO_SCALE (#PangoAttrInt)
*/
SIZE = 7,
/**
* font description (#PangoAttrFontDesc)
*/
FONT_DESC = 8,
/**
* foreground color (#PangoAttrColor)
*/
FOREGROUND = 9,
/**
* background color (#PangoAttrColor)
*/
BACKGROUND = 10,
/**
* whether the text has an underline (#PangoAttrInt)
*/
UNDERLINE = 11,
/**
* whether the text is struck-through (#PangoAttrInt)
*/
STRIKETHROUGH = 12,
/**
* baseline displacement (#PangoAttrInt)
*/
RISE = 13,
/**
* shape (#PangoAttrShape)
*/
SHAPE = 14,
/**
* font size scale factor (#PangoAttrFloat)
*/
SCALE = 15,
/**
* whether fallback is enabled (#PangoAttrInt)
*/
FALLBACK = 16,
/**
* letter spacing (#PangoAttrInt)
*/
LETTER_SPACING = 17,
/**
* underline color (#PangoAttrColor)
*/
UNDERLINE_COLOR = 18,
/**
* strikethrough color (#PangoAttrColor)
*/
STRIKETHROUGH_COLOR = 19,
/**
* font size in pixels scaled by %PANGO_SCALE (#PangoAttrInt)
*/
ABSOLUTE_SIZE = 20,
/**
* base text gravity (#PangoAttrInt)
*/
GRAVITY = 21,
/**
* gravity hint (#PangoAttrInt)
*/
GRAVITY_HINT = 22,
/**
* OpenType font features (#PangoAttrString). Since 1.38
*/
FONT_FEATURES = 23,
/**
* foreground alpha (#PangoAttrInt). Since 1.38
*/
FOREGROUND_ALPHA = 24,
/**
* background alpha (#PangoAttrInt). Since 1.38
*/
BACKGROUND_ALPHA = 25,
}
/**
* The #PangoBidiType type represents the bidirectional character
* type of a Unicode character as specified by the
* <ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional algorithm</ulink>.
*
* Deprecated: Use fribidi for this information
*
* Since: 1.22
*/
public enum PangoBidiType
{
/**
* Left-to-Right
*/
L = 0,
/**
* Left-to-Right Embedding
*/
LRE = 1,
/**
* Left-to-Right Override
*/
LRO = 2,
/**
* Right-to-Left
*/
R = 3,
/**
* Right-to-Left Arabic
*/
AL = 4,
/**
* Right-to-Left Embedding
*/
RLE = 5,
/**
* Right-to-Left Override
*/
RLO = 6,
/**
* Pop Directional Format
*/
PDF = 7,
/**
* European Number
*/
EN = 8,
/**
* European Number Separator
*/
ES = 9,
/**
* European Number Terminator
*/
ET = 10,
/**
* Arabic Number
*/
AN = 11,
/**
* Common Number Separator
*/
CS = 12,
/**
* Nonspacing Mark
*/
NSM = 13,
/**
* Boundary Neutral
*/
BN = 14,
/**
* Paragraph Separator
*/
B = 15,
/**
* Segment Separator
*/
S = 16,
/**
* Whitespace
*/
WS = 17,
/**
* Other Neutrals
*/
ON = 18,
}
/**
* Used to indicate how well a font can represent a particular Unicode
* character point for a particular script.
*/
public enum PangoCoverageLevel
{
/**
* The character is not representable with the font.
*/
NONE = 0,
/**
* The character is represented in a way that may be
* comprehensible but is not the correct graphical form.
* For instance, a Hangul character represented as a
* a sequence of Jamos, or a Latin transliteration of a Cyrillic word.
*/
FALLBACK = 1,
/**
* The character is represented as basically the correct
* graphical form, but with a stylistic variant inappropriate for
* the current script.
*/
APPROXIMATE = 2,
/**
* The character is represented as the correct graphical form.
*/
EXACT = 3,
}
/**
* The #PangoDirection type represents a direction in the
* Unicode bidirectional algorithm; not every value in this
* enumeration makes sense for every usage of #PangoDirection;
* for example, the return value of pango_unichar_direction()
* and pango_find_base_dir() cannot be %PANGO_DIRECTION_WEAK_LTR
* or %PANGO_DIRECTION_WEAK_RTL, since every character is either
* neutral or has a strong direction; on the other hand
* %PANGO_DIRECTION_NEUTRAL doesn't make sense to pass
* to pango_itemize_with_base_dir().
*
* The %PANGO_DIRECTION_TTB_LTR, %PANGO_DIRECTION_TTB_RTL
* values come from an earlier interpretation of this
* enumeration as the writing direction of a block of
* text and are no longer used; See #PangoGravity for how
* vertical text is handled in Pango.
*
* If you are interested in text direction, you should
* really use fribidi directly. PangoDirection is only
* retained because it is used in some public apis.
*/
public enum PangoDirection
{
/**
* A strong left-to-right direction
*/
LTR = 0,
/**
* A strong right-to-left direction
*/
RTL = 1,
/**
* Deprecated value; treated the
* same as %PANGO_DIRECTION_RTL.
*/
TTB_LTR = 2,
/**
* Deprecated value; treated the
* same as %PANGO_DIRECTION_LTR
*/
TTB_RTL = 3,
/**
* A weak left-to-right direction
*/
WEAK_LTR = 4,
/**
* A weak right-to-left direction
*/
WEAK_RTL = 5,
/**
* No direction specified
*/
NEUTRAL = 6,
}
/**
* The #PangoEllipsizeMode type describes what sort of (if any)
* ellipsization should be applied to a line of text. In
* the ellipsization process characters are removed from the
* text in order to make it fit to a given width and replaced
* with an ellipsis.
*/
public enum PangoEllipsizeMode
{
/**
* No ellipsization
*/
NONE = 0,
/**
* Omit characters at the start of the text
*/
START = 1,
/**
* Omit characters in the middle of the text
*/
MIDDLE = 2,
/**
* Omit characters at the end of the text
*/
END = 3,
}
/**
* The bits in a #PangoFontMask correspond to fields in a
* #PangoFontDescription that have been set.
*/
public enum PangoFontMask
{
/**
* the font family is specified.
*/
FAMILY = 1,
/**
* the font style is specified.
*/
STYLE = 2,
/**
* the font variant is specified.
*/
VARIANT = 4,
/**
* the font weight is specified.
*/
WEIGHT = 8,
/**
* the font stretch is specified.
*/
STRETCH = 16,
/**
* the font size is specified.
*/
SIZE = 32,
/**
* the font gravity is specified (Since: 1.16.)
*/
GRAVITY = 64,
/**
* OpenType font variations are specified (Since: 1.42)
*/
VARIATIONS = 128,
}
/**
* The #PangoGravity type represents the orientation of glyphs in a segment
* of text. This is useful when rendering vertical text layouts. In
* those situations, the layout is rotated using a non-identity PangoMatrix,
* and then glyph orientation is controlled using #PangoGravity.
* Not every value in this enumeration makes sense for every usage of
* #PangoGravity; for example, %PANGO_GRAVITY_AUTO only can be passed to
* pango_context_set_base_gravity() and can only be returned by
* pango_context_get_base_gravity().
*
* See also: #PangoGravityHint
*
* Since: 1.16
*/
public enum PangoGravity
{
/**
* Glyphs stand upright (default)
*/
SOUTH = 0,
/**
* Glyphs are rotated 90 degrees clockwise
*/
EAST = 1,
/**
* Glyphs are upside-down
*/
NORTH = 2,
/**
* Glyphs are rotated 90 degrees counter-clockwise
*/
WEST = 3,
/**
* Gravity is resolved from the context matrix
*/
AUTO = 4,
}
/**
* The #PangoGravityHint defines how horizontal scripts should behave in a
* vertical context. That is, English excerpt in a vertical paragraph for
* example.
*
* See #PangoGravity.
*
* Since: 1.16
*/
public enum PangoGravityHint
{
/**
* scripts will take their natural gravity based
* on the base gravity and the script. This is the default.
*/
NATURAL = 0,
/**
* always use the base gravity set, regardless of
* the script.
*/
STRONG = 1,
/**
* for scripts not in their natural direction (eg.
* Latin in East gravity), choose per-script gravity such that every script
* respects the line progression. This means, Latin and Arabic will take
* opposite gravities and both flow top-to-bottom for example.
*/
LINE = 2,
}
/**
* #PangoRenderPart defines different items to render for such
* purposes as setting colors.
*
* Since: 1.8
*/
public enum PangoRenderPart
{
/**
* the text itself
*/
FOREGROUND = 0,
/**
* the area behind the text
*/
BACKGROUND = 1,
/**
* underlines
*/
UNDERLINE = 2,
/**
* strikethrough lines
*/
STRIKETHROUGH = 3,
}
/**
* The #PangoScript enumeration identifies different writing
* systems. The values correspond to the names as defined in the
* Unicode standard.
* Note that new types may be added in the future. Applications should be ready
* to handle unknown values. This enumeration is interchangeable with
* #GUnicodeScript. See <ulink
* url="http://www.unicode.org/reports/tr24/">Unicode Standard Annex
* #24: Script names</ulink>.
*/
public enum PangoScript
{
/**
* a value never returned from pango_script_for_unichar()
*/
INVALID_CODE = -1,
/**
* a character used by multiple different scripts
*/
COMMON = 0,
/**
* a mark glyph that takes its script from the
* base glyph to which it is attached
*/
INHERITED = 1,
/**
* Arabic
*/
ARABIC = 2,
/**
* Armenian
*/
ARMENIAN = 3,
/**
* Bengali
*/
BENGALI = 4,
/**
* Bopomofo
*/
BOPOMOFO = 5,
/**
* Cherokee
*/
CHEROKEE = 6,
/**
* Coptic
*/
COPTIC = 7,
/**
* Cyrillic
*/
CYRILLIC = 8,
/**
* Deseret
*/
DESERET = 9,
/**
* Devanagari
*/
DEVANAGARI = 10,
/**
* Ethiopic
*/
ETHIOPIC = 11,
/**
* Georgian
*/
GEORGIAN = 12,
/**
* Gothic
*/
GOTHIC = 13,
/**
* Greek
*/
GREEK = 14,
/**
* Gujarati
*/
GUJARATI = 15,
/**
* Gurmukhi
*/
GURMUKHI = 16,
/**
* Han
*/
HAN = 17,
/**
* Hangul
*/
HANGUL = 18,
/**
* Hebrew
*/
HEBREW = 19,
/**
* Hiragana
*/
HIRAGANA = 20,
/**
* Kannada
*/
KANNADA = 21,
/**
* Katakana
*/
KATAKANA = 22,
/**
* Khmer
*/
KHMER = 23,
/**
* Lao
*/
LAO = 24,
/**
* Latin
*/
LATIN = 25,
/**
* Malayalam
*/
MALAYALAM = 26,
/**
* Mongolian
*/
MONGOLIAN = 27,
/**
* Myanmar
*/
MYANMAR = 28,
/**
* Ogham
*/
OGHAM = 29,
/**
* Old Italic
*/
OLD_ITALIC = 30,
/**
* Oriya
*/
ORIYA = 31,
/**
* Runic
*/
RUNIC = 32,
/**
* Sinhala
*/
SINHALA = 33,
/**
* Syriac
*/
SYRIAC = 34,
/**
* Tamil
*/
TAMIL = 35,
/**
* Telugu
*/
TELUGU = 36,
/**
* Thaana
*/
THAANA = 37,
/**
* Thai
*/
THAI = 38,
/**
* Tibetan
*/
TIBETAN = 39,
/**
* Canadian Aboriginal
*/
CANADIAN_ABORIGINAL = 40,
/**
* Yi
*/
YI = 41,
/**
* Tagalog
*/
TAGALOG = 42,
/**
* Hanunoo
*/
HANUNOO = 43,
/**
* Buhid
*/
BUHID = 44,
/**
* Tagbanwa
*/
TAGBANWA = 45,
/**
* Braille
*/
BRAILLE = 46,
/**
* Cypriot
*/
CYPRIOT = 47,
/**
* Limbu
*/
LIMBU = 48,
/**
* Osmanya
*/
OSMANYA = 49,
/**
* Shavian
*/
SHAVIAN = 50,
/**
* Linear B
*/
LINEAR_B = 51,
/**
* Tai Le
*/
TAI_LE = 52,
/**
* Ugaritic
*/
UGARITIC = 53,
/**
* New Tai Lue. Since 1.10
*/
NEW_TAI_LUE = 54,
/**
* Buginese. Since 1.10
*/
BUGINESE = 55,
/**
* Glagolitic. Since 1.10
*/
GLAGOLITIC = 56,
/**
* Tifinagh. Since 1.10
*/
TIFINAGH = 57,
/**
* Syloti Nagri. Since 1.10
*/
SYLOTI_NAGRI = 58,
/**
* Old Persian. Since 1.10
*/
OLD_PERSIAN = 59,
/**
* Kharoshthi. Since 1.10
*/
KHAROSHTHI = 60,
/**
* an unassigned code point. Since 1.14
*/
UNKNOWN = 61,
/**
* Balinese. Since 1.14
*/
BALINESE = 62,
/**
* Cuneiform. Since 1.14
*/
CUNEIFORM = 63,
/**
* Phoenician. Since 1.14
*/
PHOENICIAN = 64,
/**
* Phags-pa. Since 1.14
*/
PHAGS_PA = 65,
/**
* N'Ko. Since 1.14
*/
NKO = 66,
/**
* Kayah Li. Since 1.20.1
*/
KAYAH_LI = 67,
/**
* Lepcha. Since 1.20.1
*/
LEPCHA = 68,
/**
* Rejang. Since 1.20.1
*/
REJANG = 69,
/**
* Sundanese. Since 1.20.1
*/
SUNDANESE = 70,
/**
* Saurashtra. Since 1.20.1
*/
SAURASHTRA = 71,
/**
* Cham. Since 1.20.1
*/
CHAM = 72,
/**
* Ol Chiki. Since 1.20.1
*/
OL_CHIKI = 73,
/**
* Vai. Since 1.20.1
*/
VAI = 74,
/**
* Carian. Since 1.20.1
*/
CARIAN = 75,
/**
* Lycian. Since 1.20.1
*/
LYCIAN = 76,
/**
* Lydian. Since 1.20.1
*/
LYDIAN = 77,
/**
* Batak. Since 1.32
*/
BATAK = 78,
/**
* Brahmi. Since 1.32
*/
BRAHMI = 79,
/**
* Mandaic. Since 1.32
*/
MANDAIC = 80,
/**
* Chakma. Since: 1.32
*/
CHAKMA = 81,
/**
* Meroitic Cursive. Since: 1.32
*/
MEROITIC_CURSIVE = 82,
/**
* Meroitic Hieroglyphs. Since: 1.32
*/
MEROITIC_HIEROGLYPHS = 83,
/**
* Miao. Since: 1.32
*/
MIAO = 84,
/**
* Sharada. Since: 1.32
*/
SHARADA = 85,
/**
* Sora Sompeng. Since: 1.32
*/
SORA_SOMPENG = 86,
/**
* Takri. Since: 1.32
*/
TAKRI = 87,
/**
* Bassa. Since: 1.40
*/
BASSA_VAH = 88,
/**
* Caucasian Albanian. Since: 1.40
*/
CAUCASIAN_ALBANIAN = 89,
/**
* Duployan. Since: 1.40
*/
DUPLOYAN = 90,
/**
* Elbasan. Since: 1.40
*/
ELBASAN = 91,
/**
* Grantha. Since: 1.40
*/
GRANTHA = 92,
/**
* Kjohki. Since: 1.40
*/
KHOJKI = 93,
/**
* Khudawadi, Sindhi. Since: 1.40
*/
KHUDAWADI = 94,
/**
* Linear A. Since: 1.40
*/
LINEAR_A = 95,
/**
* Mahajani. Since: 1.40
*/
MAHAJANI = 96,
/**
* Manichaean. Since: 1.40
*/
MANICHAEAN = 97,
/**
* Mende Kikakui. Since: 1.40
*/
MENDE_KIKAKUI = 98,
/**
* Modi. Since: 1.40
*/
MODI = 99,
/**
* Mro. Since: 1.40
*/
MRO = 100,
/**
* Nabataean. Since: 1.40
*/
NABATAEAN = 101,
/**
* Old North Arabian. Since: 1.40
*/
OLD_NORTH_ARABIAN = 102,
/**
* Old Permic. Since: 1.40
*/
OLD_PERMIC = 103,
/**
* Pahawh Hmong. Since: 1.40
*/
PAHAWH_HMONG = 104,
/**
* Palmyrene. Since: 1.40
*/
PALMYRENE = 105,
/**
* Pau Cin Hau. Since: 1.40
*/
PAU_CIN_HAU = 106,
/**
* Psalter Pahlavi. Since: 1.40
*/
PSALTER_PAHLAVI = 107,
/**
* Siddham. Since: 1.40
*/
SIDDHAM = 108,
/**
* Tirhuta. Since: 1.40
*/
TIRHUTA = 109,
/**
* Warang Citi. Since: 1.40
*/
WARANG_CITI = 110,
/**
* Ahom. Since: 1.40
*/
AHOM = 111,
/**
* Anatolian Hieroglyphs. Since: 1.40
*/
ANATOLIAN_HIEROGLYPHS = 112,
/**
* Hatran. Since: 1.40
*/
HATRAN = 113,
/**
* Multani. Since: 1.40
*/
MULTANI = 114,
/**
* Old Hungarian. Since: 1.40
*/
OLD_HUNGARIAN = 115,
/**
* Signwriting. Since: 1.40
*/
SIGNWRITING = 116,
}
/**
* An enumeration specifying the width of the font relative to other designs
* within a family.
*/
public enum PangoStretch
{
/**
* ultra condensed width
*/
ULTRA_CONDENSED = 0,
/**
* extra condensed width
*/
EXTRA_CONDENSED = 1,
/**
* condensed width
*/
CONDENSED = 2,
/**
* semi condensed width
*/
SEMI_CONDENSED = 3,
/**
* the normal width
*/
NORMAL = 4,
/**
* semi expanded width
*/
SEMI_EXPANDED = 5,
/**
* expanded width
*/
EXPANDED = 6,
/**
* extra expanded width
*/
EXTRA_EXPANDED = 7,
/**
* ultra expanded width
*/
ULTRA_EXPANDED = 8,
}
/**
* An enumeration specifying the various slant styles possible for a font.
*/
public enum PangoStyle
{
/**
* the font is upright.
*/
NORMAL = 0,
/**
* the font is slanted, but in a roman style.
*/
OBLIQUE = 1,
/**
* the font is slanted in an italic style.
*/
ITALIC = 2,
}
/**
* A #PangoTabAlign specifies where a tab stop appears relative to the text.
*/
public enum PangoTabAlign
{
/**
* the tab stop appears to the left of the text.
*/
LEFT = 0,
}
/**
* The #PangoUnderline enumeration is used to specify
* whether text should be underlined, and if so, the type
* of underlining.
*/
public enum PangoUnderline
{
/**
* no underline should be drawn
*/
NONE = 0,
/**
* a single underline should be drawn
*/
SINGLE = 1,
/**
* a double underline should be drawn
*/
DOUBLE = 2,
/**
* a single underline should be drawn at a position
* beneath the ink extents of the text being
* underlined. This should be used only for underlining
* single characters, such as for keyboard
* accelerators. %PANGO_UNDERLINE_SINGLE should
* be used for extended portions of text.
*/
LOW = 3,
/**
* a wavy underline should be drawn below.
* This underline is typically used to indicate
* an error such as a possilble mispelling; in some
* cases a contrasting color may automatically
* be used. This type of underlining is available since Pango 1.4.
*/
ERROR = 4,
}
/**
* An enumeration specifying capitalization variant of the font.
*/
public enum PangoVariant
{
/**
* A normal font.
*/
NORMAL = 0,
/**
* A font with the lower case characters
* replaced by smaller variants of the capital characters.
*/
SMALL_CAPS = 1,
}
/**
* An enumeration specifying the weight (boldness) of a font. This is a numerical
* value ranging from 100 to 1000, but there are some predefined values:
*/
public enum PangoWeight
{
/**
* the thin weight (= 100; Since: 1.24)
*/
THIN = 100,
/**
* the ultralight weight (= 200)
*/
ULTRALIGHT = 200,
/**
* the light weight (= 300)
*/
LIGHT = 300,
/**
* the semilight weight (= 350; Since: 1.36.7)
*/
SEMILIGHT = 350,
/**
* the book weight (= 380; Since: 1.24)
*/
BOOK = 380,
/**
* the default weight (= 400)
*/
NORMAL = 400,
/**
* the normal weight (= 500; Since: 1.24)
*/
MEDIUM = 500,
/**
* the semibold weight (= 600)
*/
SEMIBOLD = 600,
/**
* the bold weight (= 700)
*/
BOLD = 700,
/**
* the ultrabold weight (= 800)
*/
ULTRABOLD = 800,
/**
* the heavy weight (= 900)
*/
HEAVY = 900,
/**
* the ultraheavy weight (= 1000; Since: 1.24)
*/
ULTRAHEAVY = 1000,
}
/**
* A #PangoWrapMode describes how to wrap the lines of a #PangoLayout to the desired width.
*/
public enum PangoWrapMode
{
/**
* wrap lines at word boundaries.
*/
WORD = 0,
/**
* wrap lines at character boundaries.
*/
CHAR = 1,
/**
* wrap lines at word boundaries, but fall back to character boundaries if there is not
* enough space for a full word.
*/
WORD_CHAR = 2,
}
struct PangoFcFontMap
{
PangoFontMap parentInstance;
void* priv;
}
struct PangoCairoFont;
/**
* The #PangoAnalysis structure stores information about
* the properties of a segment of text.
*/
struct PangoAnalysis
{
/**
* the engine for doing rendering-system-dependent processing.
*/
PangoEngineShape* shapeEngine;
/**
* the engine for doing rendering-system-independent processing.
*/
PangoEngineLang* langEngine;
/**
* the font for this segment.
*/
PangoFont* font;
/**
* the bidirectional level for this segment.
*/
ubyte level;
/**
* the glyph orientation for this segment (A #PangoGravity).
*/
ubyte gravity;
/**
* boolean flags for this segment (currently only one) (Since: 1.16).
*/
ubyte flags;
/**
* the detected script for this segment (A #PangoScript) (Since: 1.18).
*/
ubyte script;
/**
* the detected language for this segment.
*/
PangoLanguage* language;
/**
* extra attributes for this segment.
*/
GSList* extraAttrs;
}
/**
* The #PangoAttrClass structure stores the type and operations for
* a particular type of attribute. The functions in this structure should
* not be called directly. Instead, one should use the wrapper functions
* provided for #PangoAttribute.
*/
struct PangoAttrClass
{
/**
* the type ID for this attribute
*/
PangoAttrType type;
/** */
extern(C) PangoAttribute* function(PangoAttribute* attr) copy;
/** */
extern(C) void function(PangoAttribute* attr) destroy;
/** */
extern(C) int function(PangoAttribute* attr1, PangoAttribute* attr2) equal;
}
/**
* The #PangoAttrColor structure is used to represent attributes that
* are colors.
*/
struct PangoAttrColor
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the #PangoColor which is the value of the attribute
*/
PangoColor color;
}
/**
* The #PangoAttrFloat structure is used to represent attributes with
* a float or double value.
*/
struct PangoAttrFloat
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the value of the attribute
*/
double value;
}
/**
* The #PangoAttrFontDesc structure is used to store an attribute that
* sets all aspects of the font description at once.
*/
struct PangoAttrFontDesc
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the font description which is the value of this attribute
*/
PangoFontDescription* desc;
}
/**
* The #PangoAttrFontFeatures structure is used to represent OpenType
* font features as an attribute.
*
* Since: 1.38
*/
struct PangoAttrFontFeatures
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the featues, as a string in CSS syntax
*/
char* features;
}
/**
* The #PangoAttrInt structure is used to represent attributes with
* an integer or enumeration value.
*/
struct PangoAttrInt
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the value of the attribute
*/
int value;
}
struct PangoAttrIterator;
/**
* The #PangoAttrLanguage structure is used to represent attributes that
* are languages.
*/
struct PangoAttrLanguage
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the #PangoLanguage which is the value of the attribute
*/
PangoLanguage* value;
}
struct PangoAttrList;
/**
* The #PangoAttrShape structure is used to represent attributes which
* impose shape restrictions.
*/
struct PangoAttrShape
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the ink rectangle to restrict to
*/
PangoRectangle inkRect;
/**
* the logical rectangle to restrict to
*/
PangoRectangle logicalRect;
/**
* user data set (see pango_attr_shape_new_with_data())
*/
void* data;
/**
* copy function for the user data
*/
PangoAttrDataCopyFunc copyFunc;
/**
* destroy function for the user data
*/
GDestroyNotify destroyFunc;
}
/**
* The #PangoAttrSize structure is used to represent attributes which
* set font size.
*/
struct PangoAttrSize
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* size of font, in units of 1/%PANGO_SCALE of a point (for
* %PANGO_ATTR_SIZE) or of a device uni (for %PANGO_ATTR_ABSOLUTE_SIZE)
*/
int size;
import std.bitmanip: bitfields;
mixin(bitfields!(
uint, "absolute", 1,
uint, "", 31
));
}
/**
* The #PangoAttrString structure is used to represent attributes with
* a string value.
*/
struct PangoAttrString
{
/**
* the common portion of the attribute
*/
PangoAttribute attr;
/**
* the string which is the value of the attribute
*/
char* value;
}
struct PangoAttribute
{
/**
* the class structure holding information about the type of the attribute
*/
PangoAttrClass* klass;
/**
* the start index of the range (in bytes).
*/
uint startIndex;
/**
* end index of the range (in bytes). The character at this index
* is not included in the range.
*/
uint endIndex;
}
struct PangoColor
{
/**
* value of red component
*/
ushort red;
/**
* value of green component
*/
ushort green;
/**
* value of blue component
*/
ushort blue;
}
struct PangoContext;
struct PangoContextClass;
struct PangoCoverage;
struct PangoEngine
{
GObject parentInstance;
}
/**
* Class structure for #PangoEngine
*/
struct PangoEngineClass
{
GObjectClass parentClass;
}
/**
* The #PangoEngineInfo structure contains information about a particular
* engine. It contains the following fields:
*/
struct PangoEngineInfo
{
/**
* a unique string ID for the engine.
*/
const(char)* id;
/**
* a string identifying the engine type.
*/
const(char)* engineType;
/**
* a string identifying the render type.
*/
const(char)* renderType;
/**
* array of scripts this engine supports.
*/
PangoEngineScriptInfo* scripts;
/**
* number of items in @scripts.
*/
int nScripts;
}
struct PangoEngineLang
{
PangoEngine parentInstance;
}
/**
* Class structure for #PangoEngineLang
*/
struct PangoEngineLangClass
{
PangoEngineClass parentClass;
/** */
extern(C) void function(PangoEngineLang* engine, const(char)* text, int len, PangoAnalysis* analysis, PangoLogAttr* attrs, int attrsLen) scriptBreak;
}
/**
* The #PangoEngineScriptInfo structure contains
* information about how the shaper covers a particular script.
*/
struct PangoEngineScriptInfo
{
/**
* a #PangoScript. The value %PANGO_SCRIPT_COMMON has
* the special meaning here of "all scripts"
*/
PangoScript script;
/**
* a semicolon separated list of languages that this
* engine handles for this script. This may be empty,
* in which case the engine is saying that it is a
* fallback choice for all languages for this range,
* but should not be used if another engine
* indicates that it is specific for the language for
* a given code point. An entry in this list of "*"
* indicates that this engine is specific to all
* languages for this range.
*/
const(char)* langs;
}
struct PangoEngineShape
{
PangoEngine parentInstance;
}
/**
* Class structure for #PangoEngineShape
*/
struct PangoEngineShapeClass
{
PangoEngineClass parentClass;
/** */
extern(C) void function(PangoEngineShape* engine, PangoFont* font, const(char)* itemText, uint itemLength, PangoAnalysis* analysis, PangoGlyphString* glyphs, const(char)* paragraphText, uint paragraphLength) scriptShape;
/** */
extern(C) PangoCoverageLevel function(PangoEngineShape* engine, PangoFont* font, PangoLanguage* language, dchar wc) covers;
}
struct PangoFont
{
GObject parentInstance;
}
struct PangoFontClass
{
GObjectClass parentClass;
/**
*
* Params:
* font = a #PangoFont
* Returns: a newly-allocated #PangoFontDescription object.
*/
extern(C) PangoFontDescription* function(PangoFont* font) describe;
/**
*
* Params:
* font = a #PangoFont
* language = the language tag
* Returns: a newly-allocated #PangoCoverage
* object.
*/
extern(C) PangoCoverage* function(PangoFont* font, PangoLanguage* language) getCoverage;
/**
*
* Params:
* font = a #PangoFont
* language = the language tag
* ch = a Unicode character.
* Returns: the best matching shaper.
*/
extern(C) PangoEngineShape* function(PangoFont* font, PangoLanguage* language, uint ch) findShaper;
/** */
extern(C) void function(PangoFont* font, PangoGlyph glyph, PangoRectangle* inkRect, PangoRectangle* logicalRect) getGlyphExtents;
/**
*
* Params:
* font = a #PangoFont
* language = language tag used to determine which script to get the metrics
* for, or %NULL to indicate to get the metrics for the entire font.
* Returns: a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
* when finished using the object.
*/
extern(C) PangoFontMetrics* function(PangoFont* font, PangoLanguage* language) getMetrics;
/**
*
* Params:
* font = a #PangoFont, or %NULL
* Returns: the #PangoFontMap for the
* font, or %NULL if @font is %NULL.
*/
extern(C) PangoFontMap* function(PangoFont* font) getFontMap;
/** */
extern(C) PangoFontDescription* function(PangoFont* font) describeAbsolute;
/** */
extern(C) void function() PangoReserved1;
/** */
extern(C) void function() PangoReserved2;
}
struct PangoFontDescription;
struct PangoFontFace
{
GObject parentInstance;
}
struct PangoFontFaceClass
{
GObjectClass parentClass;
/**
*
* Params:
* face = a #PangoFontFace.
* Returns: the face name for the face. This string is
* owned by the face object and must not be modified or freed.
*/
extern(C) const(char)* function(PangoFontFace* face) getFaceName;
/**
*
* Params:
* face = a #PangoFontFace
* Returns: a newly-created #PangoFontDescription structure
* holding the description of the face. Use pango_font_description_free()
* to free the result.
*/
extern(C) PangoFontDescription* function(PangoFontFace* face) describe;
/** */
extern(C) void function(PangoFontFace* face, int** sizes, int* nSizes) listSizes;
/**
*
* Params:
* face = a #PangoFontFace
* Returns: whether @face is synthesized.
*/
extern(C) int function(PangoFontFace* face) isSynthesized;
/** */
extern(C) void function() PangoReserved3;
/** */
extern(C) void function() PangoReserved4;
}
struct PangoFontFamily
{
GObject parentInstance;
}
struct PangoFontFamilyClass
{
GObjectClass parentClass;
/** */
extern(C) void function(PangoFontFamily* family, PangoFontFace*** faces, int* nFaces) listFaces;
/**
*
* Params:
* family = a #PangoFontFamily
* Returns: the name of the family. This string is owned
* by the family object and must not be modified or freed.
*/
extern(C) const(char)* function(PangoFontFamily* family) getName;
/**
*
* Params:
* family = a #PangoFontFamily
* Returns: %TRUE if the family is monospace.
*/
extern(C) int function(PangoFontFamily* family) isMonospace;
/**
*
* Params:
* family = a #PangoFontFamily
* Returns: %TRUE if the family is variable
*/
extern(C) int function(PangoFontFamily* family) isVariable;
/** */
extern(C) void function() PangoReserved2;
/** */
extern(C) void function() PangoReserved3;
}
struct PangoFontMap
{
GObject parentInstance;
}
/**
* The #PangoFontMapClass structure holds the virtual functions for
* a particular #PangoFontMap implementation.
*/
struct PangoFontMapClass
{
/**
* parent #GObjectClass.
*/
GObjectClass parentClass;
/**
*
* Params:
* fontmap = a #PangoFontMap
* context = the #PangoContext the font will be used with
* desc = a #PangoFontDescription describing the font to load
* Returns: the newly allocated #PangoFont
* loaded, or %NULL if no font matched.
*/
extern(C) PangoFont* function(PangoFontMap* fontmap, PangoContext* context, PangoFontDescription* desc) loadFont;
/** */
extern(C) void function(PangoFontMap* fontmap, PangoFontFamily*** families, int* nFamilies) listFamilies;
/**
*
* Params:
* fontmap = a #PangoFontMap
* context = the #PangoContext the font will be used with
* desc = a #PangoFontDescription describing the font to load
* language = a #PangoLanguage the fonts will be used for
* Returns: the newly allocated
* #PangoFontset loaded, or %NULL if no font matched.
*/
extern(C) PangoFontset* function(PangoFontMap* fontmap, PangoContext* context, PangoFontDescription* desc, PangoLanguage* language) loadFontset;
/**
* the type of rendering-system-dependent engines that
* can handle fonts of this fonts loaded with this fontmap.
*/
const(char)* shapeEngineType;
/**
*
* Params:
* fontmap = a #PangoFontMap
* Returns: The current serial number of @fontmap.
*/
extern(C) uint function(PangoFontMap* fontmap) getSerial;
/** */
extern(C) void function(PangoFontMap* fontmap) changed;
/** */
extern(C) void function() PangoReserved1;
/** */
extern(C) void function() PangoReserved2;
}
struct PangoFontMetrics
{
uint refCount;
int ascent;
int descent;
int approximateCharWidth;
int approximateDigitWidth;
int underlinePosition;
int underlineThickness;
int strikethroughPosition;
int strikethroughThickness;
}
struct PangoFontset
{
GObject parentInstance;
}
/**
* The #PangoFontsetClass structure holds the virtual functions for
* a particular #PangoFontset implementation.
*/
struct PangoFontsetClass
{
/**
* parent #GObjectClass.
*/
GObjectClass parentClass;
/**
*
* Params:
* fontset = a #PangoFontset
* wc = a Unicode character
* Returns: a #PangoFont. The caller must call
* g_object_unref when finished with the font.
*/
extern(C) PangoFont* function(PangoFontset* fontset, uint wc) getFont;
/**
*
* Params:
* fontset = a #PangoFontset
* Returns: a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
* when finished using the object.
*/
extern(C) PangoFontMetrics* function(PangoFontset* fontset) getMetrics;
/** */
extern(C) PangoLanguage* function(PangoFontset* fontset) getLanguage;
/** */
extern(C) void function(PangoFontset* fontset, PangoFontsetForeachFunc func, void* data) foreach_;
/** */
extern(C) void function() PangoReserved1;
/** */
extern(C) void function() PangoReserved2;
/** */
extern(C) void function() PangoReserved3;
/** */
extern(C) void function() PangoReserved4;
}
struct PangoFontsetSimple;
struct PangoFontsetSimpleClass;
/**
* The #PangoGlyphGeometry structure contains width and positioning
* information for a single glyph.
*/
struct PangoGlyphGeometry
{
/**
* the logical width to use for the the character.
*/
PangoGlyphUnit width;
/**
* horizontal offset from nominal character position.
*/
PangoGlyphUnit xOffset;
/**
* vertical offset from nominal character position.
*/
PangoGlyphUnit yOffset;
}
/**
* The #PangoGlyphInfo structure represents a single glyph together with
* positioning information and visual attributes.
* It contains the following fields.
*/
struct PangoGlyphInfo
{
/**
* the glyph itself.
*/
PangoGlyph glyph;
/**
* the positional information about the glyph.
*/
PangoGlyphGeometry geometry;
/**
* the visual attributes of the glyph.
*/
PangoGlyphVisAttr attr;
}
struct PangoGlyphItem
{
/**
* corresponding #PangoItem.
*/
PangoItem* item;
/**
* corresponding #PangoGlyphString.
*/
PangoGlyphString* glyphs;
}
struct PangoGlyphItemIter
{
PangoGlyphItem* glyphItem;
const(char)* text;
int startGlyph;
int startIndex;
int startChar;
int endGlyph;
int endIndex;
int endChar;
}
struct PangoGlyphString
{
/**
* number of the glyphs in this glyph string.
*/
int numGlyphs;
/**
* array of glyph information
* for the glyph string.
*/
PangoGlyphInfo* glyphs;
/**
* logical cluster info, indexed by the byte index
* within the text corresponding to the glyph string.
*/
int* logClusters;
int space;
}
/**
* The PangoGlyphVisAttr is used to communicate information between
* the shaping phase and the rendering phase. More attributes may be
* added in the future.
*/
struct PangoGlyphVisAttr
{
import std.bitmanip: bitfields;
mixin(bitfields!(
uint, "isClusterStart", 1,
uint, "", 31
));
}
/**
* The #PangoIncludedModule structure for a statically linked module
* contains the functions that would otherwise be loaded from a dynamically
* loaded module.
*/
struct PangoIncludedModule
{
/** */
extern(C) void function(PangoEngineInfo** engines, int* nEngines) list;
/** */
extern(C) void function(GTypeModule* module_) init;
/** */
extern(C) void function() exit;
/** */
extern(C) PangoEngine* function(const(char)* id) create;
}
struct PangoItem
{
/**
* byte offset of the start of this item in text.
*/
int offset;
/**
* length of this item in bytes.
*/
int length;
/**
* number of Unicode characters in the item.
*/
int numChars;
/**
* analysis results for the item.
*/
PangoAnalysis analysis;
}
struct PangoLanguage;
struct PangoLayout;
struct PangoLayoutClass;
struct PangoLayoutIter;
struct PangoLayoutLine
{
/**
* the layout this line belongs to, might be %NULL
*/
PangoLayout* layout;
/**
* start of line as byte index into layout->text
*/
int startIndex;
/**
* length of line in bytes
*/
int length;
/**
* list of runs in the
* line, from left to right
*/
GSList* runs;
import std.bitmanip: bitfields;
mixin(bitfields!(
uint, "isParagraphStart", 1,
uint, "resolvedDir", 3,
uint, "", 28
));
}
/**
* The #PangoLogAttr structure stores information
* about the attributes of a single character.
*/
struct PangoLogAttr
{
import std.bitmanip: bitfields;
mixin(bitfields!(
uint, "isLineBreak", 1,
uint, "isMandatoryBreak", 1,
uint, "isCharBreak", 1,
uint, "isWhite", 1,
uint, "isCursorPosition", 1,
uint, "isWordStart", 1,
uint, "isWordEnd", 1,
uint, "isSentenceBoundary", 1,
uint, "isSentenceStart", 1,
uint, "isSentenceEnd", 1,
uint, "backspaceDeletesCharacter", 1,
uint, "isExpandableSpace", 1,
uint, "isWordBoundary", 1,
uint, "", 19
));
}
struct PangoMap;
struct PangoMapEntry;
struct PangoMatrix
{
/**
* 1st component of the transformation matrix
*/
double xx;
/**
* 2nd component of the transformation matrix
*/
double xy;
/**
* 3rd component of the transformation matrix
*/
double yx;
/**
* 4th component of the transformation matrix
*/
double yy;
/**
* x translation
*/
double x0;
/**
* y translation
*/
double y0;
}
/**
* The #PangoRectangle structure represents a rectangle. It is frequently
* used to represent the logical or ink extents of a single glyph or section
* of text. (See, for instance, pango_font_get_glyph_extents())
*/
struct PangoRectangle
{
/**
* X coordinate of the left side of the rectangle.
*/
int x;
/**
* Y coordinate of the the top side of the rectangle.
*/
int y;
/**
* width of the rectangle.
*/
int width;
/**
* height of the rectangle.
*/
int height;
}
struct PangoRenderer
{
GObject parentInstance;
PangoUnderline underline;
bool strikethrough;
int activeCount;
/**
* the current transformation matrix for
* the Renderer; may be %NULL, which should be treated the
* same as the identity matrix.
*/
PangoMatrix* matrix;
PangoRendererPrivate* priv;
}
/**
* Class structure for #PangoRenderer.
*
* Since: 1.8
*/
struct PangoRendererClass
{
GObjectClass parentClass;
/** */
extern(C) void function(PangoRenderer* renderer, PangoFont* font, PangoGlyphString* glyphs, int x, int y) drawGlyphs;
/** */
extern(C) void function(PangoRenderer* renderer, PangoRenderPart part, int x, int y, int width, int height) drawRectangle;
/** */
extern(C) void function(PangoRenderer* renderer, int x, int y, int width, int height) drawErrorUnderline;
/** */
extern(C) void function(PangoRenderer* renderer, PangoAttrShape* attr, int x, int y) drawShape;
/** */
extern(C) void function(PangoRenderer* renderer, PangoRenderPart part, double y1, double x11, double x21, double y2, double x12, double x22) drawTrapezoid;
/** */
extern(C) void function(PangoRenderer* renderer, PangoFont* font, PangoGlyph glyph, double x, double y) drawGlyph;
/** */
extern(C) void function(PangoRenderer* renderer, PangoRenderPart part) partChanged;
/** */
extern(C) void function(PangoRenderer* renderer) begin;
/** */
extern(C) void function(PangoRenderer* renderer) end;
/** */
extern(C) void function(PangoRenderer* renderer, PangoLayoutRun* run) prepareRun;
/** */
extern(C) void function(PangoRenderer* renderer, const(char)* text, PangoGlyphItem* glyphItem, int x, int y) drawGlyphItem;
/** */
extern(C) void function() PangoReserved2;
/** */
extern(C) void function() PangoReserved3;
/** */
extern(C) void function() PangoReserved4;
}
struct PangoRendererPrivate;
struct PangoScriptIter;
struct PangoTabArray;
struct PangoCairoFontMap;
/**
* Type of a function that can duplicate user data for an attribute.
*
* Params:
* userData = user data to copy
*
* Returns: new copy of @user_data.
*/
public alias extern(C) void* function(void* userData) PangoAttrDataCopyFunc;
/**
* Type of a function filtering a list of attributes.
*
* Params:
* attribute = a Pango attribute
* userData = user data passed to the function
*
* Returns: %TRUE if the attribute should be selected for
* filtering, %FALSE otherwise.
*/
public alias extern(C) int function(PangoAttribute* attribute, void* userData) PangoAttrFilterFunc;
/**
* A callback function used by pango_fontset_foreach() when enumerating
* the fonts in a fontset.
*
* Params:
* fontset = a #PangoFontset
* font = a font from @fontset
* userData = callback data
*
* Returns: if %TRUE, stop iteration and return immediately.
*
* Since: 1.4
*/
public alias extern(C) int function(PangoFontset* fontset, PangoFont* font, void* userData) PangoFontsetForeachFunc;
/**
* Function type for rendering attributes of type %PANGO_ATTR_SHAPE
* with Pango's Cairo renderer.
*
* Params:
* cr = a Cairo context with current point set to where the shape should
* be rendered
* attr = the %PANGO_ATTR_SHAPE to render
* doPath = whether only the shape path should be appended to current
* path of @cr and no filling/stroking done. This will be set
* to %TRUE when called from pango_cairo_layout_path() and
* pango_cairo_layout_line_path() rendering functions.
* data = user data passed to pango_cairo_context_set_shape_renderer()
*/
public alias extern(C) void function(cairo_t* cr, PangoAttrShape* attr, int doPath, void* data) PangoCairoShapeRendererFunc;
enum PANGO_SCALE_XX_SMALL = 0.5787037037037; /// The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).
enum PANGO_SCALE_X_SMALL = 0.6444444444444; /// The scale factor for two shrinking steps (1 / (1.2 * 1.2)).
enum PANGO_SCALE_SMALL = 0.8333333333333; /// The scale factor for one shrinking step (1 / 1.2).
enum PANGO_SCALE_MEDIUM = 1.0; /// The scale factor for normal size (1.0).
enum PANGO_SCALE_LARGE = 1.2; /// The scale factor for one magnification step (1.2)
enum PANGO_SCALE_X_LARGE = 1.4399999999999; /// The scale factor for two magnification steps (1.2 * 1.2).
enum PANGO_SCALE_XX_LARGE = 1.728; /// The scale factor for three magnification steps (1.2 * 1.2 * 1.2).
/**
* Whether the segment should be shifted to center around the baseline.
* Used in vertical writing directions mostly.
*/
enum ANALYSIS_FLAG_CENTERED_BASELINE = 1;
alias PANGO_ANALYSIS_FLAG_CENTERED_BASELINE = ANALYSIS_FLAG_CENTERED_BASELINE;
/**
* This flag is used to mark runs that hold ellipsized text,
* in an ellipsized layout.
*/
enum ANALYSIS_FLAG_IS_ELLIPSIS = 2;
alias PANGO_ANALYSIS_FLAG_IS_ELLIPSIS = ANALYSIS_FLAG_IS_ELLIPSIS;
/**
* This value can be used to set the start_index member of a #PangoAttribute
* such that the attribute covers from the beginning of the text.
*/
enum ATTR_INDEX_FROM_TEXT_BEGINNING = 0;
alias PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING = ATTR_INDEX_FROM_TEXT_BEGINNING;
/**
* A string constant defining the engine type for language engines.
* These engines derive from #PangoEngineLang.
*/
enum ENGINE_TYPE_LANG = "PangoEngineLang";
alias PANGO_ENGINE_TYPE_LANG = ENGINE_TYPE_LANG;
/**
* A string constant defining the engine type for shaping engines.
* These engines derive from #PangoEngineShape.
*/
enum ENGINE_TYPE_SHAPE = "PangoEngineShape";
alias PANGO_ENGINE_TYPE_SHAPE = ENGINE_TYPE_SHAPE;
/**
* The %PANGO_GLYPH_EMPTY macro represents a #PangoGlyph value that has a
* special meaning, which is a zero-width empty glyph. This is useful for
* example in shaper modules, to use as the glyph for various zero-width
* Unicode characters (those passing pango_is_zero_width()).
*/
enum GLYPH_EMPTY = 268435455;
alias PANGO_GLYPH_EMPTY = GLYPH_EMPTY;
/**
* The %PANGO_GLYPH_INVALID_INPUT macro represents a #PangoGlyph value that has a
* special meaning of invalid input. #PangoLayout produces one such glyph
* per invalid input UTF-8 byte and such a glyph is rendered as a crossed
* box.
*
* Note that this value is defined such that it has the %PANGO_GLYPH_UNKNOWN_FLAG
* on.
*/
enum GLYPH_INVALID_INPUT = 4294967295;
alias PANGO_GLYPH_INVALID_INPUT = GLYPH_INVALID_INPUT;
/**
* The %PANGO_GLYPH_UNKNOWN_FLAG macro is a flag value that can be added to
* a #gunichar value of a valid Unicode character, to produce a #PangoGlyph
* value, representing an unknown-character glyph for the respective #gunichar.
*/
enum GLYPH_UNKNOWN_FLAG = 268435456;
alias PANGO_GLYPH_UNKNOWN_FLAG = GLYPH_UNKNOWN_FLAG;
/**
* A string constant defining the render type
* for engines that are not rendering-system specific.
*/
enum RENDER_TYPE_NONE = "PangoRenderNone";
alias PANGO_RENDER_TYPE_NONE = RENDER_TYPE_NONE;
/**
* The %PANGO_SCALE macro represents the scale between dimensions used
* for Pango distances and device units. (The definition of device
* units is dependent on the output device; it will typically be pixels
* for a screen, and points for a printer.) %PANGO_SCALE is currently
* 1024, but this may be changed in the future.
*
* When setting font sizes, device units are always considered to be
* points (as in "12 point font"), rather than pixels.
*/
enum SCALE = 1024;
alias PANGO_SCALE = SCALE;
enum UNKNOWN_GLYPH_HEIGHT = 14;
alias PANGO_UNKNOWN_GLYPH_HEIGHT = UNKNOWN_GLYPH_HEIGHT;
enum UNKNOWN_GLYPH_WIDTH = 10;
alias PANGO_UNKNOWN_GLYPH_WIDTH = UNKNOWN_GLYPH_WIDTH;
/**
* A macro that should be defined by the user prior to including
* the pango.h header.
* The definition should be one of the predefined Pango version
* macros: %PANGO_VERSION_1_2, %PANGO_VERSION_1_4,...
*
* This macro defines the earliest version of Pango that the package is
* required to be able to compile against.
*
* If the compiler is configured to warn about the use of deprecated
* functions, then using functions that were deprecated in version
* %PANGO_VERSION_MIN_REQUIRED or earlier will cause warnings (but
* using functions deprecated in later releases will not).
*/
enum VERSION_MIN_REQUIRED = 2;
alias PANGO_VERSION_MIN_REQUIRED = VERSION_MIN_REQUIRED;
|