forked from AuroraMiddleware/gtk
Add GtkConstraintTarget
This is an marker interface that we will use to accept other things that widgets in constraints.
This commit is contained in:
parent
b6781e06c1
commit
04562a76e3
@ -581,3 +581,17 @@ gtk_constraint_detach (GtkConstraint *constraint)
|
|||||||
constraint->constraint_ref = NULL;
|
constraint->constraint_ref = NULL;
|
||||||
constraint->solver = NULL;
|
constraint->solver = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef struct _GtkConstraintTargetInterface GtkConstraintTargetInterface;
|
||||||
|
|
||||||
|
struct _GtkConstraintTargetInterface
|
||||||
|
{
|
||||||
|
GTypeInterface g_iface;
|
||||||
|
};
|
||||||
|
|
||||||
|
G_DEFINE_INTERFACE (GtkConstraintTarget, gtk_constraint_target, G_TYPE_OBJECT)
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_constraint_target_default_init (GtkConstraintTargetInterface *iface)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
@ -24,6 +24,21 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef struct _GtkConstraintTarget GtkConstraintTarget;
|
||||||
|
|
||||||
|
#define GTK_TYPE_CONSTRAINT_TARGET (gtk_constraint_target_get_type ())
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GtkConstraintTarget:
|
||||||
|
*
|
||||||
|
* The GtkConstraintTarget interface is implemented by objects that
|
||||||
|
* can be used as source or target in #GtkConstraints. Besides
|
||||||
|
* #GtkWidget, it is also implemented by #GtkConstraintGuide.
|
||||||
|
*/
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
G_DECLARE_INTERFACE (GtkConstraintTarget, gtk_constraint_target, GTK, CONSTRAINT_TARGET, GObject)
|
||||||
|
|
||||||
#define GTK_TYPE_CONSTRAINT (gtk_constraint_get_type ())
|
#define GTK_TYPE_CONSTRAINT (gtk_constraint_get_type ())
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user