~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkMisc.html

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-09-02 17:17:47 UTC
  • mto: (72.4.15 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20110902171747-i8dr3czswn2sk7tu
Tags: upstream-2.24.6
Import upstream version 2.24.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
struct              <a class="link" href="GtkMisc.html#GtkMisc-struct" title="struct GtkMisc">GtkMisc</a>;
50
50
<span class="returnvalue">void</span>                <a class="link" href="GtkMisc.html#gtk-misc-set-alignment" title="gtk_misc_set_alignment ()">gtk_misc_set_alignment</a>              (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
51
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>,
52
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> yalign</code></em>);
 
51
                                                         <em class="parameter"><code><span class="type">gfloat</span> xalign</code></em>,
 
52
                                                         <em class="parameter"><code><span class="type">gfloat</span> yalign</code></em>);
53
53
<span class="returnvalue">void</span>                <a class="link" href="GtkMisc.html#gtk-misc-set-padding" title="gtk_misc_set_padding ()">gtk_misc_set_padding</a>                (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
54
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
55
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);
 
54
                                                         <em class="parameter"><code><span class="type">gint</span> xpad</code></em>,
 
55
                                                         <em class="parameter"><code><span class="type">gint</span> ypad</code></em>);
56
56
<span class="returnvalue">void</span>                <a class="link" href="GtkMisc.html#gtk-misc-get-alignment" title="gtk_misc_get_alignment ()">gtk_misc_get_alignment</a>              (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
57
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *xalign</code></em>,
58
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *yalign</code></em>);
 
57
                                                         <em class="parameter"><code><span class="type">gfloat</span> *xalign</code></em>,
 
58
                                                         <em class="parameter"><code><span class="type">gfloat</span> *yalign</code></em>);
59
59
<span class="returnvalue">void</span>                <a class="link" href="GtkMisc.html#gtk-misc-get-padding" title="gtk_misc_get_padding ()">gtk_misc_get_padding</a>                (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
60
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *xpad</code></em>,
61
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *ypad</code></em>);
 
60
                                                         <em class="parameter"><code><span class="type">gint</span> *xpad</code></em>,
 
61
                                                         <em class="parameter"><code><span class="type">gint</span> *ypad</code></em>);
62
62
</pre>
63
63
</div>
64
64
<div class="refsect1">
65
65
<a name="GtkMisc.object-hierarchy"></a><h2>Object Hierarchy</h2>
66
66
<pre class="synopsis">
67
 
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
68
 
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
 
67
  GObject
 
68
   +----GInitiallyUnowned
69
69
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
70
70
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
71
71
                     +----GtkMisc
84
84
<div class="refsect1">
85
85
<a name="GtkMisc.properties"></a><h2>Properties</h2>
86
86
<pre class="synopsis">
87
 
  "<a class="link" href="GtkMisc.html#GtkMisc--xalign" title='The "xalign" property'>xalign</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
88
 
  "<a class="link" href="GtkMisc.html#GtkMisc--xpad" title='The "xpad" property'>xpad</a>"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
89
 
  "<a class="link" href="GtkMisc.html#GtkMisc--yalign" title='The "yalign" property'>yalign</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
90
 
  "<a class="link" href="GtkMisc.html#GtkMisc--ypad" title='The "ypad" property'>ypad</a>"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
 
87
  "<a class="link" href="GtkMisc.html#GtkMisc--xalign" title='The "xalign" property'>xalign</a>"                   <span class="type">gfloat</span>                : Read / Write
 
88
  "<a class="link" href="GtkMisc.html#GtkMisc--xpad" title='The "xpad" property'>xpad</a>"                     <span class="type">gint</span>                  : Read / Write
 
89
  "<a class="link" href="GtkMisc.html#GtkMisc--yalign" title='The "yalign" property'>yalign</a>"                   <span class="type">gfloat</span>                : Read / Write
 
90
  "<a class="link" href="GtkMisc.html#GtkMisc--ypad" title='The "ypad" property'>ypad</a>"                     <span class="type">gint</span>                  : Read / Write
91
91
</pre>
92
92
</div>
93
93
<div class="refsect1">
125
125
<tbody>
126
126
<tr>
127
127
<td>
128
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code>xalign</code></em>;</td>
 
128
<span class="type">gfloat</span> <em class="structfield"><code>xalign</code></em>;</td>
129
129
<td>the horizontal alignment, from 0 (left) to 1 (right).</td>
130
130
</tr>
131
131
<tr>
132
132
<td>
133
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> <em class="structfield"><code>yalign</code></em>;</td>
 
133
<span class="type">gfloat</span> <em class="structfield"><code>yalign</code></em>;</td>
134
134
<td>the vertical alignment, from 0 (top) to 1 (bottom).</td>
135
135
</tr>
136
136
<tr>
137
137
<td>
138
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code>xpad</code></em>;</td>
 
138
<span class="type">guint16</span> <em class="structfield"><code>xpad</code></em>;</td>
139
139
<td>the amount of space to add on the left and right of the widget,
140
140
in pixels.</td>
141
141
</tr>
142
142
<tr>
143
143
<td>
144
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> <em class="structfield"><code>ypad</code></em>;</td>
 
144
<span class="type">guint16</span> <em class="structfield"><code>ypad</code></em>;</td>
145
145
<td>the amount of space to add on the top and bottom of the widget,
146
146
in pixels.</td>
147
147
</tr>
154
154
<div class="refsect2">
155
155
<a name="gtk-misc-set-alignment"></a><h3>gtk_misc_set_alignment ()</h3>
156
156
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_set_alignment              (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
157
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> xalign</code></em>,
158
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> yalign</code></em>);</pre>
 
