summaryrefslogtreecommitdiff
path: root/dw/style.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-10-08 11:43:05 +0200
committerSebastian Geerken <devnull@localhost>2013-10-08 11:43:05 +0200
commit770d42709c33d55cfd3d650efbb95abdc7c2cc65 (patch)
treecc0bd89d027aa0bbbc7a40aebb64dfe714f706f4 /dw/style.cc
parent10b15cd3300df05c9bd913212a05fbca4dc86130 (diff)
Comment.
Diffstat (limited to 'dw/style.cc')
-rw-r--r--dw/style.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/dw/style.cc b/dw/style.cc
index abb5c84b..721e6c81 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -1051,12 +1051,13 @@ void drawBorder (View *view, Layout *layout, Rectangle *area,
* Used by dw::core::Widget::drawBox and dw::core::Widget::drawWidgetBox.
*
* "area" is the area to be drawn, "x", "y", "width" and "height"
- * define the box itself. "xRef", "yRef", "widthRef" and "heightRef"
- * define the reference area, which is important for background
- * images. All are given in canvas coordinates.
- *
- * \todo Does "reference" area include margin and padding? Does
- * currently, but should probably not.
+ * define the box itself (padding box). "xRef", "yRef", "widthRef" and
+ * "heightRef" define the reference area, which is important for the
+ * tiling of background images (for position 0%/0%, a tile is set at
+ * xRef/yRef; for position 100%/100%, a tile is set at xRef +
+ * widthRef/yRef + widthRef). See calls for more informations; in most
+ * cases, these boxes are identical (padding box). All these
+ * coordinates are given in canvas coordinates.
*
* "atTop" should be true, only if the area is drawn directly on the
* canvas, not on top of other areas; this is only true for the