summaryrefslogtreecommitdiff
path: root/clutter/clutter-constraint-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2014-12-14 14:30:50 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2014-12-16 00:37:06 +0000
commit391f1d8dd4323e825747fdab71a0d32303c7e343 (patch)
treee4c69b91c926eb8ff543895eaabb81d80c073abb /clutter/clutter-constraint-private.h
parent82fffaedb632bd7bf6a147d0fee41b8133cc6ad8 (diff)
downloadclutter-391f1d8dd4323e825747fdab71a0d32303c7e343.tar.gz
constraint: Add the ability to update the preferred size
Constraints can only update an existing allocation, which means they live only halfway through the layout management system used by Clutter; this limitation makes it impossible, for instance, to query the preferred size of an actor, if the actor is only using constraints to manage its own size.
Diffstat (limited to 'clutter/clutter-constraint-private.h')
-rw-r--r--clutter/clutter-constraint-private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clutter/clutter-constraint-private.h b/clutter/clutter-constraint-private.h
index 5fbddef00..2bed47be2 100644
--- a/clutter/clutter-constraint-private.h
+++ b/clutter/clutter-constraint-private.h
@@ -30,6 +30,13 @@ gboolean clutter_constraint_update_allocation (ClutterConstraint *constraint,
ClutterActor *actor,
ClutterActorBox *allocation);
+void clutter_constraint_update_preferred_size (ClutterConstraint *constraint,
+ ClutterActor *actor,
+ ClutterOrientation direction,
+ float for_size,
+ float *minimum_size,
+ float *natural_size);
+
G_END_DECLS
#endif /* __CLUTTER_CONSTRAINT_PRIVATE_H__ */