📄 gtkframe.html
字号:
<p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>label_widget</code></em> :</span></p></td><td> the new label widget</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4114719"></a><h3><a name="gtk-frame-set-label-align"></a>gtk_frame_set_label_align ()</h3><a class="indexterm" name="id4114733"></a><pre class="programlisting">void gtk_frame_set_label_align (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> xalign, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> yalign);</pre><p>Sets the alignment of the frame widget's label. Thedefault values for a newly created frame are 0.0 and 0.5.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td><td> The position of the label along the top edge of the widget. A value of 0.0 represents left alignment; 1.0 represents right alignment.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td><td> The y alignment of the label. A value of 0.0 aligns under the frame; 1.0 aligns above the frame. If the values are exactly 0.0 or 1.0 the gap in the frame won't be painted because the label will be completely above or below the frame.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4114841"></a><h3><a name="gtk-frame-set-shadow-type"></a>gtk_frame_set_shadow_type ()</h3><a class="indexterm" name="id4114855"></a><pre class="programlisting">void gtk_frame_set_shadow_type (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame, <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> type);</pre><p>Sets the shadow type for <em class="parameter"><code>frame</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td><td> the new <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType"><span class="type">GtkShadowType</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4114948"></a><h3><a name="gtk-frame-get-label"></a>gtk_frame_get_label ()</h3><a class="indexterm" name="id4114961"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>* gtk_frame_get_label (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame);</pre><p>If the frame's label widget is a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>, returns thetext in the label widget. (The frame will have a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>for the label widget if a non-<ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> argument was passedto <a class="link" href="GtkFrame.html#gtk-frame-new"><code class="function">gtk_frame_new()</code></a>.)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the text in the label, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there was no label widget or the lable widget was not a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>. This string is owned by GTK+ and must not be modified or freed.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4115090"></a><h3><a name="gtk-frame-get-label-align"></a>gtk_frame_get_label_align ()</h3><a class="indexterm" name="id4115104"></a><pre class="programlisting">void gtk_frame_get_label_align (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> *xalign, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> *yalign);</pre><p>Retrieves the X and Y alignment of the frame's label. See<a class="link" href="GtkFrame.html#gtk-frame-set-label-align"><code class="function">gtk_frame_set_label_align()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td><td> location to store X alignment of frame's label, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td><td> location to store X alignment of frame's label, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4115237"></a><h3><a name="gtk-frame-get-label-widget"></a>gtk_frame_get_label_widget ()</h3><a class="indexterm" name="id4115251"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_frame_get_label_widget (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame);</pre><p>Retrieves the label widget for the frame. See<a class="link" href="GtkFrame.html#gtk-frame-set-label-widget"><code class="function">gtk_frame_set_label_widget()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the label widget, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is none.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4115340"></a><h3><a name="gtk-frame-get-shadow-type"></a>gtk_frame_get_shadow_type ()</h3><a class="indexterm" name="id4115354"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> gtk_frame_get_shadow_type (<a class="link" href="GtkFrame.html" title="GtkFrame">GtkFrame</a> *frame);</pre><p>Retrieves the shadow type of the frame. See<a class="link" href="GtkFrame.html#gtk-frame-set-shadow-type"><code class="function">gtk_frame_set_shadow_type()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>frame</code></em> :</span></p></td><td> a <a class="link" href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the current shadow type of the frame.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4115435"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4115446"></a><h3><a name="GtkFrame--label"></a>The <code class="literal">"label"</code> property</h3><a class="indexterm" name="id4115461"></a><pre class="programlisting"> "label" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Text of the frame's label.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id4115488"></a><h3><a name="GtkFrame--label-widget"></a>The <code class="literal">"label-widget"</code> property</h3><a class="indexterm" name="id4115504"></a><pre class="programlisting"> "label-widget" <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> : Read / Write</pre><p>A widget to display in place of the usual frame label.</p></div><hr><div class="refsect2" lang="en"><a name="id4115528"></a><h3><a name="GtkFrame--label-xalign"></a>The <code class="literal">"label-xalign"</code> property</h3><a class="indexterm" name="id4115544"></a><pre class="programlisting"> "label-xalign" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> : Read / Write</pre><p>The horizontal alignment of the label.</p><p>Allowed values: [0,1]</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id4115575"></a><h3><a name="GtkFrame--label-yalign"></a>The <code class="literal">"label-yalign"</code> property</h3><a class="indexterm" name="id4115591"></a><pre class="programlisting"> "label-yalign" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat">gfloat</a> : Read / Write</pre><p>The vertical alignment of the label.</p><p>Allowed values: [0,1]</p><p>Default value: 0.5</p></div><hr><div class="refsect2" lang="en"><a name="id4115622"></a><h3><a name="GtkFrame--shadow"></a>The <code class="literal">"shadow"</code> property</h3><a class="indexterm" name="id4115637"></a><pre class="programlisting"> "shadow" <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read / Write</pre><p>Deprecated property, use shadow_type instead.</p><p>Default value: GTK_SHADOW_ETCHED_IN</p></div><hr><div class="refsect2" lang="en"><a name="id4115666"></a><h3><a name="GtkFrame--shadow-type"></a>The <code class="literal">"shadow-type"</code> property</h3><a class="indexterm" name="id4115682"></a><pre class="programlisting"> "shadow-type" <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType">GtkShadowType</a> : Read / Write</pre><p>Appearance of the frame border.</p><p>Default value: GTK_SHADOW_ETCHED_IN</p></div></div><div class="refsect1" lang="en"><a name="id4115710"></a><div class="refsect2" lang="en"><a name="id4115712"></a></div><hr><div class="refsect2" lang="en"><a name="id4115713"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -