|
libcss
|
Functions | |
| css_fixed | css_unit_font_size_len2pt (const css_computed_style *style, const css_unit_ctx *ctx, const css_fixed length, const css_unit unit) |
| css_fixed | css_unit_len2px_mq (const css_unit_ctx *ctx, const css_fixed length, const css_unit unit) |
| css_fixed | css_unit_len2css_px (const css_computed_style *style, const css_unit_ctx *ctx, const css_fixed length, const css_unit unit) |
| css_fixed | css_unit_len2device_px (const css_computed_style *style, const css_unit_ctx *ctx, const css_fixed length, const css_unit unit) |
| css_error | css_unit_compute_absolute_font_size (const css_hint_length *ref_length, const css_computed_style *root_style, css_fixed font_size_default, css_hint *size) |
| css_fixed | css_unit_angle2deg (const css_unit unit, const css_fixed angle) |
Convert any angle to degrees.
It is invalid to call this with a unit which isn't of UNIT_ANGLE
| [in] | unit | The unit the angle is in |
| [in] | angle | The angle to convert |
| css_error css_unit_compute_absolute_font_size | ( | const css_hint_length * | ref_length, |
| const css_computed_style * | root_style, | ||
| css_fixed | font_size_default, | ||
| css_hint * | size | ||
| ) |
Convert relative font size units to absolute units.
| [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. |
| css_fixed css_unit_font_size_len2pt | ( | const css_computed_style * | style, |
| const css_unit_ctx * | ctx, | ||
| const css_fixed | length, | ||
| const css_unit | unit | ||
| ) |
Convert a length to points (pt).
| [in] | style | Style to perform conversion for or NULL. |
| [in] | ctx | Length unit conversion context. |
| [in] | length | Length to convert. |
| [in] | unit | Current unit of length. |
| css_fixed css_unit_len2css_px | ( | const css_computed_style * | style, |
| const css_unit_ctx * | ctx, | ||
| const css_fixed | length, | ||
| const css_unit | unit | ||
| ) |
Convert a length to CSS pixels.
| [in] | style | Style to perform conversion for or NULL. |
| [in] | ctx | Length unit conversion context. |
| [in] | length | Length to convert. |
| [in] | unit | Current unit of length. |
| css_fixed css_unit_len2device_px | ( | const css_computed_style * | style, |
| const css_unit_ctx * | ctx, | ||
| const css_fixed | length, | ||
| const css_unit | unit | ||
| ) |
Convert a length to device pixels.
| [in] | style | Style to perform conversion for or NULL. |
| [in] | ctx | Length unit conversion context. |
| [in] | length | Length to convert. |
| [in] | unit | Current unit of length. |
| css_fixed css_unit_len2px_mq | ( | const css_unit_ctx * | ctx, |
| const css_fixed | length, | ||
| const css_unit | unit | ||
| ) |
Convert a length to CSS pixels for a media query context.
| [in] | ctx | Document unit conversion context. |
| [in] | length | Length to convert. |
| [in] | unit | Current unit of length. |