157
                                                         <em class="parameter"><code><span class="type">gfloat</span> xalign</code></em>,
 
158
                                                         <em class="parameter"><code><span class="type">gfloat</span> yalign</code></em>);</pre>
159
159
<p>
160
160
Sets the alignment of the widget.
161
161
</p>
181
181
<div class="refsect2">
182
182
<a name="gtk-misc-set-padding"></a><h3>gtk_misc_set_padding ()</h3>
183
183
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_set_padding                (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
184
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpad</code></em>,
185
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypad</code></em>);</pre>
 
184
                                                         <em class="parameter"><code><span class="type">gint</span> xpad</code></em>,
 
185
                                                         <em class="parameter"><code><span class="type">gint</span> ypad</code></em>);</pre>
186
186
<p>
187
187
Sets the amount of space to add around the widget.
188
188
</p>
210
210
<div class="refsect2">
211
211
<a name="gtk-misc-get-alignment"></a><h3>gtk_misc_get_alignment ()</h3>
212
212
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_get_alignment              (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
213
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *xalign</code></em>,
214
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> *yalign</code></em>);</pre>
 
213
                                                         <em class="parameter"><code><span class="type">gfloat</span> *xalign</code></em>,
 
214
                                                         <em class="parameter"><code><span class="type">gfloat</span> *yalign</code></em>);</pre>
215
215
<p>
216
216
Gets the X and Y alignment of the widget within its allocation. 
217
217
See <a class="link" href="GtkMisc.html#gtk-misc-set-alignment" title="gtk_misc_set_alignment ()"><code class="function">gtk_misc_set_alignment()</code></a>.
226
226
</tr>
227
227
<tr>
228
228
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
229
 
<td>location to store X alignment of <em class="parameter"><code>misc</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
229
<td>location to store X alignment of <em class="parameter"><code>misc</code></em>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
230
230
</td>
231
231
</tr>
232
232
<tr>
233
233
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
234
 
<td>location to store Y alignment of <em class="parameter"><code>misc</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
234
<td>location to store Y alignment of <em class="parameter"><code>misc</code></em>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
235
235
</td>
236
236
</tr>
237
237
</tbody>
241
241
<div class="refsect2">
242
242
<a name="gtk-misc-get-padding"></a><h3>gtk_misc_get_padding ()</h3>
243
243
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_misc_get_padding                (<em class="parameter"><code><a class="link" href="GtkMisc.html" title="GtkMisc"><span class="type">GtkMisc</span></a> *misc</code></em>,
244
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *xpad</code></em>,
245
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *ypad</code></em>);</pre>
 
244
                                                         <em class="parameter"><code><span class="type">gint</span> *xpad</code></em>,
 
245
                                                         <em class="parameter"><code><span class="type">gint</span> *ypad</code></em>);</pre>
246
246
<p>
247
247
Gets the padding in the X and Y directions of the widget. 
248
248
See <a class="link" href="GtkMisc.html#gtk-misc-set-padding" title="gtk_misc_set_padding ()"><code class="function">gtk_misc_set_padding()</code></a>.
258
258
<tr>
259
259
<td><p><span class="term"><em class="parameter"><code>xpad</code></em> :</span></p></td>
260
260
<td>location to store padding in the X
261
 
direction, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
261
direction, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
262
262
</td>
263
263
</tr>
264
264
<tr>
265
265
<td><p><span class="term"><em class="parameter"><code>ypad</code></em> :</span></p></td>
266
266
<td>location to store padding in the Y
267
 
direction, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
267
direction, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
268
268
</td>
269
269
</tr>
270
270
</tbody>
275
275
<a name="GtkMisc.property-details"></a><h2>Property Details</h2>
276
276
<div class="refsect2">
277
277
<a name="GtkMisc--xalign"></a><h3>The <code class="literal">"xalign"</code> property</h3>
278
 
<pre class="programlisting">  "xalign"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
 
278
<pre class="programlisting">  "xalign"                   <span class="type">gfloat</span>                : Read / Write</pre>
279
279
<p>The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.</p>
280
280
<p>Allowed values: [0,1]</p>
281
281
<p>Default value: 0.5</p>
283
283
<hr>
284
284
<div class="refsect2">
285
285
<a name="GtkMisc--xpad"></a><h3>The <code class="literal">"xpad"</code> property</h3>
286
 
<pre class="programlisting">  "xpad"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
 
286
<pre class="programlisting">  "xpad"                     <span class="type">gint</span>                  : Read / Write</pre>
287
287
<p>The amount of space to add on the left and right of the widget, in pixels.</p>
288
288
<p>Allowed values: &gt;= 0</p>
289
289
<p>Default value: 0</p>
291
291
<hr>
292
292
<div class="refsect2">
293
293
<a name="GtkMisc--yalign"></a><h3>The <code class="literal">"yalign"</code> property</h3>
294
 
<pre class="programlisting">  "yalign"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
 
294
<pre class="programlisting">  "yalign"                   <span class="type">gfloat</span>                : Read / Write</pre>
295
295
<p>The vertical alignment, from 0 (top) to 1 (bottom).</p>
296
296
<p>Allowed values: [0,1]</p>
297
297
<p>Default value: 0.5</p>
299
299
<hr>
300
300
<div class="refsect2">
301
301
<a name="GtkMisc--ypad"></a><h3>The <code class="literal">"ypad"</code> property</h3>
302
 
<pre class="programlisting">  "ypad"                     <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
 
302
<pre class="programlisting">  "ypad"                     <span class="type">gint</span>                  : Read / Write</pre>
303
303
<p>The amount of space to add on the top and bottom of the widget, in pixels.</p>
304
304
<p>Allowed values: &gt;= 0</p>
305
305
<p>Default value: 0</p>