![]() |
![]() |
![]() |
Clutter 0.4 Reference Manual | ![]() |
---|---|---|---|---|
typedef ClutterUnit; #define CLUTTER_UNITS_FROM_DEVICE (x) #define CLUTTER_UNITS_FROM_FIXED (x) #define CLUTTER_UNITS_FROM_FLOAT (x) #define CLUTTER_UNITS_FROM_INT (x) #define CLUTTER_UNITS_FROM_PANGO_UNIT (x) #define CLUTTER_UNITS_TMP_FROM_DEVICE (x) #define CLUTTER_UNITS_TMP_TO_DEVICE (x) #define CLUTTER_UNITS_TO_DEVICE (x) #define CLUTTER_UNITS_TO_FIXED (x) #define CLUTTER_UNITS_TO_FLOAT (x) #define CLUTTER_UNITS_TO_INT (x)
Clutter units are logical units with granularity greater than that of the
device units; they are used by ClutterActorBox and the _units()
family of
ClutterActor functions. To convert between clutter units and device units,
use CLUTTER_UNITS_FROM_DEVICE and CLUTTER_UNITS_TO_DEVICE macros.
Note: It is expected that as of version 0.6 all dimensions in the public Clutter API will be given in clutter units. In order to ease the transition, two extra macros have been provided, CLUTTER_UNITS_TMP_TO_DEVICE and CLUTTER_UNITS_TMP_FROM_DEVICE. In version 0.4 these are identity macros, but when the API transition happens will map to CLUTTER_UNITS_TO_DEVICE and CLUTTER_UNITS_FROM_DEVICE respectively. You can use these in newly written code as place holders.