Dillo v3.1.1-91-g6d5b3ee3
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);
40void a_UIcmd_repush(void *vbw);
41void a_UIcmd_redirection0(void *vbw, const DilloUrl *url);
42void a_UIcmd_save(void *vbw);
43void a_UIcmd_stop(void *vbw);
44void a_UIcmd_tools(void *vbw, int x, int y);
45void a_UIcmd_save_link(BrowserWindow *bw, const DilloUrl *url);
46void a_UIcmd_open_file(void *vbw);
47const char *a_UIcmd_select_file(void);
48void a_UIcmd_search_dialog(void *vbw);
49const char *a_UIcmd_get_passwd(const char *user);
50void a_UIcmd_book(void *vbw);
51void a_UIcmd_add_bookmark(BrowserWindow *bw, const DilloUrl *url);
54void a_UIcmd_findtext_search(BrowserWindow *bw,const char *key,int case_sens,
55 int backwards);
59void a_UIcmd_focus_location(void *vbw);
60void a_UIcmd_page_popup(void *vbw, bool_t has_bugs, void *v_cssUrls);
61void a_UIcmd_link_popup(void *vbw, const DilloUrl *url);
62void a_UIcmd_image_popup(void *vbw, const DilloUrl *url, bool_t loaded_img,
63 DilloUrl *page_url, DilloUrl *link_url);
64void a_UIcmd_form_popup(void *vbw, const DilloUrl *url, void *vform,
65 bool_t showing_hiddens);
66void a_UIcmd_file_popup(void *vbw, void *v_wid);
67void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr);
69void a_UIcmd_view_page_bugs(void *vbw);
70void a_UIcmd_bugmeter_popup(void *vbw);
71int *a_UIcmd_get_history(BrowserWindow *bw, int direction);
72void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw);
73
74void a_UIcmd_close_bw(void *vbw);
75void a_UIcmd_close_all_bw(void *p);
76
77void a_UIcmd_init(void);
78
79
80// UI binding functions -------------------------------------------------------
81
82void a_UIcmd_get_wh(BrowserWindow *bw, int *w, int *h);
83void a_UIcmd_get_scroll_xy(BrowserWindow *bw, int *x, int *y);
84void a_UIcmd_set_scroll_xy(BrowserWindow *bw, int x, int y);
85void a_UIcmd_set_scroll_by_fragment(BrowserWindow *bw, const char *f);
86void a_UIcmd_scroll(BrowserWindow *bw, int icmd);
88void a_UIcmd_set_location_text(void *vbw, const char *text);
89void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd);
90void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd);
91void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug);
92void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label);
93void a_UIcmd_set_msg(BrowserWindow *bw, const char *format, ...);
95
96#ifdef __cplusplus
97}
98#endif /* __cplusplus */
99
100#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:1098
void a_UIcmd_link_popup(void *vbw, const DilloUrl *url)
Definition uicmd.cc:1225
const char * a_UIcmd_select_file(void)
Definition uicmd.cc:1076
const char * a_UIcmd_get_passwd(const char *user)
Definition uicmd.cc:1175
void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug)
Definition uicmd.cc:1484
void a_UIcmd_set_scroll_xy(BrowserWindow *bw, int x, int y)
Definition uicmd.cc:1385
void a_UIcmd_page_popup(void *vbw, bool_t has_bugs, void *v_cssUrls)
Definition uicmd.cc:1215
void a_UIcmd_bugmeter_popup(void *vbw)
Definition uicmd.cc:1317
void a_UIcmd_set_msg(BrowserWindow *bw, const char *format,...)
Definition uicmd.cc:1516
void a_UIcmd_home(void *vbw)
Definition uicmd.cc:863
void a_UIcmd_copy_urlstr(BrowserWindow *bw, const char *urlstr)
Definition uicmd.cc:1259
void a_UIcmd_form_popup(void *vbw, const DilloUrl *url, void *vform, bool_t showing_hiddens)
Definition uicmd.cc:1242
void a_UIcmd_close_bw(void *vbw)
Definition uicmd.cc:659
void a_UIcmd_image_popup(void *vbw, const DilloUrl *url, bool_t loaded_img, DilloUrl *page_url, DilloUrl *link_url)
Definition uicmd.cc:1233
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:1328
void a_UIcmd_open_file(void *vbw)
Definition uicmd.cc:1106
void a_UIcmd_findtext_dialog(BrowserWindow *bw)
void a_UIcmd_focus_location(void *vbw)
Definition uicmd.cc:1606
void a_UIcmd_zoom_reset(void *vbw)
Definition uicmd.cc:927
void a_UIcmd_zoom_in(void *vbw)
Definition uicmd.cc:895
void a_UIcmd_zoom_out(void *vbw)
Definition uicmd.cc:911
void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label)
Definition uicmd.cc:1493
void a_UIcmd_focus_main_area(BrowserWindow *bw)
Definition uicmd.cc:1598
void a_UIcmd_reload(void *vbw)
Definition uicmd.cc:871
void a_UIcmd_close_all_bw(void *p)
Definition uicmd.cc:680
BrowserWindow * a_UIcmd_get_bw_by_widget(void *v_wid)
Definition uicmd.cc:534
void a_UIcmd_file_popup(void *vbw, void *v_wid)
Definition uicmd.cc:1251
void a_UIcmd_open_url_nw(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:802
void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1268
void a_UIcmd_book(void *vbw)
Definition uicmd.cc:1196
void a_UIcmd_search_dialog(void *vbw)
Definition uicmd.cc:1161
void a_UIcmd_view_page_bugs(void *vbw)
Definition uicmd.cc:1303
void a_UIcmd_nav_jump(BrowserWindow *bw, int offset, int new_bw)
Definition uicmd.cc:1352
void a_UIcmd_findbar_toggle(BrowserWindow *bw, int on)
Definition uicmd.cc:1590
void a_UIcmd_findtext_search(BrowserWindow *bw, const char *key, int case_sens, int backwards)
Definition uicmd.cc:1557
void a_UIcmd_get_wh(BrowserWindow *bw, int *w, int *h)
Definition uicmd.cc:1362
void a_UIcmd_open_urlstr(void *vbw, const char *urlstr)
Definition uicmd.cc:726
void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
Definition uicmd.cc:1530
void a_UIcmd_panels_toggle(BrowserWindow *bw)
Definition uicmd.cc:1549
void a_UIcmd_forw_popup(void *vbw, int x, int y)
Definition uicmd.cc:855
void a_UIcmd_save(void *vbw)
Definition uicmd.cc:1063
void a_UIcmd_back(void *vbw)
Definition uicmd.cc:831
void a_UIcmd_get_scroll_xy(BrowserWindow *bw, int *x, int *y)
Definition uicmd.cc:1372
void a_UIcmd_forw(void *vbw)
Definition uicmd.cc:847
void a_UIcmd_save_link(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1188
void a_UIcmd_repush(void *vbw)
Definition uicmd.cc:879
void a_UIcmd_back_popup(void *vbw, int x, int y)
Definition uicmd.cc:839
char * a_UIcmd_get_location_text(BrowserWindow *bw)
Definition uicmd.cc:1445
void a_UIcmd_add_bookmark(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:1206
void a_UIcmd_open_url(BrowserWindow *bw, const DilloUrl *url)
Definition uicmd.cc:767
void a_UIcmd_set_page_prog(BrowserWindow *bw, size_t nbytes, int cmd)
Definition uicmd.cc:1463
void a_UIcmd_stop(void *vbw)
Definition uicmd.cc:1085
void a_UIcmd_findtext_reset(BrowserWindow *bw)
Definition uicmd.cc:1579
void a_UIcmd_scroll(BrowserWindow *bw, int icmd)
Definition uicmd.cc:1409
void a_UIcmd_set_scroll_by_fragment(BrowserWindow *bw, const char *f)
Definition uicmd.cc:1397
void a_UIcmd_set_img_prog(BrowserWindow *bw, int n_img, int t_img, int cmd)
Definition uicmd.cc:1472
void a_UIcmd_redirection0(void *vbw, const DilloUrl *url)
Definition uicmd.cc:887
void a_UIcmd_set_location_text(void *vbw, const char *text)
Definition uicmd.cc:1453
BrowserWindow * a_UIcmd_browser_window_new(int ww, int wh, uint32_t xid, const void *v_bw)
Definition uicmd.cc:550
void a_UIcmd_open_url_nt(void *vbw, const DilloUrl *url, int focus)
Definition uicmd.cc:818
void a_UIcmd_init(void)
Definition uicmd.cc:990