gtk2 0.90.4-x86-mingw32 → 0.90.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/Rakefile +3 -4
- data/ext/gtk2/extconf.rb +8 -0
- data/lib/1.8/gtk2.so +0 -0
- data/lib/1.9/gtk2.so +0 -0
- data/vendor/local/bin/gtk-demo.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/libgailutil-18.dll +0 -0
- data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libgtk-win32-2.0-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/pango-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkg-config.exe +0 -0
- data/vendor/local/etc/gtk-2.0/gtk.immodules +1 -1
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/gtk+-bundle_2.22.0-20101016_win32.README.txt +29 -0
- data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pixman-1/pixman-version.h +50 -0
- data/vendor/local/include/pixman-1/pixman.h +936 -0
- data/vendor/local/lib/gailutil.lib +0 -0
- data/vendor/local/lib/gdk-win32-2.0.lib +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
- data/vendor/local/lib/gtk-win32-2.0.lib +0 -0
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/pango-1.0.lib +0 -0
- data/vendor/local/lib/pangocairo-1.0.lib +0 -0
- data/vendor/local/lib/pangoft2-1.0.lib +0 -0
- data/vendor/local/lib/pangowin32-1.0.lib +0 -0
- data/vendor/local/lib/pkgconfig/gail.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangocairo.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangoft2.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangowin32.pc +2 -2
- data/vendor/local/lib/pkgconfig/pixman-1.pc +11 -0
- data/vendor/local/manifest/gtk+-bundle_2.22.0-20101016_win32.mft +2910 -0
- data/vendor/local/manifest/{pango-dev_1.28.1-2_win32.mft → pango-dev_1.28.3-1_win32.mft} +5 -5
- data/vendor/local/manifest/{pango_1.28.1-2_win32.mft → pango_1.28.3-1_win32.mft} +2 -2
- data/vendor/local/share/aclocal/pkg.m4 +155 -0
- data/vendor/local/share/doc/gtk+-bundle_2.22.0-20101016_win32/components.lst +28 -0
- data/vendor/local/share/doc/{pango-1.28.1 → pango-1.28.3}/COPYING +0 -0
- data/vendor/local/share/doc/{pango-dev-1.28.1 → pango-dev-1.28.3}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +44 -50
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +45 -51
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +44 -61
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +89 -101
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +173 -171
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.10.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.12.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.14.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.16.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.18.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.2.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.20.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.22.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index-1.24.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.26.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.28.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.4.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index-1.6.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/index-1.8.html +22 -43
- data/vendor/local/share/gtk-doc/html/pango/index-all.html +70 -91
- data/vendor/local/share/gtk-doc/html/pango/index-deprecated.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/index.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/index.sgml +31 -30
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +6 -27
- data/vendor/local/share/gtk-doc/html/pango/pango-ATSUI-Fonts.html +20 -39
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +73 -88
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +405 -320
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +85 -97
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +69 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +695 -645
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +225 -228
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +523 -494
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +819 -742
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +203 -204
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +58 -75
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +422 -405
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +144 -142
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +120 -130
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +618 -576
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +397 -384
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +44 -58
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +73 -84
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +220 -217
- data/vendor/local/share/gtk-doc/html/pango/pango-X-Fonts-and-Rendering.html +303 -302
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +293 -292
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +5 -26
- data/vendor/local/share/gtk-doc/html/pango/pango-pango-renderer.html +1009 -0
- data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +7 -28
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp +68 -68
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +72 -72
- data/vendor/local/share/gtk-doc/html/pango/pango.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +3 -24
- data/vendor/local/share/gtk-doc/html/pango/style.css +21 -13
- data/vendor/local/share/gtk-doc/html/pango/tools.html +3 -24
- data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- data/vendor/local/src/tml/packaging/{gtk+_2.22.0-1_win32.log → gtk+_2.22.0-2_win32.log} +1835 -1832
- data/vendor/local/src/tml/packaging/{gtk+_2.22.0-1_win32.sh → gtk+_2.22.0-2_win32.sh} +26 -1
- data/vendor/local/src/tml/packaging/{pango_1.28.1-2_win32.log → pango_1.28.3-1_win32.log} +293 -413
- data/vendor/local/src/tml/packaging/pango_1.28.3-1_win32.sh +56 -0
- data/vendor/local/src/tml/packaging/pixman_0.18.4-2_win32.log +291 -0
- data/vendor/local/src/tml/packaging/pixman_0.18.4-2_win32.sh +141 -0
- data/vendor/local/src/tml/packaging/pkg-config_0.23-3_win32.log +215 -0
- data/vendor/local/src/tml/packaging/pkg-config_0.23-3_win32.sh +278 -0
- metadata +3323 -3325
- data/ext/gtk2/Makefile +0 -163
- data/ext/gtk2/rbgdkkeysyms.h +0 -1708
- data/ext/gtk2/rbgtkinits.c +0 -469
- data/vendor/local/manifest/cairo-dev_1.10.0-1_win32.mft +0 -83
- data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +0 -5
- data/vendor/local/manifest/expat-dev_2.0.1-1_win32.mft +0 -10
- data/vendor/local/manifest/expat_2.0.1-1_win32.mft +0 -2
- data/vendor/local/manifest/fontconfig-dev_2.8.0-2_win32.mft +0 -387
- data/vendor/local/manifest/fontconfig_2.8.0-2_win32.mft +0 -3
- data/vendor/local/manifest/freetype-dev_2.4.2-1_win32.mft +0 -56
- data/vendor/local/manifest/freetype_2.4.2-1_win32.mft +0 -2
- data/vendor/local/manifest/gtk+-dev_2.22.0-1_win32.mft +0 -947
- data/vendor/local/manifest/gtk+_2.22.0-1_win32.mft +0 -225
- data/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +0 -15
- data/vendor/local/manifest/libpng_1.4.3-1_win32.mft +0 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +0 -1002
- data/vendor/local/src/tml/packaging/pango_1.28.1-2_win32.sh +0 -579
@@ -8,29 +8,8 @@
|
|
8
8
|
<link rel="up" href="pango.html" title="Basic Pango Interfaces">
|
9
9
|
<link rel="prev" href="PangoMarkupFormat.html" title="Text Attribute Markup">
|
10
10
|
<link rel="next" href="pango-Scripts-and-Languages.html" title="Scripts and Languages">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
|
14
|
-
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
|
15
|
-
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
|
16
|
-
<link rel="chapter" href="tools.html" title="Pango Tools">
|
17
|
-
<link rel="chapter" href="pango-hierarchy.html" title="Object Hierarchy">
|
18
|
-
<link rel="index" href="index-all.html" title="Index">
|
19
|
-
<link rel="index" href="index-deprecated.html" title="Index of deprecated symbols">
|
20
|
-
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
21
|
-
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
22
|
-
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
23
|
-
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
24
|
-
<link rel="index" href="index-1.10.html" title="Index of new symbols in 1.10">
|
25
|
-
<link rel="index" href="index-1.12.html" title="Index of new symbols in 1.12">
|
26
|
-
<link rel="index" href="index-1.14.html" title="Index of new symbols in 1.14">
|
27
|
-
<link rel="index" href="index-1.16.html" title="Index of new symbols in 1.16">
|
28
|
-
<link rel="index" href="index-1.18.html" title="Index of new symbols in 1.18">
|
29
|
-
<link rel="index" href="index-1.20.html" title="Index of new symbols in 1.20">
|
30
|
-
<link rel="index" href="index-1.22.html" title="Index of new symbols in 1.22">
|
31
|
-
<link rel="index" href="index-1.24.html" title="Index of new symbols in 1.24">
|
32
|
-
<link rel="index" href="index-1.26.html" title="Index of new symbols in 1.26">
|
33
|
-
<link rel="index" href="index-1.28.html" title="Index of new symbols in 1.26">
|
34
13
|
</head>
|
35
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
36
15
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
@@ -49,7 +28,7 @@
|
|
49
28
|
<a href="#pango-Layout-Objects.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
50
29
|
</td></tr>
|
51
30
|
</table>
|
52
|
-
<div class="refentry"
|
31
|
+
<div class="refentry">
|
53
32
|
<a name="pango-Layout-Objects"></a><div class="titlepage"></div>
|
54
33
|
<div class="refnamediv"><table width="100%"><tr>
|
55
34
|
<td valign="top">
|
@@ -58,193 +37,193 @@
|
|
58
37
|
</td>
|
59
38
|
<td valign="top" align="right"></td>
|
60
39
|
</tr></table></div>
|
61
|
-
<div class="refsynopsisdiv"
|
40
|
+
<div class="refsynopsisdiv">
|
62
41
|
<a name="pango-Layout-Objects.synopsis"></a><h2>Synopsis</h2>
|
63
42
|
<a name="PangoLayout"></a><pre class="synopsis"> <a class="link" href="pango-Layout-Objects.html#PangoLayout-struct" title="PangoLayout">PangoLayout</a>;
|
64
43
|
<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter">PangoLayoutIter</a>;
|
65
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()">pango_layout_new</a> (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
66
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-copy" title="pango_layout_copy ()">pango_layout_copy</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
67
|
-
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-context" title="pango_layout_get_context ()">pango_layout_get_context</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
68
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-context-changed" title="pango_layout_context_changed ()">pango_layout_context_changed</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
69
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-text" title="pango_layout_set_text ()">pango_layout_set_text</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
70
|
-
const <span class="
|
71
|
-
<span class="
|
72
|
-
const <span class="returnvalue">char</span> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-text" title="pango_layout_get_text ()">pango_layout_get_text</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
73
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup" title="pango_layout_set_markup ()">pango_layout_set_markup</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
74
|
-
const <span class="
|
75
|
-
<span class="
|
76
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup-with-accel" title="pango_layout_set_markup_with_accel ()">pango_layout_set_markup_with_accel</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
77
|
-
const <span class="
|
78
|
-
<span class="
|
79
|
-
<
|
80
|
-
<
|
81
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-attributes" title="pango_layout_set_attributes ()">pango_layout_set_attributes</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
82
|
-
<a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="
|
83
|
-
<a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-attributes" title="pango_layout_get_attributes ()">pango_layout_get_attributes</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
84
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-font-description" title="pango_layout_set_font_description ()">pango_layout_set_font_description</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
85
|
-
const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="
|
44
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-new" title="pango_layout_new ()">pango_layout_new</a> (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);
|
45
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-copy" title="pango_layout_copy ()">pango_layout_copy</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *src</code></em>);
|
46
|
+
<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-context" title="pango_layout_get_context ()">pango_layout_get_context</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
47
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-context-changed" title="pango_layout_context_changed ()">pango_layout_context_changed</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
48
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-text" title="pango_layout_set_text ()">pango_layout_set_text</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
49
|
+
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
50
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>);
|
51
|
+
const <span class="returnvalue">char</span> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-text" title="pango_layout_get_text ()">pango_layout_get_text</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
52
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup" title="pango_layout_set_markup ()">pango_layout_set_markup</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
53
|
+
<em class="parameter"><code>const <span class="type">char</span> *markup</code></em>,
|
54
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>);
|
55
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup-with-accel" title="pango_layout_set_markup_with_accel ()">pango_layout_set_markup_with_accel</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
56
|
+
<em class="parameter"><code>const <span class="type">char</span> *markup</code></em>,
|
57
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
58
|
+
<em class="parameter"><code><span class="type">gunichar</span> accel_marker</code></em>,
|
59
|
+
<em class="parameter"><code><span class="type">gunichar</span> *accel_char</code></em>);
|
60
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-attributes" title="pango_layout_set_attributes ()">pango_layout_set_attributes</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
61
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>);
|
62
|
+
<a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-attributes" title="pango_layout_get_attributes ()">pango_layout_get_attributes</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
63
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-font-description" title="pango_layout_set_font_description ()">pango_layout_set_font_description</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
64
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);
|
86
65
|
const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-font-description" title="pango_layout_get_font_description ()">pango_layout_get_font_description</a>
|
87
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
88
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-width" title="pango_layout_set_width ()">pango_layout_set_width</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
89
|
-
<span class="
|
90
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-width" title="pango_layout_get_width ()">pango_layout_get_width</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
91
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()">pango_layout_set_height</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
92
|
-
<span class="
|
93
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-height" title="pango_layout_get_height ()">pango_layout_get_height</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
94
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-wrap" title="pango_layout_set_wrap ()">pango_layout_set_wrap</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
95
|
-
<a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="
|
96
|
-
<a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="returnvalue">PangoWrapMode</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-wrap" title="pango_layout_get_wrap ()">pango_layout_get_wrap</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
97
|
-
<
|
66
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
67
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-width" title="pango_layout_set_width ()">pango_layout_set_width</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
68
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>);
|
69
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-width" title="pango_layout_get_width ()">pango_layout_get_width</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
70
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()">pango_layout_set_height</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
71
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);
|
72
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-height" title="pango_layout_get_height ()">pango_layout_get_height</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
73
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-wrap" title="pango_layout_set_wrap ()">pango_layout_set_wrap</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
74
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="type">PangoWrapMode</span></a> wrap</code></em>);
|
75
|
+
<a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="returnvalue">PangoWrapMode</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-wrap" title="pango_layout_get_wrap ()">pango_layout_get_wrap</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
76
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-is-wrapped" title="pango_layout_is_wrapped ()">pango_layout_is_wrapped</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
98
77
|
enum <a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode">PangoWrapMode</a>;
|
99
78
|
#define <a class="link" href="pango-Layout-Objects.html#PANGO-TYPE-WRAP-MODE:CAPS" title="PANGO_TYPE_WRAP_MODE">PANGO_TYPE_WRAP_MODE</a>
|
100
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-ellipsize" title="pango_layout_set_ellipsize ()">pango_layout_set_ellipsize</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
101
|
-
<a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="
|
102
|
-
<a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-ellipsize" title="pango_layout_get_ellipsize ()">pango_layout_get_ellipsize</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
103
|
-
<
|
79
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-ellipsize" title="pango_layout_set_ellipsize ()">pango_layout_set_ellipsize</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
80
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a> ellipsize</code></em>);
|
81
|
+
<a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-ellipsize" title="pango_layout_get_ellipsize ()">pango_layout_get_ellipsize</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
82
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-is-ellipsized" title="pango_layout_is_ellipsized ()">pango_layout_is_ellipsized</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
104
83
|
enum <a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode">PangoEllipsizeMode</a>;
|
105
84
|
#define <a class="link" href="pango-Layout-Objects.html#PANGO-TYPE-ELLIPSIZE-MODE:CAPS" title="PANGO_TYPE_ELLIPSIZE_MODE">PANGO_TYPE_ELLIPSIZE_MODE</a>
|
106
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-indent" title="pango_layout_set_indent ()">pango_layout_set_indent</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
107
|
-
<span class="
|
108
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-indent" title="pango_layout_get_indent ()">pango_layout_get_indent</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
109
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-spacing" title="pango_layout_get_spacing ()">pango_layout_get_spacing</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
110
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-spacing" title="pango_layout_set_spacing ()">pango_layout_set_spacing</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
111
|
-
<span class="
|
112
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-justify" title="pango_layout_set_justify ()">pango_layout_set_justify</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
113
|
-
<
|
114
|
-
<
|
115
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-auto-dir" title="pango_layout_set_auto_dir ()">pango_layout_set_auto_dir</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
116
|
-
<
|
117
|
-
<
|
118
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-alignment" title="pango_layout_set_alignment ()">pango_layout_set_alignment</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
119
|
-
<a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="
|
120
|
-
<a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="returnvalue">PangoAlignment</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-alignment" title="pango_layout_get_alignment ()">pango_layout_get_alignment</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
121
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-tabs" title="pango_layout_set_tabs ()">pango_layout_set_tabs</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
122
|
-
<a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="
|
123
|
-
<a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="returnvalue">PangoTabArray</span></a
|
85
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-indent" title="pango_layout_set_indent ()">pango_layout_set_indent</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
86
|
+
<em class="parameter"><code><span class="type">int</span> indent</code></em>);
|
87
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-indent" title="pango_layout_get_indent ()">pango_layout_get_indent</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
88
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-spacing" title="pango_layout_get_spacing ()">pango_layout_get_spacing</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
89
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-spacing" title="pango_layout_set_spacing ()">pango_layout_set_spacing</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
90
|
+
<em class="parameter"><code><span class="type">int</span> spacing</code></em>);
|
91
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-justify" title="pango_layout_set_justify ()">pango_layout_set_justify</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
92
|
+
<em class="parameter"><code><span class="type">gboolean</span> justify</code></em>);
|
93
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-justify" title="pango_layout_get_justify ()">pango_layout_get_justify</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
94
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-auto-dir" title="pango_layout_set_auto_dir ()">pango_layout_set_auto_dir</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
95
|
+
<em class="parameter"><code><span class="type">gboolean</span> auto_dir</code></em>);
|
96
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-auto-dir" title="pango_layout_get_auto_dir ()">pango_layout_get_auto_dir</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
97
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-alignment" title="pango_layout_set_alignment ()">pango_layout_set_alignment</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
98
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="type">PangoAlignment</span></a> alignment</code></em>);
|
99
|
+
<a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="returnvalue">PangoAlignment</span></a> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-alignment" title="pango_layout_get_alignment ()">pango_layout_get_alignment</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
100
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-tabs" title="pango_layout_set_tabs ()">pango_layout_set_tabs</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
101
|
+
<em class="parameter"><code><a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);
|
102
|
+
<a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-tabs" title="pango_layout_get_tabs ()">pango_layout_get_tabs</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
124
103
|
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-set-single-paragraph-mode" title="pango_layout_set_single_paragraph_mode ()">pango_layout_set_single_paragraph_mode</a>
|
125
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
126
|
-
<
|
127
|
-
<
|
128
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
104
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
105
|
+
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);
|
106
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-single-paragraph-mode" title="pango_layout_get_single_paragraph_mode ()">pango_layout_get_single_paragraph_mode</a>
|
107
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
129
108
|
enum <a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment">PangoAlignment</a>;
|
130
109
|
#define <a class="link" href="pango-Layout-Objects.html#PANGO-TYPE-ALIGNMENT:CAPS" title="PANGO_TYPE_ALIGNMENT">PANGO_TYPE_ALIGNMENT</a>
|
131
110
|
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-unknown-glyphs-count" title="pango_layout_get_unknown_glyphs_count ()">pango_layout_get_unknown_glyphs_count</a>
|
132
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
133
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-log-attrs" title="pango_layout_get_log_attrs ()">pango_layout_get_log_attrs</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
134
|
-
<a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="
|
135
|
-
<
|
136
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-index-to-pos" title="pango_layout_index_to_pos ()">pango_layout_index_to_pos</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
137
|
-
<span class="
|
138
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
139
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-index-to-line-x" title="pango_layout_index_to_line_x ()">pango_layout_index_to_line_x</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
140
|
-
<span class="
|
141
|
-
<
|
142
|
-
<span class="
|
143
|
-
<span class="
|
144
|
-
<
|
145
|
-
<span class="
|
146
|
-
<span class="
|
147
|
-
<span class="
|
148
|
-
<span class="
|
149
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-cursor-pos" title="pango_layout_get_cursor_pos ()">pango_layout_get_cursor_pos</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
150
|
-
<span class="
|
151
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
152
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
153
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-move-cursor-visually" title="pango_layout_move_cursor_visually ()">pango_layout_move_cursor_visually</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
154
|
-
<
|
155
|
-
<span class="
|
156
|
-
<span class="
|
157
|
-
<span class="
|
158
|
-
<span class="
|
159
|
-
<span class="
|
160
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()">pango_layout_get_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
161
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
162
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
163
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-extents" title="pango_layout_get_pixel_extents ()">pango_layout_get_pixel_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
164
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
165
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
166
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-size" title="pango_layout_get_size ()">pango_layout_get_size</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
167
|
-
<span class="
|
168
|
-
<span class="
|
169
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-size" title="pango_layout_get_pixel_size ()">pango_layout_get_pixel_size</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
170
|
-
<span class="
|
171
|
-
<span class="
|
172
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-baseline" title="pango_layout_get_baseline ()">pango_layout_get_baseline</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
173
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line-count" title="pango_layout_get_line_count ()">pango_layout_get_line_count</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
174
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line" title="pango_layout_get_line ()">pango_layout_get_line</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
175
|
-
<span class="
|
176
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line-readonly" title="pango_layout_get_line_readonly ()">pango_layout_get_line_readonly</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
177
|
-
<span class="
|
178
|
-
<
|
179
|
-
<
|
180
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-iter" title="pango_layout_get_iter ()">pango_layout_get_iter</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
181
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-copy" title="pango_layout_iter_copy ()">pango_layout_iter_copy</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
182
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-free" title="pango_layout_iter_free ()">pango_layout_iter_free</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
183
|
-
<
|
184
|
-
<
|
185
|
-
<
|
186
|
-
<
|
187
|
-
<
|
188
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-index" title="pango_layout_iter_get_index ()">pango_layout_iter_get_index</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
189
|
-
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-baseline" title="pango_layout_iter_get_baseline ()">pango_layout_iter_get_baseline</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
190
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run" title="pango_layout_iter_get_run ()">pango_layout_iter_get_run</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
191
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run-readonly" title="pango_layout_iter_get_run_readonly ()">pango_layout_iter_get_run_readonly</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
192
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line" title="pango_layout_iter_get_line ()">pango_layout_iter_get_line</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
193
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-readonly" title="pango_layout_iter_get_line_readonly ()">pango_layout_iter_get_line_readonly</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
194
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-layout" title="pango_layout_iter_get_layout ()">pango_layout_iter_get_layout</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
195
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-char-extents" title="pango_layout_iter_get_char_extents ()">pango_layout_iter_get_char_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
196
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
111
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
112
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-log-attrs" title="pango_layout_get_log_attrs ()">pango_layout_get_log_attrs</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
113
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> **attrs</code></em>,
|
114
|
+
<em class="parameter"><code><span class="type">gint</span> *n_attrs</code></em>);
|
115
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-index-to-pos" title="pango_layout_index_to_pos ()">pango_layout_index_to_pos</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
116
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
117
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *pos</code></em>);
|
118
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-index-to-line-x" title="pango_layout_index_to_line_x ()">pango_layout_index_to_line_x</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
119
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
120
|
+
<em class="parameter"><code><span class="type">gboolean</span> trailing</code></em>,
|
121
|
+
<em class="parameter"><code><span class="type">int</span> *line</code></em>,
|
122
|
+
<em class="parameter"><code><span class="type">int</span> *x_pos</code></em>);
|
123
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-xy-to-index" title="pango_layout_xy_to_index ()">pango_layout_xy_to_index</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
124
|
+
<em class="parameter"><code><span class="type">int</span> x</code></em>,
|
125
|
+
<em class="parameter"><code><span class="type">int</span> y</code></em>,
|
126
|
+
<em class="parameter"><code><span class="type">int</span> *index_</code></em>,
|
127
|
+
<em class="parameter"><code><span class="type">int</span> *trailing</code></em>);
|
128
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-cursor-pos" title="pango_layout_get_cursor_pos ()">pango_layout_get_cursor_pos</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
129
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
130
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *strong_pos</code></em>,
|
131
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *weak_pos</code></em>);
|
132
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-move-cursor-visually" title="pango_layout_move_cursor_visually ()">pango_layout_move_cursor_visually</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
133
|
+
<em class="parameter"><code><span class="type">gboolean</span> strong</code></em>,
|
134
|
+
<em class="parameter"><code><span class="type">int</span> old_index</code></em>,
|
135
|
+
<em class="parameter"><code><span class="type">int</span> old_trailing</code></em>,
|
136
|
+
<em class="parameter"><code><span class="type">int</span> direction</code></em>,
|
137
|
+
<em class="parameter"><code><span class="type">int</span> *new_index</code></em>,
|
138
|
+
<em class="parameter"><code><span class="type">int</span> *new_trailing</code></em>);
|
139
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()">pango_layout_get_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
140
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
141
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
142
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-extents" title="pango_layout_get_pixel_extents ()">pango_layout_get_pixel_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
143
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
144
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
145
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-size" title="pango_layout_get_size ()">pango_layout_get_size</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
146
|
+
<em class="parameter"><code><span class="type">int</span> *width</code></em>,
|
147
|
+
<em class="parameter"><code><span class="type">int</span> *height</code></em>);
|
148
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-size" title="pango_layout_get_pixel_size ()">pango_layout_get_pixel_size</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
149
|
+
<em class="parameter"><code><span class="type">int</span> *width</code></em>,
|
150
|
+
<em class="parameter"><code><span class="type">int</span> *height</code></em>);
|
151
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-baseline" title="pango_layout_get_baseline ()">pango_layout_get_baseline</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
152
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line-count" title="pango_layout_get_line_count ()">pango_layout_get_line_count</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
153
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line" title="pango_layout_get_line ()">pango_layout_get_line</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
154
|
+
<em class="parameter"><code><span class="type">int</span> line</code></em>);
|
155
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line-readonly" title="pango_layout_get_line_readonly ()">pango_layout_get_line_readonly</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
156
|
+
<em class="parameter"><code><span class="type">int</span> line</code></em>);
|
157
|
+
<span class="returnvalue">GSList</span> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-lines" title="pango_layout_get_lines ()">pango_layout_get_lines</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
158
|
+
<span class="returnvalue">GSList</span> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-lines-readonly" title="pango_layout_get_lines_readonly ()">pango_layout_get_lines_readonly</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
159
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-get-iter" title="pango_layout_get_iter ()">pango_layout_get_iter</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
|
160
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-copy" title="pango_layout_iter_copy ()">pango_layout_iter_copy</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
161
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-free" title="pango_layout_iter_free ()">pango_layout_iter_free</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
162
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-next-run" title="pango_layout_iter_next_run ()">pango_layout_iter_next_run</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
163
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-next-char" title="pango_layout_iter_next_char ()">pango_layout_iter_next_char</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
164
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-next-cluster" title="pango_layout_iter_next_cluster ()">pango_layout_iter_next_cluster</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
165
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-next-line" title="pango_layout_iter_next_line ()">pango_layout_iter_next_line</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
166
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-at-last-line" title="pango_layout_iter_at_last_line ()">pango_layout_iter_at_last_line</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
167
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-index" title="pango_layout_iter_get_index ()">pango_layout_iter_get_index</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
168
|
+
<span class="returnvalue">int</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-baseline" title="pango_layout_iter_get_baseline ()">pango_layout_iter_get_baseline</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
169
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run" title="pango_layout_iter_get_run ()">pango_layout_iter_get_run</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
170
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run-readonly" title="pango_layout_iter_get_run_readonly ()">pango_layout_iter_get_run_readonly</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
171
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line" title="pango_layout_iter_get_line ()">pango_layout_iter_get_line</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
172
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-readonly" title="pango_layout_iter_get_line_readonly ()">pango_layout_iter_get_line_readonly</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
173
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-layout" title="pango_layout_iter_get_layout ()">pango_layout_iter_get_layout</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);
|
174
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-char-extents" title="pango_layout_iter_get_char_extents ()">pango_layout_iter_get_char_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
175
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
197
176
|
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-cluster-extents" title="pango_layout_iter_get_cluster_extents ()">pango_layout_iter_get_cluster_extents</a>
|
198
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
199
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
200
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
201
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run-extents" title="pango_layout_iter_get_run_extents ()">pango_layout_iter_get_run_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
202
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
203
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
204
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-yrange" title="pango_layout_iter_get_line_yrange ()">pango_layout_iter_get_line_yrange</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
205
|
-
<span class="
|
206
|
-
<span class="
|
207
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-extents" title="pango_layout_iter_get_line_extents ()">pango_layout_iter_get_line_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
208
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
209
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
177
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
178
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
179
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
180
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run-extents" title="pango_layout_iter_get_run_extents ()">pango_layout_iter_get_run_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
181
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
182
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
183
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-yrange" title="pango_layout_iter_get_line_yrange ()">pango_layout_iter_get_line_yrange</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
184
|
+
<em class="parameter"><code><span class="type">int</span> *y0_</code></em>,
|
185
|
+
<em class="parameter"><code><span class="type">int</span> *y1_</code></em>);
|
186
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-extents" title="pango_layout_iter_get_line_extents ()">pango_layout_iter_get_line_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
187
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
188
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
210
189
|
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-layout-extents" title="pango_layout_iter_get_layout_extents ()">pango_layout_iter_get_layout_extents</a>
|
211
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
212
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
213
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
190
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
191
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
192
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
214
193
|
|
215
|
-
|
194
|
+
struct <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine">PangoLayoutLine</a>;
|
216
195
|
typedef <a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun">PangoLayoutRun</a>;
|
217
|
-
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-line-ref" title="pango_layout_line_ref ()">pango_layout_line_ref</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
218
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-unref" title="pango_layout_line_unref ()">pango_layout_line_unref</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
219
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-extents" title="pango_layout_line_get_extents ()">pango_layout_line_get_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
220
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
221
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
222
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-pixel-extents" title="pango_layout_line_get_pixel_extents ()">pango_layout_line_get_pixel_extents</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
223
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
224
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
225
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-index-to-x" title="pango_layout_line_index_to_x ()">pango_layout_line_index_to_x</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
226
|
-
<span class="
|
227
|
-
<
|
228
|
-
<span class="
|
229
|
-
<
|
230
|
-
<span class="
|
231
|
-
<span class="
|
232
|
-
<span class="
|
233
|
-
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-x-ranges" title="pango_layout_line_get_x_ranges ()">pango_layout_line_get_x_ranges</a> (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
234
|
-
<span class="
|
235
|
-
<span class="
|
236
|
-
<span class="
|
237
|
-
<span class="
|
196
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * <a class="link" href="pango-Layout-Objects.html#pango-layout-line-ref" title="pango_layout_line_ref ()">pango_layout_line_ref</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
197
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-unref" title="pango_layout_line_unref ()">pango_layout_line_unref</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);
|
198
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-extents" title="pango_layout_line_get_extents ()">pango_layout_line_get_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
199
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
200
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
201
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-pixel-extents" title="pango_layout_line_get_pixel_extents ()">pango_layout_line_get_pixel_extents</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *layout_line</code></em>,
|
202
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
203
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);
|
204
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-index-to-x" title="pango_layout_line_index_to_x ()">pango_layout_line_index_to_x</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
205
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
206
|
+
<em class="parameter"><code><span class="type">gboolean</span> trailing</code></em>,
|
207
|
+
<em class="parameter"><code><span class="type">int</span> *x_pos</code></em>);
|
208
|
+
<span class="returnvalue">gboolean</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-x-to-index" title="pango_layout_line_x_to_index ()">pango_layout_line_x_to_index</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
209
|
+
<em class="parameter"><code><span class="type">int</span> x_pos</code></em>,
|
210
|
+
<em class="parameter"><code><span class="type">int</span> *index_</code></em>,
|
211
|
+
<em class="parameter"><code><span class="type">int</span> *trailing</code></em>);
|
212
|
+
<span class="returnvalue">void</span> <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-x-ranges" title="pango_layout_line_get_x_ranges ()">pango_layout_line_get_x_ranges</a> (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
213
|
+
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
214
|
+
<em class="parameter"><code><span class="type">int</span> end_index</code></em>,
|
215
|
+
<em class="parameter"><code><span class="type">int</span> **ranges</code></em>,
|
216
|
+
<em class="parameter"><code><span class="type">int</span> *n_ranges</code></em>);
|
238
217
|
</pre>
|
239
218
|
</div>
|
240
|
-
<div class="refsect1"
|
219
|
+
<div class="refsect1">
|
241
220
|
<a name="pango-Layout-Objects.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
242
221
|
<pre class="synopsis">
|
243
|
-
|
222
|
+
GObject
|
244
223
|
+----PangoLayout
|
245
224
|
</pre>
|
246
225
|
</div>
|
247
|
-
<div class="refsect1"
|
226
|
+
<div class="refsect1">
|
248
227
|
<a name="pango-Layout-Objects.description"></a><h2>Description</h2>
|
249
228
|
<p>
|
250
229
|
While complete access to the layout capabilities of Pango is provided
|
@@ -255,9 +234,9 @@ high-level driver for formatting entire paragraphs of text
|
|
255
234
|
at once.
|
256
235
|
</p>
|
257
236
|
</div>
|
258
|
-
<div class="refsect1"
|
237
|
+
<div class="refsect1">
|
259
238
|
<a name="pango-Layout-Objects.details"></a><h2>Details</h2>
|
260
|
-
<div class="refsect2"
|
239
|
+
<div class="refsect2">
|
261
240
|
<a name="PangoLayout-struct"></a><h3>PangoLayout</h3>
|
262
241
|
<pre class="programlisting">typedef struct _PangoLayout PangoLayout;</pre>
|
263
242
|
<p>
|
@@ -285,7 +264,7 @@ fields.
|
|
285
264
|
</p>
|
286
265
|
</div>
|
287
266
|
<hr>
|
288
|
-
<div class="refsect2"
|
267
|
+
<div class="refsect2">
|
289
268
|
<a name="PangoLayoutIter"></a><h3>PangoLayoutIter</h3>
|
290
269
|
<pre class="programlisting">typedef struct _PangoLayoutIter PangoLayoutIter;</pre>
|
291
270
|
<p>
|
@@ -298,68 +277,71 @@ has no user-visible fields.
|
|
298
277
|
</p>
|
299
278
|
</div>
|
300
279
|
<hr>
|
301
|
-
<div class="refsect2"
|
280
|
+
<div class="refsect2">
|
302
281
|
<a name="pango-layout-new"></a><h3>pango_layout_new ()</h3>
|
303
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_new (<a class="link" href="pango-Text-Processing.html#PangoContext"><span class="
|
282
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_new (<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> *context</code></em>);</pre>
|
304
283
|
<p>
|
305
284
|
Create a new <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> object with attributes initialized to
|
306
|
-
default values for a particular <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a
|
285
|
+
default values for a particular <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>.
|
286
|
+
</p>
|
307
287
|
<div class="variablelist"><table border="0">
|
308
288
|
<col align="left" valign="top">
|
309
289
|
<tbody>
|
310
290
|
<tr>
|
311
291
|
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
|
312
|
-
<td>
|
292
|
+
<td>a <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>
|
313
293
|
</td>
|
314
294
|
</tr>
|
315
295
|
<tr>
|
316
296
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
317
297
|
<td> the newly allocated <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, with a reference
|
318
298
|
count of one, which should be freed with
|
319
|
-
<
|
299
|
+
<code class="function">g_object_unref()</code>.
|
320
300
|
</td>
|
321
301
|
</tr>
|
322
302
|
</tbody>
|
323
303
|
</table></div>
|
324
304
|
</div>
|
325
305
|
<hr>
|
326
|
-
<div class="refsect2"
|
306
|
+
<div class="refsect2">
|
327
307
|
<a name="pango-layout-copy"></a><h3>pango_layout_copy ()</h3>
|
328
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_copy (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
308
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_copy (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *src</code></em>);</pre>
|
329
309
|
<p>
|
330
310
|
Does a deep copy-by-value of the <em class="parameter"><code>src</code></em> layout. The attribute list,
|
331
311
|
tab array, and text from the original layout are all copied by
|
332
|
-
value
|
312
|
+
value.
|
313
|
+
</p>
|
333
314
|
<div class="variablelist"><table border="0">
|
334
315
|
<col align="left" valign="top">
|
335
316
|
<tbody>
|
336
317
|
<tr>
|
337
318
|
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
|
338
|
-
<td>
|
319
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
339
320
|
</td>
|
340
321
|
</tr>
|
341
322
|
<tr>
|
342
323
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
343
324
|
<td> the newly allocated <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, with a reference
|
344
325
|
count of one, which should be freed with
|
345
|
-
<
|
326
|
+
<code class="function">g_object_unref()</code>.
|
346
327
|
</td>
|
347
328
|
</tr>
|
348
329
|
</tbody>
|
349
330
|
</table></div>
|
350
331
|
</div>
|
351
332
|
<hr>
|
352
|
-
<div class="refsect2"
|
333
|
+
<div class="refsect2">
|
353
334
|
<a name="pango-layout-get-context"></a><h3>pango_layout_get_context ()</h3>
|
354
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_layout_get_context (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
335
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Processing.html#PangoContext"><span class="returnvalue">PangoContext</span></a> * pango_layout_get_context (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
355
336
|
<p>
|
356
|
-
Retrieves the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> used for this layout
|
337
|
+
Retrieves the <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> used for this layout.
|
338
|
+
</p>
|
357
339
|
<div class="variablelist"><table border="0">
|
358
340
|
<col align="left" valign="top">
|
359
341
|
<tbody>
|
360
342
|
<tr>
|
361
343
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
362
|
-
<td>
|
344
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
363
345
|
</td>
|
364
346
|
</tr>
|
365
347
|
<tr>
|
@@ -373,29 +355,30 @@ a copy of this around, you must reference it yourself.
|
|
373
355
|
</table></div>
|
374
356
|
</div>
|
375
357
|
<hr>
|
376
|
-
<div class="refsect2"
|
358
|
+
<div class="refsect2">
|
377
359
|
<a name="pango-layout-context-changed"></a><h3>pango_layout_context_changed ()</h3>
|
378
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_context_changed (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
360
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_context_changed (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
379
361
|
<p>
|
380
362
|
Forces recomputation of any state in the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> that
|
381
363
|
might depend on the layout's context. This function should
|
382
364
|
be called if you make changes to the context subsequent
|
383
|
-
to creating the layout
|
365
|
+
to creating the layout.
|
366
|
+
</p>
|
384
367
|
<div class="variablelist"><table border="0">
|
385
368
|
<col align="left" valign="top">
|
386
369
|
<tbody><tr>
|
387
370
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
388
|
-
<td>
|
371
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
389
372
|
</td>
|
390
373
|
</tr></tbody>
|
391
374
|
</table></div>
|
392
375
|
</div>
|
393
376
|
<hr>
|
394
|
-
<div class="refsect2"
|
377
|
+
<div class="refsect2">
|
395
378
|
<a name="pango-layout-set-text"></a><h3>pango_layout_set_text ()</h3>
|
396
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_text (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
397
|
-
const <span class="
|
398
|
-
<span class="
|
379
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_text (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
380
|
+
<em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
|
381
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>);</pre>
|
399
382
|
<p>
|
400
383
|
Sets the text of the layout.
|
401
384
|
</p>
|
@@ -404,23 +387,24 @@ Note that if you have used
|
|
404
387
|
<a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup" title="pango_layout_set_markup ()"><code class="function">pango_layout_set_markup()</code></a> or <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup-with-accel" title="pango_layout_set_markup_with_accel ()"><code class="function">pango_layout_set_markup_with_accel()</code></a> on
|
405
388
|
<em class="parameter"><code>layout</code></em> before, you may want to call <a class="link" href="pango-Layout-Objects.html#pango-layout-set-attributes" title="pango_layout_set_attributes ()"><code class="function">pango_layout_set_attributes()</code></a> to clear
|
406
389
|
the attributes set on the layout from the markup as this function does not
|
407
|
-
clear attributes
|
390
|
+
clear attributes.
|
391
|
+
</p>
|
408
392
|
<div class="variablelist"><table border="0">
|
409
393
|
<col align="left" valign="top">
|
410
394
|
<tbody>
|
411
395
|
<tr>
|
412
396
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
413
|
-
<td>
|
397
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
414
398
|
</td>
|
415
399
|
</tr>
|
416
400
|
<tr>
|
417
401
|
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
418
|
-
<td>
|
402
|
+
<td>a valid UTF-8 string
|
419
403
|
</td>
|
420
404
|
</tr>
|
421
405
|
<tr>
|
422
406
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
423
|
-
<td>
|
407
|
+
<td>maximum length of <em class="parameter"><code>text</code></em>, in bytes. -1 indicates that
|
424
408
|
the string is nul-terminated and the length should be
|
425
409
|
calculated. The text will also be truncated on
|
426
410
|
encountering a nul-termination even when <em class="parameter"><code>length</code></em> is
|
@@ -431,18 +415,19 @@ clear attributes.</p>
|
|
431
415
|
</table></div>
|
432
416
|
</div>
|
433
417
|
<hr>
|
434
|
-
<div class="refsect2"
|
418
|
+
<div class="refsect2">
|
435
419
|
<a name="pango-layout-get-text"></a><h3>pango_layout_get_text ()</h3>
|
436
|
-
<pre class="programlisting">const <span class="returnvalue">char</span> * pango_layout_get_text (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
420
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> * pango_layout_get_text (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
437
421
|
<p>
|
438
422
|
Gets the text in the layout. The returned text should not
|
439
|
-
be freed or modified
|
423
|
+
be freed or modified.
|
424
|
+
</p>
|
440
425
|
<div class="variablelist"><table border="0">
|
441
426
|
<col align="left" valign="top">
|
442
427
|
<tbody>
|
443
428
|
<tr>
|
444
429
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
445
|
-
<td>
|
430
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
446
431
|
</td>
|
447
432
|
</tr>
|
448
433
|
<tr>
|
@@ -454,30 +439,31 @@ be freed or modified.</p>
|
|
454
439
|
</table></div>
|
455
440
|
</div>
|
456
441
|
<hr>
|
457
|
-
<div class="refsect2"
|
442
|
+
<div class="refsect2">
|
458
443
|
<a name="pango-layout-set-markup"></a><h3>pango_layout_set_markup ()</h3>
|
459
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_markup (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
460
|
-
const <span class="
|
461
|
-
<span class="
|
444
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_markup (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
445
|
+
<em class="parameter"><code>const <span class="type">char</span> *markup</code></em>,
|
446
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>);</pre>
|
462
447
|
<p>
|
463
448
|
Same as <a class="link" href="pango-Layout-Objects.html#pango-layout-set-markup-with-accel" title="pango_layout_set_markup_with_accel ()"><code class="function">pango_layout_set_markup_with_accel()</code></a>, but
|
464
|
-
the markup text isn't scanned for accelerators
|
449
|
+
the markup text isn't scanned for accelerators.
|
450
|
+
</p>
|
465
451
|
<div class="variablelist"><table border="0">
|
466
452
|
<col align="left" valign="top">
|
467
453
|
<tbody>
|
468
454
|
<tr>
|
469
455
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
470
|
-
<td>
|
456
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
471
457
|
</td>
|
472
458
|
</tr>
|
473
459
|
<tr>
|
474
460
|
<td><p><span class="term"><em class="parameter"><code>markup</code></em> :</span></p></td>
|
475
|
-
<td>
|
461
|
+
<td>marked-up text
|
476
462
|
</td>
|
477
463
|
</tr>
|
478
464
|
<tr>
|
479
465
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
480
|
-
<td>
|
466
|
+
<td>length of marked-up text in bytes, or -1 if <em class="parameter"><code>markup</code></em> is
|
481
467
|
nul-terminated
|
482
468
|
</td>
|
483
469
|
</tr>
|
@@ -485,13 +471,13 @@ nul-terminated
|
|
485
471
|
</table></div>
|
486
472
|
</div>
|
487
473
|
<hr>
|
488
|
-
<div class="refsect2"
|
474
|
+
<div class="refsect2">
|
489
475
|
<a name="pango-layout-set-markup-with-accel"></a><h3>pango_layout_set_markup_with_accel ()</h3>
|
490
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_markup_with_accel (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
491
|
-
const <span class="
|
492
|
-
<span class="
|
493
|
-
<
|
494
|
-
<
|
476
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_markup_with_accel (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
477
|
+
<em class="parameter"><code>const <span class="type">char</span> *markup</code></em>,
|
478
|
+
<em class="parameter"><code><span class="type">int</span> length</code></em>,
|
479
|
+
<em class="parameter"><code><span class="type">gunichar</span> accel_marker</code></em>,
|
480
|
+
<em class="parameter"><code><span class="type">gunichar</span> *accel_char</code></em>);</pre>
|
495
481
|
<p>
|
496
482
|
Sets the layout text and attribute list from marked-up text (see
|
497
483
|
<a class="link" href="PangoMarkupFormat.html" title="Text Attribute Markup">markup format</a>). Replaces
|
@@ -504,76 +490,79 @@ might be an ampersand or underscore. All characters marked
|
|
504
490
|
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,
|
505
491
|
and the first character so marked will be returned in <em class="parameter"><code>accel_char</code></em>.
|
506
492
|
Two <em class="parameter"><code>accel_marker</code></em> characters following each other produce a single
|
507
|
-
literal <em class="parameter"><code>accel_marker</code></em> character
|
493
|
+
literal <em class="parameter"><code>accel_marker</code></em> character.
|
494
|
+
</p>
|
508
495
|
<div class="variablelist"><table border="0">
|
509
496
|
<col align="left" valign="top">
|
510
497
|
<tbody>
|
511
498
|
<tr>
|
512
499
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
513
|
-
<td>
|
500
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
514
501
|
</td>
|
515
502
|
</tr>
|
516
503
|
<tr>
|
517
504
|
<td><p><span class="term"><em class="parameter"><code>markup</code></em> :</span></p></td>
|
518
|
-
<td>
|
505
|
+
<td>marked-up text
|
519
506
|
(see <a class="link" href="PangoMarkupFormat.html" title="Text Attribute Markup">markup format</a>)
|
520
507
|
</td>
|
521
508
|
</tr>
|
522
509
|
<tr>
|
523
510
|
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
|
524
|
-
<td>
|
511
|
+
<td>length of marked-up text in bytes, or -1 if <em class="parameter"><code>markup</code></em> is
|
525
512
|
nul-terminated
|
526
513
|
</td>
|
527
514
|
</tr>
|
528
515
|
<tr>
|
529
516
|
<td><p><span class="term"><em class="parameter"><code>accel_marker</code></em> :</span></p></td>
|
530
|
-
<td>
|
517
|
+
<td>marker for accelerators in the text
|
531
518
|
</td>
|
532
519
|
</tr>
|
533
520
|
<tr>
|
534
521
|
<td><p><span class="term"><em class="parameter"><code>accel_char</code></em> :</span></p></td>
|
535
|
-
<td>
|
522
|
+
<td>return location for first located accelerator, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
536
523
|
</td>
|
537
524
|
</tr>
|
538
525
|
</tbody>
|
539
526
|
</table></div>
|
540
527
|
</div>
|
541
528
|
<hr>
|
542
|
-
<div class="refsect2"
|
529
|
+
<div class="refsect2">
|
543
530
|
<a name="pango-layout-set-attributes"></a><h3>pango_layout_set_attributes ()</h3>
|
544
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_attributes (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
545
|
-
<a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="
|
531
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_attributes (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
532
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="type">PangoAttrList</span></a> *attrs</code></em>);</pre>
|
546
533
|
<p>
|
547
534
|
Sets the text attributes for a layout object.
|
548
|
-
References <em class="parameter"><code>attrs</code></em>, so the caller can unref its reference
|
535
|
+
References <em class="parameter"><code>attrs</code></em>, so the caller can unref its reference.
|
536
|
+
</p>
|
549
537
|
<div class="variablelist"><table border="0">
|
550
538
|
<col align="left" valign="top">
|
551
539
|
<tbody>
|
552
540
|
<tr>
|
553
541
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
554
|
-
<td>
|
542
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
555
543
|
</td>
|
556
544
|
</tr>
|
557
545
|
<tr>
|
558
546
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
559
|
-
<td>
|
547
|
+
<td>a <a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="type">PangoAttrList</span></a>, can be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
560
548
|
</td>
|
561
549
|
</tr>
|
562
550
|
</tbody>
|
563
551
|
</table></div>
|
564
552
|
</div>
|
565
553
|
<hr>
|
566
|
-
<div class="refsect2"
|
554
|
+
<div class="refsect2">
|
567
555
|
<a name="pango-layout-get-attributes"></a><h3>pango_layout_get_attributes ()</h3>
|
568
|
-
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * pango_layout_get_attributes (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
556
|
+
<pre class="programlisting"><a class="link" href="pango-Text-Attributes.html#PangoAttrList" title="PangoAttrList"><span class="returnvalue">PangoAttrList</span></a> * pango_layout_get_attributes (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
569
557
|
<p>
|
570
|
-
Gets the attribute list for the layout, if any
|
558
|
+
Gets the attribute list for the layout, if any.
|
559
|
+
</p>
|
571
560
|
<div class="variablelist"><table border="0">
|
572
561
|
<col align="left" valign="top">
|
573
562
|
<tbody>
|
574
563
|
<tr>
|
575
564
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
576
|
-
<td>
|
565
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
577
566
|
</td>
|
578
567
|
</tr>
|
579
568
|
<tr>
|
@@ -585,25 +574,26 @@ Gets the attribute list for the layout, if any.</p>
|
|
585
574
|
</table></div>
|
586
575
|
</div>
|
587
576
|
<hr>
|
588
|
-
<div class="refsect2"
|
577
|
+
<div class="refsect2">
|
589
578
|
<a name="pango-layout-set-font-description"></a><h3>pango_layout_set_font_description ()</h3>
|
590
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_font_description (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
591
|
-
const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="
|
579
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_font_description (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
580
|
+
<em class="parameter"><code>const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="type">PangoFontDescription</span></a> *desc</code></em>);</pre>
|
592
581
|
<p>
|
593
582
|
Sets the default font description for the layout. If no font
|
594
583
|
description is set on the layout, the font description from
|
595
|
-
the layout's context is used
|
584
|
+
the layout's context is used.
|
585
|
+
</p>
|
596
586
|
<div class="variablelist"><table border="0">
|
597
587
|
<col align="left" valign="top">
|
598
588
|
<tbody>
|
599
589
|
<tr>
|
600
590
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
601
|
-
<td>
|
591
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
602
592
|
</td>
|
603
593
|
</tr>
|
604
594
|
<tr>
|
605
595
|
<td><p><span class="term"><em class="parameter"><code>desc</code></em> :</span></p></td>
|
606
|
-
<td>
|
596
|
+
<td>the new <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="type">PangoFontDescription</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to unset the
|
607
597
|
current font description
|
608
598
|
</td>
|
609
599
|
</tr>
|
@@ -611,24 +601,25 @@ the layout's context is used.</p>
|
|
611
601
|
</table></div>
|
612
602
|
</div>
|
613
603
|
<hr>
|
614
|
-
<div class="refsect2"
|
604
|
+
<div class="refsect2">
|
615
605
|
<a name="pango-layout-get-font-description"></a><h3>pango_layout_get_font_description ()</h3>
|
616
606
|
<pre class="programlisting">const <a class="link" href="pango-Fonts.html#PangoFontDescription" title="PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * pango_layout_get_font_description
|
617
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
607
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
618
608
|
<p>
|
619
|
-
Gets the font description for the layout, if any
|
609
|
+
Gets the font description for the layout, if any.
|
610
|
+
</p>
|
620
611
|
<div class="variablelist"><table border="0">
|
621
612
|
<col align="left" valign="top">
|
622
613
|
<tbody>
|
623
614
|
<tr>
|
624
615
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
625
|
-
<td>
|
616
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
626
617
|
</td>
|
627
618
|
</tr>
|
628
619
|
<tr>
|
629
620
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
630
621
|
<td> a pointer to the layout's font description,
|
631
|
-
or <a href="/usr/share/gtk-doc/html/
|
622
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the font description from the layout's
|
632
623
|
context is inherited. This value is owned by the layout
|
633
624
|
and must not be modified or freed.
|
634
625
|
|
@@ -639,24 +630,25 @@ Gets the font description for the layout, if any.</p>
|
|
639
630
|
<p class="since">Since 1.8</p>
|
640
631
|
</div>
|
641
632
|
<hr>
|
642
|
-
<div class="refsect2"
|
633
|
+
<div class="refsect2">
|
643
634
|
<a name="pango-layout-set-width"></a><h3>pango_layout_set_width ()</h3>
|
644
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_width (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
645
|
-
<span class="
|
635
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_width (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
636
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>);</pre>
|
646
637
|
<p>
|
647
638
|
Sets the width to which the lines of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> should wrap or
|
648
|
-
ellipsized. The default value is -1: no width set
|
639
|
+
ellipsized. The default value is -1: no width set.
|
640
|
+
</p>
|
649
641
|
<div class="variablelist"><table border="0">
|
650
642
|
<col align="left" valign="top">
|
651
643
|
<tbody>
|
652
644
|
<tr>
|
653
645
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
654
|
-
<td>
|
646
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
655
647
|
</td>
|
656
648
|
</tr>
|
657
649
|
<tr>
|
658
650
|
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
659
|
-
<td>
|
651
|
+
<td>the desired width in Pango units, or -1 to indicate that no
|
660
652
|
wrapping or ellipsization should be performed.
|
661
653
|
</td>
|
662
654
|
</tr>
|
@@ -664,17 +656,18 @@ ellipsized. The default value is -1: no width set.</p>
|
|
664
656
|
</table></div>
|
665
657
|
</div>
|
666
658
|
<hr>
|
667
|
-
<div class="refsect2"
|
659
|
+
<div class="refsect2">
|
668
660
|
<a name="pango-layout-get-width"></a><h3>pango_layout_get_width ()</h3>
|
669
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_width (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
661
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_width (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
670
662
|
<p>
|
671
|
-
Gets the width to which the lines of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> should wrap
|
663
|
+
Gets the width to which the lines of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> should wrap.
|
664
|
+
</p>
|
672
665
|
<div class="variablelist"><table border="0">
|
673
666
|
<col align="left" valign="top">
|
674
667
|
<tbody>
|
675
668
|
<tr>
|
676
669
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
677
|
-
<td>
|
670
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
678
671
|
</td>
|
679
672
|
</tr>
|
680
673
|
<tr>
|
@@ -686,10 +679,10 @@ Gets the width to which the lines of the <a class="link" href="pango-Layout-Obje
|
|
686
679
|
</table></div>
|
687
680
|
</div>
|
688
681
|
<hr>
|
689
|
-
<div class="refsect2"
|
682
|
+
<div class="refsect2">
|
690
683
|
<a name="pango-layout-set-height"></a><h3>pango_layout_set_height ()</h3>
|
691
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_height (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
692
|
-
<span class="
|
684
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_height (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
685
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
693
686
|
<p>
|
694
687
|
Sets the height to which the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> should be ellipsized at. There
|
695
688
|
are two different behaviors, based on whether <em class="parameter"><code>height</code></em> is positive or
|
@@ -716,18 +709,19 @@ Height setting only has effect if a positive width is set on
|
|
716
709
|
<em class="parameter"><code>layout</code></em> and ellipsization mode of <em class="parameter"><code>layout</code></em> is not <a class="link" href="pango-Layout-Objects.html#PANGO-ELLIPSIZE-NONE:CAPS"><code class="literal">PANGO_ELLIPSIZE_NONE</code></a>.
|
717
710
|
The behavior is undefined if a height other than -1 is set and
|
718
711
|
ellipsization mode is set to <a class="link" href="pango-Layout-Objects.html#PANGO-ELLIPSIZE-NONE:CAPS"><code class="literal">PANGO_ELLIPSIZE_NONE</code></a>, and may change in the
|
719
|
-
future
|
712
|
+
future.
|
713
|
+
</p>
|
720
714
|
<div class="variablelist"><table border="0">
|
721
715
|
<col align="left" valign="top">
|
722
716
|
<tbody>
|
723
717
|
<tr>
|
724
718
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
725
|
-
<td>
|
719
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
726
720
|
</td>
|
727
721
|
</tr>
|
728
722
|
<tr>
|
729
723
|
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
730
|
-
<td>
|
724
|
+
<td>the desired height of the layout in Pango units if positive,
|
731
725
|
or desired number of lines if negative.
|
732
726
|
</td>
|
733
727
|
</tr>
|
@@ -736,18 +730,19 @@ future.</p>
|
|
736
730
|
<p class="since">Since 1.20</p>
|
737
731
|
</div>
|
738
732
|
<hr>
|
739
|
-
<div class="refsect2"
|
733
|
+
<div class="refsect2">
|
740
734
|
<a name="pango-layout-get-height"></a><h3>pango_layout_get_height ()</h3>
|
741
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_height (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
735
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_height (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
742
736
|
<p>
|
743
737
|
Gets the height of layout used for ellipsization. See
|
744
|
-
<a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()"><code class="function">pango_layout_set_height()</code></a> for details
|
738
|
+
<a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()"><code class="function">pango_layout_set_height()</code></a> for details.
|
739
|
+
</p>
|
745
740
|
<div class="variablelist"><table border="0">
|
746
741
|
<col align="left" valign="top">
|
747
742
|
<tbody>
|
748
743
|
<tr>
|
749
744
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
750
|
-
<td>
|
745
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
751
746
|
</td>
|
752
747
|
</tr>
|
753
748
|
<tr>
|
@@ -762,46 +757,48 @@ number of lines if negative.
|
|
762
757
|
<p class="since">Since 1.20</p>
|
763
758
|
</div>
|
764
759
|
<hr>
|
765
|
-
<div class="refsect2"
|
760
|
+
<div class="refsect2">
|
766
761
|
<a name="pango-layout-set-wrap"></a><h3>pango_layout_set_wrap ()</h3>
|
767
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_wrap (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
768
|
-
<a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="
|
762
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_wrap (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
763
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="type">PangoWrapMode</span></a> wrap</code></em>);</pre>
|
769
764
|
<p>
|
770
765
|
Sets the wrap mode; the wrap mode only has effect if a width
|
771
766
|
is set on the layout with <a class="link" href="pango-Layout-Objects.html#pango-layout-set-width" title="pango_layout_set_width ()"><code class="function">pango_layout_set_width()</code></a>.
|
772
|
-
To turn off wrapping, set the width to -1
|
767
|
+
To turn off wrapping, set the width to -1.
|
768
|
+
</p>
|
773
769
|
<div class="variablelist"><table border="0">
|
774
770
|
<col align="left" valign="top">
|
775
771
|
<tbody>
|
776
772
|
<tr>
|
777
773
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
778
|
-
<td>
|
774
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
779
775
|
</td>
|
780
776
|
</tr>
|
781
777
|
<tr>
|
782
778
|
<td><p><span class="term"><em class="parameter"><code>wrap</code></em> :</span></p></td>
|
783
|
-
<td>
|
779
|
+
<td>the wrap mode
|
784
780
|
</td>
|
785
781
|
</tr>
|
786
782
|
</tbody>
|
787
783
|
</table></div>
|
788
784
|
</div>
|
789
785
|
<hr>
|
790
|
-
<div class="refsect2"
|
786
|
+
<div class="refsect2">
|
791
787
|
<a name="pango-layout-get-wrap"></a><h3>pango_layout_get_wrap ()</h3>
|
792
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="returnvalue">PangoWrapMode</span></a> pango_layout_get_wrap (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
788
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="returnvalue">PangoWrapMode</span></a> pango_layout_get_wrap (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
793
789
|
<p>
|
794
790
|
Gets the wrap mode for the layout.
|
795
791
|
</p>
|
796
792
|
<p>
|
797
793
|
Use <a class="link" href="pango-Layout-Objects.html#pango-layout-is-wrapped" title="pango_layout_is_wrapped ()"><code class="function">pango_layout_is_wrapped()</code></a> to query whether any paragraphs
|
798
|
-
were actually wrapped
|
794
|
+
were actually wrapped.
|
795
|
+
</p>
|
799
796
|
<div class="variablelist"><table border="0">
|
800
797
|
<col align="left" valign="top">
|
801
798
|
<tbody>
|
802
799
|
<tr>
|
803
800
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
804
|
-
<td>
|
801
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
805
802
|
</td>
|
806
803
|
</tr>
|
807
804
|
<tr>
|
@@ -813,28 +810,29 @@ were actually wrapped.</p>
|
|
813
810
|
</table></div>
|
814
811
|
</div>
|
815
812
|
<hr>
|
816
|
-
<div class="refsect2"
|
813
|
+
<div class="refsect2">
|
817
814
|
<a name="pango-layout-is-wrapped"></a><h3>pango_layout_is_wrapped ()</h3>
|
818
|
-
<pre class="programlisting"><
|
815
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_is_wrapped (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
819
816
|
<p>
|
820
817
|
Queries whether the layout had to wrap any paragraphs.
|
821
818
|
</p>
|
822
819
|
<p>
|
823
|
-
This returns <
|
820
|
+
This returns <code class="literal">TRUE</code> if a positive width is set on <em class="parameter"><code>layout</code></em>,
|
824
821
|
ellipsization mode of <em class="parameter"><code>layout</code></em> is set to <a class="link" href="pango-Layout-Objects.html#PANGO-ELLIPSIZE-NONE:CAPS"><code class="literal">PANGO_ELLIPSIZE_NONE</code></a>,
|
825
822
|
and there are paragraphs exceeding the layout width that have
|
826
|
-
to be wrapped
|
823
|
+
to be wrapped.
|
824
|
+
</p>
|
827
825
|
<div class="variablelist"><table border="0">
|
828
826
|
<col align="left" valign="top">
|
829
827
|
<tbody>
|
830
828
|
<tr>
|
831
829
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
832
|
-
<td>
|
830
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
833
831
|
</td>
|
834
832
|
</tr>
|
835
833
|
<tr>
|
836
834
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
837
|
-
<td> <
|
835
|
+
<td> <code class="literal">TRUE</code> if any paragraphs had to be wrapped, <code class="literal">FALSE</code>
|
838
836
|
otherwise.
|
839
837
|
|
840
838
|
</td>
|
@@ -844,7 +842,7 @@ otherwise.
|
|
844
842
|
<p class="since">Since 1.16</p>
|
845
843
|
</div>
|
846
844
|
<hr>
|
847
|
-
<div class="refsect2"
|
845
|
+
<div class="refsect2">
|
848
846
|
<a name="PangoWrapMode"></a><h3>enum PangoWrapMode</h3>
|
849
847
|
<pre class="programlisting">typedef enum {
|
850
848
|
PANGO_WRAP_WORD,
|
@@ -878,19 +876,19 @@ enough space for a full word.
|
|
878
876
|
</table></div>
|
879
877
|
</div>
|
880
878
|
<hr>
|
881
|
-
<div class="refsect2"
|
879
|
+
<div class="refsect2">
|
882
880
|
<a name="PANGO-TYPE-WRAP-MODE:CAPS"></a><h3>PANGO_TYPE_WRAP_MODE</h3>
|
883
881
|
<pre class="programlisting">#define PANGO_TYPE_WRAP_MODE (pango_wrap_mode_get_type())
|
884
882
|
</pre>
|
885
883
|
<p>
|
886
|
-
The <
|
884
|
+
The <span class="type">GObject</span> type for <a class="link" href="pango-Layout-Objects.html#PangoWrapMode" title="enum PangoWrapMode"><span class="type">PangoWrapMode</span></a>.
|
887
885
|
</p>
|
888
886
|
</div>
|
889
887
|
<hr>
|
890
|
-
<div class="refsect2"
|
888
|
+
<div class="refsect2">
|
891
889
|
<a name="pango-layout-set-ellipsize"></a><h3>pango_layout_set_ellipsize ()</h3>
|
892
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_ellipsize (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
893
|
-
<a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="
|
890
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_ellipsize (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
891
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a> ellipsize</code></em>);</pre>
|
894
892
|
<p>
|
895
893
|
Sets the type of ellipsization being performed for <em class="parameter"><code>layout</code></em>.
|
896
894
|
Depending on the ellipsization mode <em class="parameter"><code>ellipsize</code></em> text is
|
@@ -903,18 +901,19 @@ If the layout contains characters such as newlines that
|
|
903
901
|
force it to be layed out in multiple paragraphs, then whether
|
904
902
|
each paragraph is ellipsized separately or the entire layout
|
905
903
|
is ellipsized as a whole depends on the set height of the layout.
|
906
|
-
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()"><code class="function">pango_layout_set_height()</code></a> for details
|
904
|
+
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" title="pango_layout_set_height ()"><code class="function">pango_layout_set_height()</code></a> for details.
|
905
|
+
</p>
|
907
906
|
<div class="variablelist"><table border="0">
|
908
907
|
<col align="left" valign="top">
|
909
908
|
<tbody>
|
910
909
|
<tr>
|
911
910
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
912
|
-
<td>
|
911
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
913
912
|
</td>
|
914
913
|
</tr>
|
915
914
|
<tr>
|
916
915
|
<td><p><span class="term"><em class="parameter"><code>ellipsize</code></em> :</span></p></td>
|
917
|
-
<td>
|
916
|
+
<td>the new ellipsization mode for <em class="parameter"><code>layout</code></em>
|
918
917
|
</td>
|
919
918
|
</tr>
|
920
919
|
</tbody>
|
@@ -922,18 +921,19 @@ See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-height" tit
|
|
922
921
|
<p class="since">Since 1.6</p>
|
923
922
|
</div>
|
924
923
|
<hr>
|
925
|
-
<div class="refsect2"
|
924
|
+
<div class="refsect2">
|
926
925
|
<a name="pango-layout-get-ellipsize"></a><h3>pango_layout_get_ellipsize ()</h3>
|
927
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a> pango_layout_get_ellipsize (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
926
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a> pango_layout_get_ellipsize (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
928
927
|
<p>
|
929
928
|
Gets the type of ellipsization being performed for <em class="parameter"><code>layout</code></em>.
|
930
|
-
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-ellipsize" title="pango_layout_set_ellipsize ()"><code class="function">pango_layout_set_ellipsize()</code></a
|
929
|
+
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-ellipsize" title="pango_layout_set_ellipsize ()"><code class="function">pango_layout_set_ellipsize()</code></a>
|
930
|
+
</p>
|
931
931
|
<div class="variablelist"><table border="0">
|
932
932
|
<col align="left" valign="top">
|
933
933
|
<tbody>
|
934
934
|
<tr>
|
935
935
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
936
|
-
<td>
|
936
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
937
937
|
</td>
|
938
938
|
</tr>
|
939
939
|
<tr>
|
@@ -950,28 +950,29 @@ were actually ellipsized.
|
|
950
950
|
<p class="since">Since 1.6</p>
|
951
951
|
</div>
|
952
952
|
<hr>
|
953
|
-
<div class="refsect2"
|
953
|
+
<div class="refsect2">
|
954
954
|
<a name="pango-layout-is-ellipsized"></a><h3>pango_layout_is_ellipsized ()</h3>
|
955
|
-
<pre class="programlisting"><
|
955
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_is_ellipsized (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
956
956
|
<p>
|
957
957
|
Queries whether the layout had to ellipsize any paragraphs.
|
958
958
|
</p>
|
959
959
|
<p>
|
960
|
-
This returns <
|
960
|
+
This returns <code class="literal">TRUE</code> if the ellipsization mode for <em class="parameter"><code>layout</code></em>
|
961
961
|
is not <a class="link" href="pango-Layout-Objects.html#PANGO-ELLIPSIZE-NONE:CAPS"><code class="literal">PANGO_ELLIPSIZE_NONE</code></a>, a positive width is set on <em class="parameter"><code>layout</code></em>,
|
962
962
|
and there are paragraphs exceeding that width that have to be
|
963
|
-
ellipsized
|
963
|
+
ellipsized.
|
964
|
+
</p>
|
964
965
|
<div class="variablelist"><table border="0">
|
965
966
|
<col align="left" valign="top">
|
966
967
|
<tbody>
|
967
968
|
<tr>
|
968
969
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
969
|
-
<td>
|
970
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
970
971
|
</td>
|
971
972
|
</tr>
|
972
973
|
<tr>
|
973
974
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
974
|
-
<td> <
|
975
|
+
<td> <code class="literal">TRUE</code> if any paragraphs had to be ellipsized, <code class="literal">FALSE</code>
|
975
976
|
otherwise.
|
976
977
|
|
977
978
|
</td>
|
@@ -981,7 +982,7 @@ otherwise.
|
|
981
982
|
<p class="since">Since 1.16</p>
|
982
983
|
</div>
|
983
984
|
<hr>
|
984
|
-
<div class="refsect2"
|
985
|
+
<div class="refsect2">
|
985
986
|
<a name="PangoEllipsizeMode"></a><h3>enum PangoEllipsizeMode</h3>
|
986
987
|
<pre class="programlisting">typedef enum {
|
987
988
|
PANGO_ELLIPSIZE_NONE,
|
@@ -995,47 +996,48 @@ The <a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="e
|
|
995
996
|
ellipsization should be applied to a line of text. In
|
996
997
|
the ellipsization process characters are removed from the
|
997
998
|
text in order to make it fit to a given width and replaced
|
998
|
-
with an ellipsis
|
999
|
+
with an ellipsis.
|
1000
|
+
</p>
|
999
1001
|
<div class="variablelist"><table border="0">
|
1000
1002
|
<col align="left" valign="top">
|
1001
1003
|
<tbody>
|
1002
1004
|
<tr>
|
1003
1005
|
<td><p><a name="PANGO-ELLIPSIZE-NONE:CAPS"></a><span class="term"><code class="literal">PANGO_ELLIPSIZE_NONE</code></span></p></td>
|
1004
|
-
<td>
|
1006
|
+
<td>No ellipsization
|
1005
1007
|
</td>
|
1006
1008
|
</tr>
|
1007
1009
|
<tr>
|
1008
1010
|
<td><p><a name="PANGO-ELLIPSIZE-START:CAPS"></a><span class="term"><code class="literal">PANGO_ELLIPSIZE_START</code></span></p></td>
|
1009
|
-
<td>
|
1011
|
+
<td>Omit characters at the start of the text
|
1010
1012
|
</td>
|
1011
1013
|
</tr>
|
1012
1014
|
<tr>
|
1013
1015
|
<td><p><a name="PANGO-ELLIPSIZE-MIDDLE:CAPS"></a><span class="term"><code class="literal">PANGO_ELLIPSIZE_MIDDLE</code></span></p></td>
|
1014
|
-
<td>
|
1016
|
+
<td>Omit characters in the middle of the text
|
1015
1017
|
</td>
|
1016
1018
|
</tr>
|
1017
1019
|
<tr>
|
1018
1020
|
<td><p><a name="PANGO-ELLIPSIZE-END:CAPS"></a><span class="term"><code class="literal">PANGO_ELLIPSIZE_END</code></span></p></td>
|
1019
|
-
<td>
|
1021
|
+
<td>Omit characters at the end of the text
|
1020
1022
|
</td>
|
1021
1023
|
</tr>
|
1022
1024
|
</tbody>
|
1023
1025
|
</table></div>
|
1024
1026
|
</div>
|
1025
1027
|
<hr>
|
1026
|
-
<div class="refsect2"
|
1028
|
+
<div class="refsect2">
|
1027
1029
|
<a name="PANGO-TYPE-ELLIPSIZE-MODE:CAPS"></a><h3>PANGO_TYPE_ELLIPSIZE_MODE</h3>
|
1028
1030
|
<pre class="programlisting">#define PANGO_TYPE_ELLIPSIZE_MODE (pango_ellipsize_mode_get_type())
|
1029
1031
|
</pre>
|
1030
1032
|
<p>
|
1031
|
-
The <
|
1033
|
+
The <span class="type">GObject</span> type for <a class="link" href="pango-Layout-Objects.html#PangoEllipsizeMode" title="enum PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a>.
|
1032
1034
|
</p>
|
1033
1035
|
</div>
|
1034
1036
|
<hr>
|
1035
|
-
<div class="refsect2"
|
1037
|
+
<div class="refsect2">
|
1036
1038
|
<a name="pango-layout-set-indent"></a><h3>pango_layout_set_indent ()</h3>
|
1037
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_indent (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1038
|
-
<span class="
|
1039
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_indent (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1040
|
+
<em class="parameter"><code><span class="type">int</span> indent</code></em>);</pre>
|
1039
1041
|
<p>
|
1040
1042
|
Sets the width in Pango units to indent each paragraph. A negative value
|
1041
1043
|
of <em class="parameter"><code>indent</code></em> will produce a hanging indentation. That is, the first line will
|
@@ -1044,36 +1046,38 @@ absolute value of <em class="parameter"><code>indent</code></em>.
|
|
1044
1046
|
</p>
|
1045
1047
|
<p>
|
1046
1048
|
The indent setting is ignored if layout alignment is set to
|
1047
|
-
<a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-CENTER:CAPS"><code class="literal">PANGO_ALIGN_CENTER</code></a
|
1049
|
+
<a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-CENTER:CAPS"><code class="literal">PANGO_ALIGN_CENTER</code></a>.
|
1050
|
+
</p>
|
1048
1051
|
<div class="variablelist"><table border="0">
|
1049
1052
|
<col align="left" valign="top">
|
1050
1053
|
<tbody>
|
1051
1054
|
<tr>
|
1052
1055
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1053
|
-
<td>
|
1056
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
1054
1057
|
</td>
|
1055
1058
|
</tr>
|
1056
1059
|
<tr>
|
1057
1060
|
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
|
1058
|
-
<td>
|
1061
|
+
<td>the amount by which to indent.
|
1059
1062
|
</td>
|
1060
1063
|
</tr>
|
1061
1064
|
</tbody>
|
1062
1065
|
</table></div>
|
1063
1066
|
</div>
|
1064
1067
|
<hr>
|
1065
|
-
<div class="refsect2"
|
1068
|
+
<div class="refsect2">
|
1066
1069
|
<a name="pango-layout-get-indent"></a><h3>pango_layout_get_indent ()</h3>
|
1067
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_indent (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1070
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_indent (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1068
1071
|
<p>
|
1069
1072
|
Gets the paragraph indent width in Pango units. A negative value
|
1070
|
-
indicates a hanging indentation
|
1073
|
+
indicates a hanging indentation.
|
1074
|
+
</p>
|
1071
1075
|
<div class="variablelist"><table border="0">
|
1072
1076
|
<col align="left" valign="top">
|
1073
1077
|
<tbody>
|
1074
1078
|
<tr>
|
1075
1079
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1076
|
-
<td>
|
1080
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1077
1081
|
</td>
|
1078
1082
|
</tr>
|
1079
1083
|
<tr>
|
@@ -1085,17 +1089,18 @@ indicates a hanging indentation.</p>
|
|
1085
1089
|
</table></div>
|
1086
1090
|
</div>
|
1087
1091
|
<hr>
|
1088
|
-
<div class="refsect2"
|
1092
|
+
<div class="refsect2">
|
1089
1093
|
<a name="pango-layout-get-spacing"></a><h3>pango_layout_get_spacing ()</h3>
|
1090
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_spacing (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1094
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_spacing (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1091
1095
|
<p>
|
1092
|
-
Gets the amount of spacing between the lines of the layout
|
1096
|
+
Gets the amount of spacing between the lines of the layout.
|
1097
|
+
</p>
|
1093
1098
|
<div class="variablelist"><table border="0">
|
1094
1099
|
<col align="left" valign="top">
|
1095
1100
|
<tbody>
|
1096
1101
|
<tr>
|
1097
1102
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1098
|
-
<td>
|
1103
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1099
1104
|
</td>
|
1100
1105
|
</tr>
|
1101
1106
|
<tr>
|
@@ -1107,34 +1112,35 @@ Gets the amount of spacing between the lines of the layout.</p>
|
|
1107
1112
|
</table></div>
|
1108
1113
|
</div>
|
1109
1114
|
<hr>
|
1110
|
-
<div class="refsect2"
|
1115
|
+
<div class="refsect2">
|
1111
1116
|
<a name="pango-layout-set-spacing"></a><h3>pango_layout_set_spacing ()</h3>
|
1112
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_spacing (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1113
|
-
<span class="
|
1117
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_spacing (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1118
|
+
<em class="parameter"><code><span class="type">int</span> spacing</code></em>);</pre>
|
1114
1119
|
<p>
|
1115
1120
|
Sets the amount of spacing in Pango unit between the lines of the
|
1116
|
-
layout
|
1121
|
+
layout.
|
1122
|
+
</p>
|
1117
1123
|
<div class="variablelist"><table border="0">
|
1118
1124
|
<col align="left" valign="top">
|
1119
1125
|
<tbody>
|
1120
1126
|
<tr>
|
1121
1127
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1122
|
-
<td>
|
1128
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
1123
1129
|
</td>
|
1124
1130
|
</tr>
|
1125
1131
|
<tr>
|
1126
1132
|
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
|
1127
|
-
<td>
|
1133
|
+
<td>the amount of spacing
|
1128
1134
|
</td>
|
1129
1135
|
</tr>
|
1130
1136
|
</tbody>
|
1131
1137
|
</table></div>
|
1132
1138
|
</div>
|
1133
1139
|
<hr>
|
1134
|
-
<div class="refsect2"
|
1140
|
+
<div class="refsect2">
|
1135
1141
|
<a name="pango-layout-set-justify"></a><h3>pango_layout_set_justify ()</h3>
|
1136
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_justify (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1137
|
-
<
|
1142
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_justify (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1143
|
+
<em class="parameter"><code><span class="type">gboolean</span> justify</code></em>);</pre>
|
1138
1144
|
<p>
|
1139
1145
|
Sets whether each complete line should be stretched to
|
1140
1146
|
fill the entire width of the layout. This stretching is typically
|
@@ -1144,36 +1150,38 @@ the characters.
|
|
1144
1150
|
</p>
|
1145
1151
|
<p>
|
1146
1152
|
Note that this setting is not implemented and so is ignored in Pango
|
1147
|
-
older than 1.18
|
1153
|
+
older than 1.18.
|
1154
|
+
</p>
|
1148
1155
|
<div class="variablelist"><table border="0">
|
1149
1156
|
<col align="left" valign="top">
|
1150
1157
|
<tbody>
|
1151
1158
|
<tr>
|
1152
1159
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1153
|
-
<td>
|
1160
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1154
1161
|
</td>
|
1155
1162
|
</tr>
|
1156
1163
|
<tr>
|
1157
1164
|
<td><p><span class="term"><em class="parameter"><code>justify</code></em> :</span></p></td>
|
1158
|
-
<td>
|
1165
|
+
<td>whether the lines in the layout should be justified.
|
1159
1166
|
</td>
|
1160
1167
|
</tr>
|
1161
1168
|
</tbody>
|
1162
1169
|
</table></div>
|
1163
1170
|
</div>
|
1164
1171
|
<hr>
|
1165
|
-
<div class="refsect2"
|
1172
|
+
<div class="refsect2">
|
1166
1173
|
<a name="pango-layout-get-justify"></a><h3>pango_layout_get_justify ()</h3>
|
1167
|
-
<pre class="programlisting"><
|
1174
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_get_justify (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1168
1175
|
<p>
|
1169
1176
|
Gets whether each complete line should be stretched to fill the entire
|
1170
|
-
width of the layout
|
1177
|
+
width of the layout.
|
1178
|
+
</p>
|
1171
1179
|
<div class="variablelist"><table border="0">
|
1172
1180
|
<col align="left" valign="top">
|
1173
1181
|
<tbody>
|
1174
1182
|
<tr>
|
1175
1183
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1176
|
-
<td>
|
1184
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1177
1185
|
</td>
|
1178
1186
|
</tr>
|
1179
1187
|
<tr>
|
@@ -1185,10 +1193,10 @@ width of the layout.</p>
|
|
1185
1193
|
</table></div>
|
1186
1194
|
</div>
|
1187
1195
|
<hr>
|
1188
|
-
<div class="refsect2"
|
1196
|
+
<div class="refsect2">
|
1189
1197
|
<a name="pango-layout-set-auto-dir"></a><h3>pango_layout_set_auto_dir ()</h3>
|
1190
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_auto_dir (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1191
|
-
<
|
1198
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_auto_dir (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1199
|
+
<em class="parameter"><code><span class="type">gboolean</span> auto_dir</code></em>);</pre>
|
1192
1200
|
<p>
|
1193
1201
|
Sets whether to calculate the bidirectional base direction
|
1194
1202
|
for the layout according to the contents of the layout;
|
@@ -1200,25 +1208,26 @@ have left-to-right layout. Paragraphs with only neutral
|
|
1200
1208
|
characters get their direction from the surrounding paragraphs.
|
1201
1209
|
</p>
|
1202
1210
|
<p>
|
1203
|
-
When <
|
1211
|
+
When <code class="literal">FALSE</code>, the choice between left-to-right and
|
1204
1212
|
right-to-left layout is done according to the base direction
|
1205
1213
|
of the layout's <a class="link" href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a>. (See <a class="link" href="pango-Text-Processing.html#pango-context-set-base-dir" title="pango_context_set_base_dir ()"><code class="function">pango_context_set_base_dir()</code></a>).
|
1206
1214
|
</p>
|
1207
1215
|
<p>
|
1208
1216
|
When the auto-computed direction of a paragraph differs from the
|
1209
1217
|
base direction of the context, the interpretation of
|
1210
|
-
<a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-LEFT:CAPS"><code class="literal">PANGO_ALIGN_LEFT</code></a> and <a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-RIGHT:CAPS"><code class="literal">PANGO_ALIGN_RIGHT</code></a> are swapped
|
1218
|
+
<a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-LEFT:CAPS"><code class="literal">PANGO_ALIGN_LEFT</code></a> and <a class="link" href="pango-Layout-Objects.html#PANGO-ALIGN-RIGHT:CAPS"><code class="literal">PANGO_ALIGN_RIGHT</code></a> are swapped.
|
1219
|
+
</p>
|
1211
1220
|
<div class="variablelist"><table border="0">
|
1212
1221
|
<col align="left" valign="top">
|
1213
1222
|
<tbody>
|
1214
1223
|
<tr>
|
1215
1224
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1216
|
-
<td>
|
1225
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1217
1226
|
</td>
|
1218
1227
|
</tr>
|
1219
1228
|
<tr>
|
1220
1229
|
<td><p><span class="term"><em class="parameter"><code>auto_dir</code></em> :</span></p></td>
|
1221
|
-
<td>
|
1230
|
+
<td>if <code class="literal">TRUE</code>, compute the bidirectional base direction
|
1222
1231
|
from the layout's contents.
|
1223
1232
|
</td>
|
1224
1233
|
</tr>
|
@@ -1227,25 +1236,26 @@ base direction of the context, the interpretation of
|
|
1227
1236
|
<p class="since">Since 1.4</p>
|
1228
1237
|
</div>
|
1229
1238
|
<hr>
|
1230
|
-
<div class="refsect2"
|
1239
|
+
<div class="refsect2">
|
1231
1240
|
<a name="pango-layout-get-auto-dir"></a><h3>pango_layout_get_auto_dir ()</h3>
|
1232
|
-
<pre class="programlisting"><
|
1241
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_get_auto_dir (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1233
1242
|
<p>
|
1234
1243
|
Gets whether to calculate the bidirectional base direction
|
1235
1244
|
for the layout according to the contents of the layout.
|
1236
|
-
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-auto-dir" title="pango_layout_set_auto_dir ()"><code class="function">pango_layout_set_auto_dir()</code></a
|
1245
|
+
See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-auto-dir" title="pango_layout_set_auto_dir ()"><code class="function">pango_layout_set_auto_dir()</code></a>.
|
1246
|
+
</p>
|
1237
1247
|
<div class="variablelist"><table border="0">
|
1238
1248
|
<col align="left" valign="top">
|
1239
1249
|
<tbody>
|
1240
1250
|
<tr>
|
1241
1251
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1242
|
-
<td>
|
1252
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1243
1253
|
</td>
|
1244
1254
|
</tr>
|
1245
1255
|
<tr>
|
1246
1256
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1247
|
-
<td> <
|
1248
|
-
is computed from the layout's contents, <
|
1257
|
+
<td> <code class="literal">TRUE</code> if the bidirectional base direction
|
1258
|
+
is computed from the layout's contents, <code class="literal">FALSE</code> otherwise.
|
1249
1259
|
|
1250
1260
|
</td>
|
1251
1261
|
</tr>
|
@@ -1254,42 +1264,44 @@ See <a class="link" href="pango-Layout-Objects.html#pango-layout-set-auto-dir" t
|
|
1254
1264
|
<p class="since">Since 1.4</p>
|
1255
1265
|
</div>
|
1256
1266
|
<hr>
|
1257
|
-
<div class="refsect2"
|
1267
|
+
<div class="refsect2">
|
1258
1268
|
<a name="pango-layout-set-alignment"></a><h3>pango_layout_set_alignment ()</h3>
|
1259
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_alignment (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1260
|
-
<a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="
|
1269
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_alignment (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1270
|
+
<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="type">PangoAlignment</span></a> alignment</code></em>);</pre>
|
1261
1271
|
<p>
|
1262
1272
|
Sets the alignment for the layout: how partial lines are
|
1263
|
-
positioned within the horizontal space available
|
1273
|
+
positioned within the horizontal space available.
|
1274
|
+
</p>
|
1264
1275
|
<div class="variablelist"><table border="0">
|
1265
1276
|
<col align="left" valign="top">
|
1266
1277
|
<tbody>
|
1267
1278
|
<tr>
|
1268
1279
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1269
|
-
<td>
|
1280
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1270
1281
|
</td>
|
1271
1282
|
</tr>
|
1272
1283
|
<tr>
|
1273
1284
|
<td><p><span class="term"><em class="parameter"><code>alignment</code></em> :</span></p></td>
|
1274
|
-
<td>
|
1285
|
+
<td>the alignment
|
1275
1286
|
</td>
|
1276
1287
|
</tr>
|
1277
1288
|
</tbody>
|
1278
1289
|
</table></div>
|
1279
1290
|
</div>
|
1280
1291
|
<hr>
|
1281
|
-
<div class="refsect2"
|
1292
|
+
<div class="refsect2">
|
1282
1293
|
<a name="pango-layout-get-alignment"></a><h3>pango_layout_get_alignment ()</h3>
|
1283
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="returnvalue">PangoAlignment</span></a> pango_layout_get_alignment (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1294
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="returnvalue">PangoAlignment</span></a> pango_layout_get_alignment (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1284
1295
|
<p>
|
1285
1296
|
Gets the alignment for the layout: how partial lines are
|
1286
|
-
positioned within the horizontal space available
|
1297
|
+
positioned within the horizontal space available.
|
1298
|
+
</p>
|
1287
1299
|
<div class="variablelist"><table border="0">
|
1288
1300
|
<col align="left" valign="top">
|
1289
1301
|
<tbody>
|
1290
1302
|
<tr>
|
1291
1303
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1292
|
-
<td>
|
1304
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1293
1305
|
</td>
|
1294
1306
|
</tr>
|
1295
1307
|
<tr>
|
@@ -1301,109 +1313,113 @@ positioned within the horizontal space available.</p>
|
|
1301
1313
|
</table></div>
|
1302
1314
|
</div>
|
1303
1315
|
<hr>
|
1304
|
-
<div class="refsect2"
|
1316
|
+
<div class="refsect2">
|
1305
1317
|
<a name="pango-layout-set-tabs"></a><h3>pango_layout_set_tabs ()</h3>
|
1306
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_tabs (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1307
|
-
<a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="
|
1318
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_tabs (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1319
|
+
<em class="parameter"><code><a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);</pre>
|
1308
1320
|
<p>
|
1309
1321
|
Sets the tabs to use for <em class="parameter"><code>layout</code></em>, overriding the default tabs
|
1310
|
-
(by default, tabs are every 8 spaces). If <em class="parameter"><code>tabs</code></em> is <a href="/usr/share/gtk-doc/html/
|
1322
|
+
(by default, tabs are every 8 spaces). If <em class="parameter"><code>tabs</code></em> is <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, the default
|
1311
1323
|
tabs are reinstated. <em class="parameter"><code>tabs</code></em> is copied into the layout; you must
|
1312
|
-
free your copy of <em class="parameter"><code>tabs</code></em> yourself
|
1324
|
+
free your copy of <em class="parameter"><code>tabs</code></em> yourself.
|
1325
|
+
</p>
|
1313
1326
|
<div class="variablelist"><table border="0">
|
1314
1327
|
<col align="left" valign="top">
|
1315
1328
|
<tbody>
|
1316
1329
|
<tr>
|
1317
1330
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1318
|
-
<td>
|
1331
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1319
1332
|
</td>
|
1320
1333
|
</tr>
|
1321
1334
|
<tr>
|
1322
1335
|
<td><p><span class="term"><em class="parameter"><code>tabs</code></em> :</span></p></td>
|
1323
|
-
<td>
|
1336
|
+
<td>a <a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="type">PangoTabArray</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
1324
1337
|
</td>
|
1325
1338
|
</tr>
|
1326
1339
|
</tbody>
|
1327
1340
|
</table></div>
|
1328
1341
|
</div>
|
1329
1342
|
<hr>
|
1330
|
-
<div class="refsect2"
|
1343
|
+
<div class="refsect2">
|
1331
1344
|
<a name="pango-layout-get-tabs"></a><h3>pango_layout_get_tabs ()</h3>
|
1332
|
-
<pre class="programlisting"><a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="returnvalue">PangoTabArray</span></a
|
1345
|
+
<pre class="programlisting"><a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> * pango_layout_get_tabs (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1333
1346
|
<p>
|
1334
1347
|
Gets the current <a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="type">PangoTabArray</span></a> used by this layout. If no
|
1335
1348
|
<a class="link" href="pango-Tab-Stops.html#PangoTabArray" title="PangoTabArray"><span class="type">PangoTabArray</span></a> has been set, then the default tabs are in use
|
1336
|
-
and <a href="/usr/share/gtk-doc/html/
|
1337
|
-
The return value should be freed with <a class="link" href="pango-Tab-Stops.html#pango-tab-array-free" title="pango_tab_array_free ()"><code class="function">pango_tab_array_free()</code></a
|
1349
|
+
and <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> is returned. Default tabs are every 8 spaces.
|
1350
|
+
The return value should be freed with <a class="link" href="pango-Tab-Stops.html#pango-tab-array-free" title="pango_tab_array_free ()"><code class="function">pango_tab_array_free()</code></a>.
|
1351
|
+
</p>
|
1338
1352
|
<div class="variablelist"><table border="0">
|
1339
1353
|
<col align="left" valign="top">
|
1340
1354
|
<tbody>
|
1341
1355
|
<tr>
|
1342
1356
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1343
|
-
<td>
|
1357
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1344
1358
|
</td>
|
1345
1359
|
</tr>
|
1346
1360
|
<tr>
|
1347
1361
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1348
|
-
<td> a copy of the tabs for this layout, or <a href="/usr/share/gtk-doc/html/
|
1362
|
+
<td> a copy of the tabs for this layout, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
|
1349
1363
|
</td>
|
1350
1364
|
</tr>
|
1351
1365
|
</tbody>
|
1352
1366
|
</table></div>
|
1353
1367
|
</div>
|
1354
1368
|
<hr>
|
1355
|
-
<div class="refsect2"
|
1369
|
+
<div class="refsect2">
|
1356
1370
|
<a name="pango-layout-set-single-paragraph-mode"></a><h3>pango_layout_set_single_paragraph_mode ()</h3>
|
1357
1371
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_set_single_paragraph_mode
|
1358
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1359
|
-
<
|
1372
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1373
|
+
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
|
1360
1374
|
<p>
|
1361
|
-
If <em class="parameter"><code>setting</code></em> is <
|
1375
|
+
If <em class="parameter"><code>setting</code></em> is <code class="literal">TRUE</code>, do not treat newlines and similar characters
|
1362
1376
|
as paragraph separators; instead, keep all text in a single paragraph,
|
1363
1377
|
and display a glyph for paragraph separator characters. Used when
|
1364
|
-
you want to allow editing of newlines on a single text line
|
1378
|
+
you want to allow editing of newlines on a single text line.
|
1379
|
+
</p>
|
1365
1380
|
<div class="variablelist"><table border="0">
|
1366
1381
|
<col align="left" valign="top">
|
1367
1382
|
<tbody>
|
1368
1383
|
<tr>
|
1369
1384
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1370
|
-
<td>
|
1385
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1371
1386
|
</td>
|
1372
1387
|
</tr>
|
1373
1388
|
<tr>
|
1374
1389
|
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
|
1375
|
-
<td>
|
1390
|
+
<td>new setting
|
1376
1391
|
</td>
|
1377
1392
|
</tr>
|
1378
1393
|
</tbody>
|
1379
1394
|
</table></div>
|
1380
1395
|
</div>
|
1381
1396
|
<hr>
|
1382
|
-
<div class="refsect2"
|
1397
|
+
<div class="refsect2">
|
1383
1398
|
<a name="pango-layout-get-single-paragraph-mode"></a><h3>pango_layout_get_single_paragraph_mode ()</h3>
|
1384
|
-
<pre class="programlisting"><
|
1385
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1399
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_get_single_paragraph_mode
|
1400
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1386
1401
|
<p>
|
1387
|
-
Obtains the value set by <a class="link" href="pango-Layout-Objects.html#pango-layout-set-single-paragraph-mode" title="pango_layout_set_single_paragraph_mode ()"><code class="function">pango_layout_set_single_paragraph_mode()</code></a
|
1402
|
+
Obtains the value set by <a class="link" href="pango-Layout-Objects.html#pango-layout-set-single-paragraph-mode" title="pango_layout_set_single_paragraph_mode ()"><code class="function">pango_layout_set_single_paragraph_mode()</code></a>.
|
1403
|
+
</p>
|
1388
1404
|
<div class="variablelist"><table border="0">
|
1389
1405
|
<col align="left" valign="top">
|
1390
1406
|
<tbody>
|
1391
1407
|
<tr>
|
1392
1408
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1393
|
-
<td>
|
1409
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1394
1410
|
</td>
|
1395
1411
|
</tr>
|
1396
1412
|
<tr>
|
1397
1413
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1398
|
-
<td> <
|
1399
|
-
paragraph separator characters, <
|
1414
|
+
<td> <code class="literal">TRUE</code> if the layout does not break paragraphs at
|
1415
|
+
paragraph separator characters, <code class="literal">FALSE</code> otherwise.
|
1400
1416
|
</td>
|
1401
1417
|
</tr>
|
1402
1418
|
</tbody>
|
1403
1419
|
</table></div>
|
1404
1420
|
</div>
|
1405
1421
|
<hr>
|
1406
|
-
<div class="refsect2"
|
1422
|
+
<div class="refsect2">
|
1407
1423
|
<a name="PangoAlignment"></a><h3>enum PangoAlignment</h3>
|
1408
1424
|
<pre class="programlisting">typedef enum {
|
1409
1425
|
PANGO_ALIGN_LEFT,
|
@@ -1438,19 +1454,19 @@ using <a class="link" href="pango-Layout-Objects.html#pango-layout-set-justify"
|
|
1438
1454
|
</table></div>
|
1439
1455
|
</div>
|
1440
1456
|
<hr>
|
1441
|
-
<div class="refsect2"
|
1457
|
+
<div class="refsect2">
|
1442
1458
|
<a name="PANGO-TYPE-ALIGNMENT:CAPS"></a><h3>PANGO_TYPE_ALIGNMENT</h3>
|
1443
1459
|
<pre class="programlisting">#define PANGO_TYPE_ALIGNMENT (pango_alignment_get_type())
|
1444
1460
|
</pre>
|
1445
1461
|
<p>
|
1446
|
-
The <
|
1462
|
+
The <span class="type">GObject</span> type for <a class="link" href="pango-Layout-Objects.html#PangoAlignment" title="enum PangoAlignment"><span class="type">PangoAlignment</span></a>.
|
1447
1463
|
</p>
|
1448
1464
|
</div>
|
1449
1465
|
<hr>
|
1450
|
-
<div class="refsect2"
|
1466
|
+
<div class="refsect2">
|
1451
1467
|
<a name="pango-layout-get-unknown-glyphs-count"></a><h3>pango_layout_get_unknown_glyphs_count ()</h3>
|
1452
1468
|
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_unknown_glyphs_count
|
1453
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1469
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1454
1470
|
<p>
|
1455
1471
|
Counts the number unknown glyphs in <em class="parameter"><code>layout</code></em>. That is, zero if
|
1456
1472
|
glyphs for all characters in the layout text were found, or more
|
@@ -1460,13 +1476,14 @@ than zero otherwise.
|
|
1460
1476
|
This function can be used to determine if there are any fonts
|
1461
1477
|
available to render all characters in a certain string, or when
|
1462
1478
|
used in combination with <a class="link" href="pango-Text-Attributes.html#PANGO-ATTR-FALLBACK:CAPS"><code class="literal">PANGO_ATTR_FALLBACK</code></a>, to check if a
|
1463
|
-
certain font supports all the characters in the string
|
1479
|
+
certain font supports all the characters in the string.
|
1480
|
+
</p>
|
1464
1481
|
<div class="variablelist"><table border="0">
|
1465
1482
|
<col align="left" valign="top">
|
1466
1483
|
<tbody>
|
1467
1484
|
<tr>
|
1468
1485
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1469
|
-
<td>
|
1486
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1470
1487
|
</td>
|
1471
1488
|
</tr>
|
1472
1489
|
<tr>
|
@@ -1480,31 +1497,32 @@ certain font supports all the characters in the string.</p>
|
|
1480
1497
|
<p class="since">Since 1.16</p>
|
1481
1498
|
</div>
|
1482
1499
|
<hr>
|
1483
|
-
<div class="refsect2"
|
1500
|
+
<div class="refsect2">
|
1484
1501
|
<a name="pango-layout-get-log-attrs"></a><h3>pango_layout_get_log_attrs ()</h3>
|
1485
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_log_attrs (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1486
|
-
<a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="
|
1487
|
-
<
|
1502
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_log_attrs (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1503
|
+
<em class="parameter"><code><a class="link" href="pango-Text-Processing.html#PangoLogAttr" title="PangoLogAttr"><span class="type">PangoLogAttr</span></a> **attrs</code></em>,
|
1504
|
+
<em class="parameter"><code><span class="type">gint</span> *n_attrs</code></em>);</pre>
|
1488
1505
|
<p>
|
1489
1506
|
Retrieves an array of logical attributes for each character in
|
1490
|
-
the <em class="parameter"><code>layout</code></em
|
1507
|
+
the <em class="parameter"><code>layout</code></em>.
|
1508
|
+
</p>
|
1491
1509
|
<div class="variablelist"><table border="0">
|
1492
1510
|
<col align="left" valign="top">
|
1493
1511
|
<tbody>
|
1494
1512
|
<tr>
|
1495
1513
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1496
|
-
<td>
|
1514
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1497
1515
|
</td>
|
1498
1516
|
</tr>
|
1499
1517
|
<tr>
|
1500
1518
|
<td><p><span class="term"><em class="parameter"><code>attrs</code></em> :</span></p></td>
|
1501
|
-
<td>
|
1502
|
-
This value must be freed with <
|
1519
|
+
<td>location to store a pointer to an array of logical attributes
|
1520
|
+
This value must be freed with <code class="function">g_free()</code>.
|
1503
1521
|
</td>
|
1504
1522
|
</tr>
|
1505
1523
|
<tr>
|
1506
1524
|
<td><p><span class="term"><em class="parameter"><code>n_attrs</code></em> :</span></p></td>
|
1507
|
-
<td>
|
1525
|
+
<td>location to store the number of the attributes in the
|
1508
1526
|
array. (The stored value will be one more than the total number
|
1509
1527
|
of characters in the layout, since there need to be attributes
|
1510
1528
|
corresponding to both the position before the first character
|
@@ -1515,79 +1533,81 @@ the <em class="parameter"><code>layout</code></em>.</p>
|
|
1515
1533
|
</table></div>
|
1516
1534
|
</div>
|
1517
1535
|
<hr>
|
1518
|
-
<div class="refsect2"
|
1536
|
+
<div class="refsect2">
|
1519
1537
|
<a name="pango-layout-index-to-pos"></a><h3>pango_layout_index_to_pos ()</h3>
|
1520
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_index_to_pos (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1521
|
-
<span class="
|
1522
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1538
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_index_to_pos (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1539
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
1540
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *pos</code></em>);</pre>
|
1523
1541
|
<p>
|
1524
1542
|
Converts from an index within a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to the onscreen position
|
1525
1543
|
corresponding to the grapheme at that index, which is represented
|
1526
1544
|
as rectangle. Note that <code class="literal">pos->x</code> is always the leading
|
1527
1545
|
edge of the grapheme and <code class="literal">pos->x + pos->width</code> the trailing
|
1528
1546
|
edge of the grapheme. If the directionality of the grapheme is right-to-left,
|
1529
|
-
then <code class="literal">pos->width</code> will be negative
|
1547
|
+
then <code class="literal">pos->width</code> will be negative.
|
1548
|
+
</p>
|
1530
1549
|
<div class="variablelist"><table border="0">
|
1531
1550
|
<col align="left" valign="top">
|
1532
1551
|
<tbody>
|
1533
1552
|
<tr>
|
1534
1553
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1535
|
-
<td>
|
1554
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1536
1555
|
</td>
|
1537
1556
|
</tr>
|
1538
1557
|
<tr>
|
1539
1558
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
1540
|
-
<td>
|
1559
|
+
<td>byte index within <em class="parameter"><code>layout</code></em>
|
1541
1560
|
</td>
|
1542
1561
|
</tr>
|
1543
1562
|
<tr>
|
1544
1563
|
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
|
1545
|
-
<td>
|
1564
|
+
<td>rectangle in which to store the position of the grapheme
|
1546
1565
|
</td>
|
1547
1566
|
</tr>
|
1548
1567
|
</tbody>
|
1549
1568
|
</table></div>
|
1550
1569
|
</div>
|
1551
1570
|
<hr>
|
1552
|
-
<div class="refsect2"
|
1571
|
+
<div class="refsect2">
|
1553
1572
|
<a name="pango-layout-index-to-line-x"></a><h3>pango_layout_index_to_line_x ()</h3>
|
1554
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_index_to_line_x (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1555
|
-
<span class="
|
1556
|
-
<
|
1557
|
-
<span class="
|
1558
|
-
<span class="
|
1573
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_index_to_line_x (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1574
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
1575
|
+
<em class="parameter"><code><span class="type">gboolean</span> trailing</code></em>,
|
1576
|
+
<em class="parameter"><code><span class="type">int</span> *line</code></em>,
|
1577
|
+
<em class="parameter"><code><span class="type">int</span> *x_pos</code></em>);</pre>
|
1559
1578
|
<p>
|
1560
1579
|
Converts from byte <em class="parameter"><code>index_</code></em> within the <em class="parameter"><code>layout</code></em> to line and X position.
|
1561
|
-
(X position is measured from the left edge of the line)
|
1580
|
+
(X position is measured from the left edge of the line)
|
1581
|
+
</p>
|
1562
1582
|
<div class="variablelist"><table border="0">
|
1563
1583
|
<col align="left" valign="top">
|
1564
1584
|
<tbody>
|
1565
1585
|
<tr>
|
1566
1586
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1567
|
-
<td>
|
1587
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1568
1588
|
</td>
|
1569
1589
|
</tr>
|
1570
1590
|
<tr>
|
1571
1591
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
1572
|
-
<td>
|
1592
|
+
<td>the byte index of a grapheme within the layout.
|
1573
1593
|
</td>
|
1574
1594
|
</tr>
|
1575
1595
|
<tr>
|
1576
1596
|
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
|
1577
|
-
<td>
|
1597
|
+
<td>an integer indicating the edge of the grapheme to retrieve the
|
1578
1598
|
position of. If 0, the trailing edge of the grapheme, if > 0,
|
1579
1599
|
the leading of the grapheme.
|
1580
1600
|
</td>
|
1581
1601
|
</tr>
|
1582
1602
|
<tr>
|
1583
1603
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
1584
|
-
<td>
|
1604
|
+
<td>location to store resulting line index. (which will
|
1585
1605
|
between 0 and pango_layout_get_line_count(layout) - 1)
|
1586
1606
|
</td>
|
1587
1607
|
</tr>
|
1588
1608
|
<tr>
|
1589
1609
|
<td><p><span class="term"><em class="parameter"><code>x_pos</code></em> :</span></p></td>
|
1590
|
-
<td>
|
1610
|
+
<td>location to store resulting position within line
|
1591
1611
|
(<a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a> units per device unit)
|
1592
1612
|
</td>
|
1593
1613
|
</tr>
|
@@ -1595,13 +1615,13 @@ Converts from byte <em class="parameter"><code>index_</code></em> within the <em
|
|
1595
1615
|
</table></div>
|
1596
1616
|
</div>
|
1597
1617
|
<hr>
|
1598
|
-
<div class="refsect2"
|
1618
|
+
<div class="refsect2">
|
1599
1619
|
<a name="pango-layout-xy-to-index"></a><h3>pango_layout_xy_to_index ()</h3>
|
1600
|
-
<pre class="programlisting"><
|
1601
|
-
<span class="
|
1602
|
-
<span class="
|
1603
|
-
<span class="
|
1604
|
-
<span class="
|
1620
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_xy_to_index (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1621
|
+
<em class="parameter"><code><span class="type">int</span> x</code></em>,
|
1622
|
+
<em class="parameter"><code><span class="type">int</span> y</code></em>,
|
1623
|
+
<em class="parameter"><code><span class="type">int</span> *index_</code></em>,
|
1624
|
+
<em class="parameter"><code><span class="type">int</span> *trailing</code></em>);</pre>
|
1605
1625
|
<p>
|
1606
1626
|
Converts from X and Y position within a layout to the byte
|
1607
1627
|
index to the character at that logical position. If the
|
@@ -1610,35 +1630,36 @@ Y position is not inside the layout, the closest position is chosen
|
|
1610
1630
|
X position is not within the layout, then the start or the
|
1611
1631
|
end of the line is chosen as described for <code class="function">pango_layout_x_to_index()</code>.
|
1612
1632
|
If either the X or Y positions were not inside the layout, then the
|
1613
|
-
function returns <
|
1633
|
+
function returns <code class="literal">FALSE</code>; on an exact hit, it returns <code class="literal">TRUE</code>.
|
1634
|
+
</p>
|
1614
1635
|
<div class="variablelist"><table border="0">
|
1615
1636
|
<col align="left" valign="top">
|
1616
1637
|
<tbody>
|
1617
1638
|
<tr>
|
1618
1639
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1619
|
-
<td>
|
1640
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1620
1641
|
</td>
|
1621
1642
|
</tr>
|
1622
1643
|
<tr>
|
1623
1644
|
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
1624
|
-
<td>
|
1645
|
+
<td>the X offset (in Pango units)
|
1625
1646
|
from the left edge of the layout.
|
1626
1647
|
</td>
|
1627
1648
|
</tr>
|
1628
1649
|
<tr>
|
1629
1650
|
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
1630
|
-
<td>
|
1651
|
+
<td>the Y offset (in Pango units)
|
1631
1652
|
from the top edge of the layout
|
1632
1653
|
</td>
|
1633
1654
|
</tr>
|
1634
1655
|
<tr>
|
1635
1656
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
1636
|
-
<td>
|
1657
|
+
<td>location to store calculated byte index
|
1637
1658
|
</td>
|
1638
1659
|
</tr>
|
1639
1660
|
<tr>
|
1640
1661
|
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
|
1641
|
-
<td>
|
1662
|
+
<td>location to store a integer indicating where
|
1642
1663
|
in the grapheme the user clicked. It will either
|
1643
1664
|
be zero, or the number of characters in the
|
1644
1665
|
grapheme. 0 represents the trailing edge of the grapheme.
|
@@ -1646,19 +1667,19 @@ function returns <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html
|
|
1646
1667
|
</tr>
|
1647
1668
|
<tr>
|
1648
1669
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1649
|
-
<td> <
|
1670
|
+
<td> <code class="literal">TRUE</code> if the coordinates were inside text, <code class="literal">FALSE</code> otherwise.
|
1650
1671
|
</td>
|
1651
1672
|
</tr>
|
1652
1673
|
</tbody>
|
1653
1674
|
</table></div>
|
1654
1675
|
</div>
|
1655
1676
|
<hr>
|
1656
|
-
<div class="refsect2"
|
1677
|
+
<div class="refsect2">
|
1657
1678
|
<a name="pango-layout-get-cursor-pos"></a><h3>pango_layout_get_cursor_pos ()</h3>
|
1658
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_cursor_pos (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1659
|
-
<span class="
|
1660
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1661
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1679
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_cursor_pos (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1680
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
1681
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *strong_pos</code></em>,
|
1682
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *weak_pos</code></em>);</pre>
|
1662
1683
|
<p>
|
1663
1684
|
Given an index within a layout, determines the positions that of the
|
1664
1685
|
strong and weak cursors if the insertion point is at that
|
@@ -1667,43 +1688,44 @@ rectangle. The strong cursor location is the location where
|
|
1667
1688
|
characters of the directionality equal to the base direction of the
|
1668
1689
|
layout are inserted. The weak cursor location is the location
|
1669
1690
|
where characters of the directionality opposite to the base
|
1670
|
-
direction of the layout are inserted
|
1691
|
+
direction of the layout are inserted.
|
1692
|
+
</p>
|
1671
1693
|
<div class="variablelist"><table border="0">
|
1672
1694
|
<col align="left" valign="top">
|
1673
1695
|
<tbody>
|
1674
1696
|
<tr>
|
1675
1697
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1676
|
-
<td>
|
1698
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1677
1699
|
</td>
|
1678
1700
|
</tr>
|
1679
1701
|
<tr>
|
1680
1702
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
1681
|
-
<td>
|
1703
|
+
<td>the byte index of the cursor
|
1682
1704
|
</td>
|
1683
1705
|
</tr>
|
1684
1706
|
<tr>
|
1685
1707
|
<td><p><span class="term"><em class="parameter"><code>strong_pos</code></em> :</span></p></td>
|
1686
|
-
<td>
|
1708
|
+
<td>location to store the strong cursor position (may be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>)
|
1687
1709
|
</td>
|
1688
1710
|
</tr>
|
1689
1711
|
<tr>
|
1690
1712
|
<td><p><span class="term"><em class="parameter"><code>weak_pos</code></em> :</span></p></td>
|
1691
|
-
<td>
|
1713
|
+
<td>location to store the weak cursor position (may be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>)
|
1692
1714
|
</td>
|
1693
1715
|
</tr>
|
1694
1716
|
</tbody>
|
1695
1717
|
</table></div>
|
1696
1718
|
</div>
|
1697
1719
|
<hr>
|
1698
|
-
<div class="refsect2"
|
1720
|
+
<div class="refsect2">
|
1699
1721
|
<a name="pango-layout-move-cursor-visually"></a><h3>pango_layout_move_cursor_visually ()</h3>
|
1700
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_move_cursor_visually (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1701
|
-
<
|
1702
|
-
<span class="
|
1703
|
-
<span class="
|
1704
|
-
<span class="
|
1705
|
-
<span class="
|
1706
|
-
<span class="
|
1722
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_move_cursor_visually (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1723
|
+
<em class="parameter"><code><span class="type">gboolean</span> strong</code></em>,
|
1724
|
+
<em class="parameter"><code><span class="type">int</span> old_index</code></em>,
|
1725
|
+
<em class="parameter"><code><span class="type">int</span> old_trailing</code></em>,
|
1726
|
+
<em class="parameter"><code><span class="type">int</span> direction</code></em>,
|
1727
|
+
<em class="parameter"><code><span class="type">int</span> *new_index</code></em>,
|
1728
|
+
<em class="parameter"><code><span class="type">int</span> *new_trailing</code></em>);</pre>
|
1707
1729
|
<p>
|
1708
1730
|
Computes a new cursor position from an old position and
|
1709
1731
|
a count of positions to move visually. If <em class="parameter"><code>direction</code></em> is positive,
|
@@ -1722,51 +1744,52 @@ is moved off of the end of a run.
|
|
1722
1744
|
Motion here is in cursor positions, not in characters, so a
|
1723
1745
|
single call to <a class="link" href="pango-Layout-Objects.html#pango-layout-move-cursor-visually" title="pango_layout_move_cursor_visually ()"><code class="function">pango_layout_move_cursor_visually()</code></a> may move the
|
1724
1746
|
cursor over multiple characters when multiple characters combine
|
1725
|
-
to form a single grapheme
|
1747
|
+
to form a single grapheme.
|
1748
|
+
</p>
|
1726
1749
|
<div class="variablelist"><table border="0">
|
1727
1750
|
<col align="left" valign="top">
|
1728
1751
|
<tbody>
|
1729
1752
|
<tr>
|
1730
1753
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1731
|
-
<td>
|
1754
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
1732
1755
|
</td>
|
1733
1756
|
</tr>
|
1734
1757
|
<tr>
|
1735
1758
|
<td><p><span class="term"><em class="parameter"><code>strong</code></em> :</span></p></td>
|
1736
|
-
<td>
|
1759
|
+
<td>whether the moving cursor is the strong cursor or the
|
1737
1760
|
weak cursor. The strong cursor is the cursor corresponding
|
1738
1761
|
to text insertion in the base direction for the layout.
|
1739
1762
|
</td>
|
1740
1763
|
</tr>
|
1741
1764
|
<tr>
|
1742
1765
|
<td><p><span class="term"><em class="parameter"><code>old_index</code></em> :</span></p></td>
|
1743
|
-
<td>
|
1766
|
+
<td>the byte index of the grapheme for the old index
|
1744
1767
|
</td>
|
1745
1768
|
</tr>
|
1746
1769
|
<tr>
|
1747
1770
|
<td><p><span class="term"><em class="parameter"><code>old_trailing</code></em> :</span></p></td>
|
1748
|
-
<td>
|
1771
|
+
<td>if 0, the cursor was at the trailing edge of the
|
1749
1772
|
grapheme indicated by <em class="parameter"><code>old_index</code></em>, if > 0, the cursor
|
1750
1773
|
was at the leading edge.
|
1751
1774
|
</td>
|
1752
1775
|
</tr>
|
1753
1776
|
<tr>
|
1754
1777
|
<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td>
|
1755
|
-
<td>
|
1778
|
+
<td>direction to move cursor. A negative
|
1756
1779
|
value indicates motion to the left.
|
1757
1780
|
</td>
|
1758
1781
|
</tr>
|
1759
1782
|
<tr>
|
1760
1783
|
<td><p><span class="term"><em class="parameter"><code>new_index</code></em> :</span></p></td>
|
1761
|
-
<td>
|
1784
|
+
<td>location to store the new cursor byte index. A value of -1
|
1762
1785
|
indicates that the cursor has been moved off the beginning
|
1763
|
-
of the layout. A value of <
|
1786
|
+
of the layout. A value of <code class="literal">G_MAXINT</code> indicates that
|
1764
1787
|
the cursor has been moved off the end of the layout.
|
1765
1788
|
</td>
|
1766
1789
|
</tr>
|
1767
1790
|
<tr>
|
1768
1791
|
<td><p><span class="term"><em class="parameter"><code>new_trailing</code></em> :</span></p></td>
|
1769
|
-
<td>
|
1792
|
+
<td>number of characters to move forward from the location returned
|
1770
1793
|
for <em class="parameter"><code>new_index</code></em> to get the position where the cursor should
|
1771
1794
|
be displayed. This allows distinguishing the position at
|
1772
1795
|
the beginning of one line from the position at the end
|
@@ -1778,11 +1801,11 @@ to form a single grapheme.</p>
|
|
1778
1801
|
</table></div>
|
1779
1802
|
</div>
|
1780
1803
|
<hr>
|
1781
|
-
<div class="refsect2"
|
1804
|
+
<div class="refsect2">
|
1782
1805
|
<a name="pango-layout-get-extents"></a><h3>pango_layout_get_extents ()</h3>
|
1783
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1784
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1785
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1806
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1807
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
1808
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
1786
1809
|
<p>
|
1787
1810
|
Computes the logical and ink extents of <em class="parameter"><code>layout</code></em>. Logical extents
|
1788
1811
|
are usually what you want for positioning things. Note that both extents
|
@@ -1793,141 +1816,146 @@ a set width.
|
|
1793
1816
|
</p>
|
1794
1817
|
<p>
|
1795
1818
|
The extents are given in layout coordinates and in Pango units; layout
|
1796
|
-
coordinates begin at the top left corner of the layout
|
1819
|
+
coordinates begin at the top left corner of the layout.
|
1820
|
+
</p>
|
1797
1821
|
<div class="variablelist"><table border="0">
|
1798
1822
|
<col align="left" valign="top">
|
1799
1823
|
<tbody>
|
1800
1824
|
<tr>
|
1801
1825
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1802
|
-
<td>
|
1826
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1803
1827
|
</td>
|
1804
1828
|
</tr>
|
1805
1829
|
<tr>
|
1806
1830
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
1807
|
-
<td>
|
1808
|
-
or <a href="/usr/share/gtk-doc/html/
|
1831
|
+
<td>rectangle used to store the extents of the layout as drawn
|
1832
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed.
|
1809
1833
|
</td>
|
1810
1834
|
</tr>
|
1811
1835
|
<tr>
|
1812
1836
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
1813
|
-
<td>
|
1814
|
-
or <a href="/usr/share/gtk-doc/html/
|
1837
|
+
<td>rectangle used to store the logical extents of the layout
|
1838
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed.
|
1815
1839
|
</td>
|
1816
1840
|
</tr>
|
1817
1841
|
</tbody>
|
1818
1842
|
</table></div>
|
1819
1843
|
</div>
|
1820
1844
|
<hr>
|
1821
|
-
<div class="refsect2"
|
1845
|
+
<div class="refsect2">
|
1822
1846
|
<a name="pango-layout-get-pixel-extents"></a><h3>pango_layout_get_pixel_extents ()</h3>
|
1823
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_pixel_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1824
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1825
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
1847
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_pixel_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1848
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
1849
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
1826
1850
|
<p>
|
1827
1851
|
Computes the logical and ink extents of <em class="parameter"><code>layout</code></em> in device units.
|
1828
1852
|
This function just calls <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()"><code class="function">pango_layout_get_extents()</code></a> followed by
|
1829
1853
|
two <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a> calls, rounding <em class="parameter"><code>ink_rect</code></em> and <em class="parameter"><code>logical_rect</code></em>
|
1830
1854
|
such that the rounded rectangles fully contain the unrounded one (that is,
|
1831
|
-
passes them as first argument to <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>)
|
1855
|
+
passes them as first argument to <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>).
|
1856
|
+
</p>
|
1832
1857
|
<div class="variablelist"><table border="0">
|
1833
1858
|
<col align="left" valign="top">
|
1834
1859
|
<tbody>
|
1835
1860
|
<tr>
|
1836
1861
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1837
|
-
<td>
|
1862
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1838
1863
|
</td>
|
1839
1864
|
</tr>
|
1840
1865
|
<tr>
|
1841
1866
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
1842
|
-
<td>
|
1843
|
-
or <a href="/usr/share/gtk-doc/html/
|
1867
|
+
<td>rectangle used to store the extents of the layout as drawn
|
1868
|
+
or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed.
|
1844
1869
|
</td>
|
1845
1870
|
</tr>
|
1846
1871
|
<tr>
|
1847
1872
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
1848
|
-
<td>
|
1849
|
-
layout or <a href="/usr/share/gtk-doc/html/
|
1873
|
+
<td>rectangle used to store the logical extents of the
|
1874
|
+
layout or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to indicate that the result is not needed.
|
1850
1875
|
</td>
|
1851
1876
|
</tr>
|
1852
1877
|
</tbody>
|
1853
1878
|
</table></div>
|
1854
1879
|
</div>
|
1855
1880
|
<hr>
|
1856
|
-
<div class="refsect2"
|
1881
|
+
<div class="refsect2">
|
1857
1882
|
<a name="pango-layout-get-size"></a><h3>pango_layout_get_size ()</h3>
|
1858
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_size (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1859
|
-
<span class="
|
1860
|
-
<span class="
|
1883
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_size (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1884
|
+
<em class="parameter"><code><span class="type">int</span> *width</code></em>,
|
1885
|
+
<em class="parameter"><code><span class="type">int</span> *height</code></em>);</pre>
|
1861
1886
|
<p>
|
1862
1887
|
Determines the logical width and height of a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1863
1888
|
in Pango units (device units scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>). This
|
1864
|
-
is simply a convenience function around <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()"><code class="function">pango_layout_get_extents()</code></a
|
1889
|
+
is simply a convenience function around <a class="link" href="pango-Layout-Objects.html#pango-layout-get-extents" title="pango_layout_get_extents ()"><code class="function">pango_layout_get_extents()</code></a>.
|
1890
|
+
</p>
|
1865
1891
|
<div class="variablelist"><table border="0">
|
1866
1892
|
<col align="left" valign="top">
|
1867
1893
|
<tbody>
|
1868
1894
|
<tr>
|
1869
1895
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1870
|
-
<td>
|
1896
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1871
1897
|
</td>
|
1872
1898
|
</tr>
|
1873
1899
|
<tr>
|
1874
1900
|
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
1875
|
-
<td>
|
1901
|
+
<td>location to store the logical width, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
1876
1902
|
</td>
|
1877
1903
|
</tr>
|
1878
1904
|
<tr>
|
1879
1905
|
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
1880
|
-
<td>
|
1906
|
+
<td>location to store the logical height, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
1881
1907
|
</td>
|
1882
1908
|
</tr>
|
1883
1909
|
</tbody>
|
1884
1910
|
</table></div>
|
1885
1911
|
</div>
|
1886
1912
|
<hr>
|
1887
|
-
<div class="refsect2"
|
1913
|
+
<div class="refsect2">
|
1888
1914
|
<a name="pango-layout-get-pixel-size"></a><h3>pango_layout_get_pixel_size ()</h3>
|
1889
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_pixel_size (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1890
|
-
<span class="
|
1891
|
-
<span class="
|
1915
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_get_pixel_size (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1916
|
+
<em class="parameter"><code><span class="type">int</span> *width</code></em>,
|
1917
|
+
<em class="parameter"><code><span class="type">int</span> *height</code></em>);</pre>
|
1892
1918
|
<p>
|
1893
1919
|
Determines the logical width and height of a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1894
1920
|
in device units. (<a class="link" href="pango-Layout-Objects.html#pango-layout-get-size" title="pango_layout_get_size ()"><code class="function">pango_layout_get_size()</code></a> returns the width
|
1895
1921
|
and height scaled by <a class="link" href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS" title="PANGO_SCALE"><code class="literal">PANGO_SCALE</code></a>.) This
|
1896
1922
|
is simply a convenience function around
|
1897
|
-
<a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-extents" title="pango_layout_get_pixel_extents ()"><code class="function">pango_layout_get_pixel_extents()</code></a
|
1923
|
+
<a class="link" href="pango-Layout-Objects.html#pango-layout-get-pixel-extents" title="pango_layout_get_pixel_extents ()"><code class="function">pango_layout_get_pixel_extents()</code></a>.
|
1924
|
+
</p>
|
1898
1925
|
<div class="variablelist"><table border="0">
|
1899
1926
|
<col align="left" valign="top">
|
1900
1927
|
<tbody>
|
1901
1928
|
<tr>
|
1902
1929
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1903
|
-
<td>
|
1930
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1904
1931
|
</td>
|
1905
1932
|
</tr>
|
1906
1933
|
<tr>
|
1907
1934
|
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
1908
|
-
<td>
|
1935
|
+
<td>location to store the logical width, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
1909
1936
|
</td>
|
1910
1937
|
</tr>
|
1911
1938
|
<tr>
|
1912
1939
|
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
|
1913
|
-
<td>
|
1940
|
+
<td>location to store the logical height, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
1914
1941
|
</td>
|
1915
1942
|
</tr>
|
1916
1943
|
</tbody>
|
1917
1944
|
</table></div>
|
1918
1945
|
</div>
|
1919
1946
|
<hr>
|
1920
|
-
<div class="refsect2"
|
1947
|
+
<div class="refsect2">
|
1921
1948
|
<a name="pango-layout-get-baseline"></a><h3>pango_layout_get_baseline ()</h3>
|
1922
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_baseline (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1949
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_baseline (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1923
1950
|
<p>
|
1924
|
-
Gets the Y position of baseline of the first line in <em class="parameter"><code>layout</code></em
|
1951
|
+
Gets the Y position of baseline of the first line in <em class="parameter"><code>layout</code></em>.
|
1952
|
+
</p>
|
1925
1953
|
<div class="variablelist"><table border="0">
|
1926
1954
|
<col align="left" valign="top">
|
1927
1955
|
<tbody>
|
1928
1956
|
<tr>
|
1929
1957
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1930
|
-
<td>
|
1958
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1931
1959
|
</td>
|
1932
1960
|
</tr>
|
1933
1961
|
<tr>
|
@@ -1941,17 +1969,19 @@ Gets the Y position of baseline of the first line in <em class="parameter"><code
|
|
1941
1969
|
<p class="since">Since 1.22</p>
|
1942
1970
|
</div>
|
1943
1971
|
<hr>
|
1944
|
-
<div class="refsect2"
|
1972
|
+
<div class="refsect2">
|
1945
1973
|
<a name="pango-layout-get-line-count"></a><h3>pango_layout_get_line_count ()</h3>
|
1946
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_line_count (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1974
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_get_line_count (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
1947
1975
|
<p>
|
1948
|
-
Retrieves the count of lines for the <em class="parameter"><code>layout</code></em
|
1976
|
+
Retrieves the count of lines for the <em class="parameter"><code>layout</code></em>.
|
1977
|
+
</p>
|
1949
1978
|
<div class="variablelist"><table border="0">
|
1950
1979
|
<col align="left" valign="top">
|
1951
1980
|
<tbody>
|
1952
1981
|
<tr>
|
1953
1982
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1954
|
-
<td>
|
1983
|
+
<td>
|
1984
|
+
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1955
1985
|
</td>
|
1956
1986
|
</tr>
|
1957
1987
|
<tr>
|
@@ -1963,33 +1993,34 @@ Retrieves the count of lines for the <em class="parameter"><code>layout</code></
|
|
1963
1993
|
</table></div>
|
1964
1994
|
</div>
|
1965
1995
|
<hr>
|
1966
|
-
<div class="refsect2"
|
1996
|
+
<div class="refsect2">
|
1967
1997
|
<a name="pango-layout-get-line"></a><h3>pango_layout_get_line ()</h3>
|
1968
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_get_line (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
1969
|
-
<span class="
|
1998
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_get_line (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
1999
|
+
<em class="parameter"><code><span class="type">int</span> line</code></em>);</pre>
|
1970
2000
|
<p>
|
1971
2001
|
Retrieves a particular line from a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
1972
2002
|
</p>
|
1973
2003
|
<p>
|
1974
2004
|
Use the faster <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line-readonly" title="pango_layout_get_line_readonly ()"><code class="function">pango_layout_get_line_readonly()</code></a> if you do not plan
|
1975
|
-
to modify the contents of the line (glyphs, glyph widths, etc.)
|
2005
|
+
to modify the contents of the line (glyphs, glyph widths, etc.).
|
2006
|
+
</p>
|
1976
2007
|
<div class="variablelist"><table border="0">
|
1977
2008
|
<col align="left" valign="top">
|
1978
2009
|
<tbody>
|
1979
2010
|
<tr>
|
1980
2011
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
1981
|
-
<td>
|
2012
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
1982
2013
|
</td>
|
1983
2014
|
</tr>
|
1984
2015
|
<tr>
|
1985
2016
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
1986
|
-
<td>
|
2017
|
+
<td>the index of a line, which must be between 0 and
|
1987
2018
|
<code class="literal">pango_layout_get_line_count(layout) - 1</code>, inclusive.
|
1988
2019
|
</td>
|
1989
2020
|
</tr>
|
1990
2021
|
<tr>
|
1991
2022
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1992
|
-
<td> the requested <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>, or <a href="/usr/share/gtk-doc/html/
|
2023
|
+
<td> the requested <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the
|
1993
2024
|
index is out of range. This layout line can
|
1994
2025
|
be ref'ed and retained, but will become invalid
|
1995
2026
|
if changes are made to the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
@@ -1999,34 +2030,35 @@ to modify the contents of the line (glyphs, glyph widths, etc.).</p>
|
|
1999
2030
|
</table></div>
|
2000
2031
|
</div>
|
2001
2032
|
<hr>
|
2002
|
-
<div class="refsect2"
|
2033
|
+
<div class="refsect2">
|
2003
2034
|
<a name="pango-layout-get-line-readonly"></a><h3>pango_layout_get_line_readonly ()</h3>
|
2004
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_get_line_readonly (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
2005
|
-
<span class="
|
2035
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_get_line_readonly (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
2036
|
+
<em class="parameter"><code><span class="type">int</span> line</code></em>);</pre>
|
2006
2037
|
<p>
|
2007
2038
|
Retrieves a particular line from a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
2008
2039
|
</p>
|
2009
2040
|
<p>
|
2010
2041
|
This is a faster alternative to <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line" title="pango_layout_get_line ()"><code class="function">pango_layout_get_line()</code></a>,
|
2011
2042
|
but the user is not expected
|
2012
|
-
to modify the contents of the line (glyphs, glyph widths, etc.)
|
2043
|
+
to modify the contents of the line (glyphs, glyph widths, etc.).
|
2044
|
+
</p>
|
2013
2045
|
<div class="variablelist"><table border="0">
|
2014
2046
|
<col align="left" valign="top">
|
2015
2047
|
<tbody>
|
2016
2048
|
<tr>
|
2017
2049
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
2018
|
-
<td>
|
2050
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
2019
2051
|
</td>
|
2020
2052
|
</tr>
|
2021
2053
|
<tr>
|
2022
2054
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2023
|
-
<td>
|
2055
|
+
<td>the index of a line, which must be between 0 and
|
2024
2056
|
<code class="literal">pango_layout_get_line_count(layout) - 1</code>, inclusive.
|
2025
2057
|
</td>
|
2026
2058
|
</tr>
|
2027
2059
|
<tr>
|
2028
2060
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2029
|
-
<td> the requested <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>, or <a href="/usr/share/gtk-doc/html/
|
2061
|
+
<td> the requested <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the
|
2030
2062
|
index is out of range. This layout line can
|
2031
2063
|
be ref'ed and retained, but will become invalid
|
2032
2064
|
if changes are made to the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>.
|
@@ -2039,69 +2071,80 @@ to modify the contents of the line (glyphs, glyph widths, etc.).</p>
|
|
2039
2071
|
<p class="since">Since 1.16</p>
|
2040
2072
|
</div>
|
2041
2073
|
<hr>
|
2042
|
-
<div class="refsect2"
|
2074
|
+
<div class="refsect2">
|
2043
2075
|
<a name="pango-layout-get-lines"></a><h3>pango_layout_get_lines ()</h3>
|
2044
|
-
<pre class="programlisting"><
|
2076
|
+
<pre class="programlisting"><span class="returnvalue">GSList</span> * pango_layout_get_lines (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
2045
2077
|
<p>
|
2046
2078
|
Returns the lines of the <em class="parameter"><code>layout</code></em> as a list.
|
2047
2079
|
</p>
|
2048
2080
|
<p>
|
2049
2081
|
Use the faster <a class="link" href="pango-Layout-Objects.html#pango-layout-get-lines-readonly" title="pango_layout_get_lines_readonly ()"><code class="function">pango_layout_get_lines_readonly()</code></a> if you do not plan
|
2050
|
-
to modify the contents of the lines (glyphs, glyph widths, etc.)
|
2082
|
+
to modify the contents of the lines (glyphs, glyph widths, etc.).
|
2083
|
+
</p>
|
2051
2084
|
<div class="variablelist"><table border="0">
|
2052
2085
|
<col align="left" valign="top">
|
2053
2086
|
<tbody>
|
2054
2087
|
<tr>
|
2055
2088
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
2056
|
-
<td>
|
2089
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
2057
2090
|
</td>
|
2058
2091
|
</tr>
|
2059
2092
|
<tr>
|
2060
2093
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2061
|
-
<td>
|
2094
|
+
<td> (transfer none): a <span class="type">GSList</span> containing
|
2095
|
+
the lines in the layout. This points to internal data of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
2096
|
+
and must be used with care. It will become invalid on any change to the layout's
|
2097
|
+
text or properties. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Pango.LayoutLine]</span>
|
2098
|
+
</td>
|
2062
2099
|
</tr>
|
2063
2100
|
</tbody>
|
2064
2101
|
</table></div>
|
2065
2102
|
</div>
|
2066
2103
|
<hr>
|
2067
|
-
<div class="refsect2"
|
2104
|
+
<div class="refsect2">
|
2068
2105
|
<a name="pango-layout-get-lines-readonly"></a><h3>pango_layout_get_lines_readonly ()</h3>
|
2069
|
-
<pre class="programlisting"><
|
2106
|
+
<pre class="programlisting"><span class="returnvalue">GSList</span> * pango_layout_get_lines_readonly (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
2070
2107
|
<p>
|
2071
2108
|
Returns the lines of the <em class="parameter"><code>layout</code></em> as a list.
|
2072
2109
|
</p>
|
2073
2110
|
<p>
|
2074
2111
|
This is a faster alternative to <a class="link" href="pango-Layout-Objects.html#pango-layout-get-lines" title="pango_layout_get_lines ()"><code class="function">pango_layout_get_lines()</code></a>,
|
2075
2112
|
but the user is not expected
|
2076
|
-
to modify the contents of the lines (glyphs, glyph widths, etc.)
|
2113
|
+
to modify the contents of the lines (glyphs, glyph widths, etc.).
|
2114
|
+
</p>
|
2077
2115
|
<div class="variablelist"><table border="0">
|
2078
2116
|
<col align="left" valign="top">
|
2079
2117
|
<tbody>
|
2080
2118
|
<tr>
|
2081
2119
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
2082
|
-
<td>
|
2120
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
2083
2121
|
</td>
|
2084
2122
|
</tr>
|
2085
2123
|
<tr>
|
2086
2124
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2087
|
-
<td>
|
2125
|
+
<td> (transfer none): a <span class="type">GSList</span> containing
|
2126
|
+
the lines in the layout. This points to internal data of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> and
|
2127
|
+
must be used with care. It will become invalid on any change to the layout's
|
2128
|
+
text or properties. No changes should be made to the lines. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> Pango.LayoutLine]</span>
|
2129
|
+
</td>
|
2088
2130
|
</tr>
|
2089
2131
|
</tbody>
|
2090
2132
|
</table></div>
|
2091
2133
|
<p class="since">Since 1.16</p>
|
2092
2134
|
</div>
|
2093
2135
|
<hr>
|
2094
|
-
<div class="refsect2"
|
2136
|
+
<div class="refsect2">
|
2095
2137
|
<a name="pango-layout-get-iter"></a><h3>pango_layout_get_iter ()</h3>
|
2096
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * pango_layout_get_iter (<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="
|
2138
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * pango_layout_get_iter (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
|
2097
2139
|
<p>
|
2098
|
-
Returns an iterator to iterate over the visual extents of the layout
|
2140
|
+
Returns an iterator to iterate over the visual extents of the layout.
|
2141
|
+
</p>
|
2099
2142
|
<div class="variablelist"><table border="0">
|
2100
2143
|
<col align="left" valign="top">
|
2101
2144
|
<tbody>
|
2102
2145
|
<tr>
|
2103
2146
|
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
|
2104
|
-
<td>
|
2147
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>
|
2105
2148
|
</td>
|
2106
2149
|
</tr>
|
2107
2150
|
<tr>
|
@@ -2114,24 +2157,25 @@ Returns an iterator to iterate over the visual extents of the layout.</p>
|
|
2114
2157
|
</table></div>
|
2115
2158
|
</div>
|
2116
2159
|
<hr>
|
2117
|
-
<div class="refsect2"
|
2160
|
+
<div class="refsect2">
|
2118
2161
|
<a name="pango-layout-iter-copy"></a><h3>pango_layout_iter_copy ()</h3>
|
2119
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * pango_layout_iter_copy (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2162
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="returnvalue">PangoLayoutIter</span></a> * pango_layout_iter_copy (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2120
2163
|
<p>
|
2121
|
-
Copies a <span class="type">PangLayoutIter</span
|
2164
|
+
Copies a <span class="type">PangLayoutIter</span>.
|
2165
|
+
</p>
|
2122
2166
|
<div class="variablelist"><table border="0">
|
2123
2167
|
<col align="left" valign="top">
|
2124
2168
|
<tbody>
|
2125
2169
|
<tr>
|
2126
2170
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2127
|
-
<td>
|
2171
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>, may be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2128
2172
|
</td>
|
2129
2173
|
</tr>
|
2130
2174
|
<tr>
|
2131
2175
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2132
2176
|
<td> the newly allocated <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>, which should
|
2133
|
-
be freed with <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-free" title="pango_layout_iter_free ()"><code class="function">pango_layout_iter_free()</code></a>, or <a href="/usr/share/gtk-doc/html/
|
2134
|
-
<em class="parameter"><code>iter</code></em> was <a href="/usr/share/gtk-doc/html/
|
2177
|
+
be freed with <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-free" title="pango_layout_iter_free ()"><code class="function">pango_layout_iter_free()</code></a>, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if
|
2178
|
+
<em class="parameter"><code>iter</code></em> was <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
|
2135
2179
|
|
2136
2180
|
</td>
|
2137
2181
|
</tr>
|
@@ -2140,33 +2184,35 @@ Copies a <span class="type">PangLayoutIter</span>.</p>
|
|
2140
2184
|
<p class="since">Since 1.20</p>
|
2141
2185
|
</div>
|
2142
2186
|
<hr>
|
2143
|
-
<div class="refsect2"
|
2187
|
+
<div class="refsect2">
|
2144
2188
|
<a name="pango-layout-iter-free"></a><h3>pango_layout_iter_free ()</h3>
|
2145
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_free (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2189
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_free (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2146
2190
|
<p>
|
2147
|
-
Frees an iterator that's no longer in use
|
2191
|
+
Frees an iterator that's no longer in use.
|
2192
|
+
</p>
|
2148
2193
|
<div class="variablelist"><table border="0">
|
2149
2194
|
<col align="left" valign="top">
|
2150
2195
|
<tbody><tr>
|
2151
2196
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2152
|
-
<td>
|
2197
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>, may be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2153
2198
|
</td>
|
2154
2199
|
</tr></tbody>
|
2155
2200
|
</table></div>
|
2156
2201
|
</div>
|
2157
2202
|
<hr>
|
2158
|
-
<div class="refsect2"
|
2203
|
+
<div class="refsect2">
|
2159
2204
|
<a name="pango-layout-iter-next-run"></a><h3>pango_layout_iter_next_run ()</h3>
|
2160
|
-
<pre class="programlisting"><
|
2205
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_iter_next_run (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2161
2206
|
<p>
|
2162
2207
|
Moves <em class="parameter"><code>iter</code></em> forward to the next run in visual order. If <em class="parameter"><code>iter</code></em> was
|
2163
|
-
already at the end of the layout, returns <
|
2208
|
+
already at the end of the layout, returns <code class="literal">FALSE</code>.
|
2209
|
+
</p>
|
2164
2210
|
<div class="variablelist"><table border="0">
|
2165
2211
|
<col align="left" valign="top">
|
2166
2212
|
<tbody>
|
2167
2213
|
<tr>
|
2168
2214
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2169
|
-
<td>
|
2215
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2170
2216
|
</td>
|
2171
2217
|
</tr>
|
2172
2218
|
<tr>
|
@@ -2178,18 +2224,19 @@ already at the end of the layout, returns <a href="/usr/share/gtk-doc/html/glib/
|
|
2178
2224
|
</table></div>
|
2179
2225
|
</div>
|
2180
2226
|
<hr>
|
2181
|
-
<div class="refsect2"
|
2227
|
+
<div class="refsect2">
|
2182
2228
|
<a name="pango-layout-iter-next-char"></a><h3>pango_layout_iter_next_char ()</h3>
|
2183
|
-
<pre class="programlisting"><
|
2229
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_iter_next_char (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2184
2230
|
<p>
|
2185
2231
|
Moves <em class="parameter"><code>iter</code></em> forward to the next character in visual order. If <em class="parameter"><code>iter</code></em> was already at
|
2186
|
-
the end of the layout, returns <
|
2232
|
+
the end of the layout, returns <code class="literal">FALSE</code>.
|
2233
|
+
</p>
|
2187
2234
|
<div class="variablelist"><table border="0">
|
2188
2235
|
<col align="left" valign="top">
|
2189
2236
|
<tbody>
|
2190
2237
|
<tr>
|
2191
2238
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2192
|
-
<td>
|
2239
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2193
2240
|
</td>
|
2194
2241
|
</tr>
|
2195
2242
|
<tr>
|
@@ -2201,18 +2248,19 @@ the end of the layout, returns <a href="/usr/share/gtk-doc/html/glib/glib-Standa
|
|
2201
2248
|
</table></div>
|
2202
2249
|
</div>
|
2203
2250
|
<hr>
|
2204
|
-
<div class="refsect2"
|
2251
|
+
<div class="refsect2">
|
2205
2252
|
<a name="pango-layout-iter-next-cluster"></a><h3>pango_layout_iter_next_cluster ()</h3>
|
2206
|
-
<pre class="programlisting"><
|
2253
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_iter_next_cluster (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2207
2254
|
<p>
|
2208
2255
|
Moves <em class="parameter"><code>iter</code></em> forward to the next cluster in visual order. If <em class="parameter"><code>iter</code></em>
|
2209
|
-
was already at the end of the layout, returns <
|
2256
|
+
was already at the end of the layout, returns <code class="literal">FALSE</code>.
|
2257
|
+
</p>
|
2210
2258
|
<div class="variablelist"><table border="0">
|
2211
2259
|
<col align="left" valign="top">
|
2212
2260
|
<tbody>
|
2213
2261
|
<tr>
|
2214
2262
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2215
|
-
<td>
|
2263
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2216
2264
|
</td>
|
2217
2265
|
</tr>
|
2218
2266
|
<tr>
|
@@ -2224,18 +2272,19 @@ was already at the end of the layout, returns <a href="/usr/share/gtk-doc/html/g
|
|
2224
2272
|
</table></div>
|
2225
2273
|
</div>
|
2226
2274
|
<hr>
|
2227
|
-
<div class="refsect2"
|
2275
|
+
<div class="refsect2">
|
2228
2276
|
<a name="pango-layout-iter-next-line"></a><h3>pango_layout_iter_next_line ()</h3>
|
2229
|
-
<pre class="programlisting"><
|
2277
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_iter_next_line (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2230
2278
|
<p>
|
2231
2279
|
Moves <em class="parameter"><code>iter</code></em> forward to the start of the next line. If <em class="parameter"><code>iter</code></em> is
|
2232
|
-
already on the last line, returns <
|
2280
|
+
already on the last line, returns <code class="literal">FALSE</code>.
|
2281
|
+
</p>
|
2233
2282
|
<div class="variablelist"><table border="0">
|
2234
2283
|
<col align="left" valign="top">
|
2235
2284
|
<tbody>
|
2236
2285
|
<tr>
|
2237
2286
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2238
|
-
<td>
|
2287
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2239
2288
|
</td>
|
2240
2289
|
</tr>
|
2241
2290
|
<tr>
|
@@ -2247,42 +2296,44 @@ already on the last line, returns <a href="/usr/share/gtk-doc/html/glib/glib-Sta
|
|
2247
2296
|
</table></div>
|
2248
2297
|
</div>
|
2249
2298
|
<hr>
|
2250
|
-
<div class="refsect2"
|
2299
|
+
<div class="refsect2">
|
2251
2300
|
<a name="pango-layout-iter-at-last-line"></a><h3>pango_layout_iter_at_last_line ()</h3>
|
2252
|
-
<pre class="programlisting"><
|
2301
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_iter_at_last_line (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2253
2302
|
<p>
|
2254
|
-
Determines whether <em class="parameter"><code>iter</code></em> is on the last line of the layout
|
2303
|
+
Determines whether <em class="parameter"><code>iter</code></em> is on the last line of the layout.
|
2304
|
+
</p>
|
2255
2305
|
<div class="variablelist"><table border="0">
|
2256
2306
|
<col align="left" valign="top">
|
2257
2307
|
<tbody>
|
2258
2308
|
<tr>
|
2259
2309
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2260
|
-
<td>
|
2310
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2261
2311
|
</td>
|
2262
2312
|
</tr>
|
2263
2313
|
<tr>
|
2264
2314
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2265
|
-
<td> <
|
2315
|
+
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em> is on the last line.
|
2266
2316
|
</td>
|
2267
2317
|
</tr>
|
2268
2318
|
</tbody>
|
2269
2319
|
</table></div>
|
2270
2320
|
</div>
|
2271
2321
|
<hr>
|
2272
|
-
<div class="refsect2"
|
2322
|
+
<div class="refsect2">
|
2273
2323
|
<a name="pango-layout-iter-get-index"></a><h3>pango_layout_iter_get_index ()</h3>
|
2274
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_iter_get_index (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2324
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_iter_get_index (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2275
2325
|
<p>
|
2276
2326
|
Gets the current byte index. Note that iterating forward by char
|
2277
2327
|
moves in visual order, not logical order, so indexes may not be
|
2278
2328
|
sequential. Also, the index may be equal to the length of the text
|
2279
|
-
in the layout, if on the <a href="/usr/share/gtk-doc/html/
|
2329
|
+
in the layout, if on the <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> run (see <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run" title="pango_layout_iter_get_run ()"><code class="function">pango_layout_iter_get_run()</code></a>).
|
2330
|
+
</p>
|
2280
2331
|
<div class="variablelist"><table border="0">
|
2281
2332
|
<col align="left" valign="top">
|
2282
2333
|
<tbody>
|
2283
2334
|
<tr>
|
2284
2335
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2285
|
-
<td>
|
2336
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2286
2337
|
</td>
|
2287
2338
|
</tr>
|
2288
2339
|
<tr>
|
@@ -2294,18 +2345,19 @@ in the layout, if on the <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Mac
|
|
2294
2345
|
</table></div>
|
2295
2346
|
</div>
|
2296
2347
|
<hr>
|
2297
|
-
<div class="refsect2"
|
2348
|
+
<div class="refsect2">
|
2298
2349
|
<a name="pango-layout-iter-get-baseline"></a><h3>pango_layout_iter_get_baseline ()</h3>
|
2299
|
-
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_iter_get_baseline (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2350
|
+
<pre class="programlisting"><span class="returnvalue">int</span> pango_layout_iter_get_baseline (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2300
2351
|
<p>
|
2301
2352
|
Gets the Y position of the current line's baseline, in layout
|
2302
|
-
coordinates (origin at top left of the entire layout)
|
2353
|
+
coordinates (origin at top left of the entire layout).
|
2354
|
+
</p>
|
2303
2355
|
<div class="variablelist"><table border="0">
|
2304
2356
|
<col align="left" valign="top">
|
2305
2357
|
<tbody>
|
2306
2358
|
<tr>
|
2307
2359
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2308
|
-
<td>
|
2360
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2309
2361
|
</td>
|
2310
2362
|
</tr>
|
2311
2363
|
<tr>
|
@@ -2317,24 +2369,25 @@ coordinates (origin at top left of the entire layout).</p>
|
|
2317
2369
|
</table></div>
|
2318
2370
|
</div>
|
2319
2371
|
<hr>
|
2320
|
-
<div class="refsect2"
|
2372
|
+
<div class="refsect2">
|
2321
2373
|
<a name="pango-layout-iter-get-run"></a><h3>pango_layout_iter_get_run ()</h3>
|
2322
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * pango_layout_iter_get_run (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2374
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * pango_layout_iter_get_run (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2323
2375
|
<p>
|
2324
2376
|
Gets the current run. When iterating by run, at the end of each
|
2325
|
-
line, there's a position with a <a href="/usr/share/gtk-doc/html/
|
2326
|
-
<a href="/usr/share/gtk-doc/html/
|
2377
|
+
line, there's a position with a <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> run, so this function can return
|
2378
|
+
<a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. The <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> run at the end of each line ensures that all lines have
|
2327
2379
|
at least one run, even lines consisting of only a newline.
|
2328
2380
|
</p>
|
2329
2381
|
<p>
|
2330
2382
|
Use the faster <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run-readonly" title="pango_layout_iter_get_run_readonly ()"><code class="function">pango_layout_iter_get_run_readonly()</code></a> if you do not plan
|
2331
|
-
to modify the contents of the run (glyphs, glyph widths, etc.)
|
2383
|
+
to modify the contents of the run (glyphs, glyph widths, etc.).
|
2384
|
+
</p>
|
2332
2385
|
<div class="variablelist"><table border="0">
|
2333
2386
|
<col align="left" valign="top">
|
2334
2387
|
<tbody>
|
2335
2388
|
<tr>
|
2336
2389
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2337
|
-
<td>
|
2390
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2338
2391
|
</td>
|
2339
2392
|
</tr>
|
2340
2393
|
<tr>
|
@@ -2346,25 +2399,26 @@ to modify the contents of the run (glyphs, glyph widths, etc.).</p>
|
|
2346
2399
|
</table></div>
|
2347
2400
|
</div>
|
2348
2401
|
<hr>
|
2349
|
-
<div class="refsect2"
|
2402
|
+
<div class="refsect2">
|
2350
2403
|
<a name="pango-layout-iter-get-run-readonly"></a><h3>pango_layout_iter_get_run_readonly ()</h3>
|
2351
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * pango_layout_iter_get_run_readonly (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2404
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="returnvalue">PangoLayoutRun</span></a> * pango_layout_iter_get_run_readonly (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2352
2405
|
<p>
|
2353
2406
|
Gets the current run. When iterating by run, at the end of each
|
2354
|
-
line, there's a position with a <a href="/usr/share/gtk-doc/html/
|
2355
|
-
<a href="/usr/share/gtk-doc/html/
|
2407
|
+
line, there's a position with a <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> run, so this function can return
|
2408
|
+
<a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. The <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> run at the end of each line ensures that all lines have
|
2356
2409
|
at least one run, even lines consisting of only a newline.
|
2357
2410
|
</p>
|
2358
2411
|
<p>
|
2359
2412
|
This is a faster alternative to <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-run" title="pango_layout_iter_get_run ()"><code class="function">pango_layout_iter_get_run()</code></a>,
|
2360
2413
|
but the user is not expected
|
2361
|
-
to modify the contents of the run (glyphs, glyph widths, etc.)
|
2414
|
+
to modify the contents of the run (glyphs, glyph widths, etc.).
|
2415
|
+
</p>
|
2362
2416
|
<div class="variablelist"><table border="0">
|
2363
2417
|
<col align="left" valign="top">
|
2364
2418
|
<tbody>
|
2365
2419
|
<tr>
|
2366
2420
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2367
|
-
<td>
|
2421
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2368
2422
|
</td>
|
2369
2423
|
</tr>
|
2370
2424
|
<tr>
|
@@ -2378,21 +2432,22 @@ to modify the contents of the run (glyphs, glyph widths, etc.).</p>
|
|
2378
2432
|
<p class="since">Since 1.16</p>
|
2379
2433
|
</div>
|
2380
2434
|
<hr>
|
2381
|
-
<div class="refsect2"
|
2435
|
+
<div class="refsect2">
|
2382
2436
|
<a name="pango-layout-iter-get-line"></a><h3>pango_layout_iter_get_line ()</h3>
|
2383
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_iter_get_line (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2437
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_iter_get_line (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2384
2438
|
<p>
|
2385
2439
|
Gets the current line.
|
2386
2440
|
</p>
|
2387
2441
|
<p>
|
2388
2442
|
Use the faster <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line-readonly" title="pango_layout_iter_get_line_readonly ()"><code class="function">pango_layout_iter_get_line_readonly()</code></a> if you do not plan
|
2389
|
-
to modify the contents of the line (glyphs, glyph widths, etc.)
|
2443
|
+
to modify the contents of the line (glyphs, glyph widths, etc.).
|
2444
|
+
</p>
|
2390
2445
|
<div class="variablelist"><table border="0">
|
2391
2446
|
<col align="left" valign="top">
|
2392
2447
|
<tbody>
|
2393
2448
|
<tr>
|
2394
2449
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2395
|
-
<td>
|
2450
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2396
2451
|
</td>
|
2397
2452
|
</tr>
|
2398
2453
|
<tr>
|
@@ -2404,22 +2459,23 @@ to modify the contents of the line (glyphs, glyph widths, etc.).</p>
|
|
2404
2459
|
</table></div>
|
2405
2460
|
</div>
|
2406
2461
|
<hr>
|
2407
|
-
<div class="refsect2"
|
2462
|
+
<div class="refsect2">
|
2408
2463
|
<a name="pango-layout-iter-get-line-readonly"></a><h3>pango_layout_iter_get_line_readonly ()</h3>
|
2409
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_iter_get_line_readonly (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2464
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_iter_get_line_readonly (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2410
2465
|
<p>
|
2411
2466
|
Gets the current line for read-only access.
|
2412
2467
|
</p>
|
2413
2468
|
<p>
|
2414
2469
|
This is a faster alternative to <a class="link" href="pango-Layout-Objects.html#pango-layout-iter-get-line" title="pango_layout_iter_get_line ()"><code class="function">pango_layout_iter_get_line()</code></a>,
|
2415
2470
|
but the user is not expected
|
2416
|
-
to modify the contents of the line (glyphs, glyph widths, etc.)
|
2471
|
+
to modify the contents of the line (glyphs, glyph widths, etc.).
|
2472
|
+
</p>
|
2417
2473
|
<div class="variablelist"><table border="0">
|
2418
2474
|
<col align="left" valign="top">
|
2419
2475
|
<tbody>
|
2420
2476
|
<tr>
|
2421
2477
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2422
|
-
<td>
|
2478
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2423
2479
|
</td>
|
2424
2480
|
</tr>
|
2425
2481
|
<tr>
|
@@ -2433,17 +2489,18 @@ to modify the contents of the line (glyphs, glyph widths, etc.).</p>
|
|
2433
2489
|
<p class="since">Since 1.16</p>
|
2434
2490
|
</div>
|
2435
2491
|
<hr>
|
2436
|
-
<div class="refsect2"
|
2492
|
+
<div class="refsect2">
|
2437
2493
|
<a name="pango-layout-iter-get-layout"></a><h3>pango_layout_iter_get_layout ()</h3>
|
2438
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_iter_get_layout (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2494
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> * pango_layout_iter_get_layout (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>);</pre>
|
2439
2495
|
<p>
|
2440
|
-
Gets the layout associated with a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a
|
2496
|
+
Gets the layout associated with a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>.
|
2497
|
+
</p>
|
2441
2498
|
<div class="variablelist"><table border="0">
|
2442
2499
|
<col align="left" valign="top">
|
2443
2500
|
<tbody>
|
2444
2501
|
<tr>
|
2445
2502
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2446
|
-
<td>
|
2503
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2447
2504
|
</td>
|
2448
2505
|
</tr>
|
2449
2506
|
<tr>
|
@@ -2457,98 +2514,101 @@ Gets the layout associated with a <a class="link" href="pango-Layout-Objects.htm
|
|
2457
2514
|
<p class="since">Since 1.20</p>
|
2458
2515
|
</div>
|
2459
2516
|
<hr>
|
2460
|
-
<div class="refsect2"
|
2517
|
+
<div class="refsect2">
|
2461
2518
|
<a name="pango-layout-iter-get-char-extents"></a><h3>pango_layout_iter_get_char_extents ()</h3>
|
2462
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_char_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2463
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2519
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_char_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2520
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2464
2521
|
<p>
|
2465
2522
|
Gets the extents of the current character, in layout coordinates
|
2466
2523
|
(origin is the top left of the entire layout). Only logical extents
|
2467
2524
|
can sensibly be obtained for characters; ink extents make sense only
|
2468
|
-
down to the level of clusters
|
2525
|
+
down to the level of clusters.
|
2526
|
+
</p>
|
2469
2527
|
<div class="variablelist"><table border="0">
|
2470
2528
|
<col align="left" valign="top">
|
2471
2529
|
<tbody>
|
2472
2530
|
<tr>
|
2473
2531
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2474
|
-
<td>
|
2532
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2475
2533
|
</td>
|
2476
2534
|
</tr>
|
2477
2535
|
<tr>
|
2478
2536
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2479
|
-
<td>
|
2537
|
+
<td>rectangle to fill with logical extents
|
2480
2538
|
</td>
|
2481
2539
|
</tr>
|
2482
2540
|
</tbody>
|
2483
2541
|
</table></div>
|
2484
2542
|
</div>
|
2485
2543
|
<hr>
|
2486
|
-
<div class="refsect2"
|
2544
|
+
<div class="refsect2">
|
2487
2545
|
<a name="pango-layout-iter-get-cluster-extents"></a><h3>pango_layout_iter_get_cluster_extents ()</h3>
|
2488
2546
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_cluster_extents
|
2489
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2490
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2491
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2547
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2548
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2549
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2492
2550
|
<p>
|
2493
2551
|
Gets the extents of the current cluster, in layout coordinates
|
2494
|
-
(origin is the top left of the entire layout)
|
2552
|
+
(origin is the top left of the entire layout).
|
2553
|
+
</p>
|
2495
2554
|
<div class="variablelist"><table border="0">
|
2496
2555
|
<col align="left" valign="top">
|
2497
2556
|
<tbody>
|
2498
2557
|
<tr>
|
2499
2558
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2500
|
-
<td>
|
2559
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2501
2560
|
</td>
|
2502
2561
|
</tr>
|
2503
2562
|
<tr>
|
2504
2563
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2505
|
-
<td>
|
2564
|
+
<td>rectangle to fill with ink extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2506
2565
|
</td>
|
2507
2566
|
</tr>
|
2508
2567
|
<tr>
|
2509
2568
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2510
|
-
<td>
|
2569
|
+
<td>rectangle to fill with logical extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2511
2570
|
</td>
|
2512
2571
|
</tr>
|
2513
2572
|
</tbody>
|
2514
2573
|
</table></div>
|
2515
2574
|
</div>
|
2516
2575
|
<hr>
|
2517
|
-
<div class="refsect2"
|
2576
|
+
<div class="refsect2">
|
2518
2577
|
<a name="pango-layout-iter-get-run-extents"></a><h3>pango_layout_iter_get_run_extents ()</h3>
|
2519
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_run_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2520
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2521
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2578
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_run_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2579
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2580
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2522
2581
|
<p>
|
2523
2582
|
Gets the extents of the current run in layout coordinates
|
2524
|
-
(origin is the top left of the entire layout)
|
2583
|
+
(origin is the top left of the entire layout).
|
2584
|
+
</p>
|
2525
2585
|
<div class="variablelist"><table border="0">
|
2526
2586
|
<col align="left" valign="top">
|
2527
2587
|
<tbody>
|
2528
2588
|
<tr>
|
2529
2589
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2530
|
-
<td>
|
2590
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2531
2591
|
</td>
|
2532
2592
|
</tr>
|
2533
2593
|
<tr>
|
2534
2594
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2535
|
-
<td>
|
2595
|
+
<td>rectangle to fill with ink extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2536
2596
|
</td>
|
2537
2597
|
</tr>
|
2538
2598
|
<tr>
|
2539
2599
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2540
|
-
<td>
|
2600
|
+
<td>rectangle to fill with logical extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2541
2601
|
</td>
|
2542
2602
|
</tr>
|
2543
2603
|
</tbody>
|
2544
2604
|
</table></div>
|
2545
2605
|
</div>
|
2546
2606
|
<hr>
|
2547
|
-
<div class="refsect2"
|
2607
|
+
<div class="refsect2">
|
2548
2608
|
<a name="pango-layout-iter-get-line-yrange"></a><h3>pango_layout_iter_get_line_yrange ()</h3>
|
2549
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_line_yrange (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2550
|
-
<span class="
|
2551
|
-
<span class="
|
2609
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_line_yrange (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2610
|
+
<em class="parameter"><code><span class="type">int</span> *y0_</code></em>,
|
2611
|
+
<em class="parameter"><code><span class="type">int</span> *y1_</code></em>);</pre>
|
2552
2612
|
<p>
|
2553
2613
|
Divides the vertical space in the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> being iterated over
|
2554
2614
|
between the lines in the layout, and returns the space belonging to
|
@@ -2556,109 +2616,112 @@ the current line. A line's range includes the line's logical
|
|
2556
2616
|
extents, plus half of the spacing above and below the line, if
|
2557
2617
|
<a class="link" href="pango-Layout-Objects.html#pango-layout-set-spacing" title="pango_layout_set_spacing ()"><code class="function">pango_layout_set_spacing()</code></a> has been called to set layout spacing.
|
2558
2618
|
The Y positions are in layout coordinates (origin at top left of the
|
2559
|
-
entire layout)
|
2619
|
+
entire layout).
|
2620
|
+
</p>
|
2560
2621
|
<div class="variablelist"><table border="0">
|
2561
2622
|
<col align="left" valign="top">
|
2562
2623
|
<tbody>
|
2563
2624
|
<tr>
|
2564
2625
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2565
|
-
<td>
|
2626
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2566
2627
|
</td>
|
2567
2628
|
</tr>
|
2568
2629
|
<tr>
|
2569
2630
|
<td><p><span class="term"><em class="parameter"><code>y0_</code></em> :</span></p></td>
|
2570
|
-
<td>
|
2631
|
+
<td>start of line
|
2571
2632
|
</td>
|
2572
2633
|
</tr>
|
2573
2634
|
<tr>
|
2574
2635
|
<td><p><span class="term"><em class="parameter"><code>y1_</code></em> :</span></p></td>
|
2575
|
-
<td>
|
2636
|
+
<td>end of line
|
2576
2637
|
</td>
|
2577
2638
|
</tr>
|
2578
2639
|
</tbody>
|
2579
2640
|
</table></div>
|
2580
2641
|
</div>
|
2581
2642
|
<hr>
|
2582
|
-
<div class="refsect2"
|
2643
|
+
<div class="refsect2">
|
2583
2644
|
<a name="pango-layout-iter-get-line-extents"></a><h3>pango_layout_iter_get_line_extents ()</h3>
|
2584
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_line_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2585
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2586
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2645
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_line_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2646
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2647
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2587
2648
|
<p>
|
2588
2649
|
Obtains the extents of the current line. <em class="parameter"><code>ink_rect</code></em> or <em class="parameter"><code>logical_rect</code></em>
|
2589
|
-
can be <a href="/usr/share/gtk-doc/html/
|
2650
|
+
can be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if you aren't interested in them. Extents are in layout
|
2590
2651
|
coordinates (origin is the top-left corner of the entire
|
2591
2652
|
<a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>). Thus the extents returned by this function will be
|
2592
2653
|
the same width/height but not at the same x/y as the extents
|
2593
|
-
returned from <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-extents" title="pango_layout_line_get_extents ()"><code class="function">pango_layout_line_get_extents()</code></a
|
2654
|
+
returned from <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-extents" title="pango_layout_line_get_extents ()"><code class="function">pango_layout_line_get_extents()</code></a>.
|
2655
|
+
</p>
|
2594
2656
|
<div class="variablelist"><table border="0">
|
2595
2657
|
<col align="left" valign="top">
|
2596
2658
|
<tbody>
|
2597
2659
|
<tr>
|
2598
2660
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2599
|
-
<td>
|
2661
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2600
2662
|
</td>
|
2601
2663
|
</tr>
|
2602
2664
|
<tr>
|
2603
2665
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2604
|
-
<td>
|
2666
|
+
<td>rectangle to fill with ink extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2605
2667
|
</td>
|
2606
2668
|
</tr>
|
2607
2669
|
<tr>
|
2608
2670
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2609
|
-
<td>
|
2671
|
+
<td>rectangle to fill with logical extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2610
2672
|
</td>
|
2611
2673
|
</tr>
|
2612
2674
|
</tbody>
|
2613
2675
|
</table></div>
|
2614
2676
|
</div>
|
2615
2677
|
<hr>
|
2616
|
-
<div class="refsect2"
|
2678
|
+
<div class="refsect2">
|
2617
2679
|
<a name="pango-layout-iter-get-layout-extents"></a><h3>pango_layout_iter_get_layout_extents ()</h3>
|
2618
2680
|
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_iter_get_layout_extents
|
2619
|
-
(<a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="
|
2620
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2621
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2681
|
+
(<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a> *iter</code></em>,
|
2682
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2683
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2622
2684
|
<p>
|
2623
2685
|
Obtains the extents of the <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> being iterated
|
2624
|
-
over. <em class="parameter"><code>ink_rect</code></em> or <em class="parameter"><code>logical_rect</code></em> can be <a href="/usr/share/gtk-doc/html/
|
2625
|
-
aren't interested in them
|
2686
|
+
over. <em class="parameter"><code>ink_rect</code></em> or <em class="parameter"><code>logical_rect</code></em> can be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if you
|
2687
|
+
aren't interested in them.
|
2688
|
+
</p>
|
2626
2689
|
<div class="variablelist"><table border="0">
|
2627
2690
|
<col align="left" valign="top">
|
2628
2691
|
<tbody>
|
2629
2692
|
<tr>
|
2630
2693
|
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
|
2631
|
-
<td>
|
2694
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutIter" title="PangoLayoutIter"><span class="type">PangoLayoutIter</span></a>
|
2632
2695
|
</td>
|
2633
2696
|
</tr>
|
2634
2697
|
<tr>
|
2635
2698
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2636
|
-
<td>
|
2699
|
+
<td>rectangle to fill with ink extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2637
2700
|
</td>
|
2638
2701
|
</tr>
|
2639
2702
|
<tr>
|
2640
2703
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2641
|
-
<td>
|
2704
|
+
<td>rectangle to fill with logical extents, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2642
2705
|
</td>
|
2643
2706
|
</tr>
|
2644
2707
|
</tbody>
|
2645
2708
|
</table></div>
|
2646
2709
|
</div>
|
2647
2710
|
<hr>
|
2648
|
-
<div class="refsect2"
|
2649
|
-
<a name="PangoLayoutLine"></a><h3>PangoLayoutLine</h3>
|
2650
|
-
<pre class="programlisting">
|
2711
|
+
<div class="refsect2">
|
2712
|
+
<a name="PangoLayoutLine"></a><h3>struct PangoLayoutLine</h3>
|
2713
|
+
<pre class="programlisting">struct PangoLayoutLine {
|
2651
2714
|
PangoLayout *layout;
|
2652
2715
|
gint start_index; /* start of line as byte index into layout->text */
|
2653
2716
|
gint length; /* length of line in bytes */
|
2654
2717
|
GSList *runs;
|
2655
2718
|
guint is_paragraph_start : 1; /* TRUE if this is the first line of the paragraph */
|
2656
2719
|
guint resolved_dir : 3; /* Resolved PangoDirection of line */
|
2657
|
-
}
|
2720
|
+
};
|
2658
2721
|
</pre>
|
2659
2722
|
<p>
|
2660
|
-
The <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> structure represents one of the lines resulting
|
2661
|
-
from laying out a paragraph via <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2723
|
+
The <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> structure represents one of the lines resulting
|
2724
|
+
from laying out a paragraph via <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>. <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2662
2725
|
structures are obtained by calling <a class="link" href="pango-Layout-Objects.html#pango-layout-get-line" title="pango_layout_get_line ()"><code class="function">pango_layout_get_line()</code></a> and
|
2663
2726
|
are only valid until the text, attributes, or settings of the
|
2664
2727
|
parent <a class="link" href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> are modified.
|
@@ -2676,28 +2739,28 @@ code specific to each rendering system.
|
|
2676
2739
|
</td>
|
2677
2740
|
</tr>
|
2678
2741
|
<tr>
|
2679
|
-
<td><p><span class="term"><
|
2742
|
+
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="PangoLayoutLine.start-index"></a>start_index</code></em>;</span></p></td>
|
2680
2743
|
<td>the start of the line as byte index into <em class="parameter"><code>layout->text</code></em>
|
2681
2744
|
</td>
|
2682
2745
|
</tr>
|
2683
2746
|
<tr>
|
2684
|
-
<td><p><span class="term"><
|
2747
|
+
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="PangoLayoutLine.length"></a>length</code></em>;</span></p></td>
|
2685
2748
|
<td>the length of the line in bytes
|
2686
2749
|
</td>
|
2687
2750
|
</tr>
|
2688
2751
|
<tr>
|
2689
|
-
<td><p><span class="term"><
|
2752
|
+
<td><p><span class="term"><span class="type">GSList</span> *<em class="structfield"><code><a name="PangoLayoutLine.runs"></a>runs</code></em>;</span></p></td>
|
2690
2753
|
<td>a list containing the runs of the line in visual order
|
2691
2754
|
</td>
|
2692
2755
|
</tr>
|
2693
2756
|
<tr>
|
2694
|
-
<td><p><span class="term"><
|
2757
|
+
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLayoutLine.is-paragraph-start"></a>is_paragraph_start</code></em> : 1;</span></p></td>
|
2695
2758
|
<td>
|
2696
|
-
<
|
2759
|
+
<code class="literal">TRUE</code> if this is the first line of the paragraph
|
2697
2760
|
</td>
|
2698
2761
|
</tr>
|
2699
2762
|
<tr>
|
2700
|
-
<td><p><span class="term"><
|
2763
|
+
<td><p><span class="term"><span class="type">guint</span> <em class="structfield"><code><a name="PangoLayoutLine.resolved-dir"></a>resolved_dir</code></em> : 3;</span></p></td>
|
2701
2764
|
<td>the resolved <a class="link" href="pango-Bidirectional-Text.html#PangoDirection" title="enum PangoDirection"><span class="type">PangoDirection</span></a> of the line
|
2702
2765
|
</td>
|
2703
2766
|
</tr>
|
@@ -2705,29 +2768,30 @@ code specific to each rendering system.
|
|
2705
2768
|
</table></div>
|
2706
2769
|
</div>
|
2707
2770
|
<hr>
|
2708
|
-
<div class="refsect2"
|
2771
|
+
<div class="refsect2">
|
2709
2772
|
<a name="PangoLayoutRun"></a><h3>PangoLayoutRun</h3>
|
2710
2773
|
<pre class="programlisting">typedef PangoGlyphItem PangoLayoutRun;
|
2711
2774
|
</pre>
|
2712
2775
|
<p>
|
2713
2776
|
The <a class="link" href="pango-Layout-Objects.html#PangoLayoutRun" title="PangoLayoutRun"><span class="type">PangoLayoutRun</span></a> structure represents a single run within
|
2714
|
-
a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>; it is simply an alternate name for
|
2715
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>.
|
2716
|
-
See the <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> docs for details on the fields.
|
2777
|
+
a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>; it is simply an alternate name for
|
2778
|
+
<a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="struct PangoGlyphItem"><span class="type">PangoGlyphItem</span></a>.
|
2779
|
+
See the <a class="link" href="pango-Glyph-Storage.html#PangoGlyphItem" title="struct PangoGlyphItem"><span class="type">PangoGlyphItem</span></a> docs for details on the fields.
|
2717
2780
|
</p>
|
2718
2781
|
</div>
|
2719
2782
|
<hr>
|
2720
|
-
<div class="refsect2"
|
2783
|
+
<div class="refsect2">
|
2721
2784
|
<a name="pango-layout-line-ref"></a><h3>pango_layout_line_ref ()</h3>
|
2722
|
-
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_line_ref (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2785
|
+
<pre class="programlisting"><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="returnvalue">PangoLayoutLine</span></a> * pango_layout_line_ref (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
2723
2786
|
<p>
|
2724
|
-
Increase the reference count of a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> by one
|
2787
|
+
Increase the reference count of a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> by one.
|
2788
|
+
</p>
|
2725
2789
|
<div class="variablelist"><table border="0">
|
2726
2790
|
<col align="left" valign="top">
|
2727
2791
|
<tbody>
|
2728
2792
|
<tr>
|
2729
2793
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2730
|
-
<td>
|
2794
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>, may be <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2731
2795
|
</td>
|
2732
2796
|
</tr>
|
2733
2797
|
<tr>
|
@@ -2741,134 +2805,138 @@ Increase the reference count of a <a class="link" href="pango-Layout-Objects.htm
|
|
2741
2805
|
<p class="since">Since 1.10</p>
|
2742
2806
|
</div>
|
2743
2807
|
<hr>
|
2744
|
-
<div class="refsect2"
|
2808
|
+
<div class="refsect2">
|
2745
2809
|
<a name="pango-layout-line-unref"></a><h3>pango_layout_line_unref ()</h3>
|
2746
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_unref (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2810
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_unref (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>);</pre>
|
2747
2811
|
<p>
|
2748
|
-
Decrease the reference count of a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> by one.
|
2812
|
+
Decrease the reference count of a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> by one.
|
2749
2813
|
If the result is zero, the line and all associated memory
|
2750
|
-
will be freed
|
2814
|
+
will be freed.
|
2815
|
+
</p>
|
2751
2816
|
<div class="variablelist"><table border="0">
|
2752
2817
|
<col align="left" valign="top">
|
2753
2818
|
<tbody><tr>
|
2754
2819
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2755
|
-
<td>
|
2820
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2756
2821
|
</td>
|
2757
2822
|
</tr></tbody>
|
2758
2823
|
</table></div>
|
2759
2824
|
</div>
|
2760
2825
|
<hr>
|
2761
|
-
<div class="refsect2"
|
2826
|
+
<div class="refsect2">
|
2762
2827
|
<a name="pango-layout-line-get-extents"></a><h3>pango_layout_line_get_extents ()</h3>
|
2763
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2764
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2765
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2828
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
2829
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2830
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2766
2831
|
<p>
|
2767
2832
|
Computes the logical and ink extents of a layout line. See
|
2768
2833
|
<a class="link" href="pango-Fonts.html#pango-font-get-glyph-extents" title="pango_font_get_glyph_extents ()"><code class="function">pango_font_get_glyph_extents()</code></a> for details about the interpretation
|
2769
|
-
of the rectangles
|
2834
|
+
of the rectangles.
|
2835
|
+
</p>
|
2770
2836
|
<div class="variablelist"><table border="0">
|
2771
2837
|
<col align="left" valign="top">
|
2772
2838
|
<tbody>
|
2773
2839
|
<tr>
|
2774
2840
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2775
|
-
<td>
|
2841
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2776
2842
|
</td>
|
2777
2843
|
</tr>
|
2778
2844
|
<tr>
|
2779
2845
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2780
|
-
<td>
|
2781
|
-
as drawn, or <a href="/usr/share/gtk-doc/html/
|
2846
|
+
<td>rectangle used to store the extents of the glyph string
|
2847
|
+
as drawn, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2782
2848
|
</td>
|
2783
2849
|
</tr>
|
2784
2850
|
<tr>
|
2785
2851
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2786
|
-
<td>
|
2787
|
-
string, or <a href="/usr/share/gtk-doc/html/
|
2852
|
+
<td>rectangle used to store the logical extents of the glyph
|
2853
|
+
string, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2788
2854
|
</td>
|
2789
2855
|
</tr>
|
2790
2856
|
</tbody>
|
2791
2857
|
</table></div>
|
2792
2858
|
</div>
|
2793
2859
|
<hr>
|
2794
|
-
<div class="refsect2"
|
2860
|
+
<div class="refsect2">
|
2795
2861
|
<a name="pango-layout-line-get-pixel-extents"></a><h3>pango_layout_line_get_pixel_extents ()</h3>
|
2796
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_pixel_extents (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2797
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2798
|
-
<a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="PangoRectangle"><span class="
|
2862
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_pixel_extents (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *layout_line</code></em>,
|
2863
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *ink_rect</code></em>,
|
2864
|
+
<em class="parameter"><code><a class="link" href="pango-Glyph-Storage.html#PangoRectangle" title="struct PangoRectangle"><span class="type">PangoRectangle</span></a> *logical_rect</code></em>);</pre>
|
2799
2865
|
<p>
|
2800
2866
|
Computes the logical and ink extents of <em class="parameter"><code>layout_line</code></em> in device units.
|
2801
2867
|
This function just calls <a class="link" href="pango-Layout-Objects.html#pango-layout-line-get-extents" title="pango_layout_line_get_extents ()"><code class="function">pango_layout_line_get_extents()</code></a> followed by
|
2802
2868
|
two <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a> calls, rounding <em class="parameter"><code>ink_rect</code></em> and <em class="parameter"><code>logical_rect</code></em>
|
2803
2869
|
such that the rounded rectangles fully contain the unrounded one (that is,
|
2804
|
-
passes them as first argument to <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>)
|
2870
|
+
passes them as first argument to <a class="link" href="pango-Glyph-Storage.html#pango-extents-to-pixels" title="pango_extents_to_pixels ()"><code class="function">pango_extents_to_pixels()</code></a>).
|
2871
|
+
</p>
|
2805
2872
|
<div class="variablelist"><table border="0">
|
2806
2873
|
<col align="left" valign="top">
|
2807
2874
|
<tbody>
|
2808
2875
|
<tr>
|
2809
2876
|
<td><p><span class="term"><em class="parameter"><code>layout_line</code></em> :</span></p></td>
|
2810
|
-
<td>
|
2877
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2811
2878
|
</td>
|
2812
2879
|
</tr>
|
2813
2880
|
<tr>
|
2814
2881
|
<td><p><span class="term"><em class="parameter"><code>ink_rect</code></em> :</span></p></td>
|
2815
|
-
<td>
|
2816
|
-
as drawn, or <a href="/usr/share/gtk-doc/html/
|
2882
|
+
<td>rectangle used to store the extents of the glyph string
|
2883
|
+
as drawn, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2817
2884
|
</td>
|
2818
2885
|
</tr>
|
2819
2886
|
<tr>
|
2820
2887
|
<td><p><span class="term"><em class="parameter"><code>logical_rect</code></em> :</span></p></td>
|
2821
|
-
<td>
|
2822
|
-
string, or <a href="/usr/share/gtk-doc/html/
|
2888
|
+
<td>rectangle used to store the logical extents of the glyph
|
2889
|
+
string, or <a href="/gnome/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
|
2823
2890
|
</td>
|
2824
2891
|
</tr>
|
2825
2892
|
</tbody>
|
2826
2893
|
</table></div>
|
2827
2894
|
</div>
|
2828
2895
|
<hr>
|
2829
|
-
<div class="refsect2"
|
2896
|
+
<div class="refsect2">
|
2830
2897
|
<a name="pango-layout-line-index-to-x"></a><h3>pango_layout_line_index_to_x ()</h3>
|
2831
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_index_to_x (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2832
|
-
<span class="
|
2833
|
-
<
|
2834
|
-
<span class="
|
2898
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_index_to_x (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
2899
|
+
<em class="parameter"><code><span class="type">int</span> index_</code></em>,
|
2900
|
+
<em class="parameter"><code><span class="type">gboolean</span> trailing</code></em>,
|
2901
|
+
<em class="parameter"><code><span class="type">int</span> *x_pos</code></em>);</pre>
|
2835
2902
|
<p>
|
2836
|
-
Converts an index within a line to a X position
|
2903
|
+
Converts an index within a line to a X position.
|
2904
|
+
</p>
|
2837
2905
|
<div class="variablelist"><table border="0">
|
2838
2906
|
<col align="left" valign="top">
|
2839
2907
|
<tbody>
|
2840
2908
|
<tr>
|
2841
2909
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2842
|
-
<td>
|
2910
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2843
2911
|
</td>
|
2844
2912
|
</tr>
|
2845
2913
|
<tr>
|
2846
2914
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
2847
|
-
<td>
|
2915
|
+
<td>byte offset of a grapheme within the layout
|
2848
2916
|
</td>
|
2849
2917
|
</tr>
|
2850
2918
|
<tr>
|
2851
2919
|
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
|
2852
|
-
<td>
|
2920
|
+
<td>an integer indicating the edge of the grapheme to retrieve
|
2853
2921
|
the position of. If > 0, the trailing edge of the grapheme,
|
2854
2922
|
if 0, the leading of the grapheme.
|
2855
2923
|
</td>
|
2856
2924
|
</tr>
|
2857
2925
|
<tr>
|
2858
2926
|
<td><p><span class="term"><em class="parameter"><code>x_pos</code></em> :</span></p></td>
|
2859
|
-
<td>
|
2927
|
+
<td>location to store the x_offset (in Pango unit)
|
2860
2928
|
</td>
|
2861
2929
|
</tr>
|
2862
2930
|
</tbody>
|
2863
2931
|
</table></div>
|
2864
2932
|
</div>
|
2865
2933
|
<hr>
|
2866
|
-
<div class="refsect2"
|
2934
|
+
<div class="refsect2">
|
2867
2935
|
<a name="pango-layout-line-x-to-index"></a><h3>pango_layout_line_x_to_index ()</h3>
|
2868
|
-
<pre class="programlisting"><
|
2869
|
-
<span class="
|
2870
|
-
<span class="
|
2871
|
-
<span class="
|
2936
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span> pango_layout_line_x_to_index (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
2937
|
+
<em class="parameter"><code><span class="type">int</span> x_pos</code></em>,
|
2938
|
+
<em class="parameter"><code><span class="type">int</span> *index_</code></em>,
|
2939
|
+
<em class="parameter"><code><span class="type">int</span> *trailing</code></em>);</pre>
|
2872
2940
|
<p>
|
2873
2941
|
Converts from x offset to the byte index of the corresponding
|
2874
2942
|
character within the text of the layout. If <em class="parameter"><code>x_pos</code></em> is outside the line,
|
@@ -2879,30 +2947,31 @@ right-to-left, then an X position to the right of the line (after it)
|
|
2879
2947
|
results in 0 being stored in <em class="parameter"><code>index_</code></em> and <em class="parameter"><code>trailing</code></em>. An X position to the
|
2880
2948
|
left of the line results in <em class="parameter"><code>index_</code></em> pointing to the (logical) last
|
2881
2949
|
grapheme in the line and <em class="parameter"><code>trailing</code></em> being set to the number of characters
|
2882
|
-
in that grapheme. The reverse is true for a left-to-right line
|
2950
|
+
in that grapheme. The reverse is true for a left-to-right line.
|
2951
|
+
</p>
|
2883
2952
|
<div class="variablelist"><table border="0">
|
2884
2953
|
<col align="left" valign="top">
|
2885
2954
|
<tbody>
|
2886
2955
|
<tr>
|
2887
2956
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2888
|
-
<td>
|
2957
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2889
2958
|
</td>
|
2890
2959
|
</tr>
|
2891
2960
|
<tr>
|
2892
2961
|
<td><p><span class="term"><em class="parameter"><code>x_pos</code></em> :</span></p></td>
|
2893
|
-
<td>
|
2962
|
+
<td>the X offset (in Pango units)
|
2894
2963
|
from the left edge of the line.
|
2895
2964
|
</td>
|
2896
2965
|
</tr>
|
2897
2966
|
<tr>
|
2898
2967
|
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
|
2899
|
-
<td>
|
2968
|
+
<td>location to store calculated byte index for
|
2900
2969
|
the grapheme in which the user clicked.
|
2901
2970
|
</td>
|
2902
2971
|
</tr>
|
2903
2972
|
<tr>
|
2904
2973
|
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
|
2905
|
-
<td>
|
2974
|
+
<td>location to store an integer indicating where
|
2906
2975
|
in the grapheme the user clicked. It will either
|
2907
2976
|
be zero, or the number of characters in the
|
2908
2977
|
grapheme. 0 represents the leading edge of the grapheme.
|
@@ -2910,37 +2979,38 @@ in that grapheme. The reverse is true for a left-to-right line.</p>
|
|
2910
2979
|
</tr>
|
2911
2980
|
<tr>
|
2912
2981
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
2913
|
-
<td> <
|
2982
|
+
<td> <code class="literal">FALSE</code> if <em class="parameter"><code>x_pos</code></em> was outside the line, <code class="literal">TRUE</code> if inside
|
2914
2983
|
</td>
|
2915
2984
|
</tr>
|
2916
2985
|
</tbody>
|
2917
2986
|
</table></div>
|
2918
2987
|
</div>
|
2919
2988
|
<hr>
|
2920
|
-
<div class="refsect2"
|
2989
|
+
<div class="refsect2">
|
2921
2990
|
<a name="pango-layout-line-get-x-ranges"></a><h3>pango_layout_line_get_x_ranges ()</h3>
|
2922
|
-
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_x_ranges (<a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="PangoLayoutLine"><span class="
|
2923
|
-
<span class="
|
2924
|
-
<span class="
|
2925
|
-
<span class="
|
2926
|
-
<span class="
|
2991
|
+
<pre class="programlisting"><span class="returnvalue">void</span> pango_layout_line_get_x_ranges (<em class="parameter"><code><a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
2992
|
+
<em class="parameter"><code><span class="type">int</span> start_index</code></em>,
|
2993
|
+
<em class="parameter"><code><span class="type">int</span> end_index</code></em>,
|
2994
|
+
<em class="parameter"><code><span class="type">int</span> **ranges</code></em>,
|
2995
|
+
<em class="parameter"><code><span class="type">int</span> *n_ranges</code></em>);</pre>
|
2927
2996
|
<p>
|
2928
2997
|
Gets a list of visual ranges corresponding to a given logical range.
|
2929
2998
|
This list is not necessarily minimal - there may be consecutive
|
2930
2999
|
ranges which are adjacent. The ranges will be sorted from left to
|
2931
3000
|
right. The ranges are with respect to the left edge of the entire
|
2932
|
-
layout, not with respect to the line
|
3001
|
+
layout, not with respect to the line.
|
3002
|
+
</p>
|
2933
3003
|
<div class="variablelist"><table border="0">
|
2934
3004
|
<col align="left" valign="top">
|
2935
3005
|
<tbody>
|
2936
3006
|
<tr>
|
2937
3007
|
<td><p><span class="term"><em class="parameter"><code>line</code></em> :</span></p></td>
|
2938
|
-
<td>
|
3008
|
+
<td>a <a class="link" href="pango-Layout-Objects.html#PangoLayoutLine" title="struct PangoLayoutLine"><span class="type">PangoLayoutLine</span></a>
|
2939
3009
|
</td>
|
2940
3010
|
</tr>
|
2941
3011
|
<tr>
|
2942
3012
|
<td><p><span class="term"><em class="parameter"><code>start_index</code></em> :</span></p></td>
|
2943
|
-
<td>
|
3013
|
+
<td>Start byte index of the logical range. If this value
|
2944
3014
|
is less than the start index for the line, then
|
2945
3015
|
the first range will extend all the way to the leading
|
2946
3016
|
edge of the layout. Otherwise it will start at the
|
@@ -2949,7 +3019,7 @@ layout, not with respect to the line.</p>
|
|
2949
3019
|
</tr>
|
2950
3020
|
<tr>
|
2951
3021
|
<td><p><span class="term"><em class="parameter"><code>end_index</code></em> :</span></p></td>
|
2952
|
-
<td>
|
3022
|
+
<td>Ending byte index of the logical range. If this value
|
2953
3023
|
is greater than the end index for the line, then
|
2954
3024
|
the last range will extend all the way to the trailing
|
2955
3025
|
edge of the layout. Otherwise, it will end at the
|
@@ -2958,11 +3028,18 @@ layout, not with respect to the line.</p>
|
|
2958
3028
|
</tr>
|
2959
3029
|
<tr>
|
2960
3030
|
<td><p><span class="term"><em class="parameter"><code>ranges</code></em> :</span></p></td>
|
2961
|
-
<td>
|
3031
|
+
<td> (array length=n_ranges): (transfer=full):
|
3032
|
+
location to store a pointer to an array of ranges.
|
3033
|
+
The array will be of length <code class="literal">2*n_ranges</code>,
|
3034
|
+
with each range starting at <code class="literal">(*ranges)[2*n]</code>
|
3035
|
+
and of width <code class="literal">(*ranges)[2*n + 1] - (*ranges)[2*n]</code>.
|
3036
|
+
This array must be freed with <code class="function">g_free()</code>. The coordinates are relative
|
3037
|
+
to the layout and are in Pango units. <span class="annotation">[<a href="http://foldoc.org/out"><span class="acronym">out</span></a>]</span>
|
3038
|
+
</td>
|
2962
3039
|
</tr>
|
2963
3040
|
<tr>
|
2964
3041
|
<td><p><span class="term"><em class="parameter"><code>n_ranges</code></em> :</span></p></td>
|
2965
|
-
<td>
|
3042
|
+
<td>The number of ranges stored in <em class="parameter"><code>ranges</code></em>.
|
2966
3043
|
</td>
|
2967
3044
|
</tr>
|
2968
3045
|
</tbody>
|
@@ -2972,6 +3049,6 @@ layout, not with respect to the line.</p>
|
|
2972
3049
|
</div>
|
2973
3050
|
<div class="footer">
|
2974
3051
|
<hr>
|
2975
|
-
Generated by GTK-Doc V1.
|
3052
|
+
Generated by GTK-Doc V1.15.1</div>
|
2976
3053
|
</body>
|
2977
3054
|
</html>
|