diff --git a/desktop/hotlist.c b/desktop/hotlist.c index e96678d86..2eb723584 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -1392,3 +1392,24 @@ void hotlist_keypress(uint32_t key) treeview_keypress(hl_ctx.tree, key); } + +/* Exported interface, documented in hotlist.h */ +bool hotlist_has_selection(void) +{ + return treeview_has_selection(hl_ctx.tree); +} + + +/* Exported interface, documented in hotlist.h */ +void hotlist_edit_selection(void) +{ + treeview_edit_selection(hl_ctx.tree); +} + + +/* Exported interface, documented in hotlist.h */ +int hotlist_get_height(void) +{ + return treeview_get_height(hl_ctx.tree); +} + diff --git a/desktop/hotlist.h b/desktop/hotlist.h index 743eb616b..df34054c2 100644 --- a/desktop/hotlist.h +++ b/desktop/hotlist.h @@ -133,7 +133,6 @@ void hotlist_redraw(int x, int y, struct rect *clip, */ void hotlist_mouse_action(browser_mouse_state mouse, int x, int y); - /** * Key press handling. * @@ -142,4 +141,23 @@ void hotlist_mouse_action(browser_mouse_state mouse, int x, int y); */ void hotlist_keypress(uint32_t key); +/** + * Determine whether there is a selection + * + * \return true iff there is a selection + */ +bool hotlist_has_selection(void); + +/** + * Edit the first selected node + */ +void hotlist_edit_selection(void); + +/** + * Find current height + * + * \return height in px + */ +int hotlist_get_height(void); + #endif