summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-06 19:04:25 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-06 19:04:25 +0100
commit06c5f51e7dbaeee8723c3c2c8c753df37b860f85 (patch)
tree10b9c0fcceacaf55751f7cf5e3d7f629e2042c12 /include
parent8bc1831d172d17981449964e7f276096d94b28f1 (diff)
Allow to set anchor position on normitor and anchor position on window.
Diffstat (limited to 'include')
-rw-r--r--include/settings.h2
-rw-r--r--include/theme.h15
2 files changed, 16 insertions, 1 deletions
diff --git a/include/settings.h b/include/settings.h
index 76f053cf..344208e2 100644
--- a/include/settings.h
+++ b/include/settings.h
@@ -38,7 +38,7 @@ typedef enum
/** Middle right */
WL_EAST = 4,
/** Bottom right */
- WL_EAST_SOUTH = 5,
+ WL_SOUTH_EAST = 5,
/** Bottom middle */
WL_SOUTH = 6,
/** Bottom left */
diff --git a/include/theme.h b/include/theme.h
index ee5acb6f..fd318760 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -3,6 +3,7 @@
#include <glib.h>
#include <cairo.h>
#include <widgets/widget.h>
+#include <settings.h>
typedef enum {
SOLID,
@@ -57,6 +58,8 @@ typedef enum {
P_PADDING,
/** Link to global setting */
P_LINK,
+ /** Position */
+ P_POSITION,
} PropertyType;
/**
@@ -202,6 +205,18 @@ Distance rofi_theme_get_distance ( const widget *widget, const char *property, i
* @returns The integer value of this property for this widget.
*/
int rofi_theme_get_integer ( const widget *widget, const char *property, int def );
+
+/**
+ * @param widget The widget to query
+ * @param property The property to query.
+ * @param def The default value.
+ *
+ * Obtain the position of the widget.
+ *
+ * @returns The position value of this property for this widget.
+ */
+int rofi_theme_get_position ( const widget *widget, const char *property, int def );
+
/**
* @param widget The widget to query
* @param property The property to query.