summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-01-12 12:28:00 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2021-01-12 12:28:00 +0000
commit5286743cbe9657ddda9340cd5dcf85a0103235de (patch)
treede9e5a3d8ffb055af61fbcdac13d1d951b526534
parent58bb998ef03e2ab91cd5adc5413155c6d82c8983 (diff)
downloadgtk+-5286743cbe9657ddda9340cd5dcf85a0103235de.tar.gz
Document GtkAspectFrame properties
-rw-r--r--gtk/gtkaspectframe.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c
index 45a9bf80e1..23d1ea8692 100644
--- a/gtk/gtkaspectframe.c
+++ b/gtk/gtkaspectframe.c
@@ -137,6 +137,12 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
widget_class->compute_expand = gtk_aspect_frame_compute_expand;
widget_class->get_request_mode = gtk_aspect_frame_get_request_mode;
+ /**
+ * GtkAspectFrame:xalign:
+ *
+ * The horizontal alignment of the #GtkAspectFrame:child widget
+ * of the aspect frame.
+ */
g_object_class_install_property (gobject_class,
PROP_XALIGN,
g_param_spec_float ("xalign",
@@ -144,6 +150,12 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
P_("X alignment of the child"),
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:yalign:
+ *
+ * The vertical alignment of the #GtkAspectFrame:child widget
+ * of the aspect frame.
+ */
g_object_class_install_property (gobject_class,
PROP_YALIGN,
g_param_spec_float ("yalign",
@@ -151,6 +163,14 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
P_("Y alignment of the child"),
0.0, 1.0, 0.5,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:ratio:
+ *
+ * The aspect ratio to be used by the #GtkAspectFrame.
+ *
+ * This property is only used if #GtkAspectFrame:obey-child is
+ * set to %FALSE.
+ */
g_object_class_install_property (gobject_class,
PROP_RATIO,
g_param_spec_float ("ratio",
@@ -158,6 +178,12 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
P_("Aspect ratio if obey_child is FALSE"),
MIN_RATIO, MAX_RATIO, 1.0,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
+ /**
+ * GtkAspectFrame:obey-child:
+ *
+ * Whether the #GtkAspectFrame should use the aspect ratio of
+ * its #GtkAspectFrame:child widget.
+ */
g_object_class_install_property (gobject_class,
PROP_OBEY_CHILD,
g_param_spec_boolean ("obey-child",
@@ -165,7 +191,11 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
P_("Force aspect ratio to match that of the frame’s child"),
TRUE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
-
+ /**
+ * GtkAspectFrame:child:
+ *
+ * The child widget of the #GtkAspectFrame.
+ */
g_object_class_install_property (gobject_class,
PROP_CHILD,
g_param_spec_object ("child",