]> Dogcows Code - chaz/openbox/blobdiff - openbox/geom.h
make a GravityPoint and GravityCoord data structures for those --x, ++y type values
[chaz/openbox] / openbox / geom.h
index 43eb8ea3ab128b598174cb2e4948af7e6b5e4d21..bdcd3c55ba416a417e64187ff76cbddf2157be64 100644 (file)
 #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;
This page took 0.019639 seconds and 4 git commands to generate.