diff options
author | Sebastian Geerken <devnull@localhost> | 2013-09-17 11:32:15 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-09-17 11:32:15 +0200 |
commit | 1dd550cc0b1b1a7afef91f0a22031d29e5e70ba8 (patch) | |
tree | 95473d8439dfe3346864c5b8053a42608c1cd5d3 /dw/textblock.cc | |
parent | 679c1ff1091a0f2d2c401a3951af8bef9d76d553 (diff) |
Some refactoring (Widget::getBgRefArea).
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 035bb4d0..6cb02726 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -82,15 +82,7 @@ void Textblock::WordImgRenderer::getArea (int *x, int *y, int *width, void Textblock::WordImgRenderer::getRefArea (int *xRef, int *yRef, int *widthRef, int *heightRef) { - /** - * \todo Reference should be the containing block (which will be - * introduced later), not the widget allocation. (And also, - * there should be one single method for this.) - */ - *xRef = textblock->allocation.x; - *yRef = textblock->allocation.y; - *widthRef = textblock->allocation.width; - *heightRef = textblock->getHeight (); + textblock->getBgRefArea (xRef, yRef, widthRef, heightRef); } core::style::Style *Textblock::WordImgRenderer::getStyle () |