Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
uicmd.hh
Go to the documentation of this file.
1/*
2 * File: uicmd.cc
3 *
4 * Copyright (C) 2005-2011 Jorge Arellano Cid <jcid@dillo.org>
5 * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13#ifndef __UICMD_HH__
14#define __UICMD_HH__
15
16#include "bw.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22
24 uint32_t xid, const void *v_bw);
26void a_UIcmd_send_event_to_tabs_by_wid(int e, void *v_wid);
27void a_UIcmd_open_urlstr(void *vbw, const char *urlstr);
28void a_UIcmd_open_url(BrowserWindow *bw, const DilloUrl *url);
29void a_UIcmd_open_url_nw(BrowserWindow *bw, const DilloUrl *url);
30void a_UIcmd_open_url_nt(void *vbw, const DilloUrl *url, int focus);
31void a_UIcmd_back(void *vbw);
32void a_UIcmd_back_popup(void *vbw, int x, int y);
33void a_UIcmd_forw(void *vbw);
34void a_UIcmd_forw_popup(void *vbw, int x, int y);
35void a_UIcmd_home(void *vbw);
36void a_UIcmd_zoom_in(void *vbw);
37void a_UIcmd_zoom_out(void *vbw);
38void a_UIcmd_zoom_reset(void *vbw);
39void a_UIcmd_reload(void *vbw);
41void a_UIcmd_repush(void *vbw);
42void a_UIcmd_redirection0(void *vbw, const DilloUrl *url);
43void a_UIcmd_save(void *vbw);
44void a_UIcmd_stop(void *vbw);
45void a_UIcmd_tools(void *vbw, int x, int y);
46void a_UIcmd_save_link(BrowserWindow *bw, const DilloUrl *url);
47void a_UIcmd_open_file(void *vbw);
48const char *a_UIcmd_select_file(void);
49void a_UIcmd_search_dialog(void *vbw);
50const char *a_UIcmd_get_passwd(const char *user);
51void a_UIcmd_book(void *vbw);
52void a_UIcmd_add_bookmark(BrowserWindow *bw, const DilloUrl *url);
55void a_UIcmd_findtext_search(BrowserWindow *bw,const char *key,int case_sens,
56 int backwards);
60void a_UIcmd_focus_location(void *vbw);
61void a_UIcmd_page_popup(void *vbw, bool_t has_bugs, void *v_cssUrls);
62void a_UIcmd_link_popup(void *vbw, const DilloUrl *url);
63void a_UIcmd_image_popup(void *vbw, const DilloUrl *url, bool_t loaded_img,
64 DilloUrl *page_url, DilloUrl *link_url);
65void a_UIcmd_form_popup(void *vbw, const DilloUrl *url, void *vform,
66 bool_t showing_hiddens);
67void a_UIcmd_file_popup(void *vbw, void *v_wid);
68void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr);
70void a_UIcmd_view_page_bugs(void *vbw);
71void a_UIcmd_bugmeter_popup(void *vbw);
72int *a_UIcmd_get_history(BrowserWindow *bw, int direction);
73void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw);
74
75void a_UIcmd_close_bw(void *vbw);
76void a_UIcmd_close_all_bw(void *p);
77
78void a_UIcmd_init(void);
79
80
81// UI binding functions -------------------------------------------------------
82
83void a_UIcmd_get_wh(BrowserWindow *bw, int *w, int *h);
84void a_UIcmd_get_scroll_xy(BrowserWindow *bw, int *x, int *y);
85void a_UIcmd_set_scroll_xy(BrowserWindow *bw, int x, int y);
86void a_UIcmd_set_scroll_by_fragment(BrowserWindow *bw, const char *f);
87void a_UIcmd_scroll(BrowserWindow *bw, int icmd);
89void a_UIcmd_set_location_text(void *vbw, const char *text);
90void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd);
91void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd);
92void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug);
93void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label);
94void a_UIcmd_set_msg(BrowserWindow *bw, const char *format, ...);
96
97#ifdef __cplusplus
98}
99#endif /* __cplusplus */
100
101#endif // __UICMD_HH__
unsigned char bool_t
Definition d_size.h:21
Contains the specific data for a single window.
Definition bw.h:27
Definition url.h:88
void a_UIcmd_tools(void *vbw, int x, int y)
Definition uicmd.cc:1145
void a_UIcmd_link_popup(void *vbw, const DilloUrl *url)
Definition uicmd.cc:1272
const char * a_UIcmd_select_file(void)
Definition uicmd.cc:1123
const char * a_UIcmd_get_passwd(const char *user)
Definition uicmd.cc:1222
void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug)
Definition uicmd.cc:1531
void a_UIcmd_set_scroll_xy(BrowserWindow *bw, int x, int y)
Definition uicmd.cc:1432
void a_UIcmd_page_popup(void *vbw, bool_t has_bugs, void *v_cssUrls)
Definition uicmd.cc:1262
void a_UIcmd_bugmeter_popup(void *vbw)
Definition uicmd.cc:1364
void a_UIcmd_set_msg(BrowserWindow *bw, const char *format,...)
Definition uicmd.cc:1563
void a_UIcmd_home(void *vbw)
Definition uicmd.cc:897
void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr)
Definition uicmd.cc:1306
void a_UIcmd_form_popup(void *vbw, const DilloUrl *url, void *vform, bool_t showing_hiddens)
Definition uicmd.cc:1289
void a_UIcmd_close_bw(void *vbw)
Definition uicmd.cc:675
void a_UIcmd_image_popup(void *vbw, const DilloUrl *url, bool_t loaded_img, DilloUrl *page_url, DilloUrl *link_url)
Definition uicmd.cc:1280
void a_UIcmd_send_event_to_tabs_by_wid(int e, void *v_wid)
int * a_UIcmd_get_history(BrowserWindow *bw, int direction)
Definition uicmd.cc:1375
void a_UIcmd_reload_all_active()
Definition uicmd.cc:913
void a_UIcmd_open_file(void *vbw)
Definition uicmd.cc:1153
void a_UIcmd_findtext_dialog(BrowserWindow *bw)
void a_UIcmd_focus_location(void *vbw)
Definition uicmd.cc:1653
void a_UIcmd_zoom_reset(void *vbw)
Definition uicmd.cc:974
void a_UIcmd_zoom_in(void *vbw)
Definition uicmd.cc:942
void a_UIcmd_zoom_out(void *vbw)
Definition uicmd.cc:958
void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label)
Definition uicmd.cc:1540
void a_UIcmd_focus_main_area(BrowserWindow *bw)
Definition uicmd.cc:1645
void a_UIcmd_reload(void *vbw)
Definition uicmd.cc:905
void a_UIcmd_close_all_bw(void *p)
Definition uicmd.cc:714
BrowserWindow * a_UIcmd_get_bw_by_widget(void *v_wid)
Definition uicmd.cc:543
void a_UIcmd_file_popup(void *vbw, void *v_wid)
Definition uicmd.cc:1298
void a_UIcmd_open_url_nw(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:836
void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1315
void a_UIcmd_book(void *vbw)
Definition uicmd.cc:1243
void a_UIcmd_search_dialog(void *vbw)
Definition uicmd.cc:1208
void a_UIcmd_view_page_bugs(void *vbw)
Definition uicmd.cc:1350
void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw)
Definition uicmd.cc:1399
void a_UIcmd_findbar_toggle(BrowserWindow *bw, int on)
Definition uicmd.cc:1637
void a_UIcmd_findtext_search(BrowserWindow *bw, const char *key, int case_sens, int backwards)
Definition uicmd.cc:1604
void a_UIcmd_get_wh(BrowserWindow *bw, int *w, int *h)
Definition uicmd.cc:1409
void a_UIcmd_open_urlstr(void *vbw, const char *urlstr)
Definition uicmd.cc:760
void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
Definition uicmd.cc:1577
void a_UIcmd_panels_toggle(BrowserWindow *bw)
Definition uicmd.cc:1596
void a_UIcmd_forw_popup(void *vbw, int x, int y)
Definition uicmd.cc:889
void a_UIcmd_save(void *vbw)
Definition uicmd.cc:1110
void a_UIcmd_back(void *vbw)
Definition uicmd.cc:865
void a_UIcmd_get_scroll_xy(BrowserWindow *bw, int *x, int *y)
Definition uicmd.cc:1419
void a_UIcmd_forw(void *vbw)
Definition uicmd.cc:881
void a_UIcmd_save_link(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1235
void a_UIcmd_repush(void *vbw)
Definition uicmd.cc:926
void a_UIcmd_back_popup(void *vbw, int x, int y)
Definition uicmd.cc:873
char * a_UIcmd_get_location_text(BrowserWindow *bw)
Definition uicmd.cc:1492
void a_UIcmd_add_bookmark(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1253
void a_UIcmd_open_url(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:801
void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd)
Definition uicmd.cc:1510
void a_UIcmd_stop(void *vbw)
Definition uicmd.cc:1132
void a_UIcmd_findtext_reset(BrowserWindow *bw)
Definition uicmd.cc:1626
void a_UIcmd_scroll(BrowserWindow *bw, int icmd)
Definition uicmd.cc:1456
void a_UIcmd_set_scroll_by_fragment(BrowserWindow *bw, const char *f)
Definition uicmd.cc:1444
void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd)
Definition uicmd.cc:1519
void a_UIcmd_redirection0(void *vbw, const DilloUrl *url)
Definition uicmd.cc:934
void a_UIcmd_set_location_text(void *vbw, const char *text)
Definition uicmd.cc:1500
BrowserWindow * a_UIcmd_browser_window_new(int ww, int wh, uint32_t xid, const void *v_bw)
Definition uicmd.cc:559
void a_UIcmd_open_url_nt(void *vbw, const DilloUrl *url, int focus)
Definition uicmd.cc:852
void a_UIcmd_init(void)
Definition uicmd.cc:1037