Rect Struct Reference

Stores a rectangle, for example the size of a window, the child window etc. More...

#include <data.h>

Data Fields

uint32_t x
uint32_t y
uint32_t width
uint32_t height

Detailed Description

Stores a rectangle, for example the size of a window, the child window etc.

It needs to be packed so that the compiler will not add any padding bytes. (it is used in src/ewmh.c for example)

Note that x and y can contain signed values in some cases (for example when used for the coordinates of a window, which can be set outside of the visible area, but not when specifying the position of a workspace for the _NET_WM_WORKAREA hint). Not declaring x/y as int32_t saves us a lot of typecasts.

Note that x and y can contain signed values in some cases (for example when used for the coordinates of a window, which can be set outside of the visible area, but not when specifying the position of a workspace for the _NET_WM_WORKAREA hint). Not declaring x/y as int32_t saves us a lot of typecasts.

Definition at line 96 of file data.h.


Field Documentation

uint32_t Rect::height
uint32_t Rect::width
uint32_t Rect::x
uint32_t Rect::y

The documentation for this struct was generated from the following file:

Generated on 16 Apr 2010 for i3 by  doxygen 1.6.1