File: ExoEllipsizedLabel.html

package info (click to toggle)
exo 0.3.107-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,992 kB
  • ctags: 3,447
  • sloc: ansic: 24,999; sh: 10,429; makefile: 1,606; python: 403; perl: 235; xml: 130
file content (205 lines) | stat: -rw-r--r-- 12,122 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ExoEllipsizedLabel</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="exo Reference Manual">
<link rel="up" href="exo-deprecated-widgets.html" title="Part VIII. Deprecated widgets">
<link rel="prev" href="exo-deprecated-widgets.html" title="Part VIII. Deprecated widgets">
<link rel="next" href="ch01.html" title="Visual Index">
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="exo-deprecated-widgets.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="exo-deprecated-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">exo Reference Manual</th>
<td><a accesskey="n" href="ch01.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#ExoEllipsizedLabel.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#ExoEllipsizedLabel.description" class="shortcut">Description</a>
                   | 
                  <a href="#ExoEllipsizedLabel.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#ExoEllipsizedLabel.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
</td></tr>
</table>
<div class="refentry" title="ExoEllipsizedLabel">
<a name="ExoEllipsizedLabel"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="ExoEllipsizedLabel.top_of_page"></a>ExoEllipsizedLabel</span></h2>
<p>ExoEllipsizedLabel — A widget that automatically ellipsizes text</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="ExoEllipsizedLabel.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;exo/exo.h&gt;

                    <a class="link" href="ExoEllipsizedLabel.html#ExoEllipsizedLabel-struct" title="ExoEllipsizedLabel">ExoEllipsizedLabel</a>;
<span class="returnvalue">GtkWidget</span> *         <a class="link" href="ExoEllipsizedLabel.html#exo-ellipsized-label-new" title="exo_ellipsized_label_new ()">exo_ellipsized_label_new</a>            (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a>  <a class="link" href="ExoEllipsizedLabel.html#exo-ellipsized-label-get-ellipsize" title="exo_ellipsized_label_get_ellipsize ()">exo_ellipsized_label_get_ellipsize</a>  (<em class="parameter"><code><a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> *label</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="ExoEllipsizedLabel.html#exo-ellipsized-label-set-ellipsize" title="exo_ellipsized_label_set_ellipsize ()">exo_ellipsized_label_set_ellipsize</a>  (<em class="parameter"><code><a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> *label</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a> ellipsize</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="ExoEllipsizedLabel.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkMisc
                           +----GtkLabel
                                 +----ExoEllipsizedLabel
</pre>
</div>
<div class="refsect1" title="Implemented Interfaces">
<a name="ExoEllipsizedLabel.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
ExoEllipsizedLabel implements
 AtkImplementorIface and  GtkBuildable.</p>
</div>
<div class="refsect1" title="Description">
<a name="ExoEllipsizedLabel.description"></a><h2>Description</h2>
<p>
  <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> extends the standard <span class="type">GtkLabel</span> class present in
  Gtk+ 2.4 with the ability to automatically ellipsize text with
  "...".
</p>
<p>
  <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> automatically detects if its running with Gtk+
  2.5 or above and uses the native ellipsizing support of Gtk+ 2.5
  or above in that case. So its safe to use <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a>
  with every Gtk+ version above 2.4.
</p>
<p>
  As of exo 0.3.1.8, <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> is deprecated and should not
  be used in newly written code. Instead use <span class="type">GtkLabel</span> directly, which
  supports the "ellipsize" property since GTK+ 2.6.
</p>
</div>
<div class="refsect1" title="Details">
<a name="ExoEllipsizedLabel.details"></a><h2>Details</h2>
<div class="refsect2" title="ExoEllipsizedLabel">
<a name="ExoEllipsizedLabel-struct"></a><h3>ExoEllipsizedLabel</h3>
<pre class="programlisting">typedef struct _ExoEllipsizedLabel ExoEllipsizedLabel;</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">ExoEllipsizedLabel</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
  The <span class="structname">ExoEllipsizedLabel</span> struct contains only private fields and should not be directly accessed.
</p>
</div>
<hr>
<div class="refsect2" title="exo_ellipsized_label_new ()">
<a name="exo-ellipsized-label-new"></a><h3>exo_ellipsized_label_new ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> *         exo_ellipsized_label_new            (<em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">exo_ellipsized_label_new</code> has been deprecated since version 0.3.1.8 and should not be used in newly-written code. Use <span class="type">GtkLabel</span> instead.</p>
</div>
<p>
Creates a new <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> with the given
text inside it. You can pass <a href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> to get an
empty label widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>The text of the label.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The new <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a>.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="exo_ellipsized_label_get_ellipsize ()">
<a name="exo-ellipsized-label-get-ellipsize"></a><h3>exo_ellipsized_label_get_ellipsize ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="returnvalue">PangoEllipsizeMode</span></a>  exo_ellipsized_label_get_ellipsize  (<em class="parameter"><code><a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> *label</code></em>);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">exo_ellipsized_label_get_ellipsize</code> has been deprecated since version 0.3.1.8 and should not be used in newly-written code. Use <code class="function">gtk_label_get_ellipsize()</code> instead.</p>
</div>
<p>
Returns the ellipsizing position of the <em class="parameter"><code>label</code></em>.
See <a class="link" href="ExoEllipsizedLabel.html#exo-ellipsized-label-set-ellipsize" title="exo_ellipsized_label_set_ellipsize ()"><code class="function">exo_ellipsized_label_set_ellipsize()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>An <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> An <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a>.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="exo_ellipsized_label_set_ellipsize ()">
<a name="exo-ellipsized-label-set-ellipsize"></a><h3>exo_ellipsized_label_set_ellipsize ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                exo_ellipsized_label_set_ellipsize  (<em class="parameter"><code><a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a> *label</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a> ellipsize</code></em>);</pre>
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">exo_ellipsized_label_set_ellipsize</code> has been deprecated since version 0.3.1.8 and should not be used in newly-written code. Use <code class="function">gtk_label_set_ellipsize()</code> instead.</p>
</div>
<p>
Sets the mode used to ellipsize (add an ellipsis: "...") to the
text if there is not enough space to render the entire string.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>An <a class="link" href="ExoEllipsizedLabel.html" title="ExoEllipsizedLabel"><span class="type">ExoEllipsizedLabel</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ellipsize</code></em> :</span></p></td>
<td>An <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode"><span class="type">PangoEllipsizeMode</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="See Also">
<a name="ExoEllipsizedLabel.see-also"></a><h2>See Also</h2>
<p>
<a class="ulink" href="http://developer.gnome.org/doc/API/2.0/gtk/GtkLabel.html" target="_top">GtkLabel</a>, <a class="link" href="exo-Extensions-to-Pango.html" title="Extensions to Pango">Exo
Pango Extensions</a>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.14</div>
</body>
</html>