diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 20:58:03 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 20:58:03 -0500 |
| commit | c2e495c720d93521bdb0e1bfd7e76584a1b329b7 (patch) | |
| tree | 3e9618cd5c951753d252fed97e7a501edf7e5ebe /openbox/geom.h | |
| parent | 17bc51aab8be25cd44c55eb0a652c92518bd9b0f (diff) | |
make a GravityPoint and GravityCoord data structures for those --x, ++y type values
Diffstat (limited to 'openbox/geom.h')
| -rw-r--r-- | openbox/geom.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/openbox/geom.h b/openbox/geom.h index 43eb8ea3..bdcd3c55 100644 --- a/openbox/geom.h +++ b/openbox/geom.h @@ -20,6 +20,23 @@ #ifndef __geom_h #define __geom_h +#include <glib.h> + +typedef struct _GravityCoord { + int pos; + gboolean center; + gboolean opposite; +} GravityCoord; + +typedef struct _GravityPoint { + GravityCoord x; + GravityCoord y; +} GravityPoint; + +#define GRAVITY_COORD_SET(c, p, cen, opp) \ + (c).pos = (p), (c).center = (cen), (c).opposite = (opp) + + typedef struct _Point { int x; int y; |
