19#ifndef _NETSURF_DESKTOP_HOTLIST_H_
20#define _NETSURF_DESKTOP_HOTLIST_H_
nserror hotlist_add_entry(struct nsurl *url, const char *title, bool at_y, int y)
Add an entry to the hotlist for given Title/URL.
bool hotlist_keypress(uint32_t key)
Key press handling.
bool hotlist_has_selection(void)
Determine whether there is a selection.
nserror hotlist_fini(void)
Finalise the hotlist.
bool hotlist_get_selection(struct nsurl **url, const char **title)
Get the first selected node.
nserror hotlist_manager_init(void *core_window_handle)
Initialise the hotlist manager.
void hotlist_update_url(struct nsurl *url)
Update given URL, e.g.
nserror hotlist_manager_fini(void)
Finalise the hotlist manager.
void hotlist_redraw(int x, int y, struct rect *clip, const struct redraw_context *ctx)
Redraw the hotlist.
nserror hotlist_iterate(void *ctx, hotlist_folder_enter_cb enter_cb, hotlist_address_cb address_cb, hotlist_folder_leave_cb leave_cb)
Walk (depth first) the hotlist, calling callbacks on entering folders, address nodes,...
void hotlist_remove_url(struct nsurl *url)
Remove any entries matching the given URL from the hotlist.
nserror hotlist_add_folder(const char *title, bool at_y, int y)
Add a folder to the hotlist.
nserror hotlist_init(const char *load_path, const char *save_path)
Initialise the hotlist.
nserror hotlist_export(const char *path, const char *title)
Save hotlist to file.
nserror hotlist_expand(bool only_folders)
Expand the treeview's nodes.
nserror(* hotlist_address_cb)(void *ctx, struct nsurl *url, const char *title)
Client callback for hotlist_iterate, reporting a hotlist address.
nserror(* hotlist_folder_leave_cb)(void *ctx)
Client callback for hotlist_iterate, reporting a hotlist folder departure.
void hotlist_edit_selection(void)
Edit the first selected node.
nserror(* hotlist_folder_enter_cb)(void *ctx, const char *title)
Client callback for hotlist_iterate, reporting entry into folder.
bool hotlist_has_url(struct nsurl *url)
Check whether given URL is present in hotlist.
nserror hotlist_contract(bool all)
Contract the treeview's nodes.
nserror hotlist_add_url(struct nsurl *url)
Add an entry to the hotlist for given URL.
void hotlist_mouse_action(enum browser_mouse_state mouse, int x, int y)
Handles all kinds of mouse action.
nserror
Enumeration of error codes.
Core mouse and pointer states.
browser_mouse_state
Mouse state: 1 is primary mouse button.
struct nsurl nsurl
NetSurf URL object.
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.