/usr/share/vala-0.14/vapi/pango.vapi is in valac-0.14 0.14.2-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /* pango.vapi generated by vapigen, do not modify. */
[CCode (gir_namespace = "Pango", gir_version = "1.0")]
namespace Pango {
namespace Scale {
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_LARGE")]
public const double LARGE;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_MEDIUM")]
public const double MEDIUM;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_SMALL")]
public const double SMALL;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_XX_LARGE")]
public const double XX_LARGE;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_XX_SMALL")]
public const double XX_SMALL;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_X_LARGE")]
public const double X_LARGE;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_SCALE_X_SMALL")]
public const double X_SMALL;
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class AttrClass {
public weak GLib.Callback copy;
public weak GLib.Callback destroy;
public weak GLib.Callback equal;
public Pango.AttrType type;
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrColor : Pango.Attribute {
public Pango.Color color;
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrFloat : Pango.Attribute {
public double value;
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrFontDesc : Pango.Attribute {
public weak Pango.FontDescription desc;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrFontDesc (Pango.FontDescription desc);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrInt : Pango.Attribute {
public int value;
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_attr_iterator_copy", free_function = "pango_attr_iterator_destroy")]
[Compact]
public class AttrIterator {
public Pango.AttrIterator copy ();
public unowned Pango.Attribute @get (Pango.AttrType type);
public unowned GLib.SList get_attrs ();
public void get_font (Pango.FontDescription desc, out unowned Pango.Language language, GLib.SList extra_attrs);
public bool next ();
public void range (out int start, out int end);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrLanguage : Pango.Attribute {
public weak Pango.Language value;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrLanguage (Pango.Language language);
}
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_attr_list_ref", type_id = "pango_attr_list_get_type ()", unref_function = "pango_attr_list_unref")]
[Compact]
public class AttrList {
[CCode (has_construct_function = false)]
public AttrList ();
public void change (owned Pango.Attribute attr);
public Pango.AttrList copy ();
public Pango.AttrList? filter (Pango.AttrFilterFunc func);
public Pango.AttrIterator get_iterator ();
public void insert (owned Pango.Attribute attr);
public void insert_before (owned Pango.Attribute attr);
public void splice (Pango.AttrList other, int pos, int len);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrShape<T> : Pango.Attribute {
public weak Pango.Attribute attr;
public weak Pango.AttrDataCopyFunc<T> copy_func;
public T data;
public weak GLib.DestroyNotify destroy_func;
public Pango.Rectangle ink_rect;
public Pango.Rectangle logical_rect;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrShape (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect);
[CCode (has_construct_function = false, simple_generics = true, type = "PangoAttribute*")]
public AttrShape.with_data (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect, owned T data, Pango.AttrDataCopyFunc<T> copy_func);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrSize : Pango.Attribute {
public uint absolute;
public int size;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrSize (int size);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
public class AttrString : Pango.Attribute {
public weak string value;
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_attribute_copy", free_function = "pango_attribute_destroy")]
[Compact]
public class Attribute {
public uint end_index;
public weak Pango.AttrClass klass;
public uint start_index;
public Pango.Attribute copy ();
public bool equal (Pango.Attribute attr2);
public void init (Pango.AttrClass klass);
}
[CCode (cheader_filename = "pango/pango.h")]
public class Context : GLib.Object {
[CCode (has_construct_function = false)]
public Context ();
public Pango.Direction get_base_dir ();
public Pango.Gravity get_base_gravity ();
public unowned Pango.FontDescription get_font_description ();
public unowned Pango.FontMap get_font_map ();
public Pango.Gravity get_gravity ();
public Pango.GravityHint get_gravity_hint ();
public unowned Pango.Language get_language ();
public Pango.Matrix? get_matrix ();
public Pango.FontMetrics get_metrics (Pango.FontDescription? desc, Pango.Language? language);
public void list_families (out Pango.FontFamily[] families);
public unowned Pango.Font load_font (Pango.FontDescription desc);
public unowned Pango.Fontset load_fontset (Pango.FontDescription desc, Pango.Language language);
public void set_base_dir (Pango.Direction direction);
public void set_base_gravity (Pango.Gravity gravity);
public void set_font_description (Pango.FontDescription desc);
public void set_font_map (Pango.FontMap font_map);
public void set_gravity_hint (Pango.GravityHint hint);
public void set_language (Pango.Language language);
public void set_matrix (Pango.Matrix matrix);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class ContextClass {
}
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_coverage_ref", unref_function = "pango_coverage_unref")]
[Compact]
public class Coverage {
[CCode (has_construct_function = false)]
public Coverage ();
public Pango.Coverage copy ();
public static Pango.Coverage from_bytes (uchar[] bytes);
public Pango.CoverageLevel @get (int index_);
public void max (Pango.Coverage other);
public void @set (int index_, Pango.CoverageLevel level);
public void to_bytes (out uchar[][] bytes);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class EngineLang {
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class EngineShape {
}
[CCode (cheader_filename = "pango/pango.h")]
public class Font : GLib.Object {
[CCode (has_construct_function = false)]
protected Font ();
public Pango.FontDescription describe ();
public Pango.FontDescription describe_with_absolute_size ();
public static void descriptions_free (Pango.FontDescription[] descs);
public unowned Pango.EngineShape find_shaper (Pango.Language language, uint32 ch);
public Pango.Coverage get_coverage (Pango.Language language);
public Pango.FontMap? get_font_map ();
public void get_glyph_extents (Pango.Glyph glyph, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public Pango.FontMetrics get_metrics (Pango.Language? language);
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_font_description_copy", type_id = "pango_font_description_get_type ()")]
[Compact]
[Immutable]
public class FontDescription {
[CCode (has_construct_function = false)]
public FontDescription ();
public bool better_match (Pango.FontDescription old_match, Pango.FontDescription new_match);
public Pango.FontDescription copy ();
public bool equal (Pango.FontDescription desc2);
public static Pango.FontDescription from_string (string str);
public unowned string get_family ();
public Pango.Gravity get_gravity ();
public Pango.FontMask get_set_fields ();
public int get_size ();
public bool get_size_is_absolute ();
public Pango.Stretch get_stretch ();
public Pango.Style get_style ();
public Pango.Variant get_variant ();
public Pango.Weight get_weight ();
public uint hash ();
public void merge (Pango.FontDescription desc_to_merge, bool replace_existing);
public void merge_static (Pango.FontDescription desc_to_merge, bool replace_existing);
public void set_absolute_size (double size);
public void set_family (string family);
public void set_family_static (string family);
public void set_gravity (Pango.Gravity gravity);
public void set_size (int size);
public void set_stretch (Pango.Stretch stretch);
public void set_style (Pango.Style style);
public void set_variant (Pango.Variant variant);
public void set_weight (Pango.Weight weight);
public string to_filename ();
public string to_string ();
public void unset_fields (Pango.FontMask to_unset);
}
[CCode (cheader_filename = "pango/pango.h")]
public class FontFace : GLib.Object {
[CCode (has_construct_function = false)]
protected FontFace ();
public Pango.FontDescription describe ();
public unowned string get_face_name ();
public bool is_synthesized ();
public void list_sizes (out int[] sizes);
}
[CCode (cheader_filename = "pango/pango.h")]
public class FontFamily : GLib.Object {
[CCode (has_construct_function = false)]
protected FontFamily ();
public unowned string get_name ();
public bool is_monospace ();
public void list_faces (out Pango.FontFace[] faces);
}
[CCode (cheader_filename = "pango/pango.h")]
public class FontMap : GLib.Object {
[CCode (has_construct_function = false)]
protected FontMap ();
public Pango.Context create_context ();
public void list_families (out Pango.FontFamily[] families);
public unowned Pango.Font load_font (Pango.Context context, Pango.FontDescription desc);
public unowned Pango.Fontset load_fontset (Pango.Context context, Pango.FontDescription desc, Pango.Language language);
}
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_font_metrics_ref", type_id = "pango_font_metrics_get_type ()", unref_function = "pango_font_metrics_unref")]
[Compact]
public class FontMetrics {
public int get_approximate_char_width ();
public int get_approximate_digit_width ();
public int get_ascent ();
public int get_descent ();
public int get_strikethrough_position ();
public int get_strikethrough_thickness ();
public int get_underline_position ();
public int get_underline_thickness ();
}
[CCode (cheader_filename = "pango/pango.h")]
public class Fontset : GLib.Object {
[CCode (has_construct_function = false)]
protected Fontset ();
public void @foreach (Pango.FontsetForeachFunc func);
public Pango.Font get_font (uint wc);
public Pango.FontMetrics get_metrics ();
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_glyph_item_copy", type_id = "pango_glyph_item_get_type ()")]
[Compact]
public class GlyphItem {
public weak Pango.GlyphString glyphs;
public weak Pango.Item item;
public GLib.SList<Pango.GlyphItem> apply_attrs (string text, Pango.AttrList list);
public Pango.GlyphItem copy ();
public void get_logical_widths (string text, [CCode (array_length = false)] int[] logical_widths);
public void letter_space (string text, Pango.LogAttr[] log_attrs, int letter_spacing);
public Pango.GlyphItem split (string text, int split_index);
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_glyph_string_copy", type_id = "pango_glyph_string_get_type ()")]
[Compact]
public class GlyphString {
[CCode (array_length_cname = "num_glyphs")]
public Pango.GlyphInfo[] glyphs;
[CCode (array_length_cname = "num_glyphs")]
public int[] log_clusters;
public int num_glyphs;
public int space;
[CCode (has_construct_function = false)]
public GlyphString ();
public Pango.GlyphString copy ();
public void extents (Pango.Font font, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public void extents_range (int start, int end, Pango.Font font, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public void get_logical_widths (string text, int length, int embedding_level, [CCode (array_length = false)] int[] logical_widths);
public int get_width ();
public void index_to_x (string text, int length, Pango.Analysis analysis, int index_, bool trailing, out int x_pos);
public void set_size (int new_len);
public void x_to_index (string text, int length, Pango.Analysis analysis, int x_pos, out int index_, out int trailing);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class GlyphUnit {
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_item_copy", type_id = "pango_item_get_type ()")]
[Compact]
public class Item {
public Pango.Analysis analysis;
public int length;
public int num_chars;
public int offset;
[CCode (has_construct_function = false)]
public Item ();
public Pango.Item copy ();
public Pango.Item split (int split_index, int split_offset);
}
[CCode (cheader_filename = "pango/pango.h", type_id = "pango_language_get_type ()")]
[Compact]
public class Language {
public static unowned Pango.Language? from_string (string language);
public static unowned Pango.Language get_default ();
public unowned string get_sample_string ();
public unowned Pango.Script[] get_scripts ();
public bool includes_script (Pango.Script script);
public bool matches (string range_list);
public unowned string to_string ();
}
[CCode (cheader_filename = "pango/pango.h")]
public class Layout : GLib.Object {
[CCode (has_construct_function = false)]
public Layout (Pango.Context context);
public void context_changed ();
public Pango.Layout copy ();
public Pango.Alignment get_alignment ();
public unowned Pango.AttrList get_attributes ();
public bool get_auto_dir ();
public int get_baseline ();
public unowned Pango.Context get_context ();
public void get_cursor_pos (int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle weak_pos);
public Pango.EllipsizeMode get_ellipsize ();
public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public unowned Pango.FontDescription? get_font_description ();
public int get_height ();
public int get_indent ();
public unowned Pango.LayoutIter get_iter ();
public bool get_justify ();
public unowned Pango.LayoutLine get_line (int line);
public int get_line_count ();
public unowned Pango.LayoutLine get_line_readonly (int line);
public unowned GLib.SList<weak Pango.LayoutLine> get_lines ();
public unowned GLib.SList<weak Pango.LayoutLine> get_lines_readonly ();
public void get_log_attrs (out Pango.LogAttr[] attrs);
public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public void get_pixel_size (out int width, out int height);
public bool get_single_paragraph_mode ();
public void get_size (out int width, out int height);
public int get_spacing ();
public unowned Pango.TabArray get_tabs ();
public unowned string get_text ();
public int get_unknown_glyphs_count ();
public int get_width ();
public Pango.WrapMode get_wrap ();
public void index_to_line_x (int index_, bool trailing, out int line, out int x_pos);
public void index_to_pos (int index_, out Pango.Rectangle pos);
public bool is_ellipsized ();
public bool is_wrapped ();
public void move_cursor_visually (bool strong, int old_index, int old_trailing, int direction, out int new_index, out int new_trailing);
public void set_alignment (Pango.Alignment alignment);
public void set_attributes (Pango.AttrList attrs);
public void set_auto_dir (bool auto_dir);
public void set_ellipsize (Pango.EllipsizeMode ellipsize);
public void set_font_description (Pango.FontDescription? desc);
public void set_height (int height);
public void set_indent (int indent);
public void set_justify (bool justify);
public void set_markup (string markup, int length);
public void set_markup_with_accel (string markup, int length, unichar accel_marker, unichar accel_char);
public void set_single_paragraph_mode (bool setting);
public void set_spacing (int spacing);
public void set_tabs (Pango.TabArray tabs);
public void set_text (string text, int length);
public void set_width (int width);
public void set_wrap (Pango.WrapMode wrap);
public bool xy_to_index (int x, int y, out int index_, out int trailing);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class LayoutClass {
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_layout_iter_copy", type_id = "pango_layout_iter_get_type ()")]
[Compact]
public class LayoutIter {
public bool at_last_line ();
public Pango.LayoutIter copy ();
public int get_baseline ();
public void get_char_extents (out Pango.Rectangle logical_rect);
public void get_cluster_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public int get_index ();
public unowned Pango.Layout get_layout ();
public void get_layout_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public unowned Pango.LayoutLine get_line ();
public void get_line_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public unowned Pango.LayoutLine get_line_readonly ();
public void get_line_yrange (out int y0_, out int y1_);
public unowned Pango.LayoutRun get_run ();
public void get_run_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public unowned Pango.LayoutRun get_run_readonly ();
public bool next_char ();
public bool next_cluster ();
public bool next_line ();
public bool next_run ();
}
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_layout_line_ref", type_id = "pango_layout_line_get_type ()", unref_function = "pango_layout_line_unref")]
[Compact]
public class LayoutLine {
public uint is_paragraph_start;
public weak Pango.Layout layout;
public int length;
public uint resolved_dir;
public weak GLib.SList runs;
public int start_index;
public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
public void get_x_ranges (int start_index, int end_index, int[] ranges);
public void index_to_x (int index_, bool trailing, out int x_pos);
public bool x_to_index (int x_pos, out int index_, out int trailing);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class LayoutRun {
}
[CCode (cheader_filename = "pango/pango.h")]
public class Renderer : GLib.Object {
public int active_count;
public Pango.Matrix matrix;
public bool strikethrough;
public Pango.Underline underline;
[CCode (has_construct_function = false)]
protected Renderer ();
public void activate ();
[NoWrapper]
public virtual void begin ();
public void deactivate ();
public virtual void draw_error_underline (int x, int y, int width, int height);
public virtual void draw_glyph (Pango.Font font, Pango.Glyph glyph, double x, double y);
public virtual void draw_glyph_item (string text, Pango.GlyphItem glyph_item, int x, int y);
public virtual void draw_glyphs (Pango.Font font, Pango.GlyphString glyphs, int x, int y);
public void draw_layout (Pango.Layout layout, int x, int y);
public void draw_layout_line (Pango.LayoutLine line, int x, int y);
public virtual void draw_rectangle (Pango.RenderPart part, int x, int y, int width, int height);
[NoWrapper]
public virtual void draw_shape (Pango.AttrShape attr, int x, int y);
public virtual void draw_trapezoid (Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22);
[NoWrapper]
public virtual void end ();
public Pango.Color get_color (Pango.RenderPart part);
public unowned Pango.Layout get_layout ();
public unowned Pango.LayoutLine get_layout_line ();
public Pango.Matrix get_matrix ();
public virtual void part_changed (Pango.RenderPart part);
[NoWrapper]
public virtual void prepare_run (Pango.LayoutRun run);
public void set_color (Pango.RenderPart part, Pango.Color color);
public void set_matrix (Pango.Matrix matrix);
}
[CCode (cheader_filename = "pango/pango.h")]
[Compact]
public class ScriptIter {
[CCode (has_construct_function = false)]
public ScriptIter (string text, int length);
public void get_range (out unowned string start, out unowned string end, Pango.Script script);
public bool next ();
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "pango_tab_array_copy", type_id = "pango_tab_array_get_type ()")]
[Compact]
public class TabArray {
[CCode (has_construct_function = false)]
public TabArray (int initial_size, bool positions_in_pixels);
public Pango.TabArray copy ();
public bool get_positions_in_pixels ();
public int get_size ();
public void get_tab (int tab_index, Pango.TabAlign alignment, int location);
public void get_tabs (out Pango.TabAlign alignments, int locations);
public void resize (int new_size);
public void set_tab (int tab_index, Pango.TabAlign alignment, int location);
[CCode (has_construct_function = false)]
public TabArray.with_positions (int size, bool positions_in_pixels, Pango.TabAlign first_alignment, ...);
}
[CCode (cheader_filename = "pango/pango.h")]
public struct Analysis {
public weak Pango.EngineShape shape_engine;
public weak Pango.EngineLang lang_engine;
public weak Pango.Font font;
public uchar level;
public uchar gravity;
public uchar flags;
public uchar script;
public weak Pango.Language language;
public weak GLib.SList extra_attrs;
}
[CCode (cheader_filename = "pango/pango.h")]
public struct Color {
public uint16 red;
public uint16 green;
public uint16 blue;
public Pango.Color copy ();
public void free ();
public bool parse (string spec);
public unowned string to_string ();
}
[CCode (cheader_filename = "pango/pango.h")]
public struct Glyph : uint32 {
}
[CCode (cheader_filename = "pango/pango.h")]
public struct GlyphGeometry {
public weak Pango.GlyphUnit width;
public weak Pango.GlyphUnit x_offset;
public weak Pango.GlyphUnit y_offset;
}
[CCode (cheader_filename = "pango/pango.h")]
public struct GlyphInfo {
public Pango.Glyph glyph;
public Pango.GlyphGeometry geometry;
public Pango.GlyphVisAttr attr;
}
[CCode (cheader_filename = "pango/pango.h")]
public struct GlyphItemIter {
public weak Pango.GlyphItem glyph_item;
public weak string text;
public int start_glyph;
public int start_index;
public int start_char;
public int end_glyph;
public int end_index;
public int end_char;
public Pango.GlyphItemIter copy ();
public void free ();
public bool init_end (Pango.GlyphItem glyph_item, string text);
public bool init_start (Pango.GlyphItem glyph_item, string text);
public bool next_cluster ();
public bool prev_cluster ();
}
[CCode (cheader_filename = "pango/pango.h")]
public struct GlyphVisAttr {
public uint is_cluster_start;
}
[CCode (cheader_filename = "pango/pango.h")]
public struct LogAttr {
public uint is_line_break;
public uint is_mandatory_break;
public uint is_char_break;
public uint is_white;
public uint is_cursor_position;
public uint is_word_start;
public uint is_word_end;
public uint is_sentence_boundary;
public uint is_sentence_start;
public uint is_sentence_end;
public uint backspace_deletes_character;
public uint is_expandable_space;
public uint is_word_boundary;
}
[CCode (cheader_filename = "pango/pango.h")]
public struct Matrix {
public double xx;
public double xy;
public double yx;
public double yy;
public double x0;
public double y0;
public void concat (Pango.Matrix new_matrix);
public Pango.Matrix copy ();
public void free ();
public double get_font_scale_factor ();
public void rotate (double degrees);
public void scale (double scale_x, double scale_y);
public void transform_distance (double dx, double dy);
public void transform_pixel_rectangle (ref Pango.Rectangle rect);
public void transform_point (double x, double y);
public void transform_rectangle (ref Pango.Rectangle rect);
public void translate (double tx, double ty);
}
[CCode (cheader_filename = "pango/pango.h")]
public struct Rectangle {
public int x;
public int y;
public int width;
public int height;
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_ALIGN_")]
public enum Alignment {
LEFT,
CENTER,
RIGHT
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_ATTR_")]
public enum AttrType {
INVALID,
LANGUAGE,
FAMILY,
STYLE,
WEIGHT,
VARIANT,
STRETCH,
SIZE,
FONT_DESC,
FOREGROUND,
BACKGROUND,
UNDERLINE,
STRIKETHROUGH,
RISE,
SHAPE,
SCALE,
FALLBACK,
LETTER_SPACING,
UNDERLINE_COLOR,
STRIKETHROUGH_COLOR,
ABSOLUTE_SIZE,
GRAVITY,
GRAVITY_HINT
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_BIDI_TYPE_")]
public enum BidiType {
L,
LRE,
LRO,
R,
AL,
RLE,
RLO,
PDF,
EN,
ES,
ET,
AN,
CS,
NSM,
BN,
B,
S,
WS,
ON
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_COVERAGE_")]
public enum CoverageLevel {
NONE,
FALLBACK,
APPROXIMATE,
EXACT
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_DIRECTION_")]
public enum Direction {
LTR,
RTL,
TTB_LTR,
TTB_RTL,
WEAK_LTR,
WEAK_RTL,
NEUTRAL
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_ELLIPSIZE_")]
public enum EllipsizeMode {
NONE,
START,
MIDDLE,
END
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_FONT_MASK_")]
[Flags]
public enum FontMask {
FAMILY,
STYLE,
VARIANT,
WEIGHT,
STRETCH,
SIZE,
GRAVITY
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_GRAVITY_")]
public enum Gravity {
SOUTH,
EAST,
NORTH,
WEST,
AUTO
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_GRAVITY_HINT_")]
public enum GravityHint {
NATURAL,
STRONG,
LINE
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_RENDER_PART_")]
public enum RenderPart {
FOREGROUND,
BACKGROUND,
UNDERLINE,
STRIKETHROUGH
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_SCRIPT_")]
public enum Script {
INVALID_CODE,
COMMON,
INHERITED,
ARABIC,
ARMENIAN,
BENGALI,
BOPOMOFO,
CHEROKEE,
COPTIC,
CYRILLIC,
DESERET,
DEVANAGARI,
ETHIOPIC,
GEORGIAN,
GOTHIC,
GREEK,
GUJARATI,
GURMUKHI,
HAN,
HANGUL,
HEBREW,
HIRAGANA,
KANNADA,
KATAKANA,
KHMER,
LAO,
LATIN,
MALAYALAM,
MONGOLIAN,
MYANMAR,
OGHAM,
OLD_ITALIC,
ORIYA,
RUNIC,
SINHALA,
SYRIAC,
TAMIL,
TELUGU,
THAANA,
THAI,
TIBETAN,
CANADIAN_ABORIGINAL,
YI,
TAGALOG,
HANUNOO,
BUHID,
TAGBANWA,
BRAILLE,
CYPRIOT,
LIMBU,
OSMANYA,
SHAVIAN,
LINEAR_B,
TAI_LE,
UGARITIC,
NEW_TAI_LUE,
BUGINESE,
GLAGOLITIC,
TIFINAGH,
SYLOTI_NAGRI,
OLD_PERSIAN,
KHAROSHTHI,
UNKNOWN,
BALINESE,
CUNEIFORM,
PHOENICIAN,
PHAGS_PA,
NKO,
KAYAH_LI,
LEPCHA,
REJANG,
SUNDANESE,
SAURASHTRA,
CHAM,
OL_CHIKI,
VAI,
CARIAN,
LYCIAN,
LYDIAN
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_STRETCH_")]
public enum Stretch {
ULTRA_CONDENSED,
EXTRA_CONDENSED,
CONDENSED,
SEMI_CONDENSED,
NORMAL,
SEMI_EXPANDED,
EXPANDED,
EXTRA_EXPANDED,
ULTRA_EXPANDED
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_STYLE_")]
public enum Style {
NORMAL,
OBLIQUE,
ITALIC
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_TAB_")]
public enum TabAlign {
LEFT
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_UNDERLINE_")]
public enum Underline {
NONE,
SINGLE,
DOUBLE,
LOW,
ERROR
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_VARIANT_")]
public enum Variant {
NORMAL,
SMALL_CAPS
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_WEIGHT_", default_value = "PANGO_WEIGHT_NORMAL")]
public enum Weight {
THIN,
ULTRALIGHT,
LIGHT,
BOOK,
NORMAL,
MEDIUM,
SEMIBOLD,
BOLD,
ULTRABOLD,
HEAVY,
ULTRAHEAVY
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_WRAP_")]
public enum WrapMode {
WORD,
CHAR,
WORD_CHAR
}
[CCode (cheader_filename = "pango/pango.h", has_target = false)]
public delegate T AttrDataCopyFunc<T> (T data);
[CCode (cheader_filename = "pango/pango.h")]
public delegate bool AttrFilterFunc (Pango.Attribute attribute);
[CCode (cheader_filename = "pango/pango.h")]
public delegate bool FontsetForeachFunc (Pango.Fontset fontset, Pango.Font font);
[CCode (cheader_filename = "pango/pango.h")]
public const int ANALYSIS_FLAG_CENTERED_BASELINE;
[CCode (cheader_filename = "pango/pango.h")]
public const int ATTR_INDEX_FROM_TEXT_BEGINNING;
[CCode (cheader_filename = "pango/pango.h")]
public const string ENGINE_TYPE_LANG;
[CCode (cheader_filename = "pango/pango.h")]
public const string ENGINE_TYPE_SHAPE;
[CCode (cheader_filename = "pango/pango.h")]
public const string RENDER_TYPE_NONE;
[CCode (cheader_filename = "pango/pango.h")]
public const int SCALE;
[CCode (cheader_filename = "pango/pango.h")]
public const int UNKNOWN_GLYPH_HEIGHT;
[CCode (cheader_filename = "pango/pango.h")]
public const int UNKNOWN_GLYPH_WIDTH;
[CCode (cheader_filename = "pango/pango.h")]
public const int VERSION_MAJOR;
[CCode (cheader_filename = "pango/pango.h")]
public const int VERSION_MICRO;
[CCode (cheader_filename = "pango/pango.h")]
public const int VERSION_MINOR;
[CCode (cheader_filename = "pango/pango.h")]
public const string VERSION_STRING;
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_background_new (uint16 red, uint16 green, uint16 blue);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_fallback_new (bool enable_fallback);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_family_new (string family);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_foreground_new (uint16 red, uint16 green, uint16 blue);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_gravity_hint_new (Pango.GravityHint hint);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_gravity_new (Pango.Gravity gravity);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_letter_spacing_new (int letter_spacing);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_rise_new (int rise);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_scale_new (double scale_factor);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_stretch_new (Pango.Stretch stretch);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_strikethrough_color_new (uint16 red, uint16 green, uint16 blue);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_strikethrough_new (bool strikethrough);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_style_new (Pango.Style style);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned string attr_type_get_name (Pango.AttrType type);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.AttrType attr_type_register (string name);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_underline_color_new (uint16 red, uint16 green, uint16 blue);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_underline_new (Pango.Underline underline);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_variant_new (Pango.Variant variant);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_weight_new (Pango.Weight weight);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.BidiType bidi_type_for_unichar (unichar ch);
[CCode (cheader_filename = "pango/pango.h")]
public static void @break (string text, int length, Pango.Analysis analysis, Pango.LogAttr[] attrs, int attrs_len);
[CCode (cheader_filename = "pango/pango.h")]
public static void extents_to_pixels (ref Pango.Rectangle inclusive, ref Pango.Rectangle nearest);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Direction find_base_dir (string text, int length);
[CCode (cheader_filename = "pango/pango.h")]
public static void find_paragraph_boundary (string text, int length, out int paragraph_delimiter_index, out int next_paragraph_start);
[CCode (cheader_filename = "pango/pango.h")]
public static void get_log_attrs (string text, int length, int level, Pango.Language language, Pango.LogAttr[] log_attrs);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Gravity gravity_get_for_matrix (Pango.Matrix matrix);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Gravity gravity_get_for_script (Pango.Script script, Pango.Gravity base_gravity, Pango.GravityHint hint);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Gravity gravity_get_for_script_and_width (Pango.Script script, bool wide, Pango.Gravity base_gravity, Pango.GravityHint hint);
[CCode (cheader_filename = "pango/pango.h")]
public static double gravity_to_rotation (Pango.Gravity gravity);
[CCode (cheader_filename = "pango/pango.h")]
public static bool is_zero_width (unichar ch);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned GLib.List itemize (Pango.Context context, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator cached_iter);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned GLib.List itemize_with_base_dir (Pango.Context context, Pango.Direction base_dir, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator cached_iter);
[CCode (cheader_filename = "pango/pango.h")]
public static uchar log2vis_get_embedding_levels (string text, int length, Pango.Direction pbase_dir);
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_enum (GLib.Type type, string? str, out int value, bool warn, out string possible_values);
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_markup (string markup_text, int length, unichar accel_marker, out Pango.AttrList attr_list, out string text, out unichar accel_char) throws GLib.Error;
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_stretch (string str, out Pango.Stretch stretch, bool warn);
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_style (string str, out Pango.Style style, bool warn);
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_variant (string str, out Pango.Variant variant, bool warn);
[CCode (cheader_filename = "pango/pango.h")]
public static bool parse_weight (string str, out Pango.Weight weight, bool warn);
[CCode (cheader_filename = "pango/pango.h")]
public static void quantize_line_geometry (int thickness, int position);
[CCode (cheader_filename = "pango/pango.h")]
public static int read_line (GLib.FileStream stream, GLib.StringBuilder str);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned GLib.List reorder_items (GLib.List logical_items);
[CCode (cheader_filename = "pango/pango.h")]
public static bool scan_int (out unowned string pos, int @out);
[CCode (cheader_filename = "pango/pango.h")]
public static bool scan_string (out unowned string pos, GLib.StringBuilder @out);
[CCode (cheader_filename = "pango/pango.h")]
public static bool scan_word (out unowned string pos, GLib.StringBuilder @out);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Script script_for_unichar (unichar ch);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned Pango.Language script_get_sample_language (Pango.Script script);
[CCode (cheader_filename = "pango/pango.h")]
public static void shape (string text, int length, Pango.Analysis analysis, Pango.GlyphString glyphs);
[CCode (cheader_filename = "pango/pango.h")]
public static bool skip_space (out unowned string pos);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned string split_file_list (string str);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned string trim_string (string str);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Direction unichar_direction (unichar ch);
[CCode (cheader_filename = "pango/pango.h")]
public static int units_from_double (double d);
[CCode (cheader_filename = "pango/pango.h")]
public static double units_to_double (int i);
[CCode (cheader_filename = "pango/pango.h")]
public static int version ();
[CCode (cheader_filename = "pango/pango.h")]
public static unowned string version_check (int required_major, int required_minor, int required_micro);
[CCode (cheader_filename = "pango/pango.h")]
public static unowned string version_string ();
}
|