1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkFrame
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-10-11 20:10:52 +00:00
|
|
|
A bin with a decorative frame and optional label
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
The frame widget is a Bin that surrounds its child
|
|
|
|
with a decorative frame and an optional label.
|
|
|
|
If present, the label is drawn in a gap in the
|
|
|
|
top side of the frame. The position of the
|
|
|
|
label can be controlled with gtk_frame_set_label_align().
|
|
|
|
</para>
|
|
|
|
|
2007-07-01 23:38:07 +00:00
|
|
|
<refsect2 id="GtkFrame-BUILDER-UI">
|
|
|
|
<title>GtkFrame as GtkBuildable</title>
|
|
|
|
<para>
|
|
|
|
The GtkFrame implementation of the GtkBuildable interface
|
|
|
|
supports placing a child in the label position by specifying
|
|
|
|
"label" as the "type" attribute of a <child> element.
|
2007-07-02 00:52:27 +00:00
|
|
|
A normal content child can be specified without specifying
|
|
|
|
a <child> type attribute.
|
2007-07-01 23:38:07 +00:00
|
|
|
</para>
|
|
|
|
<example>
|
|
|
|
<title>A UI definition fragment with GtkFrame</title>
|
|
|
|
<programlisting><![CDATA[
|
|
|
|
<object class="GtkFrame">
|
|
|
|
<child type="label">
|
|
|
|
<object class="GtkLabel" id="frame-label"/>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="frame-content"/>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
]]></programlisting>
|
|
|
|
</example>
|
|
|
|
</refsect2>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### STRUCT GtkFrame ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkFrame:label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkFrame:label-widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkFrame:label-xalign ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkFrame:label-yalign ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkFrame:shadow-type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_frame_new ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@label:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_frame_set_label ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@label:
|
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gtk_frame_set_label_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@label_widget:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_frame_set_label_align ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
2004-07-07 16:22:57 +00:00
|
|
|
@frame:
|
|
|
|
@xalign:
|
|
|
|
@yalign:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_frame_set_shadow_type ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
2004-07-07 16:22:57 +00:00
|
|
|
@frame:
|
2004-05-26 01:57:54 +00:00
|
|
|
@type:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-03-23 22:21:06 +00:00
|
|
|
<!-- ##### FUNCTION gtk_frame_get_label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-09-08 06:24:46 +00:00
|
|
|
<!-- ##### FUNCTION gtk_frame_get_label_align ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@xalign:
|
|
|
|
@yalign:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_frame_get_label_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_frame_get_shadow_type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|