diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-09 21:52:14 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-25 20:45:21 +0200 |
commit | 06f9083bdeb085b7b9de762fa029f6519e142dbe (patch) | |
tree | b3efca1e52e04f11a2087696d643d3ccfb84993d /src/uicmd.hh | |
parent | 52d9a4726da51b78bc5ed445588efb17f5f4e637 (diff) |
Add support for zoom factor
Allows zooming in and out of pages by changing the size of all elements,
including font size, images and tables. The initial zoom is specified in
the "zoom_factor" option of dillorc.
Use the new shortcuts Ctrl+ and Ctrl- to adjust the zoom of the current
page and Ctrl 0 to reset it to 100%. When a new tab or window is opened,
the current zoom factor is inherited. Each tab retains its own zoom
factor.
Fixes: https://github.com/dillo-browser/dillo/issues/21
Diffstat (limited to 'src/uicmd.hh')
-rw-r--r-- | src/uicmd.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/uicmd.hh b/src/uicmd.hh index a1af6335..ec630d65 100644 --- a/src/uicmd.hh +++ b/src/uicmd.hh @@ -1,3 +1,15 @@ +/* + * File: uicmd.cc + * + * Copyright (C) 2005-2011 Jorge Arellano Cid <jcid@dillo.org> + * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + */ + #ifndef __UICMD_HH__ #define __UICMD_HH__ @@ -21,6 +33,9 @@ void a_UIcmd_back_popup(void *vbw, int x, int y); void a_UIcmd_forw(void *vbw); void a_UIcmd_forw_popup(void *vbw, int x, int y); void a_UIcmd_home(void *vbw); +void a_UIcmd_zoom_in(void *vbw); +void a_UIcmd_zoom_out(void *vbw); +void a_UIcmd_zoom_reset(void *vbw); void a_UIcmd_reload(void *vbw); void a_UIcmd_repush(void *vbw); void a_UIcmd_redirection0(void *vbw, const DilloUrl *url); |