summaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-07-27 12:52:51 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-07-27 12:54:47 +0200
commitc2081d28740e03d43b9dbbe9dbd5ac6484e8953a (patch)
treeeb1c8ac0965fee0139ee58db131a142b2150b4c8 /dw/widget.hh
parent59b746f013f60050b91cb5f6f8dd4a96c47f380e (diff)
Add SVG support for currentColor
The currentColor special value for the fill and stroke attributes allows an image to follow the same foreground color of the surounding text.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index cf0ffe46..d1957d4f 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -1,3 +1,23 @@
+/*
+ * Dillo Widget
+ *
+ * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
+ * Copyright 2023-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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#ifndef __DW_WIDGET_HH__
#define __DW_WIDGET_HH__
@@ -540,6 +560,7 @@ public:
virtual void setStyle (style::Style *style);
void setBgColor (style::Color *bgColor);
style::Color *getBgColor ();
+ style::Color *getFgColor ();
void drawBox (View *view, style::Style *style, Rectangle *area,
int x, int y, int width, int height, bool inverse);