diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-25 15:16:02 -0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-30 23:42:44 +0100 |
commit | 39c284c49028399272c25fb88fc6022f3e7f9dff (patch) | |
tree | c22f5a685811335d44ad98ab150d6028ccf5e805 /gtk/gtkconstraint.h | |
parent | 895e8e25a8a51d590d56abcd287e97d40c4a904f (diff) | |
download | gtk+-39c284c49028399272c25fb88fc6022f3e7f9dff.tar.gz |
Redefine constraints with GtkConstraintTarget
This is in preparation for allowing non-widgets
to act as constraint targets.
Diffstat (limited to 'gtk/gtkconstraint.h')
-rw-r--r-- | gtk/gtkconstraint.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtkconstraint.h b/gtk/gtkconstraint.h index 1467c86d9c..320795b0e7 100644 --- a/gtk/gtkconstraint.h +++ b/gtk/gtkconstraint.h @@ -58,16 +58,16 @@ GDK_AVAILABLE_IN_ALL G_DECLARE_FINAL_TYPE (GtkConstraint, gtk_constraint, GTK, CONSTRAINT, GObject) GDK_AVAILABLE_IN_ALL -GtkConstraint * gtk_constraint_new (GtkWidget *target_widget, +GtkConstraint * gtk_constraint_new (GtkConstraintTarget *target_widget, GtkConstraintAttribute target_attribute, GtkConstraintRelation relation, - GtkWidget *source_widget, + GtkConstraintTarget *source_widget, GtkConstraintAttribute source_attribute, double multiplier, double constant, int strength); GDK_AVAILABLE_IN_ALL -GtkConstraint * gtk_constraint_new_constant (GtkWidget *target_widget, +GtkConstraint * gtk_constraint_new_constant (GtkConstraintTarget *target_widget, GtkConstraintAttribute target_attribute, GtkConstraintRelation relation, double constant, @@ -76,10 +76,14 @@ GtkConstraint * gtk_constraint_new_constant (GtkWidget GDK_AVAILABLE_IN_ALL GtkWidget * gtk_constraint_get_target_widget (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL +GtkConstraintTarget * gtk_constraint_get_target (GtkConstraint *constraint); +GDK_AVAILABLE_IN_ALL GtkConstraintAttribute gtk_constraint_get_target_attribute (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL GtkWidget * gtk_constraint_get_source_widget (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL +GtkConstraintTarget * gtk_constraint_get_source (GtkConstraint *constraint); +GDK_AVAILABLE_IN_ALL GtkConstraintAttribute gtk_constraint_get_source_attribute (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL GtkConstraintRelation gtk_constraint_get_relation (GtkConstraint *constraint); |