Name
GtkFrame -- A bin with a decorative frame and optional label.
Description
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().
Details
gtk_frame_new ()
GtkWidget* gtk_frame_new (const gchar *label); |
Create a new Frame, with optional label label.
If label is NULL, the label is omitted.
gtk_frame_set_label ()
void gtk_frame_set_label (GtkFrame *frame,
const gchar *label); |
Set the text of the label. If label is NULL,
the current label, if any, is removed.
gtk_frame_set_label_widget ()
Set the label widget for the frame. This is the widget that
will appear embedded in the top edge of the frame as a
title.
gtk_frame_set_label_align ()
void gtk_frame_set_label_align (GtkFrame *frame,
gfloat xalign,
gfloat yalign); |
Set the alignment of the Frame widget's label. The
default value for a newly created Frame is 0.0.
gtk_frame_set_shadow_type ()
Set the shadow type for the Frame widget.
gtk_frame_get_label ()
G_CONST_RETURN gchar* gtk_frame_get_label (GtkFrame *frame); |
If the frame's label widget is a GtkLabel, return the
text in the label widget. (The frame will have a GtkLabel
for the label widget if a non-NULL argument was passed
to gtk_frame_new().)
gtk_frame_get_label_align ()
void gtk_frame_get_label_align (GtkFrame *frame,
gfloat *xalign,
gfloat *yalign); |
Retrieves the X and Y alignment of the frame's label. See
gtk_frame_set_label_align().
Properties
- "label" (gchararray : Read / Write)
- "label-xalign" (gfloat : Read / Write)
- "label-yalign" (gfloat : Read / Write)
- "shadow" (GtkShadowType : Read / Write)
- "shadow-type" (GtkShadowType : Read / Write)
- "label-widget" (GtkWidget : Read / Write)