-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathPango-1.0.gir
7936 lines (7936 loc) · 375 KB
/
Pango-1.0.gir
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
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.1"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GLib" version="2.0"/>
<include name="GObject" version="2.0"/>
<include name="cairo" version="1.0"/>
<package name="cairo"/>
<package name="freetype2"/>
<package name="gobject-2.0"/>
<namespace name="Pango"
version="1.0"
shared-library="libpango-1.0.so.0"
c:prefix="Pango">
<alias name="Glyph" target="uint32" c:type="PangoGlyph"/>
<alias name="GlyphUnit" target="int32" c:type="PangoGlyphUnit"/>
<alias name="LayoutRun" target="GlyphItem" c:type="PangoLayoutRun"/>
<constant name="ANALYSIS_FLAG_CENTERED_BASELINE" value="1">
<type name="int"/>
</constant>
<constant name="ATTR_INDEX_FROM_TEXT_BEGINNING" value="0">
<type name="int"/>
</constant>
<enumeration name="Alignment"
glib:type-name="PangoAlignment"
glib:get-type="pango_alignment_get_type"
c:type="PangoAlignment">
<member name="left"
value="0"
c:identifier="PANGO_ALIGN_LEFT"
glib:nick="left"/>
<member name="center"
value="1"
c:identifier="PANGO_ALIGN_CENTER"
glib:nick="center"/>
<member name="right"
value="2"
c:identifier="PANGO_ALIGN_RIGHT"
glib:nick="right"/>
</enumeration>
<record name="Analysis" c:type="PangoAnalysis">
<field name="shape_engine" writable="1">
<type name="EngineShape" c:type="PangoEngineShape*"/>
</field>
<field name="lang_engine" writable="1">
<type name="EngineLang" c:type="PangoEngineLang*"/>
</field>
<field name="font" writable="1">
<type name="Font" c:type="PangoFont*"/>
</field>
<field name="level" writable="1">
<type name="uint8" c:type="guint8"/>
</field>
<field name="gravity" writable="1">
<type name="uint8" c:type="guint8"/>
</field>
<field name="flags" writable="1">
<type name="uint8" c:type="guint8"/>
</field>
<field name="script" writable="1">
<type name="uint8" c:type="guint8"/>
</field>
<field name="language" writable="1">
<type name="Language" c:type="PangoLanguage*"/>
</field>
<field name="extra_attrs" writable="1">
<type name="GLib.SList" c:type="GSList*">
<type name="any" c:type="gpointer"/>
</type>
</field>
</record>
<record name="AttrClass" c:type="PangoAttrClass">
<field name="type" writable="1">
<type name="AttrType" c:type="PangoAttrType"/>
</field>
<field name="copy">
<type name="any" c:type="pointer"/>
</field>
<field name="destroy">
<type name="any" c:type="pointer"/>
</field>
<field name="equal">
<type name="any" c:type="pointer"/>
</field>
</record>
<record name="AttrColor" c:type="PangoAttrColor">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="color" writable="1">
<type name="Color" c:type="PangoColor"/>
</field>
</record>
<callback name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc">
<return-value transfer-ownership="none">
<type name="any" c:type="gpointer"/>
</return-value>
<parameters>
<parameter name="data" transfer-ownership="none">
<type name="any" c:type="gconstpointer"/>
</parameter>
</parameters>
</callback>
<callback name="AttrFilterFunc" c:type="PangoAttrFilterFunc">
<return-value transfer-ownership="none">
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="attribute" transfer-ownership="none">
<type name="Attribute" c:type="PangoAttribute*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<type name="any" c:type="gpointer"/>
</parameter>
</parameters>
</callback>
<record name="AttrFloat" c:type="PangoAttrFloat">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="value" writable="1">
<type name="double" c:type="double"/>
</field>
</record>
<record name="AttrFontDesc" c:type="PangoAttrFontDesc">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="desc" writable="1">
<type name="FontDescription" c:type="PangoFontDescription*"/>
</field>
<constructor name="new" c:identifier="pango_attr_font_desc_new">
<doc xml:whitespace="preserve">Create a new font description attribute. This attribute
allows setting family, style, weight, variant, stretch,
and size simultaneously.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrFontDesc" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">the font description</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>
</parameters>
</constructor>
</record>
<record name="AttrInt" c:type="PangoAttrInt">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="value" writable="1">
<type name="int" c:type="int"/>
</field>
</record>
<record name="AttrIterator" c:type="PangoAttrIterator">
<method name="range" c:identifier="pango_attr_iterator_range">
<doc xml:whitespace="preserve">Get the range of the current segment. Note that the
stored return values are signed, not unsigned like
the values in #PangoAttribute. To deal with this API
oversight, stored return values that wouldn't fit into
a signed integer are clamped to %G_MAXINT.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="start"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="preserve">location to store the start of the range</doc>
<type name="int" c:type="gint*"/>
</parameter>
<parameter name="end"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="preserve">location to store the end of the range</doc>
<type name="int" c:type="gint*"/>
</parameter>
</parameters>
</method>
<method name="next" c:identifier="pango_attr_iterator_next">
<doc xml:whitespace="preserve">Advance the iterator until the next change of style.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%FALSE if the iterator is at the end of the list, otherwise %TRUE</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
</method>
<method name="copy" c:identifier="pango_attr_iterator_copy">
<doc xml:whitespace="preserve">Copy a #PangoAttrIterator
be freed with pango_attr_iterator_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttrIterator, which should</doc>
<type name="AttrIterator" c:type="PangoAttrIterator*"/>
</return-value>
</method>
<method name="destroy" c:identifier="pango_attr_iterator_destroy">
<doc xml:whitespace="preserve">Destroy a #PangoAttrIterator and free all associated memory.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="get" c:identifier="pango_attr_iterator_get">
<doc xml:whitespace="preserve">Find the current attribute of a particular type at the iterator
location. When multiple attributes of the same type overlap,
the attribute whose range starts closest to the current location
is used.
if no attribute of that type applies to the current
location.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the current attribute of the given type, or %NULL</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="type" transfer-ownership="none">
<doc xml:whitespace="preserve">the type of attribute to find.</doc>
<type name="AttrType" c:type="PangoAttrType"/>
</parameter>
</parameters>
</method>
<method name="get_font"
c:identifier="pango_attr_iterator_get_font"
introspectable="0">
<doc xml:whitespace="preserve">Get the font and other attributes at the current iterator position.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoFontDescription to fill in with the current values. The family name in this structure will be set using pango_font_description_set_family_static() using values from an attribute in the #PangoAttrList associated with the iterator, so if you plan to keep it around, you must call: <literal>pango_font_description_set_family (desc, pango_font_description_get_family (desc))</literal>.</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">if non-%NULL, location to store language tag for item, or %NULL if none is found.</doc>
<type name="Language" c:type="PangoLanguage**"/>
</parameter>
<parameter name="extra_attrs" transfer-ownership="full">
<doc xml:whitespace="preserve">if non-%NULL, location in which to store a list of non-font attributes at the the current position; only the highest priority value of each attribute will be added to this list. In order to free this value, you must call pango_attribute_destroy() on each member.</doc>
<type name="GLib.SList" c:type="GSList**">
<type name="any" c:type="gpointer"/>
</type>
</parameter>
</parameters>
</method>
<method name="get_attrs"
c:identifier="pango_attr_iterator_get_attrs"
version="1.2">
<doc xml:whitespace="preserve">Gets a list of all attributes at the current position of the
iterator.
all attributes for the current range.
To free this value, call pango_attribute_destroy() on
each value and g_slist_free() on the list.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a list of</doc>
<type name="GLib.SList" c:type="GSList*">
<type name="Pango.Attribute"/>
</type>
</return-value>
</method>
</record>
<record name="AttrLanguage" c:type="PangoAttrLanguage">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="value" writable="1">
<type name="Language" c:type="PangoLanguage*"/>
</field>
<constructor name="new" c:identifier="pango_attr_language_new">
<doc xml:whitespace="preserve">Create a new language tag attribute.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrLanguage" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">language tag</doc>
<type name="Language" c:type="PangoLanguage*"/>
</parameter>
</parameters>
</constructor>
</record>
<record name="AttrList"
c:type="PangoAttrList"
glib:type-name="PangoAttrList"
glib:get-type="pango_attr_list_get_type">
<constructor name="new" c:identifier="pango_attr_list_new">
<doc xml:whitespace="preserve">Create a new empty attribute list with a reference count of one.
be freed with pango_attr_list_unref().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttrList, which should</doc>
<type name="AttrList" c:type="PangoAttrList*"/>
</return-value>
</constructor>
<method name="ref" c:identifier="pango_attr_list_ref" version="1.10">
<doc xml:whitespace="preserve">Increase the reference count of the given attribute list by one.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">The attribute list passed in</doc>
<type name="AttrList" c:type="PangoAttrList*"/>
</return-value>
</method>
<method name="unref" c:identifier="pango_attr_list_unref">
<doc xml:whitespace="preserve">Decrease the reference count of the given attribute list by one.
If the result is zero, free the attribute list and the attributes
it contains.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="copy" c:identifier="pango_attr_list_copy">
<doc xml:whitespace="preserve">Copy @list and return an identical new list.
reference count of one, which should
be freed with pango_attr_list_unref().
Returns %NULL if @list was %NULL.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttrList, with a</doc>
<type name="AttrList" c:type="PangoAttrList*"/>
</return-value>
</method>
<method name="insert" c:identifier="pango_attr_list_insert">
<doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
be inserted after all other attributes with a matching</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="attr" transfer-ownership="none">
<doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</parameter>
</parameters>
</method>
<method name="insert_before"
c:identifier="pango_attr_list_insert_before">
<doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
be inserted before all other attributes with a matching</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="attr" transfer-ownership="none">
<doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</parameter>
</parameters>
</method>
<method name="change" c:identifier="pango_attr_list_change">
<doc xml:whitespace="preserve">Insert the given attribute into the #PangoAttrList. It will
replace any attributes of the same type on that segment
and be merged with any adjoining attributes that are identical.
This function is slower than pango_attr_list_insert() for
creating a attribute list in order (potentially much slower
for large lists). However, pango_attr_list_insert() is not
suitable for continually changing a set of attributes
since it never removes or combines existing attributes.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="attr" transfer-ownership="none">
<doc xml:whitespace="preserve">the attribute to insert. Ownership of this value is assumed by the list.</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</parameter>
</parameters>
</method>
<method name="splice" c:identifier="pango_attr_list_splice">
<doc xml:whitespace="preserve">This function opens up a hole in @list, fills it in with attributes from
the left, and then merges @other on top of the hole.
This operation is equivalent to stretching every attribute
that applies at position @pos in @list by an amount @len,
and then calling pango_attr_list_change() with a copy
of each attribute in @other in sequence (offset in position by @pos).
This operation proves useful for, for instance, inserting
a pre-edit string in the middle of an edit buffer.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="other" transfer-ownership="none">
<doc xml:whitespace="preserve">another #PangoAttrList</doc>
<type name="AttrList" c:type="PangoAttrList*"/>
</parameter>
<parameter name="pos" transfer-ownership="none">
<doc xml:whitespace="preserve">the position in @list at which to insert @other</doc>
<type name="int" c:type="gint"/>
</parameter>
<parameter name="len" transfer-ownership="none">
<doc xml:whitespace="preserve">the length of the spliced segment. (Note that this must be specified since the attributes in @other may only be present at some subsection of this range)</doc>
<type name="int" c:type="gint"/>
</parameter>
</parameters>
</method>
<method name="filter"
c:identifier="pango_attr_list_filter"
version="1.2">
<doc xml:whitespace="preserve">Given a #PangoAttrList and callback function, removes any elements
of @list for which @func returns %TRUE and inserts them into
a new list.
no attributes of the given types were found.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the new #PangoAttrList or %NULL if</doc>
<type name="AttrList" c:type="PangoAttrList*"/>
</return-value>
<parameters>
<parameter name="func"
transfer-ownership="none"
scope="call"
closure="2">
<doc xml:whitespace="preserve">callback function; returns %TRUE if an attribute should be filtered out.</doc>
<type name="AttrFilterFunc" c:type="PangoAttrFilterFunc"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">Data to be passed to @func</doc>
<type name="any" c:type="gpointer"/>
</parameter>
</parameters>
</method>
<method name="get_iterator" c:identifier="pango_attr_list_get_iterator">
<doc xml:whitespace="preserve">Create a iterator initialized to the beginning of the list.
be freed with pango_attr_iterator_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttrIterator, which should</doc>
<type name="AttrIterator" c:type="PangoAttrIterator*"/>
</return-value>
</method>
</record>
<record name="AttrShape" c:type="PangoAttrShape">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="ink_rect" writable="1">
<type name="Rectangle" c:type="PangoRectangle"/>
</field>
<field name="logical_rect" writable="1">
<type name="Rectangle" c:type="PangoRectangle"/>
</field>
<field name="data" writable="1">
<type name="any" c:type="gpointer"/>
</field>
<field name="copy_func" writable="1">
<type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
</field>
<field name="destroy_func" writable="1">
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</field>
<constructor name="new" c:identifier="pango_attr_shape_new">
<doc xml:whitespace="preserve">Create a new shape attribute. A shape is used to impose a
particular ink and logical rectangle on the result of shaping a
particular glyph. This might be used, for instance, for
embedding a picture or a widget inside a #PangoLayout.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrShape" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="ink_rect" transfer-ownership="none">
<doc xml:whitespace="preserve">ink rectangle to assign to each character</doc>
<type name="Rectangle" c:type="PangoRectangle*"/>
</parameter>
<parameter name="logical_rect" transfer-ownership="none">
<doc xml:whitespace="preserve">logical rectangle to assign to each character</doc>
<type name="Rectangle" c:type="PangoRectangle*"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_with_data"
c:identifier="pango_attr_shape_new_with_data"
version="1.8">
<doc xml:whitespace="preserve">Like pango_attr_shape_new(), but a user data pointer is also
provided; this pointer can be accessed when later
rendering the glyph.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrShape" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="ink_rect" transfer-ownership="none">
<doc xml:whitespace="preserve">ink rectangle to assign to each character</doc>
<type name="Rectangle" c:type="PangoRectangle*"/>
</parameter>
<parameter name="logical_rect" transfer-ownership="none">
<doc xml:whitespace="preserve">logical rectangle to assign to each character</doc>
<type name="Rectangle" c:type="PangoRectangle*"/>
</parameter>
<parameter name="data" transfer-ownership="none">
<doc xml:whitespace="preserve">user data pointer</doc>
<type name="any" c:type="gpointer"/>
</parameter>
<parameter name="copy_func"
transfer-ownership="none"
scope="call"
destroy="4">
<doc xml:whitespace="preserve">function to copy @data when the attribute is copied. If %NULL, @data is simply copied as a pointer.</doc>
<type name="AttrDataCopyFunc" c:type="PangoAttrDataCopyFunc"/>
</parameter>
<parameter name="destroy_func"
transfer-ownership="none"
scope="call">
<doc xml:whitespace="preserve">function to free @data when the attribute is freed, or %NULL</doc>
<type name="GLib.DestroyNotify" c:type="GDestroyNotify"/>
</parameter>
</parameters>
</constructor>
</record>
<record name="AttrSize" c:type="PangoAttrSize">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="size" writable="1">
<type name="int" c:type="int"/>
</field>
<field name="absolute" writable="1" bits="1">
<type name="uint" c:type="guint"/>
</field>
<constructor name="new" c:identifier="pango_attr_size_new">
<doc xml:whitespace="preserve">Create a new font-size attribute in fractional points.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrSize" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the font size, in %PANGO_SCALE<!-- -->ths of a point.</doc>
<type name="int" c:type="int"/>
</parameter>
</parameters>
</constructor>
<constructor name="new_absolute"
c:identifier="pango_attr_size_new_absolute"
version="1.8">
<doc xml:whitespace="preserve">Create a new font-size attribute in device units.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="AttrSize" c:type="PangoAttribute*"/>
</return-value>
<parameters>
<parameter name="size" transfer-ownership="none">
<doc xml:whitespace="preserve">the font size, in %PANGO_SCALE<!-- -->ths of a device unit.</doc>
<type name="int" c:type="int"/>
</parameter>
</parameters>
</constructor>
</record>
<record name="AttrString" c:type="PangoAttrString">
<field name="attr" writable="1">
<type name="Attribute" c:type="PangoAttribute"/>
</field>
<field name="value" writable="1">
<type name="utf8" c:type="char*"/>
</field>
</record>
<enumeration name="AttrType"
glib:type-name="PangoAttrType"
glib:get-type="pango_attr_type_get_type"
c:type="PangoAttrType">
<member name="invalid"
value="0"
c:identifier="PANGO_ATTR_INVALID"
glib:nick="invalid"/>
<member name="language"
value="1"
c:identifier="PANGO_ATTR_LANGUAGE"
glib:nick="language"/>
<member name="family"
value="2"
c:identifier="PANGO_ATTR_FAMILY"
glib:nick="family"/>
<member name="style"
value="3"
c:identifier="PANGO_ATTR_STYLE"
glib:nick="style"/>
<member name="weight"
value="4"
c:identifier="PANGO_ATTR_WEIGHT"
glib:nick="weight"/>
<member name="variant"
value="5"
c:identifier="PANGO_ATTR_VARIANT"
glib:nick="variant"/>
<member name="stretch"
value="6"
c:identifier="PANGO_ATTR_STRETCH"
glib:nick="stretch"/>
<member name="size"
value="7"
c:identifier="PANGO_ATTR_SIZE"
glib:nick="size"/>
<member name="font_desc"
value="8"
c:identifier="PANGO_ATTR_FONT_DESC"
glib:nick="font-desc"/>
<member name="foreground"
value="9"
c:identifier="PANGO_ATTR_FOREGROUND"
glib:nick="foreground"/>
<member name="background"
value="10"
c:identifier="PANGO_ATTR_BACKGROUND"
glib:nick="background"/>
<member name="underline"
value="11"
c:identifier="PANGO_ATTR_UNDERLINE"
glib:nick="underline"/>
<member name="strikethrough"
value="12"
c:identifier="PANGO_ATTR_STRIKETHROUGH"
glib:nick="strikethrough"/>
<member name="rise"
value="13"
c:identifier="PANGO_ATTR_RISE"
glib:nick="rise"/>
<member name="shape"
value="14"
c:identifier="PANGO_ATTR_SHAPE"
glib:nick="shape"/>
<member name="scale"
value="15"
c:identifier="PANGO_ATTR_SCALE"
glib:nick="scale"/>
<member name="fallback"
value="16"
c:identifier="PANGO_ATTR_FALLBACK"
glib:nick="fallback"/>
<member name="letter_spacing"
value="17"
c:identifier="PANGO_ATTR_LETTER_SPACING"
glib:nick="letter-spacing"/>
<member name="underline_color"
value="18"
c:identifier="PANGO_ATTR_UNDERLINE_COLOR"
glib:nick="underline-color"/>
<member name="strikethrough_color"
value="19"
c:identifier="PANGO_ATTR_STRIKETHROUGH_COLOR"
glib:nick="strikethrough-color"/>
<member name="absolute_size"
value="20"
c:identifier="PANGO_ATTR_ABSOLUTE_SIZE"
glib:nick="absolute-size"/>
<member name="gravity"
value="21"
c:identifier="PANGO_ATTR_GRAVITY"
glib:nick="gravity"/>
<member name="gravity_hint"
value="22"
c:identifier="PANGO_ATTR_GRAVITY_HINT"
glib:nick="gravity-hint"/>
</enumeration>
<record name="Attribute" c:type="PangoAttribute">
<field name="klass" writable="1">
<type name="AttrClass" c:type="PangoAttrClass*"/>
</field>
<field name="start_index" writable="1">
<type name="uint" c:type="guint"/>
</field>
<field name="end_index" writable="1">
<type name="uint" c:type="guint"/>
</field>
<method name="init" c:identifier="pango_attribute_init" version="1.20">
<doc xml:whitespace="preserve">Initializes @attr's klass to @klass,
it's start_index to %PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING
and end_index to %PANGO_ATTR_INDEX_TO_TEXT_END
such that the attribute applies
to the entire text by default.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="klass" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoAttributeClass</doc>
<type name="AttrClass" c:type="PangoAttrClass*"/>
</parameter>
</parameters>
</method>
<method name="copy" c:identifier="pango_attribute_copy">
<doc xml:whitespace="preserve">Make a copy of an attribute.
freed with pango_attribute_destroy().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoAttribute, which should be</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</return-value>
</method>
<method name="destroy" c:identifier="pango_attribute_destroy">
<doc xml:whitespace="preserve">Destroy a #PangoAttribute and free all associated memory.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="equal" c:identifier="pango_attribute_equal">
<doc xml:whitespace="preserve">Compare two attributes for equality. This compares only the
actual value of the two attributes and not the ranges that the
attributes apply to.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if the two attributes have the same value.</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="attr2" transfer-ownership="none">
<doc xml:whitespace="preserve">another #PangoAttribute</doc>
<type name="Attribute" c:type="PangoAttribute*"/>
</parameter>
</parameters>
</method>
</record>
<enumeration name="BidiType"
version="1.22"
glib:type-name="PangoBidiType"
glib:get-type="pango_bidi_type_get_type"
c:type="PangoBidiType">
<doc xml:whitespace="preserve">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>.</doc>
<member name="l"
value="0"
c:identifier="PANGO_BIDI_TYPE_L"
glib:nick="l"/>
<member name="lre"
value="1"
c:identifier="PANGO_BIDI_TYPE_LRE"
glib:nick="lre"/>
<member name="lro"
value="2"
c:identifier="PANGO_BIDI_TYPE_LRO"
glib:nick="lro"/>
<member name="r"
value="3"
c:identifier="PANGO_BIDI_TYPE_R"
glib:nick="r"/>
<member name="al"
value="4"
c:identifier="PANGO_BIDI_TYPE_AL"
glib:nick="al"/>
<member name="rle"
value="5"
c:identifier="PANGO_BIDI_TYPE_RLE"
glib:nick="rle"/>
<member name="rlo"
value="6"
c:identifier="PANGO_BIDI_TYPE_RLO"
glib:nick="rlo"/>
<member name="pdf"
value="7"
c:identifier="PANGO_BIDI_TYPE_PDF"
glib:nick="pdf"/>
<member name="en"
value="8"
c:identifier="PANGO_BIDI_TYPE_EN"
glib:nick="en"/>
<member name="es"
value="9"
c:identifier="PANGO_BIDI_TYPE_ES"
glib:nick="es"/>
<member name="et"
value="10"
c:identifier="PANGO_BIDI_TYPE_ET"
glib:nick="et"/>
<member name="an"
value="11"
c:identifier="PANGO_BIDI_TYPE_AN"
glib:nick="an"/>
<member name="cs"
value="12"
c:identifier="PANGO_BIDI_TYPE_CS"
glib:nick="cs"/>
<member name="nsm"
value="13"
c:identifier="PANGO_BIDI_TYPE_NSM"
glib:nick="nsm"/>
<member name="bn"
value="14"
c:identifier="PANGO_BIDI_TYPE_BN"
glib:nick="bn"/>
<member name="b"
value="15"
c:identifier="PANGO_BIDI_TYPE_B"
glib:nick="b"/>
<member name="s"
value="16"
c:identifier="PANGO_BIDI_TYPE_S"
glib:nick="s"/>
<member name="ws"
value="17"
c:identifier="PANGO_BIDI_TYPE_WS"
glib:nick="ws"/>
<member name="on"
value="18"
c:identifier="PANGO_BIDI_TYPE_ON"
glib:nick="on"/>
</enumeration>
<record name="Color"
c:type="PangoColor"
glib:type-name="PangoColor"
glib:get-type="pango_color_get_type">
<field name="red" writable="1">
<type name="uint16" c:type="guint16"/>
</field>
<field name="green" writable="1">
<type name="uint16" c:type="guint16"/>
</field>
<field name="blue" writable="1">
<type name="uint16" c:type="guint16"/>
</field>
<method name="copy" c:identifier="pango_color_copy">
<doc xml:whitespace="preserve">Creates a copy of @src, which should be freed with
pango_color_free(). Primarily used by language bindings,
not that useful otherwise (since colors can just be copied
by assignment in C).
be freed with pango_color_free(), or %NULL
if @src was %NULL.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoColor, which should</doc>
<type name="Color" c:type="PangoColor*"/>
</return-value>
</method>
<method name="free" c:identifier="pango_color_free">
<doc xml:whitespace="preserve">Frees a color allocated by pango_color_copy().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</method>
<method name="parse" c:identifier="pango_color_parse">
<doc xml:whitespace="preserve">Fill in the fields of a color from a string specification. The
string can either one of a large set of standard names. (Taken
from the X11 <filename>rgb.txt</filename> file), or it can be a hex value in the
form '&num;rgb' '&num;rrggbb' '&num;rrrgggbbb' or '&num;rrrrggggbbbb' where
'r', 'g' and 'b' are hex digits of the red, green, and blue
components of the color, respectively. (White in the four
forms is '&num;fff' '&num;ffffff' '&num;fffffffff' and '&num;ffffffffffff')
otherwise false.</doc>
<return-value transfer-ownership="none">
<doc xml:whitespace="preserve">%TRUE if parsing of the specifier succeeded,</doc>
<type name="boolean" c:type="gboolean"/>
</return-value>
<parameters>
<parameter name="spec" transfer-ownership="none">
<doc xml:whitespace="preserve">a string specifying the new color</doc>
<type name="utf8" c:type="char*"/>
</parameter>
</parameters>
</method>
<method name="to_string"
c:identifier="pango_color_to_string"
version="1.16">
<doc xml:whitespace="preserve">Returns a textual specification of @color in the hexadecimal form
<literal>&num;rrrrggggbbbb</literal>, where <literal>r</literal>,
<literal>g</literal> and <literal>b</literal> are hex digits representing
the red, green, and blue components respectively.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a newly-allocated text string that must be freed with g_free().</doc>
<type name="utf8" c:type="gchar*"/>
</return-value>
</method>
</record>
<class name="Context"
c:type="PangoContext"
parent="GObject.Object"
glib:type-name="PangoContext"
glib:get-type="pango_context_get_type"
glib:type-struct="ContextClass">
<constructor name="new" c:identifier="pango_context_new">
<doc xml:whitespace="preserve">Creates a new #PangoContext initialized to default values.
This function is not particularly useful as it should always
be followed by a pango_context_set_font_map() call, and the
function pango_font_map_create_context() does these two steps
together and hence users are recommended to use that.
If you are using Pango as part of a higher-level system,
that system may have it's own way of create a #PangoContext.
For instance, the GTK+ toolkit has, among others,
gdk_pango_context_get_for_screen(), and
gtk_widget_get_pango_context(). Use those instead.
be freed with g_object_unref().</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the newly allocated #PangoContext, which should</doc>
<type name="Context" c:type="PangoContext*"/>
</return-value>
</constructor>
<method name="set_font_map" c:identifier="pango_context_set_font_map">
<doc xml:whitespace="preserve">Sets the font map to be searched when fonts are looked-up in this context.
This is only for internal use by Pango backends, a #PangoContext obtained
via one of the recommended methods should already have a suitable font map.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="font_map" transfer-ownership="none">
<doc xml:whitespace="preserve">the #PangoFontMap to set.</doc>
<type name="FontMap" c:type="PangoFontMap*"/>
</parameter>
</parameters>
</method>
<method name="get_font_map"
c:identifier="pango_context_get_font_map"
version="1.6">
<doc xml:whitespace="preserve">Gets the #PangoFontmap used to look up fonts for this context.
is owned by Pango and should not be unreferenced.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the font map for the #PangoContext. This value</doc>
<type name="FontMap" c:type="PangoFontMap*"/>
</return-value>
</method>
<method name="list_families" c:identifier="pango_context_list_families">
<doc xml:whitespace="preserve">List all families for a context.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="families" transfer-ownership="none">
<doc xml:whitespace="preserve">location to store a pointer to an array of #PangoFontFamily *. This array should be freed with g_free().</doc>
<type name="FontFamily" c:type="PangoFontFamily***"/>
</parameter>
<parameter name="n_families"
direction="out"
caller-allocates="0"
transfer-ownership="full">
<doc xml:whitespace="preserve">location to store the number of elements in @descs</doc>
<type name="int" c:type="int*"/>
</parameter>
</parameters>
</method>
<method name="load_font" c:identifier="pango_context_load_font">
<doc xml:whitespace="preserve">Loads the font in one of the fontmaps in the context
that is the closest match for @desc.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the font loaded, or %NULL if no font matched.</doc>
<type name="Font" c:type="PangoFont*"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoFontDescription describing the font to load</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>
</parameters>
</method>
<method name="load_fontset" c:identifier="pango_context_load_fontset">
<doc xml:whitespace="preserve">Load a set of fonts in the context that can be used to render
a font matching @desc.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">the fontset, or %NULL if no font matched.</doc>
<type name="Fontset" c:type="PangoFontset*"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoFontDescription describing the fonts to load</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoLanguage the fonts will be used for</doc>
<type name="Language" c:type="PangoLanguage*"/>
</parameter>
</parameters>
</method>
<method name="get_metrics" c:identifier="pango_context_get_metrics">
<doc xml:whitespace="preserve">Get overall metric information for a particular font
description. Since the metrics may be substantially different for
different scripts, a language tag can be provided to indicate that
the metrics should be retrieved that correspond to the script(s)
used by that language.
The #PangoFontDescription is interpreted in the same way as
by pango_itemize(), and the family name may be a comma separated
list of figures. If characters from multiple of these families
would be used to render the string, then the returned fonts would
be a composite of the metrics for the fonts loaded for the
individual families.
when finished using the object.</doc>
<return-value transfer-ownership="full">
<doc xml:whitespace="preserve">a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()</doc>
<type name="FontMetrics" c:type="PangoFontMetrics*"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">a #PangoFontDescription structure. %NULL means that the font description from the context will be used.</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>
<parameter name="language" transfer-ownership="none">
<doc xml:whitespace="preserve">language tag used to determine which script to get the metrics for. %NULL means that the language tag from the context will be used. If no language tag is set on the context, metrics for the default language (as determined by pango_language_get_default()) will be returned.</doc>
<type name="Language" c:type="PangoLanguage*"/>
</parameter>
</parameters>
</method>
<method name="set_font_description"
c:identifier="pango_context_set_font_description">
<doc xml:whitespace="preserve">Set the default font description for the context</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="desc" transfer-ownership="none">
<doc xml:whitespace="preserve">the new pango font description</doc>
<type name="FontDescription" c:type="PangoFontDescription*"/>
</parameter>