Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::ProgressBar</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::ProgressBar</h1><p>
<b>  A widget which indicates progress visually.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AProgress.html">Gtk::Progress</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/progressbar.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%3AProgressBar.html#2453"><tt><font color=blue><b>ProgressBar</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>explicit</tt> </tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2454"><tt><font color=blue><b>ProgressBar</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AAdjustment.html"><tt><font color=navy><b>Adjustment</b></font></tt></a>& <tt><font color=blue>adjustment</font></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%3AProgressBar.html#2459"><tt><font color=blue><b>get_activity_blocks</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%3AProgressBar.html#2458"><tt><font color=blue><b>get_activity_step</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkProgressBarStyle</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2455"><tt><font color=blue><b>get_bar_style</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%3AProgressBar.html#2457"><tt><font color=blue><b>get_discrete_blocks</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkProgressBarOrientation</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2456"><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=navy>GtkProgressBar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2449"><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>GtkProgressBar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2450"><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%3AProgressBar.html#2451"><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%3AProgressBar.html#2463"><tt><font color=blue><b>set_activity_blocks</b></font></tt></a></td><td><tt>(<tt><font color=purple>guint</font></tt> <tt><font color=blue>blocks</font></tt>=5)</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%3AProgressBar.html#2462"><tt><font color=blue><b>set_activity_step</b></font></tt></a></td><td><tt>(<tt><font color=purple>guint</font></tt> <tt><font color=blue>step</font></tt>=3)</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%3AProgressBar.html#2460"><tt><font color=blue><b>set_bar_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkProgressBarStyle</font></tt> <tt><font color=blue>style</font></tt>=GTK_PROGRESS_CONTINUOUS)</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%3AProgressBar.html#2461"><tt><font color=blue><b>set_discrete_blocks</b></font></tt></a></td><td><tt>(<tt><font color=purple>guint</font></tt> <tt><font color=blue>blocks</font></tt>=10)</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%3AProgressBar.html#2464"><tt><font color=blue><b>set_orientation</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkProgressBarOrientation</font></tt> <tt><font color=blue>orientation</font></tt>=GTK_PROGRESS_LEFT_TO_RIGHT)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AProgressBar.html#2452"><tt><font color=blue><b>~ProgressBar</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt> is typically used to display the progress
  of a long running operation. It provides a visual clue that processing
  is underway. The <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt> can be used in two different
  modes: percentage mode and activity mode.
<P>
  When an application can determine how much work needs to take place
  (e.g. read a fixed number of bytes from a file) and can monitor its
  progress, it can use the <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt> in percentage mode
  and the user sees a growing bar indicating the percentage of the work
  that has been completed. In this mode, the application is required to
  call either the <tt><font color=blue><b></b></font></tt> or <tt><font color=blue><b></b></font></tt> functions
  periodically to update the progress bar.
<P>
  When an application has no accurate way of knowing the amount of work
  to do, it can use the GtkProgressBar in activity mode. In this mode the
  progress bar shows activity by a block moving back and forth within the
  progress area.
<P>
  There is quite a bit of flexibility provided to control the appearance
  of the <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt>. Functions are provided to control the
  orientation of the bar, optional text which can be displayed along with
  the bar, and the style in which the bar grows.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2454"><font size=+1><b>Gtk::ProgressBar::ProgressBar</b></font></a> -   Creates a new <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt> with an associated <tt><font color=navy><b>Gtk::Adjustment</b></font></tt>.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>explicit</tt> </tt> <a href="Gtk%3A%3AProgressBar.html#2454"><tt><font color=blue><b>ProgressBar</b></font></tt></a><tt>(<a href="Gtk%3A%3AAdjustment.html"><tt><font color=navy><b>Adjustment</b></font></tt></a>& <tt><font color=blue>adjustment</font></tt>)</tt>;<br><blockquote>  adjustment: A <tt><font color=navy><b>Gtk::Adjustment</b></font></tt></blockquote>
<br><br>
<a name="2449"><font size=+1><b>Gtk::ProgressBar::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkProgressBar</font></tt>*</tt> <a href="Gtk%3A%3AProgressBar.html#2449"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="2451"><font size=+1><b>Gtk::ProgressBar::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%3AProgressBar.html#2451"><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="2460"><font size=+1><b>Gtk::ProgressBar::set_bar_style</b></font></a> -   Sets the style of the <tt><font color=navy><b>Gtk::ProgressBar</b></font></tt>. The default style is <tt><font color=green>GTK_PROGRESS_CONTINUOUS</font></tt>.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AProgressBar.html#2460"><tt><font color=blue><b>set_bar_style</b></font></tt></a><tt>(<tt><font color=navy>GtkProgressBarStyle</font></tt> <tt><font color=blue>style</font></tt>=GTK_PROGRESS_CONTINUOUS)</tt>;<br><blockquote>  style: A <tt><font color=navy><b>Gtk::ProgressBarStyle</b></font></tt> value indicating the desired style.</blockquote>
<br><br>
<hr noshade>
</html>