diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-31 23:00:06 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-31 23:00:06 +0100 |
commit | 52e850dc332b5628e727d5277823f505f2be4548 (patch) | |
tree | f42e3a6ae7c557c3a8791fb40a4d6d73dfbbabd7 /include | |
parent | 068592414e6993274c37e894acaf4d371600ddaf (diff) |
Fix EM support, use char height
Diffstat (limited to 'include')
-rw-r--r-- | include/widgets/listview.h | 9 | ||||
-rw-r--r-- | include/widgets/textbox.h | 4 |
2 files changed, 3 insertions, 10 deletions
diff --git a/include/widgets/listview.h b/include/widgets/listview.h index f20cf18a..cdefaa51 100644 --- a/include/widgets/listview.h +++ b/include/widgets/listview.h @@ -78,15 +78,6 @@ unsigned int listview_get_selected ( listview *lv ); /** * @param lv The listview handle * - * Get the desired height of the listview widget. - * - * @returns the desired height. - */ -unsigned int listview_get_desired_height ( listview *lv ); - -/** - * @param lv The listview handle - * * Move the selection one row up. * - Wrap around. */ diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h index b445f28c..15d2ef5d 100644 --- a/include/widgets/textbox.h +++ b/include/widgets/textbox.h @@ -196,6 +196,7 @@ int textbox_get_font_width ( const textbox *tb ); * @returns the width of a character in pixels. */ double textbox_get_estimated_char_width ( void ); +double textbox_get_estimated_char_height ( void ); /** * @param tb Handle to the textbox @@ -217,13 +218,14 @@ void textbox_delete ( textbox *tb, int pos, int dlen ); * TODO remove for #widget_resize and #widget_move */ void textbox_moveresize ( textbox *tb, int x, int y, int w, int h ); + /** * @param tb Handle to the textbox * Get the (estimated) with of a character, can be used to calculate window width. * * @returns the estimated width of a character. */ -int textbox_get_estimated_char_height ( const textbox *tb, int eh ); +int textbox_get_estimated_height ( const textbox *tb, int eh ); /** * @param p The new default PangoContext * |