summaryrefslogtreecommitdiff
path: root/openbox/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/geom.h')
-rw-r--r--openbox/geom.h17
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;