Go to the source code of this file.
◆ css_unit_angle2deg()
Convert any angle to degrees.
It is invalid to call this with a unit which isn't of UNIT_ANGLE
- Parameters
-
| [in] | unit | The unit the angle is in |
| [in] | angle | The angle to convert |
- Returns
- the angle in degrees
◆ css_unit_compute_absolute_font_size()
Convert relative font size units to absolute units.
- Parameters
-
| [in] | ref_length | Reference font-size length or NULL. |
| [in] | root_style | Root element style or NULL. |
| [in] | font_size_default | Client default font size in CSS pixels. |
| [in,out] | size | The length to convert. |
- Returns
- CSS_OK on success, or appropriate error otherwise.
◆ css_unit_len2px_mq()
Convert a length to CSS pixels for a media query context.
- Parameters
-
| [in] | ctx | Document unit conversion context. |
| [in] | length | Length to convert. |
| [in] | unit | Current unit of length. |
- Returns
- A length in CSS pixels.