mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
constraint: Re-implement using update_allocation()
Instead of using the fixed position and size API, use the newly added update_allocation() virtual function in ClutterConstraint to change the allocation of a ClutterActor. This allows using constraints inside layout managers, and also allows Constraints to react to changes in the size of an actor without causing relayout cycles. http://bugzilla.clutter-project.org/show_bug.cgi?id=2319
This commit is contained in:
@ -51,7 +51,6 @@ typedef struct _ClutterBindConstraint ClutterBindConstraint;
|
||||
* ClutterBindCoordinate:
|
||||
* @CLUTTER_BIND_X: Bind the X coordinate
|
||||
* @CLUTTER_BIND_Y: Bind the Y coordinate
|
||||
* @CLUTTER_BIND_Z: Bind the Z coordinate
|
||||
* @CLUTTER_BIND_WIDTH: Bind the width
|
||||
* @CLUTTER_BIND_HEIGHT: Bidng the height
|
||||
*
|
||||
@ -62,7 +61,6 @@ typedef struct _ClutterBindConstraint ClutterBindConstraint;
|
||||
typedef enum { /*< prefix=CLUTTER_BIND >*/
|
||||
CLUTTER_BIND_X,
|
||||
CLUTTER_BIND_Y,
|
||||
CLUTTER_BIND_Z,
|
||||
CLUTTER_BIND_WIDTH,
|
||||
CLUTTER_BIND_HEIGHT
|
||||
} ClutterBindCoordinate;
|
||||
|
Reference in New Issue
Block a user