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

📄 gtkprogress.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577603"></a><h3><a name="gtk-progress-get-current-text"></a>gtk_progress_get_current_text ()</h3><a class="indexterm" name="id4577619"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*              gtk_progress_get_current_text       (<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_current_text</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the current text associated with the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a>.  Thistext is the based on the underlying format string after any substitutionsare made.</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 text indicating the current progress.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577707"></a><h3><a name="gtk-progress-get-text-from-value"></a>gtk_progress_get_text_from_value ()</h3><a class="indexterm" name="id4577723"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*              gtk_progress_get_text_from_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_get_text_from_value</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the text indicating the progress based on the supplied value.The current value for the <a class="link" href="GtkProgress.html" title="GtkProgress"><span class="type">GtkProgress</span></a> remains unchanged.  </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>an absolute progress value to use when formatting the progress text.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a string indicating the progress.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577834"></a><h3><a name="gtk-progress-get-current-percentage"></a>gtk_progress_get_current_percentage ()</h3><a class="indexterm" name="id4577851"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>             gtk_progress_get_current_percentage (<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_current_percentage</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the current progress as a percentage.</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>a number between 0.0 and 1.0 indicating the percentage complete.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4577929"></a><h3><a name="gtk-progress-get-percentage-from-value"></a>gtk_progress_get_percentage_from_value ()</h3><a class="indexterm" name="id4577946"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>             gtk_progress_get_percentage_from_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_get_percentage_from_value</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the progress as a percentage calculated from the suppliedabsolute progress 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"><em class="parameter"><code>value</code></em>&#160;:</span></p></td><td>an absolute progress value.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a number between 0.0 and 1.0 indicating the percentage completerepresented by <em class="parameter"><code>value</code></em>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4578055"></a><h3><a name="gtk-progress-configure"></a>gtk_progress_configure ()</h3><a class="indexterm" name="id4578071"></a><pre class="programlisting">void                gtk_progress_configure              (<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,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> hmin,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> max);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_progress_configure</code> is deprecated and should not be used in newly-written code.</p></div><p>Allows the configuration of the minimum, maximum, and current values forthe <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>value</code></em>&#160;:</span></p></td><td>the current progress value.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hmin</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>max</code></em>&#160;:</span></p></td><td>the maximum progress value.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4578213"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4578224"></a><h3><a name="GtkProgress--activity-mode"></a>The <code class="literal">"activity-mode"</code> property</h3><a class="indexterm" name="id4578240"></a><pre class="programlisting">  "activity-mode"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>If TRUE, the GtkProgress is in activity mode, meaning that it signals something is happening, but not how much of the activity is finished. This is used when you're doing something but don't know how long it will take.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id4578270"></a><h3><a name="GtkProgress--show-text"></a>The <code class="literal">"show-text"</code> property</h3><a class="indexterm" name="id4578287"></a><pre class="programlisting">  "show-text"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Whether the progress is shown as text.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id4578314"></a><h3><a name="GtkProgress--text-xalign"></a>The <code class="literal">"text-xalign"</code> property</h3><a class="indexterm" name="id4578330"></a><pre class="programlisting">  "text-xalign"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a>                : Read / Write</pre><p>The horizontal text alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div><hr><div class="refsect2" lang="en"><a name="id4578361"></a><h3><a name="GtkProgress--text-yalign"></a>The <code class="literal">"text-yalign"</code> property</h3><a class="indexterm" name="id4578378"></a><pre class="programlisting">  "text-yalign"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a>                : Read / Write</pre><p>The vertical text alignment, from 0 (top) to 1 (bottom).</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div></div><div class="refsect1" lang="en"><a name="id4578410"></a><div class="refsect2" lang="en"><a name="id4578411"></a></div><hr><div class="refsect2" lang="en"><a name="id4578412"></a></div></div></div></body></html>

⌨️ 快捷键说明

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