Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::Toolbar</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::Toolbar</h1><p>
<b>  Create bars of buttons and other widgets.</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:
<i>none</i>
<p>
#include &lt;gtk--/toolbar.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%3AToolbar.html#3095"><tt><font color=blue><b>Toolbar</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkOrientation</font></tt> <tt><font color=blue>orientation</font></tt> = GTK_ORIENTATION_HORIZONTAL, <tt><font color=navy>GtkToolbarStyle</font></tt> <tt><font color=blue>style</font></tt> = GTK_TOOLBAR_BOTH)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkReliefStyle</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3105"><tt><font color=blue><b>get_button_relief</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkOrientation</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3096"><tt><font color=blue><b>get_orientation</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3100"><tt><font color=blue><b>get_space_size</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkToolbarSpaceStyle</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3102"><tt><font color=blue><b>get_space_style</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkToolbarStyle</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3098"><tt><font color=blue><b>get_style</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkToolbar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3090"><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>GtkToolbar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3091"><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%3AToolbar.html#3092"><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%3AToolbar.html#3106"><tt><font color=blue><b>set_button_relief</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkReliefStyle</font></tt> <tt><font color=blue>relief</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%3AToolbar.html#3097"><tt><font color=blue><b>set_orientation</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkOrientation</font></tt> <tt><font color=blue>orientation</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%3AToolbar.html#3101"><tt><font color=blue><b>set_space_size</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>space_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%3AToolbar.html#3103"><tt><font color=blue><b>set_space_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkToolbarSpaceStyle</font></tt> <tt><font color=blue>space_style</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%3AToolbar.html#3099"><tt><font color=blue><b>set_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkToolbarStyle</font></tt> <tt><font color=blue>style</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%3AToolbar.html#3104"><tt><font color=blue><b>set_tooltips</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gtk%3A%3AToolbar.html#3094">ToolList</a>&</tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3107"><tt><font color=blue><b>tools</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>const</tt> <a href="Gtk%3A%3AToolbar.html#3094">ToolList</a>&</tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3108"><tt><font color=blue><b>tools</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3093"><tt><font color=blue><b>~Toolbar</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>protected function member index:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3109"><tt><font color=blue><b>orientation_changed_impl</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkOrientation</font></tt> <tt><font color=blue>p0</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AToolbar.html#3110"><tt><font color=blue><b>style_changed_impl</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkToolbarStyle</font></tt> <tt><font color=blue>p0</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="3090"><font size=+1><b>Gtk::Toolbar::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkToolbar</font></tt>*</tt> <a href="Gtk%3A%3AToolbar.html#3090"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="3092"><font size=+1><b>Gtk::Toolbar::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%3AToolbar.html#3092"><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="3097"><font size=+1><b>Gtk::Toolbar::set_orientation</b></font></a> -   sets whether a toolbar should appear horizontally or vertically.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AToolbar.html#3097"><tt><font color=blue><b>set_orientation</b></font></tt></a><tt>(<tt><font color=navy>GtkOrientation</font></tt> <tt><font color=blue>orientation</font></tt>)</tt>;<br><blockquote>  <tt><font color=blue>orientation</font></tt>: A new <tt><font color=navy>GtkOrientation</font></tt>. This is one of:
  <tt><font color=green>GTK_ORIENTATION_HORIZONTAL</font></tt>, or <tt><font color=green>GTK_ORIENTATION_VERTICAL</font></tt>.</blockquote>
<br><br>
<a name="3101"><font size=+1><b>Gtk::Toolbar::set_space_size</b></font></a> -   should be used to set the number of pixels each item of space takes up in a toolbar.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AToolbar.html#3101"><tt><font color=blue><b>set_space_size</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>space_size</font></tt>)</tt>;<br><blockquote>  <tt><font color=blue>space_size</font></tt>: The new number of pixels that spaces should consume.</blockquote>
<br><br>
<a name="3103"><font size=+1><b>Gtk::Toolbar::set_space_style</b></font></a> -   sets whether a 'space' in the toolbar appears as a line or just plain empty space.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AToolbar.html#3103"><tt><font color=blue><b>set_space_style</b></font></tt></a><tt>(<tt><font color=navy>GtkToolbarSpaceStyle</font></tt> <tt><font color=blue>space_style</font></tt>)</tt>;<br><blockquote>  <tt><font color=blue>space_style</font></tt>: The new style for the toolbar's spaces. This is one of:
  <tt><font color=green> GTK_TOOLBAR_SPACE_EMPTY</font></tt>, or <tt><font color=green>GTK_TOOLBAR_SPACE_LINE</font></tt>.</blockquote>
<br><br>
<a name="3099"><font size=+1><b>Gtk::Toolbar::set_style</b></font></a> -   alters the view of toolbar to display either icons only, text only, or both.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AToolbar.html#3099"><tt><font color=blue><b>set_style</b></font></tt></a><tt>(<tt><font color=navy>GtkToolbarStyle</font></tt> <tt><font color=blue>style</font></tt>)</tt>;<br><blockquote>  <tt><font color=blue>style</font></tt>: The new style for toolbar. This is one of:
  <tt><font color=green> GTK_TOOLBAR_ICONS</font></tt>, <tt><font color=green>GTK_TOOLBAR_TEXT</font></tt>, or
  <tt><font color=green>GTK_TOOLBAR_BOTH</font></tt>.</blockquote>
<br><br>
<a name="3104"><font size=+1><b>Gtk::Toolbar::set_tooltips</b></font></a> -   sets if the tooltips of a toolbar should be active or not.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AToolbar.html#3104"><tt><font color=blue><b>set_tooltips</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>enable</font></tt>)</tt>;<br><blockquote>  <tt><font color=green>enable</font></tt>: Set to 0 to disable the tooltips, or 1 to enable them.</blockquote>
<br><br>
<a name="3107"><font size=+1><b>Gtk::Toolbar::tools</b></font></a> -   Should be used if you wish to perform an action when the orientation of a toolbar is changed.
  should be used if you wish to perform an action when ever the style of a toolbar is adjusted.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><a href="Gtk%3A%3AToolbar.html#3094">ToolList</a>&</tt> <a href="Gtk%3A%3AToolbar.html#3107"><tt><font color=blue><b>tools</b></font></tt></a><tt>()</tt>;<br><blockquote>  For example, this would be a useful signal to connect to if you want to display more items
  on the toolbar when it is in icon-only mode; each item takes less space on the bar.</blockquote>
<br><br>
<hr noshade>
</html>