diff --git a/ChangeLog b/ChangeLog index ed8134b14..48e09d585 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-04-17 Emmanuele Bassi + + * clutter/clutter-units.h: + * clutter/clutter-fixed.h: Add boundaries for fixed point + and units values. + + * doc/reference/clutter-sections.txt: Update the documentation. + 2008-04-17 Emmanuele Bassi * autogen.sh: Try to continue even if we don't have gtk-doc diff --git a/clutter/clutter-fixed.h b/clutter/clutter-fixed.h index e91d19dcb..a6e7d88b6 100644 --- a/clutter/clutter-fixed.h +++ b/clutter/clutter-fixed.h @@ -389,6 +389,24 @@ guint clutter_powx (guint x, ClutterFixed y); typedef struct _ClutterParamSpecFixed ClutterParamSpecFixed; +/** + * CLUTTER_MAXFIXED: + * + * Higher boundary for #ClutterFixed + * + * Since: 0.8 + */ +#define CLUTTER_MAXFIXED G_MAXINT16 + +/** + * CLUTTER_MINFIXED: + * + * Lower boundary for #ClutterFixed + * + * Since: 0.8 + */ +#define CLUTTER_MINFIXED G_MININT16 + /** * ClutterParamSpecFixed * @minimum: lower boundary diff --git a/clutter/clutter-units.h b/clutter/clutter-units.h index 50af78acb..9e9e2624a 100644 --- a/clutter/clutter-units.h +++ b/clutter/clutter-units.h @@ -145,6 +145,24 @@ typedef gint32 ClutterUnit; #define CLUTTER_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_UNIT, ClutterParamSpecUnit)) #define CLUTTER_IS_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_UNIT)) +/** + * CLUTTER_MAXUNIT: + * + * Higher boundary for a #ClutterUnit + * + * Since: 0.8 + */ +#define CLUTTER_MAXUNIT G_MAXINT16 + +/** + * CLUTTER_MINUNIT: + * + * Lower boundary for a #ClutterUnit + * + * Since: 0.8 + */ +#define CLUTTER_MINUNIT G_MININT16 + /** * CLUTTER_VALUE_HOLDS_UNIT: * @x: a #GValue diff --git a/doc/reference/clutter-sections.txt b/doc/reference/clutter-sections.txt index dabd822d9..94ca6dd10 100644 --- a/doc/reference/clutter-sections.txt +++ b/doc/reference/clutter-sections.txt @@ -54,6 +54,8 @@ CLUTTER_VALUE_HOLDS_UNIT clutter_value_set_unit clutter_value_get_unit +CLUTTER_MAXUNIT +CLUTTER_MINUNIT ClutterParamSpecUnit clutter_param_spec_unit @@ -878,6 +880,8 @@ clutter_value_set_fixed clutter_value_get_fixed +CLUTTER_MAXFIXED +CLUTTER_MINFIXED ClutterParamSpecFixed clutter_param_spec_fixed