⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkprogressbar.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<td>number of individual blocks making up the bar.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3472158"></a><h3><a name="gtk-progress-bar-set-activity-step"></a>gtk_progress_bar_set_activity_step ()</h3><a class="indexterm" name="id3472174"></a><pre class="programlisting">void                gtk_progress_bar_set_activity_step  (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> step);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_bar_set_activity_step</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the step value used when the progress bar is in activitymode.  The step is the amount by which the progress is incrementedeach iteration.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>pbar</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>step</code></em>&#160;:</span></p></td><td>the amount which the progress is incremented in activitymode.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3472266"></a><h3><a name="gtk-progress-bar-set-activity-blocks"></a>gtk_progress_bar_set_activity_blocks ()</h3><a class="indexterm" name="id3472282"></a><pre class="programlisting">void                gtk_progress_bar_set_activity_blocks                                                        (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> blocks);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_bar_set_activity_blocks</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the number of blocks used when the progress bar is in activitymode.  Larger numbers make the visible block smaller.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>pbar</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>blocks</code></em>&#160;:</span></p></td><td>number of blocks which can fit within the progress bar area.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3472375"></a><h3><a name="gtk-progress-bar-update"></a>gtk_progress_bar_update ()</h3><a class="indexterm" name="id3472391"></a><pre class="programlisting">void                gtk_progress_bar_update             (<a class="link" href="GtkProgressBar.html" title="GtkProgressBar">GtkProgressBar</a> *pbar,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> percentage);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_bar_update</code> is deprecated and should not be used in newly-written code.</p></div><p>This function is deprecated.  Please use <a class="link" href="GtkProgress.html#gtk-progress-set-value"><code class="function">gtk_progress_set_value()</code></a> or<a class="link" href="GtkProgress.html#gtk-progress-set-percentage"><code class="function">gtk_progress_set_percentage()</code></a> instead.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>pbar</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgressBar.html" title="GtkProgressBar"><span class="type">GtkProgressBar</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>percentage</code></em>&#160;:</span></p></td><td>the new percent complete value.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3472508"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3472518"></a><h3><a name="GtkProgressBar--activity-blocks"></a>The <code class="literal">"activity-blocks"</code> property</h3><a class="indexterm" name="id3472534"></a><pre class="programlisting">  "activity-blocks"          <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>                 : Read / Write</pre><p>The number of blocks which can fit in the progress bar area in activity mode (Deprecated).</p><p>Allowed values: &gt;= 2</p><p>Default value: 5</p></div><hr><div class="refsect2" lang="en"><a name="id3472566"></a><h3><a name="GtkProgressBar--activity-step"></a>The <code class="literal">"activity-step"</code> property</h3><a class="indexterm" name="id3472583"></a><pre class="programlisting">  "activity-step"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>                 : Read / Write</pre><p>The increment used for each iteration in activity mode (Deprecated).</p><p>Default value: 3</p></div><hr><div class="refsect2" lang="en"><a name="id3472610"></a><h3><a name="GtkProgressBar--adjustment"></a>The <code class="literal">"adjustment"</code> property</h3><a class="indexterm" name="id3472627"></a><pre class="programlisting">  "adjustment"               <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>         : Read / Write</pre><p>The GtkAdjustment connected to the progress bar (Deprecated).</p></div><hr><div class="refsect2" lang="en"><a name="id3472651"></a><h3><a name="GtkProgressBar--bar-style"></a>The <code class="literal">"bar-style"</code> property</h3><a class="indexterm" name="id3472667"></a><pre class="programlisting">  "bar-style"                <a class="link" href="GtkProgressBar.html#GtkProgressBarStyle">GtkProgressBarStyle</a>   : Read / Write</pre><p>Specifies the visual style of the bar in percentage mode (Deprecated).</p><p>Default value: GTK_PROGRESS_CONTINUOUS</p></div><hr><div class="refsect2" lang="en"><a name="id3472695"></a><h3><a name="GtkProgressBar--discrete-blocks"></a>The <code class="literal">"discrete-blocks"</code> property</h3><a class="indexterm" name="id3472711"></a><pre class="programlisting">  "discrete-blocks"          <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>                 : Read / Write</pre><p>The number of discrete blocks in a progress bar (when shown in the discrete style).</p><p>Allowed values: &gt;= 2</p><p>Default value: 10</p></div><hr><div class="refsect2" lang="en"><a name="id3472743"></a><h3><a name="GtkProgressBar--ellipsize"></a>The <code class="literal">"ellipsize"</code> property</h3><a class="indexterm" name="id3472759"></a><pre class="programlisting">  "ellipsize"                <ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoEllipsizeMode">PangoEllipsizeMode</a>    : Read / Write</pre><p>The preferred place to ellipsize the string, if the progressbar does not have enough room to display the entire string, specified as a <span class="type">PangoEllisizeMode</span>. </p><p>Note that setting this property to a value other than <ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PANGO-ELLIPSIZE-NONE:CAPS"><code class="literal">PANGO_ELLIPSIZE_NONE</code></a> has the side-effect that the progressbar requests only enough space to display the ellipsis "...". Another means to set a progressbar's width is <a class="link" href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a>.</p><p></p><p>Default value: PANGO_ELLIPSIZE_NONE</p><p>Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3472834"></a><h3><a name="GtkProgressBar--fraction"></a>The <code class="literal">"fraction"</code> property</h3><a class="indexterm" name="id3472849"></a><pre class="programlisting">  "fraction"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>               : Read / Write</pre><p>The fraction of total work that has been completed.</p><p>Allowed values: [0,1]</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3472880"></a><h3><a name="GtkProgressBar--orientation"></a>The <code class="literal">"orientation"</code> property</h3><a class="indexterm" name="id3472896"></a><pre class="programlisting">  "orientation"              <a class="link" href="GtkProgressBar.html#GtkProgressBarOrientation">GtkProgressBarOrientation</a>  : Read / Write</pre><p>Orientation and growth direction of the progress bar.</p><p>Default value: GTK_PROGRESS_LEFT_TO_RIGHT</p></div><hr><div class="refsect2" lang="en"><a name="id3472924"></a><h3><a name="GtkProgressBar--pulse-step"></a>The <code class="literal">"pulse-step"</code> property</h3><a class="indexterm" name="id3472940"></a><pre class="programlisting">  "pulse-step"               <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>               : Read / Write</pre><p>The fraction of total progress to move the bouncing block when pulsed.</p><p>Allowed values: [0,1]</p><p>Default value: 0.1</p></div><hr><div class="refsect2" lang="en"><a name="id3472971"></a><h3><a name="GtkProgressBar--text"></a>The <code class="literal">"text"</code> property</h3><a class="indexterm" name="id3472987"></a><pre class="programlisting">  "text"                     <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a>            : Read / Write</pre><p>Text to be displayed in the progress bar.</p><p>Default value: "%P %%"</p></div></div><div class="refsect1" lang="en"><a name="id3473015"></a><h2>Style Property Details</h2><div class="refsect2" lang="en"><a name="id3473026"></a><h3><a name="GtkProgressBar--xspacing"></a>The <code class="literal">"xspacing"</code> style property</h3><a class="indexterm" name="id3473043"></a><pre class="programlisting">  "xspacing"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write</pre><p>Extra spacing applied to the width of a progress bar.</p><p>Allowed values: &gt;= 0</p><p>Default value: 7</p></div><hr><div class="refsect2" lang="en"><a name="id3473073"></a><h3><a name="GtkProgressBar--yspacing"></a>The <code class="literal">"yspacing"</code> style property</h3><a class="indexterm" name="id3473090"></a><pre class="programlisting">  "yspacing"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write</pre><p>Extra spacing applied to the height of a progress bar.</p><p>Allowed values: &gt;= 0</p><p>Default value: 7</p></div></div><div class="refsect1" lang="en"><a name="id3473122"></a><div class="refsect2" lang="en"><a name="id3473123"></a></div><hr><div class="refsect2" lang="en"><a name="id3473124"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -