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

📄 gtkprogress.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<a name="gtk-progress-set-text-alignment"></a>gtk_progress_set_text_alignment ()</h3><a class="indexterm" name="id4576717"></a><pre class="programlisting">void                gtk_progress_set_text_alignment     (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> x_align,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> y_align);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_set_text_alignment</code> is deprecated and should not be used in newly-written code.</p></div><p>Controls the alignment of the text within the progress bar area.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x_align</code></em>&#160;:</span></p></td><td>a number between 0.0 and 1.0 indicating the horizontalalignment of the progress text within the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y_align</code></em>&#160;:</span></p></td><td>a number between 0.0 and 1.0 indicating the verticalalignment of the progress text within the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4576847"></a><h3><a name="gtk-progress-set-format-string"></a>gtk_progress_set_format_string ()</h3><a class="indexterm" name="id4576863"></a><pre class="programlisting">void                gtk_progress_set_format_string      (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *format);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_set_format_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets a format string used to display text indicating thecurrent progress.  The string can contain the following substitution characters:</p><div class="itemizedlist"><ul type="disc"><li><p>%v - the current progress value.</p></li><li><p>%l - the lower bound for the progress value.</p></li><li><p>%u - the upper bound for the progress value.</p></li><li><p>%p - the current progress percentage.</p></li></ul></div><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>format</code></em>&#160;:</span></p></td><td>a string used to display progress text, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>         to restore to the default format.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4576998"></a><h3><a name="gtk-progress-set-adjustment"></a>gtk_progress_set_adjustment ()</h3><a class="indexterm" name="id4577014"></a><pre class="programlisting">void                gtk_progress_set_adjustment         (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_set_adjustment</code> is deprecated and should not be used in newly-written code.</p></div><p>Associates a <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> with the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.  A <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>is used to represent the upper and lower bounds and the step intervalof the underlying value for which progress is shown.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>adjustment</code></em>&#160;:</span></p></td><td>the <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> to be associated with the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577146"></a><h3><a name="gtk-progress-set-percentage"></a>gtk_progress_set_percentage ()</h3><a class="indexterm" name="id4577162"></a><pre class="programlisting">void                gtk_progress_set_percentage         (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         <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_set_percentage</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the current percentage completion for the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>percentage</code></em>&#160;:</span></p></td><td>the percentage complete which must be between 0.0and 1.0.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577260"></a><h3><a name="gtk-progress-set-value"></a>gtk_progress_set_value ()</h3><a class="indexterm" name="id4577275"></a><pre class="programlisting">void                gtk_progress_set_value              (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> value);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_set_value</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the value within the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a> to an absolute value.The value must be within the valid range of values for theunderlying <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td>the value indicating the current completed amount.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577383"></a><h3><a name="gtk-progress-get-value"></a>gtk_progress_get_value ()</h3><a class="indexterm" name="id4577398"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>             gtk_progress_get_value              (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_get_value</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the current progress complete value.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>the current progress complete value.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577477"></a><h3><a name="gtk-progress-set-activity-mode"></a>gtk_progress_set_activity_mode ()</h3><a class="indexterm" name="id4577492"></a><pre class="programlisting">void                gtk_progress_set_activity_mode      (<a class="link" href="GtkProgress.html" title="GtkProgress">GtkProgress</a> *progress,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> activity_mode);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_set_activity_mode</code> is deprecated and should not be used in newly-written code.</p></div><p>A <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a> can be in one of two different modes: percentagemode (the default) and activity mode.  In activity mode, the progress is simply indicated as activity rather than as a percentagecomplete.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>progress</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>activity_mode</code></em>&#160;:</span></p></td><td>a boolean, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> for activity mode.

⌨️ 快捷键说明

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