pango 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/pango/rbpangocairo.c +7 -1
- data/lib/1.9/pango.so +0 -0
- data/lib/2.0/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/include/harfbuzz/hb-common.h +7 -1
- data/vendor/local/include/harfbuzz/hb-ot-layout.h +0 -5
- data/vendor/local/include/harfbuzz/hb-ot-shape.h +54 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -8
- data/vendor/local/include/harfbuzz/hb-version.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/lib/girepository-1.0/PangoFT2-1.0.typelib +0 -0
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +2 -2
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +9 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +1 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +1 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +18 -31
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +18 -31
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +17 -25
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +25 -39
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +44 -78
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +41 -75
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +17 -20
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +33 -36
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +17 -20
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +21 -24
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +25 -28
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +13 -16
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +15 -18
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +13 -16
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +10 -13
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +23 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +19 -22
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +162 -26
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +51 -54
- data/vendor/local/share/gtk-doc/html/pango/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +25 -40
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +118 -169
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +15 -21
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +24 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +24 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +125 -240
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +46 -74
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +95 -189
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +137 -265
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +38 -66
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +20 -31
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +207 -143
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +47 -86
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +26 -43
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +106 -203
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +66 -122
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +29 -47
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +33 -57
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +49 -79
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +53 -90
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +34 -34
- data/vendor/local/share/gtk-doc/html/pango/pango.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/style.css +71 -16
- data/vendor/local/share/gtk-doc/html/pango/tools.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/pango/up.png +0 -0
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- metadata +8 -4
@@ -2,32 +2,29 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Text Attributes</title>
|
5
|
+
<title>Pango Reference Manual: Text Attributes</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Pango Reference Manual">
|
8
8
|
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
|
9
9
|
<link rel="prev" href="pango-Fonts.html" title="Fonts">
|
10
10
|
<link rel="next" href="pango-Tab-Stops.html" title="Tab Stops">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<td><a accesskey="u" href="pango.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
19
|
-
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
20
|
-
<th width="100%" align="center">Pango Reference Manual</th>
|
21
|
-
<td><a accesskey="n" href="pango-Tab-Stops.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
22
|
-
</tr>
|
23
|
-
<tr><td colspan="5" class="shortcuts">
|
24
|
-
<a href="#pango-Text-Attributes.synopsis" class="shortcut">Top</a>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left">
|
17
|
+
<a href="#" class="shortcut">Top</a>
|
25
18
|
|
|
26
19
|
<a href="#pango-Text-Attributes.description" class="shortcut">Description</a>
|
27
20
|
|
|
28
21
|
<a href="#pango-Text-Attributes.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
29
|
-
</td
|
30
|
-
|
22
|
+
</td>
|
23
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
24
|
+
<td><a accesskey="u" href="pango.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
25
|
+
<td><a accesskey="p" href="pango-Fonts.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
26
|
+
<td><a accesskey="n" href="pango-Tab-Stops.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
27
|
+
</tr></table>
|
31
28
|
<div class="refentry">
|
32
29
|
<a name="pango-Text-Attributes"></a><div class="titlepage"></div>
|
33
30
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -193,8 +190,7 @@ Attributed text is used in a number of places in Pango. It
|
|
193
190
|
is used as the input to the itemization process and also when
|
194
191
|
creating a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. The data types and functions in
|
195
192
|
this section are used to represent and manipulate sets
|
196
|
-
of attributes applied to a portion of text
|
197
|
-
</p>
|
193
|
+
of attributes applied to a portion of text.</p>
|
198
194
|
</div>
|
199
195
|
<div class="refsect1">
|
200
196
|
<a name="pango-Text-Attributes.details"></a><h2>Details</h2>
|
@@ -232,8 +228,7 @@ distinguishes between different types of attributes. Along with the
|
|
232
228
|
predefined values, it is possible to allocate additional values
|
233
229
|
for custom attributes using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>. The predefined
|
234
230
|
values are given below. The type of structure used to store the
|
235
|
-
attribute is listed in parentheses after the description
|
236
|
-
</p>
|
231
|
+
attribute is listed in parentheses after the description.</p>
|
237
232
|
<div class="variablelist"><table border="0" class="variablelist">
|
238
233
|
<colgroup>
|
239
234
|
<col align="left" valign="top">
|
@@ -378,8 +373,7 @@ attribute is listed in parentheses after the description.
|
|
378
373
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrClass" title="struct PangoAttrClass"><span class="type">PangoAttrClass</span></a> structure stores the type and operations for
|
379
374
|
a particular type of attribute. The functions in this structure should
|
380
375
|
not be called directly. Instead, one should use the wrapper functions
|
381
|
-
provided for <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a
|
382
|
-
</p>
|
376
|
+
provided for <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>.</p>
|
383
377
|
<div class="variablelist"><table border="0" class="variablelist">
|
384
378
|
<colgroup>
|
385
379
|
<col align="left" valign="top">
|
@@ -420,8 +414,7 @@ attributes. Particular types of attributes include this structure
|
|
420
414
|
as their initial portion. The common portion of the attribute holds
|
421
415
|
the range to which the value in the type-specific part of the attribute
|
422
416
|
applies and should be initialized using <a class="link" href="pango-Text-Attributes.html#pango-attribute-init" title="pango_attribute_init ()"><code class="function">pango_attribute_init()</code></a>.
|
423
|
-
By default an attribute will have an all-inclusive range of [0,<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#G-MAXUINT:CAPS"><code class="literal">G_MAXUINT</code></a>]
|
424
|
-
</p>
|
417
|
+
By default an attribute will have an all-inclusive range of [0,<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#G-MAXUINT:CAPS"><code class="literal">G_MAXUINT</code></a>].</p>
|
425
418
|
<div class="variablelist"><table border="0" class="variablelist">
|
426
419
|
<colgroup>
|
427
420
|
<col align="left" valign="top">
|
@@ -451,8 +444,7 @@ is not included in the range.</td>
|
|
451
444
|
</pre>
|
452
445
|
<p>
|
453
446
|
This value can be used to set the start_index member of a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
|
454
|
-
such that the attribute covers from the beginning of the text
|
455
|
-
</p>
|
447
|
+
such that the attribute covers from the beginning of the text.</p>
|
456
448
|
<p class="since">Since 1.24</p>
|
457
449
|
</div>
|
458
450
|
<hr>
|
@@ -462,8 +454,7 @@ such that the attribute covers from the beginning of the text.
|
|
462
454
|
</pre>
|
463
455
|
<p>
|
464
456
|
This value can be used to set the end_index member of a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>
|
465
|
-
such that the attribute covers to the end of the text
|
466
|
-
</p>
|
457
|
+
such that the attribute covers to the end of the text.</p>
|
467
458
|
<p class="since">Since 1.24</p>
|
468
459
|
</div>
|
469
460
|
<hr>
|
@@ -476,8 +467,7 @@ such that the attribute covers to the end of the text.
|
|
476
467
|
</pre>
|
477
468
|
<p>
|
478
469
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrString" title="struct PangoAttrString"><span class="type">PangoAttrString</span></a> structure is used to represent attributes with
|
479
|
-
a string value
|
480
|
-
</p>
|
470
|
+
a string value.</p>
|
481
471
|
<div class="variablelist"><table border="0" class="variablelist">
|
482
472
|
<colgroup>
|
483
473
|
<col align="left" valign="top">
|
@@ -505,8 +495,7 @@ a string value.
|
|
505
495
|
</pre>
|
506
496
|
<p>
|
507
497
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrLanguage" title="struct PangoAttrLanguage"><span class="type">PangoAttrLanguage</span></a> structure is used to represent attributes that
|
508
|
-
are languages
|
509
|
-
</p>
|
498
|
+
are languages.</p>
|
510
499
|
<div class="variablelist"><table border="0" class="variablelist">
|
511
500
|
<colgroup>
|
512
501
|
<col align="left" valign="top">
|
@@ -534,8 +523,7 @@ are languages.
|
|
534
523
|
</pre>
|
535
524
|
<p>
|
536
525
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrColor" title="struct PangoAttrColor"><span class="type">PangoAttrColor</span></a> structure is used to represent attributes that
|
537
|
-
are colors
|
538
|
-
</p>
|
526
|
+
are colors.</p>
|
539
527
|
<div class="variablelist"><table border="0" class="variablelist">
|
540
528
|
<colgroup>
|
541
529
|
<col align="left" valign="top">
|
@@ -563,8 +551,7 @@ are colors.
|
|
563
551
|
</pre>
|
564
552
|
<p>
|
565
553
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrInt" title="struct PangoAttrInt"><span class="type">PangoAttrInt</span></a> structure is used to represent attributes with
|
566
|
-
an integer or enumeration value
|
567
|
-
</p>
|
554
|
+
an integer or enumeration value.</p>
|
568
555
|
<div class="variablelist"><table border="0" class="variablelist">
|
569
556
|
<colgroup>
|
570
557
|
<col align="left" valign="top">
|
@@ -592,8 +579,7 @@ an integer or enumeration value.
|
|
592
579
|
</pre>
|
593
580
|
<p>
|
594
581
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrFloat" title="struct PangoAttrFloat"><span class="type">PangoAttrFloat</span></a> structure is used to represent attributes with
|
595
|
-
a float or double value
|
596
|
-
</p>
|
582
|
+
a float or double value.</p>
|
597
583
|
<div class="variablelist"><table border="0" class="variablelist">
|
598
584
|
<colgroup>
|
599
585
|
<col align="left" valign="top">
|
@@ -621,8 +607,7 @@ a float or double value.
|
|
621
607
|
</pre>
|
622
608
|
<p>
|
623
609
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrFontDesc" title="struct PangoAttrFontDesc"><span class="type">PangoAttrFontDesc</span></a> structure is used to store an attribute that
|
624
|
-
sets all aspects of the font description at once
|
625
|
-
</p>
|
610
|
+
sets all aspects of the font description at once.</p>
|
626
611
|
<div class="variablelist"><table border="0" class="variablelist">
|
627
612
|
<colgroup>
|
628
613
|
<col align="left" valign="top">
|
@@ -655,8 +640,7 @@ sets all aspects of the font description at once.
|
|
655
640
|
</pre>
|
656
641
|
<p>
|
657
642
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrShape" title="struct PangoAttrShape"><span class="type">PangoAttrShape</span></a> structure is used to represent attributes which
|
658
|
-
impose shape restrictions
|
659
|
-
</p>
|
643
|
+
impose shape restrictions.</p>
|
660
644
|
<div class="variablelist"><table border="0" class="variablelist">
|
661
645
|
<colgroup>
|
662
646
|
<col align="left" valign="top">
|
@@ -701,8 +685,7 @@ impose shape restrictions.
|
|
701
685
|
</pre>
|
702
686
|
<p>
|
703
687
|
The <a class="link" href="pango-Text-Attributes.html#PangoAttrSize" title="struct PangoAttrSize"><span class="type">PangoAttrSize</span></a> structure is used to represent attributes which
|
704
|
-
set font size
|
705
|
-
</p>
|
688
|
+
set font size.</p>
|
706
689
|
<div class="variablelist"><table border="0" class="variablelist">
|
707
690
|
<colgroup>
|
708
691
|
<col align="left" valign="top">
|
@@ -741,8 +724,7 @@ be <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-d
|
|
741
724
|
<p>
|
742
725
|
Parses marked-up text (see
|
743
726
|
<a href="PangoMarkupFormat.html">markup format</a>) to create
|
744
|
-
a plain-text string and an attribute list
|
745
|
-
</p>
|
727
|
+
a plain-text string and an attribute list.</p>
|
746
728
|
<p>
|
747
729
|
If <em class="parameter"><code>accel_marker</code></em> is nonzero, the given character will mark the
|
748
730
|
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
|
@@ -750,15 +732,12 @@ might be an ampersand or underscore. All characters marked
|
|
750
732
|
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
|
751
733
|
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>.
|
752
734
|
Two <em class="parameter"><code>accel_marker</code></em> characters following each other produce a single
|
753
|
-
literal <em class="parameter"><code>accel_marker</code></em> character
|
754
|
-
</p>
|
735
|
+
literal <em class="parameter"><code>accel_marker</code></em> character.</p>
|
755
736
|
<p>
|
756
|
-
To parse a stream of pango markup incrementally, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a
|
757
|
-
</p>
|
737
|
+
To parse a stream of pango markup incrementally, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-new" title="pango_markup_parser_new ()"><code class="function">pango_markup_parser_new()</code></a>.</p>
|
758
738
|
<p>
|
759
739
|
If any error happens, none of the output arguments are touched except
|
760
|
-
for <em class="parameter"><code>error</code></em
|
761
|
-
</p>
|
740
|
+
for <em class="parameter"><code>error</code></em>.</p>
|
762
741
|
<div class="variablelist"><table border="0" class="variablelist">
|
763
742
|
<colgroup>
|
764
743
|
<col align="left" valign="top">
|
@@ -813,8 +792,7 @@ for <em class="parameter"><code>error</code></em>.
|
|
813
792
|
<p>
|
814
793
|
Parses marked-up text (see
|
815
794
|
<a href="PangoMarkupFormat.html">markup format</a>) to create
|
816
|
-
a plain-text string and an attribute list
|
817
|
-
</p>
|
795
|
+
a plain-text string and an attribute list.</p>
|
818
796
|
<p>
|
819
797
|
If <em class="parameter"><code>accel_marker</code></em> is nonzero, the given character will mark the
|
820
798
|
character following it as an accelerator. For example, <em class="parameter"><code>accel_marker</code></em>
|
@@ -822,19 +800,16 @@ might be an ampersand or underscore. All characters marked
|
|
822
800
|
as an accelerator will receive a <a class="link" href="pango-Text-Attributes.html#PANGO-UNDERLINE-LOW:CAPS"><code class="literal">PANGO_UNDERLINE_LOW</code></a> attribute,
|
823
801
|
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>,
|
824
802
|
when calling <code class="function">finish()</code>. Two <em class="parameter"><code>accel_marker</code></em> characters following each
|
825
|
-
other produce a single literal <em class="parameter"><code>accel_marker</code></em> character
|
826
|
-
</p>
|
803
|
+
other produce a single literal <em class="parameter"><code>accel_marker</code></em> character.</p>
|
827
804
|
<p>
|
828
805
|
To feed markup to the parser, use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>
|
829
806
|
on the returned <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#GMarkupParseContext"><span class="type">GMarkupParseContext</span></a>. When done with feeding markup
|
830
807
|
to the parser, use <a class="link" href="pango-Text-Attributes.html#pango-markup-parser-finish" title="pango_markup_parser_finish ()"><code class="function">pango_markup_parser_finish()</code></a> to get the data out
|
831
|
-
of it, and then use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a> to free it
|
832
|
-
</p>
|
808
|
+
of it, and then use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a> to free it.</p>
|
833
809
|
<p>
|
834
810
|
This function is designed for applications that read pango markup
|
835
811
|
from streams. To simply parse a string containing pango markup,
|
836
|
-
the simpler <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()"><code class="function">pango_parse_markup()</code></a> API is recommended instead
|
837
|
-
</p>
|
812
|
+
the simpler <a class="link" href="pango-Text-Attributes.html#pango-parse-markup" title="pango_parse_markup ()"><code class="function">pango_parse_markup()</code></a> API is recommended instead.</p>
|
838
813
|
<div class="variablelist"><table border="0" class="variablelist">
|
839
814
|
<colgroup>
|
840
815
|
<col align="left" valign="top">
|
@@ -867,8 +842,7 @@ destroyed with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local
|
|
867
842
|
After feeding a pango markup parser some data with <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-parse"><code class="function">g_markup_parse_context_parse()</code></a>,
|
868
843
|
use this function to get the list of pango attributes and text out of the
|
869
844
|
markup. This function will not free <em class="parameter"><code>context</code></em>, use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html#g-markup-parse-context-free"><code class="function">g_markup_parse_context_free()</code></a>
|
870
|
-
to do so
|
871
|
-
</p>
|
845
|
+
to do so.</p>
|
872
846
|
<div class="variablelist"><table border="0" class="variablelist">
|
873
847
|
<colgroup>
|
874
848
|
<col align="left" valign="top">
|
@@ -916,8 +890,7 @@ to do so.
|
|
916
890
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="returnvalue">PangoAttrType</span></a> pango_attr_type_register (<em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
|
917
891
|
<p>
|
918
892
|
Allocate a new attribute type ID. The attribute type name can be accessed
|
919
|
-
later by using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()"><code class="function">pango_attr_type_get_name()</code></a
|
920
|
-
</p>
|
893
|
+
later by using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-get-name" title="pango_attr_type_get_name ()"><code class="function">pango_attr_type_get_name()</code></a>.</p>
|
921
894
|
<div class="variablelist"><table border="0" class="variablelist">
|
922
895
|
<colgroup>
|
923
896
|
<col align="left" valign="top">
|
@@ -941,12 +914,10 @@ later by using <a class="link" href="pango-Text-Attributes.html#pango-attr-type-
|
|
941
914
|
<pre class="programlisting">const <span class="returnvalue">char</span> * pango_attr_type_get_name (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrType"><span class="type">PangoAttrType</span></a> type</code></em>);</pre>
|
942
915
|
<p>
|
943
916
|
Fetches the attribute type name passed in when registering the type using
|
944
|
-
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a
|
945
|
-
</p>
|
917
|
+
<a class="link" href="pango-Text-Attributes.html#pango-attr-type-register" title="pango_attr_type_register ()"><code class="function">pango_attr_type_register()</code></a>.</p>
|
946
918
|
<p>
|
947
919
|
The returned value is an interned string (see <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html#g-intern-string"><code class="function">g_intern_string()</code></a> for what
|
948
|
-
that means) that should not be modified or freed
|
949
|
-
</p>
|
920
|
+
that means) that should not be modified or freed.</p>
|
950
921
|
<div class="variablelist"><table border="0" class="variablelist">
|
951
922
|
<colgroup>
|
952
923
|
<col align="left" valign="top">
|
@@ -976,8 +947,7 @@ Initializes <em class="parameter"><code>attr</code></em>'s klass to <em class="p
|
|
976
947
|
it's start_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-FROM-TEXT-BEGINNING:CAPS" title="PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING"><code class="literal">PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING</code></a>
|
977
948
|
and end_index to <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-INDEX-TO-TEXT-END:CAPS" title="PANGO_ATTR_INDEX_TO_TEXT_END"><code class="literal">PANGO_ATTR_INDEX_TO_TEXT_END</code></a>
|
978
949
|
such that the attribute applies
|
979
|
-
to the entire text by default
|
980
|
-
</p>
|
950
|
+
to the entire text by default.</p>
|
981
951
|
<div class="variablelist"><table border="0" class="variablelist">
|
982
952
|
<colgroup>
|
983
953
|
<col align="left" valign="top">
|
@@ -1003,8 +973,7 @@ to the entire text by default.
|
|
1003
973
|
<a name="pango-attribute-copy"></a><h3>pango_attribute_copy ()</h3>
|
1004
974
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attribute_copy (<em class="parameter"><code>const <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
|
1005
975
|
<p>
|
1006
|
-
Make a copy of an attribute
|
1007
|
-
</p>
|
976
|
+
Make a copy of an attribute.</p>
|
1008
977
|
<div class="variablelist"><table border="0" class="variablelist">
|
1009
978
|
<colgroup>
|
1010
979
|
<col align="left" valign="top">
|
@@ -1033,8 +1002,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1033
1002
|
<p>
|
1034
1003
|
Compare two attributes for equality. This compares only the
|
1035
1004
|
actual value of the two attributes and not the ranges that the
|
1036
|
-
attributes apply to
|
1037
|
-
</p>
|
1005
|
+
attributes apply to.</p>
|
1038
1006
|
<div class="variablelist"><table border="0" class="variablelist">
|
1039
1007
|
<colgroup>
|
1040
1008
|
<col align="left" valign="top">
|
@@ -1064,8 +1032,7 @@ attributes apply to.
|
|
1064
1032
|
<a name="pango-attribute-destroy"></a><h3>pango_attribute_destroy ()</h3>
|
1065
1033
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_attribute_destroy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attr</code></em>);</pre>
|
1066
1034
|
<p>
|
1067
|
-
Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> and free all associated memory
|
1068
|
-
</p>
|
1035
|
+
Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> and free all associated memory.</p>
|
1069
1036
|
<div class="variablelist"><table border="0" class="variablelist">
|
1070
1037
|
<colgroup>
|
1071
1038
|
<col align="left" valign="top">
|
@@ -1082,8 +1049,7 @@ Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title
|
|
1082
1049
|
<a name="pango-attr-language-new"></a><h3>pango_attr_language_new ()</h3>
|
1083
1050
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_language_new (<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> *language</code></em>);</pre>
|
1084
1051
|
<p>
|
1085
|
-
Create a new language tag attribute
|
1086
|
-
</p>
|
1052
|
+
Create a new language tag attribute.</p>
|
1087
1053
|
<div class="variablelist"><table border="0" class="variablelist">
|
1088
1054
|
<colgroup>
|
1089
1055
|
<col align="left" valign="top">
|
@@ -1108,8 +1074,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1108
1074
|
<a name="pango-attr-family-new"></a><h3>pango_attr_family_new ()</h3>
|
1109
1075
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_family_new (<em class="parameter"><code>const <span class="type">char</span> *family</code></em>);</pre>
|
1110
1076
|
<p>
|
1111
|
-
Create a new font family attribute
|
1112
|
-
</p>
|
1077
|
+
Create a new font family attribute.</p>
|
1113
1078
|
<div class="variablelist"><table border="0" class="variablelist">
|
1114
1079
|
<colgroup>
|
1115
1080
|
<col align="left" valign="top">
|
@@ -1134,8 +1099,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1134
1099
|
<a name="pango-attr-style-new"></a><h3>pango_attr_style_new ()</h3>
|
1135
1100
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_style_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> style</code></em>);</pre>
|
1136
1101
|
<p>
|
1137
|
-
Create a new font slant style attribute
|
1138
|
-
</p>
|
1102
|
+
Create a new font slant style attribute.</p>
|
1139
1103
|
<div class="variablelist"><table border="0" class="variablelist">
|
1140
1104
|
<colgroup>
|
1141
1105
|
<col align="left" valign="top">
|
@@ -1160,8 +1124,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1160
1124
|
<a name="pango-attr-variant-new"></a><h3>pango_attr_variant_new ()</h3>
|
1161
1125
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_variant_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> variant</code></em>);</pre>
|
1162
1126
|
<p>
|
1163
|
-
Create a new font variant attribute (normal or small caps)
|
1164
|
-
</p>
|
1127
|
+
Create a new font variant attribute (normal or small caps)</p>
|
1165
1128
|
<div class="variablelist"><table border="0" class="variablelist">
|
1166
1129
|
<colgroup>
|
1167
1130
|
<col align="left" valign="top">
|
@@ -1186,8 +1149,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1186
1149
|
<a name="pango-attr-stretch-new"></a><h3>pango_attr_stretch_new ()</h3>
|
1187
1150
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_stretch_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> stretch</code></em>);</pre>
|
1188
1151
|
<p>
|
1189
|
-
Create a new font stretch attribute
|
1190
|
-
</p>
|
1152
|
+
Create a new font stretch attribute</p>
|
1191
1153
|
<div class="variablelist"><table border="0" class="variablelist">
|
1192
1154
|
<colgroup>
|
1193
1155
|
<col align="left" valign="top">
|
@@ -1212,8 +1174,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1212
1174
|
<a name="pango-attr-weight-new"></a><h3>pango_attr_weight_new ()</h3>
|
1213
1175
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_weight_new (<em class="parameter"><code><a class="link" href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> weight</code></em>);</pre>
|
1214
1176
|
<p>
|
1215
|
-
Create a new font weight attribute
|
1216
|
-
</p>
|
1177
|
+
Create a new font weight attribute.</p>
|
1217
1178
|
<div class="variablelist"><table border="0" class="variablelist">
|
1218
1179
|
<colgroup>
|
1219
1180
|
<col align="left" valign="top">
|
@@ -1238,8 +1199,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1238
1199
|
<a name="pango-attr-size-new"></a><h3>pango_attr_size_new ()</h3>
|
1239
1200
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_size_new (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
|
1240
1201
|
<p>
|
1241
|
-
Create a new font-size attribute in fractional points
|
1242
|
-
</p>
|
1202
|
+
Create a new font-size attribute in fractional points.</p>
|
1243
1203
|
<div class="variablelist"><table border="0" class="variablelist">
|
1244
1204
|
<colgroup>
|
1245
1205
|
<col align="left" valign="top">
|
@@ -1264,8 +1224,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1264
1224
|
<a name="pango-attr-size-new-absolute"></a><h3>pango_attr_size_new_absolute ()</h3>
|
1265
1225
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_size_new_absolute (<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
|
1266
1226
|
<p>
|
1267
|
-
Create a new font-size attribute in device units
|
1268
|
-
</p>
|
1227
|
+
Create a new font-size attribute in device units.</p>
|
1269
1228
|
<div class="variablelist"><table border="0" class="variablelist">
|
1270
1229
|
<colgroup>
|
1271
1230
|
<col align="left" valign="top">
|
@@ -1292,8 +1251,7 @@ freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-dest
|
|
1292
1251
|
<p>
|
1293
1252
|
Create a new font description attribute. This attribute
|
1294
1253
|
allows setting family, style, weight, variant, stretch,
|
1295
|
-
and size simultaneously
|
1296
|
-
</p>
|
1254
|
+
and size simultaneously.</p>
|
1297
1255
|
<div class="variablelist"><table border="0" class="variablelist">
|
1298
1256
|
<colgroup>
|
1299
1257
|
<col align="left" valign="top">
|
@@ -1320,8 +1278,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1320
1278
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
|
1321
1279
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
|
1322
1280
|
<p>
|
1323
|
-
Create a new foreground color attribute
|
1324
|
-
</p>
|
1281
|
+
Create a new foreground color attribute.</p>
|
1325
1282
|
<div class="variablelist"><table border="0" class="variablelist">
|
1326
1283
|
<colgroup>
|
1327
1284
|
<col align="left" valign="top">
|
@@ -1356,8 +1313,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1356
1313
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> green</code></em>,
|
1357
1314
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> blue</code></em>);</pre>
|
1358
1315
|
<p>
|
1359
|
-
Create a new background color attribute
|
1360
|
-
</p>
|
1316
|
+
Create a new background color attribute.</p>
|
1361
1317
|
<div class="variablelist"><table border="0" class="variablelist">
|
1362
1318
|
<colgroup>
|
1363
1319
|
<col align="left" valign="top">
|
@@ -1390,8 +1346,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1390
1346
|
<a name="pango-attr-strikethrough-new"></a><h3>pango_attr_strikethrough_new ()</h3>
|
1391
1347
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_strikethrough_new (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> strikethrough</code></em>);</pre>
|
1392
1348
|
<p>
|
1393
|
-
Create a new strike-through attribute
|
1394
|
-
</p>
|
1349
|
+
Create a new strike-through attribute.</p>
|
1395
1350
|
<div class="variablelist"><table border="0" class="variablelist">
|
1396
1351
|
<colgroup>
|
1397
1352
|
<col align="left" valign="top">
|
@@ -1421,8 +1376,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1421
1376
|
<p>
|
1422
1377
|
Create a new strikethrough color attribute. This attribute
|
1423
1378
|
modifies the color of strikethrough lines. If not set, strikethrough
|
1424
|
-
lines will use the foreground color
|
1425
|
-
</p>
|
1379
|
+
lines will use the foreground color.</p>
|
1426
1380
|
<div class="variablelist"><table border="0" class="variablelist">
|
1427
1381
|
<colgroup>
|
1428
1382
|
<col align="left" valign="top">
|
@@ -1456,8 +1410,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1456
1410
|
<a name="pango-attr-underline-new"></a><h3>pango_attr_underline_new ()</h3>
|
1457
1411
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_underline_new (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoUnderline"><span class="type">PangoUnderline</span></a> underline</code></em>);</pre>
|
1458
1412
|
<p>
|
1459
|
-
Create a new underline-style attribute
|
1460
|
-
</p>
|
1413
|
+
Create a new underline-style attribute.</p>
|
1461
1414
|
<div class="variablelist"><table border="0" class="variablelist">
|
1462
1415
|
<colgroup>
|
1463
1416
|
<col align="left" valign="top">
|
@@ -1486,8 +1439,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1486
1439
|
<p>
|
1487
1440
|
Create a new underline color attribute. This attribute
|
1488
1441
|
modifies the color of underlines. If not set, underlines
|
1489
|
-
will use the foreground color
|
1490
|
-
</p>
|
1442
|
+
will use the foreground color.</p>
|
1491
1443
|
<div class="variablelist"><table border="0" class="variablelist">
|
1492
1444
|
<colgroup>
|
1493
1445
|
<col align="left" valign="top">
|
@@ -1530,8 +1482,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1530
1482
|
<p>
|
1531
1483
|
The <a class="link" href="pango-Text-Attributes.html#PangoUnderline"><span class="type">PangoUnderline</span></a> enumeration is used to specify
|
1532
1484
|
whether text should be underlined, and if so, the type
|
1533
|
-
of underlining
|
1534
|
-
</p>
|
1485
|
+
of underlining.</p>
|
1535
1486
|
<div class="variablelist"><table border="0" class="variablelist">
|
1536
1487
|
<colgroup>
|
1537
1488
|
<col align="left" valign="top">
|
@@ -1590,8 +1541,7 @@ be used. This type of underlining is available since Pango 1.4.
|
|
1590
1541
|
Create a new shape attribute. A shape is used to impose a
|
1591
1542
|
particular ink and logical rectangle on the result of shaping a
|
1592
1543
|
particular glyph. This might be used, for instance, for
|
1593
|
-
embedding a picture or a widget inside a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a
|
1594
|
-
</p>
|
1544
|
+
embedding a picture or a widget inside a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.</p>
|
1595
1545
|
<div class="variablelist"><table border="0" class="variablelist">
|
1596
1546
|
<colgroup>
|
1597
1547
|
<col align="left" valign="top">
|
@@ -1626,8 +1576,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1626
1576
|
<p>
|
1627
1577
|
Like <a class="link" href="pango-Text-Attributes.html#pango-attr-shape-new" title="pango_attr_shape_new ()"><code class="function">pango_attr_shape_new()</code></a>, but a user data pointer is also
|
1628
1578
|
provided; this pointer can be accessed when later
|
1629
|
-
rendering the glyph
|
1630
|
-
</p>
|
1579
|
+
rendering the glyph.</p>
|
1631
1580
|
<div class="variablelist"><table border="0" class="variablelist">
|
1632
1581
|
<colgroup>
|
1633
1582
|
<col align="left" valign="top">
|
@@ -1673,8 +1622,7 @@ freed with <a class="link" href="pango-Text-Attributes.html#pango-attribute-dest
|
|
1673
1622
|
<a name="PangoAttrDataCopyFunc"></a><h3>PangoAttrDataCopyFunc ()</h3>
|
1674
1623
|
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> (*PangoAttrDataCopyFunc) (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gconstpointer"><span class="type">gconstpointer</span></a> user_data</code></em>);</pre>
|
1675
1624
|
<p>
|
1676
|
-
Type of a function that can duplicate user data for an attribute
|
1677
|
-
</p>
|
1625
|
+
Type of a function that can duplicate user data for an attribute.</p>
|
1678
1626
|
<div class="variablelist"><table border="0" class="variablelist">
|
1679
1627
|
<colgroup>
|
1680
1628
|
<col align="left" valign="top">
|
@@ -1698,8 +1646,7 @@ Type of a function that can duplicate user data for an attribute.
|
|
1698
1646
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_scale_new (<em class="parameter"><code><span class="type">double</span> scale_factor</code></em>);</pre>
|
1699
1647
|
<p>
|
1700
1648
|
Create a new font size scale attribute. The base font for the
|
1701
|
-
affected text will have its size multiplied by <em class="parameter"><code>scale_factor</code></em
|
1702
|
-
</p>
|
1649
|
+
affected text will have its size multiplied by <em class="parameter"><code>scale_factor</code></em>.</p>
|
1703
1650
|
<div class="variablelist"><table border="0" class="variablelist">
|
1704
1651
|
<colgroup>
|
1705
1652
|
<col align="left" valign="top">
|
@@ -1725,8 +1672,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1725
1672
|
<pre class="programlisting">#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037)
|
1726
1673
|
</pre>
|
1727
1674
|
<p>
|
1728
|
-
The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2))
|
1729
|
-
</p>
|
1675
|
+
The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).</p>
|
1730
1676
|
</div>
|
1731
1677
|
<hr>
|
1732
1678
|
<div class="refsect2">
|
@@ -1734,8 +1680,7 @@ The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).
|
|
1734
1680
|
<pre class="programlisting">#define PANGO_SCALE_X_SMALL ((double)0.6444444444444)
|
1735
1681
|
</pre>
|
1736
1682
|
<p>
|
1737
|
-
The scale factor for two shrinking steps (1 / (1.2 * 1.2))
|
1738
|
-
</p>
|
1683
|
+
The scale factor for two shrinking steps (1 / (1.2 * 1.2)).</p>
|
1739
1684
|
</div>
|
1740
1685
|
<hr>
|
1741
1686
|
<div class="refsect2">
|
@@ -1743,8 +1688,7 @@ The scale factor for two shrinking steps (1 / (1.2 * 1.2)).
|
|
1743
1688
|
<pre class="programlisting">#define PANGO_SCALE_SMALL ((double)0.8333333333333)
|
1744
1689
|
</pre>
|
1745
1690
|
<p>
|
1746
|
-
The scale factor for one shrinking step (1 / 1.2)
|
1747
|
-
</p>
|
1691
|
+
The scale factor for one shrinking step (1 / 1.2).</p>
|
1748
1692
|
</div>
|
1749
1693
|
<hr>
|
1750
1694
|
<div class="refsect2">
|
@@ -1752,8 +1696,7 @@ The scale factor for one shrinking step (1 / 1.2).
|
|
1752
1696
|
<pre class="programlisting">#define PANGO_SCALE_MEDIUM ((double)1.0)
|
1753
1697
|
</pre>
|
1754
1698
|
<p>
|
1755
|
-
The scale factor for normal size (1.0)
|
1756
|
-
</p>
|
1699
|
+
The scale factor for normal size (1.0).</p>
|
1757
1700
|
</div>
|
1758
1701
|
<hr>
|
1759
1702
|
<div class="refsect2">
|
@@ -1761,8 +1704,7 @@ The scale factor for normal size (1.0).
|
|
1761
1704
|
<pre class="programlisting">#define PANGO_SCALE_LARGE ((double)1.2)
|
1762
1705
|
</pre>
|
1763
1706
|
<p>
|
1764
|
-
The scale factor for one magnification step (1.2)
|
1765
|
-
</p>
|
1707
|
+
The scale factor for one magnification step (1.2).</p>
|
1766
1708
|
</div>
|
1767
1709
|
<hr>
|
1768
1710
|
<div class="refsect2">
|
@@ -1770,8 +1712,7 @@ The scale factor for one magnification step (1.2).
|
|
1770
1712
|
<pre class="programlisting">#define PANGO_SCALE_X_LARGE ((double)1.4399999999999)
|
1771
1713
|
</pre>
|
1772
1714
|
<p>
|
1773
|
-
The scale factor for two magnification steps (1.2 * 1.2)
|
1774
|
-
</p>
|
1715
|
+
The scale factor for two magnification steps (1.2 * 1.2).</p>
|
1775
1716
|
</div>
|
1776
1717
|
<hr>
|
1777
1718
|
<div class="refsect2">
|
@@ -1779,16 +1720,14 @@ The scale factor for two magnification steps (1.2 * 1.2).
|
|
1779
1720
|
<pre class="programlisting">#define PANGO_SCALE_XX_LARGE ((double)1.728)
|
1780
1721
|
</pre>
|
1781
1722
|
<p>
|
1782
|
-
The scale factor for three magnification steps (1.2 * 1.2 * 1.2)
|
1783
|
-
</p>
|
1723
|
+
The scale factor for three magnification steps (1.2 * 1.2 * 1.2).</p>
|
1784
1724
|
</div>
|
1785
1725
|
<hr>
|
1786
1726
|
<div class="refsect2">
|
1787
1727
|
<a name="pango-attr-rise-new"></a><h3>pango_attr_rise_new ()</h3>
|
1788
1728
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_rise_new (<em class="parameter"><code><span class="type">int</span> rise</code></em>);</pre>
|
1789
1729
|
<p>
|
1790
|
-
Create a new baseline displacement attribute
|
1791
|
-
</p>
|
1730
|
+
Create a new baseline displacement attribute.</p>
|
1792
1731
|
<div class="variablelist"><table border="0" class="variablelist">
|
1793
1732
|
<colgroup>
|
1794
1733
|
<col align="left" valign="top">
|
@@ -1814,8 +1753,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1814
1753
|
<a name="pango-attr-letter-spacing-new"></a><h3>pango_attr_letter_spacing_new ()</h3>
|
1815
1754
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_letter_spacing_new (<em class="parameter"><code><span class="type">int</span> letter_spacing</code></em>);</pre>
|
1816
1755
|
<p>
|
1817
|
-
Create a new letter-spacing attribute
|
1818
|
-
</p>
|
1756
|
+
Create a new letter-spacing attribute.</p>
|
1819
1757
|
<div class="variablelist"><table border="0" class="variablelist">
|
1820
1758
|
<colgroup>
|
1821
1759
|
<col align="left" valign="top">
|
@@ -1842,14 +1780,12 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1842
1780
|
<a name="pango-attr-fallback-new"></a><h3>pango_attr_fallback_new ()</h3>
|
1843
1781
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_fallback_new (<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enable_fallback</code></em>);</pre>
|
1844
1782
|
<p>
|
1845
|
-
Create a new font fallback attribute
|
1846
|
-
</p>
|
1783
|
+
Create a new font fallback attribute.</p>
|
1847
1784
|
<p>
|
1848
1785
|
If fallback is disabled, characters will only be used from the
|
1849
1786
|
closest matching font on the system. No fallback will be done to
|
1850
1787
|
other fonts on the system that might contain the characters in the
|
1851
|
-
text
|
1852
|
-
</p>
|
1788
|
+
text.</p>
|
1853
1789
|
<div class="variablelist"><table border="0" class="variablelist">
|
1854
1790
|
<colgroup>
|
1855
1791
|
<col align="left" valign="top">
|
@@ -1877,8 +1813,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1877
1813
|
<a name="pango-attr-gravity-new"></a><h3>pango_attr_gravity_new ()</h3>
|
1878
1814
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_gravity_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravity"><span class="type">PangoGravity</span></a> gravity</code></em>);</pre>
|
1879
1815
|
<p>
|
1880
|
-
Create a new gravity attribute
|
1881
|
-
</p>
|
1816
|
+
Create a new gravity attribute.</p>
|
1882
1817
|
<div class="variablelist"><table border="0" class="variablelist">
|
1883
1818
|
<colgroup>
|
1884
1819
|
<col align="left" valign="top">
|
@@ -1904,8 +1839,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1904
1839
|
<a name="pango-attr-gravity-hint-new"></a><h3>pango_attr_gravity_hint_new ()</h3>
|
1905
1840
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="returnvalue">PangoAttribute</span></a> * pango_attr_gravity_hint_new (<em class="parameter"><code><a class="link" href="pango-Vertical-Text.html#PangoGravityHint"><span class="type">PangoGravityHint</span></a> hint</code></em>);</pre>
|
1906
1841
|
<p>
|
1907
|
-
Create a new gravity hint attribute
|
1908
|
-
</p>
|
1842
|
+
Create a new gravity hint attribute.</p>
|
1909
1843
|
<div class="variablelist"><table border="0" class="variablelist">
|
1910
1844
|
<colgroup>
|
1911
1845
|
<col align="left" valign="top">
|
@@ -1937,8 +1871,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
1937
1871
|
</pre>
|
1938
1872
|
<p>
|
1939
1873
|
The <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> structure is used to
|
1940
|
-
represent a color in an uncalibrated RGB color-space
|
1941
|
-
</p>
|
1874
|
+
represent a color in an uncalibrated RGB color-space.</p>
|
1942
1875
|
<div class="variablelist"><table border="0" class="variablelist">
|
1943
1876
|
<colgroup>
|
1944
1877
|
<col align="left" valign="top">
|
@@ -1966,8 +1899,7 @@ represent a color in an uncalibrated RGB color-space.
|
|
1966
1899
|
<pre class="programlisting">#define PANGO_TYPE_COLOR pango_color_get_type ()
|
1967
1900
|
</pre>
|
1968
1901
|
<p>
|
1969
|
-
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a
|
1970
|
-
</p>
|
1902
|
+
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a>.</p>
|
1971
1903
|
</div>
|
1972
1904
|
<hr>
|
1973
1905
|
<div class="refsect2">
|
@@ -1981,8 +1913,7 @@ from the X11 <code class="filename">rgb.txt</code> file), or it can be a hex val
|
|
1981
1913
|
form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where
|
1982
1914
|
'r', 'g' and 'b' are hex digits of the red, green, and blue
|
1983
1915
|
components of the color, respectively. (White in the four
|
1984
|
-
forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')
|
1985
|
-
</p>
|
1916
|
+
forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')</p>
|
1986
1917
|
<div class="variablelist"><table border="0" class="variablelist">
|
1987
1918
|
<colgroup>
|
1988
1919
|
<col align="left" valign="top">
|
@@ -2015,8 +1946,7 @@ otherwise false.</td>
|
|
2015
1946
|
Creates a copy of <em class="parameter"><code>src</code></em>, which should be freed with
|
2016
1947
|
<a class="link" href="pango-Text-Attributes.html#pango-color-free" title="pango_color_free ()"><code class="function">pango_color_free()</code></a>. Primarily used by language bindings,
|
2017
1948
|
not that useful otherwise (since colors can just be copied
|
2018
|
-
by assignment in C)
|
2019
|
-
</p>
|
1949
|
+
by assignment in C).</p>
|
2020
1950
|
<div class="variablelist"><table border="0" class="variablelist">
|
2021
1951
|
<colgroup>
|
2022
1952
|
<col align="left" valign="top">
|
@@ -2042,8 +1972,7 @@ if <em class="parameter"><code>src</code></em> was <a href="/home/kou/work/ruby/
|
|
2042
1972
|
<a name="pango-color-free"></a><h3>pango_color_free ()</h3>
|
2043
1973
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_color_free (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> *color</code></em>);</pre>
|
2044
1974
|
<p>
|
2045
|
-
Frees a color allocated by <a class="link" href="pango-Text-Attributes.html#pango-color-copy" title="pango_color_copy ()"><code class="function">pango_color_copy()</code></a
|
2046
|
-
</p>
|
1975
|
+
Frees a color allocated by <a class="link" href="pango-Text-Attributes.html#pango-color-copy" title="pango_color_copy ()"><code class="function">pango_color_copy()</code></a>.</p>
|
2047
1976
|
<div class="variablelist"><table border="0" class="variablelist">
|
2048
1977
|
<colgroup>
|
2049
1978
|
<col align="left" valign="top">
|
@@ -2064,8 +1993,7 @@ Frees a color allocated by <a class="link" href="pango-Text-Attributes.html#pang
|
|
2064
1993
|
Returns a textual specification of <em class="parameter"><code>color</code></em> in the hexadecimal form
|
2065
1994
|
<code class="literal">#rrrrggggbbbb</code>, where <code class="literal">r</code>,
|
2066
1995
|
<code class="literal">g</code> and <code class="literal">b</code> are hex digits representing
|
2067
|
-
the red, green, and blue components respectively
|
2068
|
-
</p>
|
1996
|
+
the red, green, and blue components respectively.</p>
|
2069
1997
|
<div class="variablelist"><table border="0" class="variablelist">
|
2070
1998
|
<colgroup>
|
2071
1999
|
<col align="left" valign="top">
|
@@ -2094,14 +2022,12 @@ The <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class=
|
|
2094
2022
|
that apply to a section of text. The attributes are, in general,
|
2095
2023
|
allowed to overlap in an arbitrary fashion, however, if the
|
2096
2024
|
attributes are manipulated only through <a class="link" href="pango-Text-Attributes.html#pango-attr-list-change" title="pango_attr_list_change ()"><code class="function">pango_attr_list_change()</code></a>,
|
2097
|
-
the overlap between properties will meet stricter criteria
|
2098
|
-
</p>
|
2025
|
+
the overlap between properties will meet stricter criteria.</p>
|
2099
2026
|
<p>
|
2100
2027
|
Since the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> structure is stored as a linear list,
|
2101
2028
|
it is not suitable for storing attributes for large amounts
|
2102
2029
|
of text. In general, you should not use a single <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>
|
2103
|
-
for more than one paragraph of text
|
2104
|
-
</p>
|
2030
|
+
for more than one paragraph of text.</p>
|
2105
2031
|
</div>
|
2106
2032
|
<hr>
|
2107
2033
|
<div class="refsect2">
|
@@ -2109,16 +2035,14 @@ for more than one paragraph of text.
|
|
2109
2035
|
<pre class="programlisting">#define PANGO_TYPE_ATTR_LIST pango_attr_list_get_type ()
|
2110
2036
|
</pre>
|
2111
2037
|
<p>
|
2112
|
-
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a
|
2113
|
-
</p>
|
2038
|
+
The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> type for <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>.</p>
|
2114
2039
|
</div>
|
2115
2040
|
<hr>
|
2116
2041
|
<div class="refsect2">
|
2117
2042
|
<a name="pango-attr-list-new"></a><h3>pango_attr_list_new ()</h3>
|
2118
2043
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * pango_attr_list_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2119
2044
|
<p>
|
2120
|
-
Create a new empty attribute list with a reference count of one
|
2121
|
-
</p>
|
2045
|
+
Create a new empty attribute list with a reference count of one.</p>
|
2122
2046
|
<div class="variablelist"><table border="0" class="variablelist">
|
2123
2047
|
<colgroup>
|
2124
2048
|
<col align="left" valign="top">
|
@@ -2137,8 +2061,7 @@ which should be freed with <a class="link" href="pango-Text-Attributes.html#pang
|
|
2137
2061
|
<a name="pango-attr-list-ref"></a><h3>pango_attr_list_ref ()</h3>
|
2138
2062
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * pango_attr_list_ref (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
|
2139
2063
|
<p>
|
2140
|
-
Increase the reference count of the given attribute list by one
|
2141
|
-
</p>
|
2064
|
+
Increase the reference count of the given attribute list by one.</p>
|
2142
2065
|
<div class="variablelist"><table border="0" class="variablelist">
|
2143
2066
|
<colgroup>
|
2144
2067
|
<col align="left" valign="top">
|
@@ -2165,8 +2088,7 @@ Increase the reference count of the given attribute list by one.
|
|
2165
2088
|
<p>
|
2166
2089
|
Decrease the reference count of the given attribute list by one.
|
2167
2090
|
If the result is zero, free the attribute list and the attributes
|
2168
|
-
it contains
|
2169
|
-
</p>
|
2091
|
+
it contains.</p>
|
2170
2092
|
<div class="variablelist"><table border="0" class="variablelist">
|
2171
2093
|
<colgroup>
|
2172
2094
|
<col align="left" valign="top">
|
@@ -2184,8 +2106,7 @@ it contains.
|
|
2184
2106
|
<a name="pango-attr-list-copy"></a><h3>pango_attr_list_copy ()</h3>
|
2185
2107
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * pango_attr_list_copy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
|
2186
2108
|
<p>
|
2187
|
-
Copy <em class="parameter"><code>list</code></em> and return an identical new list
|
2188
|
-
</p>
|
2109
|
+
Copy <em class="parameter"><code>list</code></em> and return an identical new list.</p>
|
2189
2110
|
<div class="variablelist"><table border="0" class="variablelist">
|
2190
2111
|
<colgroup>
|
2191
2112
|
<col align="left" valign="top">
|
@@ -2215,8 +2136,7 @@ Returns <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
2215
2136
|
<p>
|
2216
2137
|
Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
|
2217
2138
|
be inserted after all other attributes with a matching
|
2218
|
-
<em class="parameter"><code>start_index</code></em
|
2219
|
-
</p>
|
2139
|
+
<em class="parameter"><code>start_index</code></em>.</p>
|
2220
2140
|
<div class="variablelist"><table border="0" class="variablelist">
|
2221
2141
|
<colgroup>
|
2222
2142
|
<col align="left" valign="top">
|
@@ -2245,8 +2165,7 @@ value is assumed by the list. <span class="annotation">[<acronym title="Free dat
|
|
2245
2165
|
<p>
|
2246
2166
|
Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
|
2247
2167
|
be inserted before all other attributes with a matching
|
2248
|
-
<em class="parameter"><code>start_index</code></em
|
2249
|
-
</p>
|
2168
|
+
<em class="parameter"><code>start_index</code></em>.</p>
|
2250
2169
|
<div class="variablelist"><table border="0" class="variablelist">
|
2251
2170
|
<colgroup>
|
2252
2171
|
<col align="left" valign="top">
|
@@ -2275,15 +2194,13 @@ value is assumed by the list. <span class="annotation">[<acronym title="Free dat
|
|
2275
2194
|
<p>
|
2276
2195
|
Insert the given attribute into the <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a>. It will
|
2277
2196
|
replace any attributes of the same type on that segment
|
2278
|
-
and be merged with any adjoining attributes that are identical
|
2279
|
-
</p>
|
2197
|
+
and be merged with any adjoining attributes that are identical.</p>
|
2280
2198
|
<p>
|
2281
2199
|
This function is slower than <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()"><code class="function">pango_attr_list_insert()</code></a> for
|
2282
2200
|
creating a attribute list in order (potentially much slower
|
2283
2201
|
for large lists). However, <a class="link" href="pango-Text-Attributes.html#pango-attr-list-insert" title="pango_attr_list_insert ()"><code class="function">pango_attr_list_insert()</code></a> is not
|
2284
2202
|
suitable for continually changing a set of attributes
|
2285
|
-
since it never removes or combines existing attributes
|
2286
|
-
</p>
|
2203
|
+
since it never removes or combines existing attributes.</p>
|
2287
2204
|
<div class="variablelist"><table border="0" class="variablelist">
|
2288
2205
|
<colgroup>
|
2289
2206
|
<col align="left" valign="top">
|
@@ -2313,18 +2230,15 @@ value is assumed by the list. <span class="annotation">[<acronym title="Free dat
|
|
2313
2230
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> len</code></em>);</pre>
|
2314
2231
|
<p>
|
2315
2232
|
This function opens up a hole in <em class="parameter"><code>list</code></em>, fills it in with attributes from
|
2316
|
-
the left, and then merges <em class="parameter"><code>other</code></em> on top of the hole
|
2317
|
-
</p>
|
2233
|
+
the left, and then merges <em class="parameter"><code>other</code></em> on top of the hole.</p>
|
2318
2234
|
<p>
|
2319
2235
|
This operation is equivalent to stretching every attribute
|
2320
2236
|
that applies at position <em class="parameter"><code>pos</code></em> in <em class="parameter"><code>list</code></em> by an amount <em class="parameter"><code>len</code></em>,
|
2321
2237
|
and then calling <a class="link" href="pango-Text-Attributes.html#pango-attr-list-change" title="pango_attr_list_change ()"><code class="function">pango_attr_list_change()</code></a> with a copy
|
2322
|
-
of each attribute in <em class="parameter"><code>other</code></em> in sequence (offset in position by <em class="parameter"><code>pos</code></em>)
|
2323
|
-
</p>
|
2238
|
+
of each attribute in <em class="parameter"><code>other</code></em> in sequence (offset in position by <em class="parameter"><code>pos</code></em>).</p>
|
2324
2239
|
<p>
|
2325
2240
|
This operation proves useful for, for instance, inserting
|
2326
|
-
a pre-edit string in the middle of an edit buffer
|
2327
|
-
</p>
|
2241
|
+
a pre-edit string in the middle of an edit buffer.</p>
|
2328
2242
|
<div class="variablelist"><table border="0" class="variablelist">
|
2329
2243
|
<colgroup>
|
2330
2244
|
<col align="left" valign="top">
|
@@ -2364,8 +2278,7 @@ may only be present at some subsection of this range)</td>
|
|
2364
2278
|
<p>
|
2365
2279
|
Given a <a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> and callback function, removes any elements
|
2366
2280
|
of <em class="parameter"><code>list</code></em> for which <em class="parameter"><code>func</code></em> returns <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> and inserts them into
|
2367
|
-
a new list
|
2368
|
-
</p>
|
2281
|
+
a new list.</p>
|
2369
2282
|
<div class="variablelist"><table border="0" class="variablelist">
|
2370
2283
|
<colgroup>
|
2371
2284
|
<col align="left" valign="top">
|
@@ -2404,8 +2317,7 @@ no attributes of the given types were found. <span class="annotation">[<acronym
|
|
2404
2317
|
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> (*PangoAttrFilterFunc) (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a> *attribute</code></em>,
|
2405
2318
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
|
2406
2319
|
<p>
|
2407
|
-
Type of a function filtering a list of attributes
|
2408
|
-
</p>
|
2320
|
+
Type of a function filtering a list of attributes.</p>
|
2409
2321
|
<div class="variablelist"><table border="0" class="variablelist">
|
2410
2322
|
<colgroup>
|
2411
2323
|
<col align="left" valign="top">
|
@@ -2435,8 +2347,7 @@ filtering, <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/sha
|
|
2435
2347
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> * pango_attr_list_get_iterator (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList"><span class="type">PangoAttrList</span></a> *list</code></em>);</pre>
|
2436
2348
|
<p>
|
2437
2349
|
Create a iterator initialized to the beginning of the list.
|
2438
|
-
<em class="parameter"><code>list</code></em> must not be modified until this iterator is freed
|
2439
|
-
</p>
|
2350
|
+
<em class="parameter"><code>list</code></em> must not be modified until this iterator is freed.</p>
|
2440
2351
|
<div class="variablelist"><table border="0" class="variablelist">
|
2441
2352
|
<colgroup>
|
2442
2353
|
<col align="left" valign="top">
|
@@ -2468,16 +2379,14 @@ with <a class="link" href="pango-Text-Attributes.html#pango-attr-list-get-iterat
|
|
2468
2379
|
is created, it can be advanced through the style changes
|
2469
2380
|
in the text using <a class="link" href="pango-Text-Attributes.html#pango-attr-iterator-next" title="pango_attr_iterator_next ()"><code class="function">pango_attr_iterator_next()</code></a>. At each
|
2470
2381
|
style change, the range of the current style segment and the
|
2471
|
-
attributes currently in effect can be queried
|
2472
|
-
</p>
|
2382
|
+
attributes currently in effect can be queried.</p>
|
2473
2383
|
</div>
|
2474
2384
|
<hr>
|
2475
2385
|
<div class="refsect2">
|
2476
2386
|
<a name="pango-attr-iterator-copy"></a><h3>pango_attr_iterator_copy ()</h3>
|
2477
2387
|
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="returnvalue">PangoAttrIterator</span></a> * pango_attr_iterator_copy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
|
2478
2388
|
<p>
|
2479
|
-
Copy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a>
|
2480
|
-
</p>
|
2389
|
+
Copy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a></p>
|
2481
2390
|
<div class="variablelist"><table border="0" class="variablelist">
|
2482
2391
|
<colgroup>
|
2483
2392
|
<col align="left" valign="top">
|
@@ -2503,8 +2412,7 @@ Copy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title
|
|
2503
2412
|
<a name="pango-attr-iterator-next"></a><h3>pango_attr_iterator_next ()</h3>
|
2504
2413
|
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> pango_attr_iterator_next (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
|
2505
2414
|
<p>
|
2506
|
-
Advance the iterator until the next change of style
|
2507
|
-
</p>
|
2415
|
+
Advance the iterator until the next change of style.</p>
|
2508
2416
|
<div class="variablelist"><table border="0" class="variablelist">
|
2509
2417
|
<colgroup>
|
2510
2418
|
<col align="left" valign="top">
|
@@ -2536,8 +2444,7 @@ Get the range of the current segment. Note that the
|
|
2536
2444
|
stored return values are signed, not unsigned like
|
2537
2445
|
the values in <a class="link" href="pango-Text-Attributes.html#PangoAttribute" title="struct PangoAttribute"><span class="type">PangoAttribute</span></a>. To deal with this API
|
2538
2446
|
oversight, stored return values that wouldn't fit into
|
2539
|
-
a signed integer are clamped to <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#G-MAXINT:CAPS"><code class="literal">G_MAXINT</code></a
|
2540
|
-
</p>
|
2447
|
+
a signed integer are clamped to <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#G-MAXINT:CAPS"><code class="literal">G_MAXINT</code></a>.</p>
|
2541
2448
|
<div class="variablelist"><table border="0" class="variablelist">
|
2542
2449
|
<colgroup>
|
2543
2450
|
<col align="left" valign="top">
|
@@ -2571,8 +2478,7 @@ a signed integer are clamped to <a href="/home/kou/work/ruby/ruby-gnome2.win32/g
|
|
2571
2478
|
Find the current attribute of a particular type at the iterator
|
2572
2479
|
location. When multiple attributes of the same type overlap,
|
2573
2480
|
the attribute whose range starts closest to the current location
|
2574
|
-
is used
|
2575
|
-
</p>
|
2481
|
+
is used.</p>
|
2576
2482
|
<div class="variablelist"><table border="0" class="variablelist">
|
2577
2483
|
<colgroup>
|
2578
2484
|
<col align="left" valign="top">
|
@@ -2605,8 +2511,7 @@ location.</td>
|
|
2605
2511
|
<em class="parameter"><code><a class="link" href="pango-Scripts-and-Languages.html#PangoLanguage"><span class="type">PangoLanguage</span></a> **language</code></em>,
|
2606
2512
|
<em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> **extra_attrs</code></em>);</pre>
|
2607
2513
|
<p>
|
2608
|
-
Get the font and other attributes at the current iterator position
|
2609
|
-
</p>
|
2514
|
+
Get the font and other attributes at the current iterator position.</p>
|
2610
2515
|
<div class="variablelist"><table border="0" class="variablelist">
|
2611
2516
|
<colgroup>
|
2612
2517
|
<col align="left" valign="top">
|
@@ -2652,8 +2557,7 @@ each member. <span class="annotation">[<acronym title="NULL is ok, both for pass
|
|
2652
2557
|
<pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> * pango_attr_iterator_get_attrs (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
|
2653
2558
|
<p>
|
2654
2559
|
Gets a list of all attributes at the current position of the
|
2655
|
-
iterator
|
2656
|
-
</p>
|
2560
|
+
iterator.</p>
|
2657
2561
|
<div class="variablelist"><table border="0" class="variablelist">
|
2658
2562
|
<colgroup>
|
2659
2563
|
<col align="left" valign="top">
|
@@ -2682,8 +2586,7 @@ each value and <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local
|
|
2682
2586
|
<a name="pango-attr-iterator-destroy"></a><h3>pango_attr_iterator_destroy ()</h3>
|
2683
2587
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_attr_iterator_destroy (<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> *iterator</code></em>);</pre>
|
2684
2588
|
<p>
|
2685
|
-
Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> and free all associated memory
|
2686
|
-
</p>
|
2589
|
+
Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" title="PangoAttrIterator"><span class="type">PangoAttrIterator</span></a> and free all associated memory.</p>
|
2687
2590
|
<div class="variablelist"><table border="0" class="variablelist">
|
2688
2591
|
<colgroup>
|
2689
2592
|
<col align="left" valign="top">
|
@@ -2699,6 +2602,6 @@ Destroy a <a class="link" href="pango-Text-Attributes.html#PangoAttrIterator" ti
|
|
2699
2602
|
</div>
|
2700
2603
|
<div class="footer">
|
2701
2604
|
<hr>
|
2702
|
-
Generated by GTK-Doc V1.19</div>
|
2605
|
+
Generated by GTK-Doc V1.19.1</div>
|
2703
2606
|
</body>
|
2704
2607
|
</html>
|