~ubuntu-branches/ubuntu/trusty/guile-gnome-platform/trusty-proposed

« back to all changes in this revision

Viewing changes to pango/doc/pango/defuns-text-attributes.xml.texi

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Rottmann
  • Date: 2009-03-01 22:51:48 UTC
  • mfrom: (1.1.2 upstream) (3.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090301225148-5cubt342wiv8jpmf
Tags: 2.16.1-1
* New upstream release.
* Upstream bumped API, hence all package names changed from
  guile-gnome0-* to guile-gnome2-*.
* Standards-Version 3.8.0 (no changes).
* Remove unused guile-gnome2-cairo.install file.
* Added ${misc:Depends} to all packages.
* Do not build-depend on a -1 revision of the g-wrap packages.
* Add a proper "Copyright YEARS AUTHORS" line to debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
@c %start of fragment
3
3
 
 
4
@deftp Class <pango-attribute>
 
5
Opaque pointer.
 
6
 
 
7
This class defines no direct slots.
 
8
 
 
9
@end deftp
 
10
 
4
11
@deftp Class <pango-color>
 
12
Derives from @code{<gboxed>}.
 
13
 
 
14
This class defines no direct slots.
 
15
 
5
16
@end deftp
6
17
 
7
18
@deftp Class <pango-language>
 
19
Derives from @code{<gboxed>}.
 
20
 
 
21
This class defines no direct slots.
 
22
 
8
23
@end deftp
9
24
 
10
25
@deftp Class <pango-attr-list>
11
 
@end deftp
12
 
 
13
 
@deffn Function pango-parse-markup  (markup_text@tie{}@code{mchars}) (length@tie{}@code{int}) (accel_marker@tie{}@code{unsigned-int32}) (attr_list@tie{}@code{<pango-attr-list**>}) (text@tie{}@code{<char**>}) @result{}@tie{} (ret@tie{}@code{bool}) (accel_char@tie{}@code{unsigned-int32})
14
 
Parses marked-up text (see markup format) to create a plain-text string and an
15
 
attribute list.
16
 
 
17
 
If @var{accel-marker} is nonzero, the given character will mark the character
18
 
following it as an accelerator. For example, @var{accel-marker} might be an
19
 
ampersand or underscore. All characters marked as an accelerator will receive a
20
 
@samp{PANGO_UNDERLINE_LOW} attribute, and the first character so marked will be
21
 
returned in @var{accel-char}. Two @var{accel-marker} characters following each
22
 
other produce a single literal @var{accel-marker} character.
23
 
 
24
 
@table @var
25
 
@item markup-text
26
 
markup to parse (see markup format)
27
 
 
28
 
@item length
29
 
length of @var{markup-text}, or -1 if nul-terminated
30
 
 
31
 
@item accel-marker
32
 
character that precedes an accelerator, or 0 for none
33
 
 
34
 
@item attr-list
35
 
address of return location for a @code{<pango-attr-list>}, or @samp{@code{#f}}
36
 
 
37
 
@item text
38
 
address of return location for text with tags stripped, or @samp{@code{#f}}
39
 
 
40
 
@item accel-char
41
 
address of return location for accelerator char, or @samp{@code{#f}}
42
 
 
43
 
@item error
44
 
address of return location for errors, or @samp{@code{#f}}
45
 
 
46
 
@item ret
47
 
@samp{@code{#f}} if @var{error} is set, otherwise @samp{@code{#t}}
48
 
 
49
 
@end table
50
 
 
51
 
@end deffn
 
26
Derives from @code{<gboxed>}.
 
27
 
 
28
This class defines no direct slots.
 
29
 
 
30
@end deftp
 
31
 
 
32
@deftp Class <pango-attr-iterator>
 
33
Opaque pointer.
 
34
 
 
35
This class defines no direct slots.
 
36
 
 
37
@end deftp
52
38
 
53
39
@deffn Function pango-attr-type-register  (name@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<pango-attr-type>})
54
40
Allocate a new attribute type ID.
64
50
 
65
51
@end deffn
66
52
 
67
 
@deffn Function pango-attribute-equal  (self@tie{}@code{<pango-attribute*>}) (attr2@tie{}@code{<pango-attribute*>}) @result{}@tie{} (ret@tie{}@code{bool})
 
53
@deffn Function pango-attribute-copy  (self@tie{}@code{<pango-attribute>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
 
54
Make a copy of an attribute.
 
55
 
 
56
@table @var
 
57
@item attr
 
58
a @code{<pango-attribute>}
 
59
 
 
60
@item ret
 
61
the newly allocated @code{<pango-attribute>}, which should be freed with
 
62
@code{pango-attribute-destroy}.
 
63
 
 
64
@end table
 
65
 
 
66
@end deffn
 
67
 
 
68
@deffn Function pango-attribute-equal  (self@tie{}@code{<pango-attribute>}) (attr2@tie{}@code{<pango-attribute>}) @result{}@tie{} (ret@tie{}@code{bool})
68
69
Compare two attributes for equality. This compares only the actual value of the
69
70
two attributes and not the ranges that the attributes apply to.
70
71
 
82
83
 
83
84
@end deffn
84
85
 
85
 
@deffn Function pango-attribute-destroy  (self@tie{}@code{<pango-attribute*>})
86
 
Destroy a @code{<pango-attribute>} and free all associated memory.
87
 
 
88
 
@table @var
89
 
@item attr
90
 
a @code{<pango-attribute>}.
91
 
 
92
 
@end table
93
 
 
94
 
@end deffn
95
 
 
96
 
@deffn Function pango-attr-language-new  (language@tie{}@code{<pango-language>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
86
@deffn Function pango-attr-language-new  (language@tie{}@code{<pango-language>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
97
87
Create a new language tag attribute.
98
88
 
99
89
@table @var
108
98
 
109
99
@end deffn
110
100
 
111
 
@deffn Function pango-attr-family-new  (family@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
101
@deffn Function pango-attr-family-new  (family@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
112
102
Create a new font family attribute.
113
103
 
114
104
@table @var
123
113
 
124
114
@end deffn
125
115
 
126
 
@deffn Function pango-attr-style-new  (style@tie{}@code{<pango-style>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
116
@deffn Function pango-attr-style-new  (style@tie{}@code{<pango-style>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
127
117
Create a new font slant style attribute.
128
118
 
129
119
@table @var
138
128
 
139
129
@end deffn
140
130
 
141
 
@deffn Function pango-attr-variant-new  (variant@tie{}@code{<pango-variant>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
131
@deffn Function pango-attr-variant-new  (variant@tie{}@code{<pango-variant>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
142
132
Create a new font variant attribute (normal or small caps)
143
133
 
144
134
@table @var
153
143
 
154
144
@end deffn
155
145
 
156
 
@deffn Function pango-attr-stretch-new  (stretch@tie{}@code{<pango-stretch>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
146
@deffn Function pango-attr-stretch-new  (stretch@tie{}@code{<pango-stretch>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
157
147
Create a new font stretch attribute
158
148
 
159
149
@table @var
168
158
 
169
159
@end deffn
170
160
 
171
 
@deffn Function pango-attr-weight-new  (weight@tie{}@code{<pango-weight>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
161
@deffn Function pango-attr-weight-new  (weight@tie{}@code{<pango-weight>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
172
162
Create a new font weight attribute.
173
163
 
174
164
@table @var
183
173
 
184
174
@end deffn
185
175
 
186
 
@deffn Function pango-attr-size-new  (size@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
176
@deffn Function pango-attr-size-new  (size@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
187
177
Create a new font-size attribute in fractional points.
188
178
 
189
179
@table @var
198
188
 
199
189
@end deffn
200
190
 
201
 
@deffn Function pango-attr-size-new-absolute  (size@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
191
@deffn Function pango-attr-size-new-absolute  (size@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
202
192
Create a new font-size attribute in device units.
203
193
 
204
194
@table @var
215
205
 
216
206
@end deffn
217
207
 
218
 
@deffn Function pango-attr-font-desc-new  (desc@tie{}@code{<pango-font-description>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
208
@deffn Function pango-attr-font-desc-new  (desc@tie{}@code{<pango-font-description>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
219
209
Create a new font description attribute. This attribute allows setting family,
220
210
style, weight, variant, stretch, and size simultaneously.
221
211
 
231
221
 
232
222
@end deffn
233
223
 
234
 
@deffn Function pango-attr-foreground-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
224
@deffn Function pango-attr-foreground-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
235
225
Create a new foreground color attribute.
236
226
 
237
227
@table @var
252
242
 
253
243
@end deffn
254
244
 
255
 
@deffn Function pango-attr-background-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
245
@deffn Function pango-attr-background-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
256
246
Create a new background color attribute.
257
247
 
258
248
@table @var
273
263
 
274
264
@end deffn
275
265
 
276
 
@deffn Function pango-attr-strikethrough-new  (strikethrough@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
266
@deffn Function pango-attr-strikethrough-new  (strikethrough@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
277
267
Create a new strike-through attribute.
278
268
 
279
269
@table @var
288
278
 
289
279
@end deffn
290
280
 
291
 
@deffn Function pango-attr-strikethrough-color-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
281
@deffn Function pango-attr-strikethrough-color-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
292
282
Create a new strikethrough color attribute. This attribute modifies the color of
293
283
strikethrough lines. If not set, strikethrough lines will use the foreground
294
284
color.
313
303
 
314
304
@end deffn
315
305
 
316
 
@deffn Function pango-attr-underline-new  (underline@tie{}@code{<pango-underline>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
306
@deffn Function pango-attr-underline-new  (underline@tie{}@code{<pango-underline>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
317
307
Create a new underline-style attribute.
318
308
 
319
309
@table @var
328
318
 
329
319
@end deffn
330
320
 
331
 
@deffn Function pango-attr-underline-color-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
321
@deffn Function pango-attr-underline-color-new  (red@tie{}@code{unsigned-int16}) (green@tie{}@code{unsigned-int16}) (blue@tie{}@code{unsigned-int16}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
332
322
Create a new underline color attribute. This attribute modifies the color of
333
323
underlines. If not set, underlines will use the foreground color.
334
324
 
352
342
 
353
343
@end deffn
354
344
 
355
 
@deffn Function pango-attr-shape-new  (ink_rect@tie{}@code{<pango-rectangle*>}) (logical_rect@tie{}@code{<pango-rectangle*>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
345
@deffn Function pango-attr-shape-new  (ink_rect@tie{}@code{<pango-rectangle>}) (logical_rect@tie{}@code{<pango-rectangle>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
356
346
Create a new shape attribute. A shape is used to impose a particular ink and
357
347
logical rectangle on the result of shaping a particular glyph. This might be
358
348
used, for instance, for embedding a picture or a widget inside a
373
363
 
374
364
@end deffn
375
365
 
376
 
@deffn Function pango-attr-shape-new-with-data  (ink_rect@tie{}@code{<pango-rectangle*>}) (logical_rect@tie{}@code{<pango-rectangle*>}) (data@tie{}@code{<gpointer>}) (copy_func@tie{}@code{<pango-attr-data-copy-func>}) (destroy_func@tie{}@code{<g-destroy-notify>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
377
 
Like @code{pango-attr-shape-new}, but a user data pointer is also provided; this
378
 
pointer can be accessed when later rendering the glyph.
379
 
 
380
 
@table @var
381
 
@item ink-rect
382
 
ink rectangle to assign to each character
383
 
 
384
 
@item logical-rect
385
 
logical rectangle to assign to each character
386
 
 
387
 
@item data
388
 
user data pointer
389
 
 
390
 
@item copy-func
391
 
function to copy @var{data} when the attribute is copied. If @samp{@code{#f}},
392
 
@var{data} is simply copied as a pointer.
393
 
 
394
 
@item destroy-func
395
 
function to free @var{data} when the attribute is freed, or @samp{@code{#f}}
396
 
 
397
 
@item ret
398
 
the newly allocated @code{<pango-attribute>}, which should be freed with
399
 
@code{pango-attribute-destroy}.
400
 
 
401
 
@end table
402
 
 
403
 
Since 1.8
404
 
 
405
 
@end deffn
406
 
 
407
 
@deffn Function pango-attr-scale-new  (scale_factor@tie{}@code{double}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
366
@deffn Function pango-attr-scale-new  (scale_factor@tie{}@code{double}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
408
367
Create a new font size scale attribute. The base font for the affected text will
409
368
have its size multiplied by @var{scale-factor}.
410
369
 
420
379
 
421
380
@end deffn
422
381
 
423
 
@deffn Function pango-attr-fallback-new  (enable_fallback@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
382
@deffn Function pango-attr-fallback-new  (enable_fallback@tie{}@code{bool}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
424
383
Create a new font fallback attribute.
425
384
 
426
385
If fallback is disabled, characters will only be used from the closest matching
442
401
 
443
402
@end deffn
444
403
 
445
 
@deffn Function pango-attr-rise-new  (rise@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
404
@deffn Function pango-attr-rise-new  (rise@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
446
405
Create a new baseline displacement attribute.
447
406
 
448
407
@table @var
458
417
 
459
418
@end deffn
460
419
 
461
 
@deffn Function pango-attr-letter-spacing-new  (letter_spacing@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
420
@deffn Function pango-attr-letter-spacing-new  (letter_spacing@tie{}@code{int}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
462
421
Create a new letter-spacing attribute.
463
422
 
464
423
@table @var
498
457
 
499
458
@end deffn
500
459
 
 
460
@deffn Function pango-color-copy  (self@tie{}@code{<pango-color>}) @result{}@tie{} (ret@tie{}@code{<pango-color>})
 
461
Creates a copy of @var{src}, which should be freed with @code{pango-color-free}.
 
462
Primarily used by language bindings, not that useful otherwise (since colors can
 
463
just be copied by assignment in C).
 
464
 
 
465
@table @var
 
466
@item src
 
467
color to copy
 
468
 
 
469
@item ret
 
470
the newly allocated @code{<pango-color>}, which should be freed with
 
471
@code{pango-color-free}.
 
472
 
 
473
@end table
 
474
 
 
475
@end deffn
 
476
 
501
477
@deffn Function pango-language-from-string  (language@tie{}@code{mchars}) @result{}@tie{} (ret@tie{}@code{<pango-language>})
502
478
Take a RFC-3066 format language tag as a string and convert it to a
503
479
@code{<pango-language>} pointer that can be efficiently copied (copy the
553
529
 
554
530
@end deffn
555
531
 
556
 
@deffn Function pango-attr-list-insert  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute*>})
 
532
@deffn Function pango-attr-list-copy  (self@tie{}@code{<pango-attr-list>}) @result{}@tie{} (ret@tie{}@code{<pango-attr-list>})
 
533
Copy @var{list} and return an identical new list.
 
534
 
 
535
@table @var
 
536
@item list
 
537
a @code{<pango-attr-list>}
 
538
 
 
539
@item ret
 
540
the newly allocated @code{<pango-attr-list>}, with a reference count of one,
 
541
which should be freed with @code{pango-attr-list-unref}.
 
542
 
 
543
@end table
 
544
 
 
545
@end deffn
 
546
 
 
547
@deffn Function pango-attr-list-insert  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute>})
557
548
Insert the given attribute into the @code{<pango-attr-list>}. It will be
558
549
inserted after all other attributes with a matching @var{start-index}.
559
550
 
568
559
 
569
560
@end deffn
570
561
 
571
 
@deffn Function pango-attr-list-insert-before  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute*>})
 
562
@deffn Function pango-attr-list-insert-before  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute>})
572
563
Insert the given attribute into the @code{<pango-attr-list>}. It will be
573
564
inserted before all other attributes with a matching @var{start-index}.
574
565
 
583
574
 
584
575
@end deffn
585
576
 
586
 
@deffn Function pango-attr-list-change  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute*>})
 
577
@deffn Function pango-attr-list-change  (self@tie{}@code{<pango-attr-list>}) (attr@tie{}@code{<pango-attribute>})
587
578
Insert the given attribute into the @code{<pango-attr-list>}. It will replace
588
579
any attributes of the same type on that segment and be merged with any adjoining
589
580
attributes that are identical.
634
625
 
635
626
@end deffn
636
627
 
637
 
@deffn Function pango-attr-list-filter  (self@tie{}@code{<pango-attr-list>}) (func@tie{}@code{<pango-attr-filter-func>}) (data@tie{}@code{<gpointer>}) @result{}@tie{} (ret@tie{}@code{<pango-attr-list>})
638
 
Given a @code{<pango-attr-list>} and callback function, removes any elements of
639
 
@var{list} for which @var{func} returns @samp{@code{#t}} and inserts them into a
640
 
new list.
641
 
 
642
 
@table @var
643
 
@item list
644
 
a @code{<pango-attr-list>}
645
 
 
646
 
@item func
647
 
callback function; returns @samp{@code{#t}} if an attribute should be filtered
648
 
out.
649
 
 
650
 
@item data
651
 
Data to be passed to @var{func}
652
 
 
653
 
@item ret
654
 
the new @code{<pango-attr-list>} or @samp{@code{#f}} if no attributes of the
655
 
given types were found.
656
 
 
657
 
@end table
658
 
 
659
 
Since 1.2
660
 
 
661
 
@end deffn
662
 
 
663
 
@deffn Function pango-attr-list-get-iterator  (self@tie{}@code{<pango-attr-list>}) @result{}@tie{} (ret@tie{}@code{<pango-attr-iterator*>})
 
628
@deffn Function pango-attr-list-get-iterator  (self@tie{}@code{<pango-attr-list>}) @result{}@tie{} (ret@tie{}@code{<pango-attr-iterator>})
664
629
Create a iterator initialized to the beginning of the list. @var{list} must not
665
630
be modified until this iterator is freed.
666
631
 
676
641
 
677
642
@end deffn
678
643
 
679
 
@deffn Function pango-attr-iterator-next  (self@tie{}@code{<pango-attr-iterator*>}) @result{}@tie{} (ret@tie{}@code{bool})
 
644
@deffn Function pango-attr-iterator-copy  (self@tie{}@code{<pango-attr-iterator>}) @result{}@tie{} (ret@tie{}@code{<pango-attr-iterator>})
 
645
Copy a @code{<pango-attr-iterator>}
 
646
 
 
647
@table @var
 
648
@item iterator
 
649
a @code{<pango-attr-iterator>}.
 
650
 
 
651
@item ret
 
652
the newly allocated @code{<pango-attr-iterator>}, which should be freed with
 
653
@code{pango-attr-iterator-destroy}.
 
654
 
 
655
@end table
 
656
 
 
657
@end deffn
 
658
 
 
659
@deffn Function pango-attr-iterator-next  (self@tie{}@code{<pango-attr-iterator>}) @result{}@tie{} (ret@tie{}@code{bool})
680
660
Advance the iterator until the next change of style.
681
661
 
682
662
@table @var
691
671
 
692
672
@end deffn
693
673
 
694
 
@deffn Function pango-attr-iterator-range  (self@tie{}@code{<pango-attr-iterator*>}) @result{}@tie{} (start@tie{}@code{int}) (end@tie{}@code{int})
 
674
@deffn Function pango-attr-iterator-range  (self@tie{}@code{<pango-attr-iterator>}) @result{}@tie{} (start@tie{}@code{int}) (end@tie{}@code{int})
695
675
Get the range of the current segment. Note that the stored return values are
696
676
signed, not unsigned like the values in @code{<pango-attribute>}. To deal with
697
677
this API oversight, stored return values that wouldn't fit into a signed integer
711
691
 
712
692
@end deffn
713
693
 
714
 
@deffn Function pango-attr-iterator-get  (self@tie{}@code{<pango-attr-iterator*>}) (type@tie{}@code{<pango-attr-type>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute*>})
 
694
@deffn Function pango-attr-iterator-get  (self@tie{}@code{<pango-attr-iterator>}) (type@tie{}@code{<pango-attr-type>}) @result{}@tie{} (ret@tie{}@code{<pango-attribute>})
715
695
Find the current attribute of a particular type at the iterator location. When
716
696
multiple attributes of the same type overlap, the attribute whose range starts
717
697
closest to the current location is used.
731
711
 
732
712
@end deffn
733
713
 
734
 
@deffn Function pango-attr-iterator-get-font  (self@tie{}@code{<pango-attr-iterator*>}) (desc@tie{}@code{<pango-font-description>}) (language@tie{}@code{<pango-language**>}) (extra_attrs@tie{}@code{<gs-list**>})
735
 
Get the font and other attributes at the current iterator position.
736
 
 
737
 
@table @var
738
 
@item iterator
739
 
a @code{<pango-attr-iterator>}
740
 
 
741
 
@item desc
742
 
a @code{<pango-font-description>} to fill in with the current values. The family
743
 
name in this structure will be set using
744
 
@code{pango-font-description-set-family-static} using values from an attribute
745
 
in the @code{<pango-attr-list>} associated with the iterator, so if you plan to
746
 
keep it around, you must call: @samp{pango_font_description_set_family (desc,
747
 
pango_font_description_get_family (desc))}.
748
 
 
749
 
@item language
750
 
if non-@samp{@code{#f}}, location to store language tag for item, or
751
 
@samp{@code{#f}} if none is found.
752
 
 
753
 
@item extra-attrs
754
 
if non-@samp{@code{#f}}, location in which to store a list of non-font
755
 
attributes at the the current position; only the highest priority value of each
756
 
attribute will be added to this list. In order to free this value, you must call
757
 
@code{pango-attribute-destroy} on each member.
758
 
 
759
 
@end table
760
 
 
761
 
@end deffn
762
 
 
763
 
@deffn Function pango-attr-iterator-get-attrs  (self@tie{}@code{<pango-attr-iterator*>}) @result{}@tie{} (ret@tie{}@code{gslist-of})
 
714
@deffn Function pango-attr-iterator-get-attrs  (self@tie{}@code{<pango-attr-iterator>}) @result{}@tie{} (ret@tie{}@code{gslist-of})
764
715
Gets a list of all attributes at the current position of the iterator.
765
716
 
766
717
@table @var
778
729
 
779
730
@end deffn
780
731
 
781
 
@deffn Function pango-attr-iterator-destroy  (self@tie{}@code{<pango-attr-iterator*>})
782
 
Destroy a @code{<pango-attr-iterator>} and free all associated memory.
783
 
 
784
 
@table @var
785
 
@item iterator
786
 
a @code{<pango-attr-iterator>}.
787
 
 
788
 
@end table
789
 
 
790
 
@end deffn
791
 
 
792
732
 
793
733
@c %end of fragment