aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-09-12 19:47:23 +0200
committerSebastian Geerken <devnull@localhost>2013-09-12 19:47:23 +0200
commit3599a4762e8a62c0c8c32f0e9d9ec3e37730d271 (patch)
tree681c1230c544663620bebafd6370a82dfee8b9f7 /dw/widget.cc
parent280994c5459fdd99e2dc0b9f791ccfdfdb8589ad (diff)
Meaningful renaming.
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 648f629b..31c69f4c 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -340,17 +340,17 @@ style::Color *Widget::getBgColor ()
void Widget::drawBox (View *view, style::Style *style, Rectangle *area,
int x, int y, int width, int height, bool inverse)
{
- Rectangle viewArea;
- viewArea.x = area->x + allocation.x;
- viewArea.y = area->y + allocation.y;
- viewArea.width = area->width;
- viewArea.height = area->height;
+ Rectangle canvasArea;
+ canvasArea.x = area->x + allocation.x;
+ canvasArea.y = area->y + allocation.y;
+ canvasArea.width = area->width;
+ canvasArea.height = area->height;
- style::drawBorder (view, layout, &viewArea,
+ style::drawBorder (view, layout, &canvasArea,
allocation.x + x, allocation.y + y,
width, height, style, inverse);
- style::drawBackground (view, layout, &viewArea,
+ style::drawBackground (view, layout, &canvasArea,
allocation.x + x, allocation.y + y, width, height,
style, inverse, false);
}
@@ -363,16 +363,16 @@ void Widget::drawBox (View *view, style::Style *style, Rectangle *area,
*/
void Widget::drawWidgetBox (View *view, Rectangle *area, bool inverse)
{
- Rectangle viewArea;
- viewArea.x = area->x + allocation.x;
- viewArea.y = area->y + allocation.y;
- viewArea.width = area->width;
- viewArea.height = area->height;
+ Rectangle canvasArea;
+ canvasArea.x = area->x + allocation.x;
+ canvasArea.y = area->y + allocation.y;
+ canvasArea.width = area->width;
+ canvasArea.height = area->height;
- style::drawBorder (view, layout, &viewArea, allocation.x, allocation.y,
+ style::drawBorder (view, layout, &canvasArea, allocation.x, allocation.y,
allocation.width, getHeight (), style, inverse);
- style::drawBackground (view, layout, &viewArea, allocation.x, allocation.y,
+ style::drawBackground (view, layout, &canvasArea, allocation.x, allocation.y,
allocation.width, getHeight (), style, inverse,
parent == NULL);
}