aboutsummaryrefslogtreecommitdiff
path: root/dw/view.hh
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2010-11-13 13:15:55 -0300
committerJorge Arellano Cid <jcid@dillo.org>2010-11-13 13:15:55 -0300
commit415a9c17ea71a0b4b53bbda1c39e495cf7ae2d1b (patch)
tree9954b9bdb37333591229d1224469269059936a8b /dw/view.hh
parenta12f6e9121d0049ed5f68b52c5d54ac35802a605 (diff)
Full CSS border-style implementation
The drawBorder{Top,Bottom,Left,Right} functions are similar. They use a trapezium as draw polygon, or drawTypedLine() for dots and dashes. Although the concept is simple, achieving pixel accuracy is laborious [1]. [1] http://www.dillo.org/css_compat/tests/border-style.html
Diffstat (limited to 'dw/view.hh')
-rw-r--r--dw/view.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/view.hh b/dw/view.hh
index d0f6c6b9..08853323 100644
--- a/dw/view.hh
+++ b/dw/view.hh
@@ -166,6 +166,10 @@ public:
virtual void drawLine (style::Color *color,
style::Color::Shading shading,
int x1, int y1, int x2, int y2) = 0;
+ virtual void drawTypedLine (style::Color *color,
+ style::Color::Shading shading,
+ style::LineType type, int width,
+ int x1, int y1, int x2, int y2) = 0;
virtual void drawRectangle (style::Color *color,
style::Color::Shading shading, bool filled,
int x, int y, int width, int height) = 0;