aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-10-04 22:25:52 +0200
committerSebastian Geerken <devnull@localhost>2013-10-04 22:25:52 +0200
commit79c24d20a6dfa62e72085a45a29e148ad86d7009 (patch)
tree70e34594aa812dae8a0b2fba2a36eab72f40a891 /dw/layout.hh
parent727dd780fddcf423400df4283c1587618ced0ed0 (diff)
Background images for view(port)s are now updated.
Diffstat (limited to 'dw/layout.hh')
-rw-r--r--dw/layout.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/dw/layout.hh b/dw/layout.hh
index 9687a2da..abc763b1 100644
--- a/dw/layout.hh
+++ b/dw/layout.hh
@@ -17,6 +17,27 @@ class Layout: public lout::object::Object
{
friend class Widget;
+private:
+ class LayoutImgRenderer: public style::StyleImage::ExternalImgRenderer
+ {
+ Layout *layout;
+
+ public:
+ LayoutImgRenderer (Layout *layout) { this->layout = layout; }
+
+ bool readyToDraw ();
+ void getPaddingArea (int *x, int *y, int *width, int *height);
+ void getRefArea (int *xRef, int *yRef, int *widthRef, int *heightRef);
+ style::StyleImage *getBackgroundImage ();
+ style::BackgroundRepeat getBackgroundRepeat ();
+ style::BackgroundAttachment getBackgroundAttachment ();
+ style::Length getBackgroundPositionX ();
+ style::Length getBackgroundPositionY ();
+ void draw (int x, int y, int width, int height);
+ };
+
+ LayoutImgRenderer *layoutImgRenderer;
+
public:
/**
* \brief Receiver interface different signals.