Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::Paned</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::Paned</h1><p>
<b>  Base class for widgets with two adjustable panes.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AContainer.html">Gtk::Container</a>
<br>
Derived by:
<a href="Gtk::HPaned.html">Gtk::HPaned</a>
<a href="Gtk::VPaned.html">Gtk::VPaned</a>
<p>
#include &lt;gtk--/paned.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%3APaned.html#2363"><tt><font color=blue><b>Paned</b></font></tt></a></td><td><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%3APaned.html#2364"><tt><font color=blue><b>add1</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</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%3APaned.html#2365"><tt><font color=blue><b>add2</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>*</tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2377"><tt><font color=blue><b>get_child1</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2373"><tt><font color=blue><b>get_child1_resize</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2371"><tt><font color=blue><b>get_child1_shrink</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>*</tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2378"><tt><font color=blue><b>get_child2</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2374"><tt><font color=blue><b>get_child2_resize</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2372"><tt><font color=blue><b>get_child2_shrink</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint16</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2376"><tt><font color=blue><b>get_gutter_size</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>guint16</font></tt></tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2375"><tt><font color=blue><b>get_handle_size</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkPaned</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2359"><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>GtkPaned</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2360"><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%3APaned.html#2361"><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%3APaned.html#2368"><tt><font color=blue><b>pack1</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>resize</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>shrink</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%3APaned.html#2369"><tt><font color=blue><b>pack2</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>resize</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>shrink</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%3APaned.html#2367"><tt><font color=blue><b>set_gutter_size</b></font></tt></a></td><td><tt>(<tt><font color=purple>guint16</font></tt> <tt><font color=blue>size</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%3APaned.html#2366"><tt><font color=blue><b>set_handle_size</b></font></tt></a></td><td><tt>(<tt><font color=purple>guint16</font></tt> <tt><font color=blue>size</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%3APaned.html#2370"><tt><font color=blue><b>set_position</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>position</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3APaned.html#2362"><tt><font color=blue><b>~Paned</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  <tt><font color=navy><b>Gtk::Paned</b></font></tt> is the base class for widgets with two panes, arranged
  either horizontally (<tt><font color=navy><b>Gtk::HPaned</b></font></tt>) or vertically (<tt><font color=navy><b>Gtk::VPaned</b></font></tt>).
  Child widgets are added to the panes of the widget with <a href="Gtk%3A%3APaned.html#2368"><tt><font color=blue><b>pack1</b></font></tt></a> and <a href="Gtk%3A%3APaned.html#2369"><tt><font color=blue><b>pack2</b></font></tt></a>.
  The division beween the two children is set by default from the size requests of
  the children, but it can be adjusted by the user.
<P>
  A paned widget draws a separator between the two child widgets and a small
  handle that the user can drag to adjust the division. It does not draw any
  relief around the children or around the separator. (The space in which the
  separator is called the gutter). Often, it is useful to put each child inside a
  <tt><font color=navy><b>Gtk::Frame</b></font></tt> with the shadow type set to <tt><font color=green>GTK_SHADOW_IN</font></tt> so that
  the gutter appears as a ridge.
<P>
  Each child has two options that can be set, resize and shrink. If resize is
  true, then when the <tt><font color=navy><b>Gtk::Paned</b></font></tt> is resized, that child will expand or
  shrink along with the paned widget. If shrink is true, then when that child can
  be made smaller than it's requisition by the user. Setting shrink to FALSE
  allows the application to set a minimum size. If resize is false for both
  children, then this is treated as if resize is true for both children.
<P>
  The application can set the position of the slider as if it were set by the
  user, by calling <a href="Gtk%3A%3APaned.html#2370"><tt><font color=blue><b>set_position</b></font></tt></a>.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2364"><font size=+1><b>Gtk::Paned::add1</b></font></a> -   Add a child to the top or left pane with default parameters.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2364"><tt><font color=blue><b>add1</b></font></tt></a><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>)</tt>;<br><blockquote>  This is equivalent to: pack1(child, FALSE, TRUE);
<P>
  child: The child to add.</blockquote>
<br><br>
<a name="2365"><font size=+1><b>Gtk::Paned::add2</b></font></a> -   Add a child to the bottom or right pane with default parameters.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2365"><tt><font color=blue><b>add2</b></font></tt></a><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>)</tt>;<br><blockquote>  This is equivalent to: pack1(child, FALSE, TRUE);
<P>
  child: The child to add.</blockquote>
<br><br>
<a name="2359"><font size=+1><b>Gtk::Paned::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkPaned</font></tt>*</tt> <a href="Gtk%3A%3APaned.html#2359"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="2361"><font size=+1><b>Gtk::Paned::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%3APaned.html#2361"><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="2368"><font size=+1><b>Gtk::Paned::pack1</b></font></a> -   Add a child to the top or left pane.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2368"><tt><font color=blue><b>pack1</b></font></tt></a><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>resize</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>shrink</font></tt>)</tt>;<br><blockquote>  child: The child to add.
  resize: Should this child expand when the paned widget is resized.
  shrink: Can this child be made smaller than its requsition.</blockquote>
<br><br>
<a name="2369"><font size=+1><b>Gtk::Paned::pack2</b></font></a> -   Add a child to the bottom or right pane.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2369"><tt><font color=blue><b>pack2</b></font></tt></a><tt>(<a href="Gtk%3A%3AWidget.html"><tt><font color=navy><b>Widget</b></font></tt></a>& <tt><font color=blue>child</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>resize</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>shrink</font></tt>)</tt>;<br><blockquote>  child: The child to add.
  resize: Should this child expand when the paned widget is resized.
  shrink: Can this child be made smaller than its requsition.</blockquote>
<br><br>
<a name="2367"><font size=+1><b>Gtk::Paned::set_gutter_size</b></font></a> -   Set the width of the gutter. (The area between the two panes).<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2367"><tt><font color=blue><b>set_gutter_size</b></font></tt></a><tt>(<tt><font color=purple>guint16</font></tt> <tt><font color=blue>size</font></tt>)</tt>;<br><blockquote>  size: The width of the widget in pixels.</blockquote>
<br><br>
<a name="2366"><font size=+1><b>Gtk::Paned::set_handle_size</b></font></a> -   Set the the handle size to size x size pixels.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2366"><tt><font color=blue><b>set_handle_size</b></font></tt></a><tt>(<tt><font color=purple>guint16</font></tt> <tt><font color=blue>size</font></tt>)</tt>;<br><blockquote>  size: The size in pixels.</blockquote>
<br><br>
<a name="2370"><font size=+1><b>Gtk::Paned::set_position</b></font></a> -   Set the position of the separator, as if set by the user.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3APaned.html#2370"><tt><font color=blue><b>set_position</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>position</font></tt>)</tt>;<br><blockquote>  If position is negative, the remembered position is forgotten, and the
  division is recomputed from the the requisitions of the children.
<P>
  position: The new position of the separator.</blockquote>
<br><br>
<hr noshade>
</html>