Merge pull request #2076 from Airblader/feature-document-rects

Document rect, window_rect and deco_rect.
This commit is contained in:
Michael Stapelberg 2015-11-21 22:44:31 +01:00
commit 46bb6cdfbb
1 changed files with 6 additions and 0 deletions

View File

@ -572,8 +572,14 @@ struct Con {
struct Con *parent; struct Con *parent;
/* The position and size for this con. These coordinates are absolute. Note
* that the rect of a container does not include the decoration. */
struct Rect rect; struct Rect rect;
/* The position and size of the actual client window. These coordinates are
* relative to the container's rect. */
struct Rect window_rect; struct Rect window_rect;
/* The position and size of the container's decoration. These coordinates
* are relative to the container's parent's rect. */
struct Rect deco_rect; struct Rect deco_rect;
/** the geometry this window requested when getting mapped */ /** the geometry this window requested when getting mapped */
struct Rect geometry; struct Rect geometry;