From 06c5f51e7dbaeee8723c3c2c8c753df37b860f85 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 6 Jan 2017 19:04:25 +0100 Subject: Allow to set anchor position on normitor and anchor position on window. --- include/settings.h | 2 +- include/theme.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'include') 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 #include #include +#include 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. -- cgit v1.2.3