mutter/doc/reference/tmpl/clutter-units.sgml

119 lines
2.3 KiB
Plaintext
Raw Normal View History

<!-- ##### SECTION Title ##### -->
Clutter Units
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### MACRO CLUTTER_UNITS_FROM_DEVICE ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for converting from device units to #ClutterUnit.
</para>
2007-06-01 10:00:35 +00:00
@x: int
<!-- ##### MACRO CLUTTER_UNITS_FROM_FIXED ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for converting from #ClutterFixed pixels to #ClutterUnit.
</para>
2007-06-01 10:00:35 +00:00
@x: #ClutterFixed
<!-- ##### MACRO CLUTTER_UNITS_FROM_FLOAT ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for converting from floating point pixels to #ClutterUnit.
</para>
2007-06-01 10:00:35 +00:00
@x: float
<!-- ##### MACRO CLUTTER_UNITS_FROM_INT ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for converting from pixels to #ClutterUnit.
</para>
2007-06-01 10:00:35 +00:00
@x: int
<!-- ##### MACRO CLUTTER_UNITS_FROM_PANGO_UNIT ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for converting from Pango units to #ClutterUnit.
</para>
2007-06-01 10:00:35 +00:00
@x: int
<!-- ##### MACRO CLUTTER_UNITS_TMP_FROM_DEVICE ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro to ease furture transition #ClutterUnit-based API.
2007-06-01 10:00:35 +00:00
This is presently an identity macro, that can be used around integer pixel
values passed into clutter functions. When the API is changed to use
#ClutterUnit, this macro will be modified to carry out pixel -&gt; #ClutterUnit
conversion.
</para>
2007-06-01 10:00:35 +00:00
@x: int
<!-- ##### MACRO CLUTTER_UNITS_TMP_TO_DEVICE ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro to ease furture transition #ClutterUnit-based API.
2007-06-01 10:00:35 +00:00
This is presently an identity macro, that can be used around integer pixel
values return from clutter functions. When the API is changed to return
#ClutterUnit, this macro will be modified to carry out #ClutterUnit -&gt;
pixel conversion.
</para>
2007-06-01 10:00:35 +00:00
@x: int
<!-- ##### MACRO CLUTTER_UNITS_TO_DEVICE ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for conversion from #ClutterUnit values to device unit (currently
pixels).
</para>
2007-06-01 10:00:35 +00:00
@x: #ClutterUnit
<!-- ##### MACRO CLUTTER_UNITS_TO_FIXED ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for conversion of #ClutterUnit value to #ClutterFixed pixel value.
</para>
2007-06-01 10:00:35 +00:00
@x: #ClutterUnit
<!-- ##### MACRO CLUTTER_UNITS_TO_FLOAT ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for conversion of #ClutterUnit value to floating point pixel value.
</para>
2007-06-01 10:00:35 +00:00
@x: #ClutterUnit
<!-- ##### MACRO CLUTTER_UNITS_TO_INT ##### -->
<para>
2007-06-01 10:00:35 +00:00
Macro for conversion of #ClutterUnit value to int pixel value.
</para>
2007-06-01 10:00:35 +00:00
@x: #ClutterUnit