Update font interface documentation to include parameter direction
This commit is contained in:
parent
afc1d2c3c7
commit
9faef114ec
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue