Update font interface documentation to include parameter direction

This commit is contained in:
Vincent Sanders 2016-03-22 17:52:24 +00:00
parent afc1d2c3c7
commit 9faef114ec
2 changed files with 12 additions and 12 deletions

View File

@ -1301,7 +1301,7 @@ static void browser_window_convert_to_download(struct browser_window *bw,
/**
* Callback handler for content event messages.
* Browser window content event callback handler.
*/
static nserror browser_window_callback(hlcache_handle *c,
const hlcache_event *event, void *pw)

View File

@ -42,11 +42,11 @@ struct font_functions
/**
* Measure the width of a string.
*
* \param fstyle plot style for this text
* \param string UTF-8 string to measure
* \param length length of string, in bytes
* \param width updated to width of string[0..length)
* \return true on success, false on error and error reported
* \param[in] fstyle plot style for this text
* \param[in] string UTF-8 string to measure
* \param[in] length length of string, in bytes
* \param[out] width updated to width of string[0..length)
* \return true on success and width updated else false.
*/
bool (*font_width)(const plot_font_style_t *fstyle,
const char *string, size_t length,
@ -54,12 +54,12 @@ struct font_functions
/**
* Find the position in a string where an x coordinate falls.
*
* \param fstyle style for this text
* \param string UTF-8 string to measure
* \param length length of string, in bytes
* \param x x coordinate to search for
* \param char_offset updated to offset in string of actual_x, [0..length]
* \param actual_x updated to x coordinate of character closest to x
* \param[in] fstyle style for this text
* \param[in] string UTF-8 string to measure
* \param[in] length length of string, in bytes
* \param[in] x coordinate to search for
* \param[out] char_offset updated to offset in string of actual_x, [0..length]
* \param[out] actual_x updated to x coordinate of character closest to x
* \return true on success, false on error and error reported
*/
bool (*font_position_in_string)(const plot_font_style_t *fstyle,