Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::AspectFrame</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::AspectFrame</h1><p>
<b>  A frame that constrains its child to a particular aspect ratio.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AFrame.html">Gtk::Frame</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/aspectframe.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> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#117"><tt><font color=blue><b>AspectFrame</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>label</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>=1.0, <tt><font color=purple>bool</font></tt> <tt><font color=blue>obey_child</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#118"><tt><font color=blue><b>AspectFrame</b></font></tt></a></td><td><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>=1.0, <tt><font color=purple>bool</font></tt> <tt><font color=blue>obey_child</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkAspectFrame</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#112"><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>GtkAspectFrame</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#113"><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%3AAspectFrame.html#114"><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%3AAspectFrame.html#119"><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>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>obey_child</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#115"><tt><font color=blue><b>~AspectFrame</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>private function member index:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AAspectFrame.html#116"><tt><font color=blue><b>construct</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=purple>char</font></tt>* <tt><font color=blue>label</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>obey_child</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The GtkAspectFrame is useful when you want pack a widget so that it can resize but always
  retains the same aspect ratio. For instance, one might be drawing a small preview of a
  larger image. GtkAspectFrame derives from GtkFrame, so it can draw a label and a frame
  around the child. The frame will be "shrink-wrapped" to the size of the child.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="117"><font size=+1><b>Gtk::AspectFrame::AspectFrame</b></font></a> -   Constructor with label.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3AAspectFrame.html#117"><tt><font color=blue><b>AspectFrame</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>label</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>=1.0, <tt><font color=purple>bool</font></tt> <tt><font color=blue>obey_child</font></tt>=false)</tt>;<br><blockquote>  label: Label text.
<P>
  xalign: Horizontal alignment of the child within the allocation of the GtkAspectFrame.
  This ranges from 0.0 (left aligned) to 1.0 (right aligned).
<P>
  yalign: Vertical alignment of the child within the allocation of the GtkAspectFrame.
  This ranges from 0.0 (left aligned) to 1.0 (right aligned).
<P>
  ratio: The desired aspect ratio.
<P>
  obey_child: If TRUE, ratio is ignored, and the aspect ratio is taken from the requistion
  of the child.</blockquote>
<br><br>
<a name="118"><font size=+1><b>Gtk::AspectFrame::AspectFrame</b></font></a> -   Constructor without a label.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gtk%3A%3AAspectFrame.html#118"><tt><font color=blue><b>AspectFrame</b></font></tt></a><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>xalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>=1.0, <tt><font color=purple>bool</font></tt> <tt><font color=blue>obey_child</font></tt>=false)</tt>;<br><blockquote>  The rest of the arguments are the same as above.</blockquote>
<br><br>
<a name="112"><font size=+1><b>Gtk::AspectFrame::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkAspectFrame</font></tt>*</tt> <a href="Gtk%3A%3AAspectFrame.html#112"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="114"><font size=+1><b>Gtk::AspectFrame::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%3AAspectFrame.html#114"><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="119"><font size=+1><b>Gtk::AspectFrame::set</b></font></a> -   Set parameters for the GtkAspectFrame.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AAspectFrame.html#119"><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>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>yalign</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>ratio</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>obey_child</font></tt>)</tt>;<br><br>
<hr noshade>
</html>