1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
A bin with a decorative frame and optional label
7
<!-- ##### SECTION Long_Description ##### -->
9
The frame widget is a Bin that surrounds its child
10
with a decorative frame and an optional label.
11
If present, the label is drawn in a gap in the
12
top side of the frame. The position of the
13
label can be controlled with gtk_frame_set_label_align().
16
<refsect2 id="GtkFrame-BUILDER-UI">
17
<title>GtkFrame as GtkBuildable</title>
19
The GtkFrame implementation of the GtkBuildable interface
20
supports placing a child in the label position by specifying
21
"label" as the "type" attribute of a <child> element.
22
A normal content child can be specified without specifying
23
a <child> type attribute.
26
<title>A UI definition fragment with GtkFrame</title>
27
<programlisting><![CDATA[
28
<object class="GtkFrame">
30
<object class="GtkLabel" id="frame-label"/>
33
<object class="GtkEntry" id="frame-content"/>
40
<!-- ##### SECTION See_Also ##### -->
45
<!-- ##### SECTION Stability_Level ##### -->
48
<!-- ##### SECTION Image ##### -->
51
<!-- ##### STRUCT GtkFrame ##### -->
57
<!-- ##### ARG GtkFrame:label ##### -->
62
<!-- ##### ARG GtkFrame:label-widget ##### -->
67
<!-- ##### ARG GtkFrame:label-xalign ##### -->
72
<!-- ##### ARG GtkFrame:label-yalign ##### -->
77
<!-- ##### ARG GtkFrame:shadow ##### -->
82
<!-- ##### ARG GtkFrame:shadow-type ##### -->
87
<!-- ##### FUNCTION gtk_frame_new ##### -->
95
<!-- ##### FUNCTION gtk_frame_set_label ##### -->
103
<!-- ##### FUNCTION gtk_frame_set_label_widget ##### -->
112
<!-- ##### FUNCTION gtk_frame_set_label_align ##### -->
121
<!-- ##### FUNCTION gtk_frame_set_shadow_type ##### -->
129
<!-- ##### FUNCTION gtk_frame_get_label ##### -->
138
<!-- ##### FUNCTION gtk_frame_get_label_align ##### -->
148
<!-- ##### FUNCTION gtk_frame_get_label_widget ##### -->
157
<!-- ##### FUNCTION gtk_frame_get_shadow_type ##### -->