diff options
author | Vincent Sanders <vince@kyllikki.org> | 2021-02-05 00:04:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2021-02-05 00:04:35 +0000 |
commit | 131bb27e3bf9d117ede308dd968814204f72e64c (patch) | |
tree | 40f5ab13d8abcc06804a509893d6ba029ad2795e /include/libcss/computed.h | |
parent | e8238ac2dab2a9c8cd31e7f66504218cf90c4d23 (diff) | |
download | libcss-131bb27e3bf9d117ede308dd968814204f72e64c.tar.gz libcss-131bb27e3bf9d117ede308dd968814204f72e64c.tar.bz2 |
add text formatting of values with list styles
Diffstat (limited to 'include/libcss/computed.h')
-rw-r--r-- | include/libcss/computed.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h index af40abf..f4b3e21 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -88,7 +88,30 @@ css_error css_computed_style_compose( css_computed_style **restrict result); /****************************************************************************** - * Property accessors below here * + * speciality formatters * + ******************************************************************************/ + +/** + * Format a value into a text string controled by a list style + * + * \param[in] style The computed style to use for formatting + * \param[in] value The value to format + * \param[out] buffer The buffer to recive the formatted result + * \param[in] buffer_length The length of the buffer + * \param[out] format_length The complete length of the formatted result which + * may exceed buffer_length in which case the + * buffer data will not be complete. + * \return CSS_OK on success and the buffer and format_length updated + */ +css_error css_computed_format_list_style( + const css_computed_style *style, + int value, + char *buffer, + size_t buffer_length, + size_t *format_length); + +/****************************************************************************** + * Property accessors * ******************************************************************************/ uint8_t css_computed_letter_spacing( |