Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 277

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

<html>
<head><title>Gtk-- Reference: Gtk::Alignment</title></head>

<body bgcolor="#F0F0F0" text="#000000" link="#0000FF"
vlink="#000077" alink="#FF0000">
<table align=center border=0 cellspacing=10> <tr>
<td><a href="class_index.html">Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="name_index.html">Namespace Index</a></td>
</table>
<h1 align=center>Class Gtk::Alignment</h1><p>
<b>  A widget which controls the alignment and size of its child.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3ABin.html">Gtk::Bin</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/alignment.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=right><tt><tt>explicit</tt> </tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#94"><tt><font color=blue><b>Alignment</b></font></tt></a></td><td><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xscale</font></tt>=1.0, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yscale</font></tt>=1.0)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#96"><tt><font color=blue><b>get_xalign</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#98"><tt><font color=blue><b>get_xscale</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#97"><tt><font color=blue><b>get_yalign</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#99"><tt><font color=blue><b>get_yscale</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkAlignment</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#90"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkAlignment</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#91"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#92"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#95"><tt><font color=blue><b>set</b></font></tt></a></td><td><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xscale</font></tt>=1.0, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yscale</font></tt>=1.0)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AAlignment.html#93"><tt><font color=blue><b>~Alignment</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  Normally, a widget is allocated at least as much size as it requests.
  When a widget is allocated more size than it requests
  there is a question of how the widget should expand. By convention,
  most GTK widgets expand to fill their allocated space. Sometimes
  this behavior is not desired. The alignment widget allows the
  programmer to specify how a widget should expand and position itself
  to fill the area it is allocated.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="90"><font size=+1><b>Gtk::Alignment::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkAlignment</font></tt>*</tt> <a href="Gtk%3A%3AAlignment.html#90"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="92"><font size=+1><b>Gtk::Alignment::isA</b></font></a> -   Returns true if object is this type.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3AAlignment.html#92"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br>
<a name="95"><font size=+1><b>Gtk::Alignment::set</b></font></a> -   Sets the properties for this widget.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AAlignment.html#95"><tt><font color=blue><b>set</b></font></tt></a><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xscale</font></tt>=1.0, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yscale</font></tt>=1.0)</tt>;<br><blockquote>  Sets both the alignment and scale of the widget packed into it.
<P>
  xalign, yalign:    Valid range is [0, 1].  These variables specify how
                     to position the child
      widget when it is not allocated all the space available to it.
      A value of 0.0 positions the widget to the left or
      top of its allocated space. A value of 1.0 positions
      the widget to the right or bottom of its allocated space. Specifying
      0.5 will center the widget in its allocated space.
<P>
  xscale, yscale: Valid range is [0, 1].  Use these parameters to specify
  how to scale the child
      widget. If the scale value is 0.0, the child widget is allocated
      exactly the size it requested in that dimension. If the scale value
      is 1.0, the child widget is allocated all of the space in a
      dimension. A scale value of 1.0 for both x and y is equivalent to
      not using an alignment widget.</blockquote>
<br><br>
<hr noshade>
</html>