2006-11-17 13:45:31 -05:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
clutter-fixed
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2006-12-05 00:16:03 -05:00
|
|
|
Fixed point API
|
2006-11-17 13:45:31 -05:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2006-12-05 00:16:03 -05:00
|
|
|
Clutter has a fixed point API targeted at platforms without a floating
|
|
|
|
point unit, such as embedded devices. This API should be preferred to
|
|
|
|
the floating point one as it does not trigger the slow path of software
|
|
|
|
emulation, relying on integer math for fixed-to-floating and
|
|
|
|
floating-to-fixed conversion.
|
2006-11-17 13:45:31 -05:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### TYPEDEF ClutterFixed ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CFX_Q ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CFX_ONE ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CFX_MAX ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CFX_MIN ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_TO_FLOAT ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_TO_DOUBLE ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FLOAT_TO_FIXED ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_INT_TO_FIXED ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_INT ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_FRACTION ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_FLOOR ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_CEIL ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_MUL ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### MACRO CLUTTER_FIXED_DIV ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
|
|
|
|
|