summaryrefslogtreecommitdiffstats
path: root/include/theme.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-09 22:16:31 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-09 22:16:31 +0100
commit2d01d1566af91502dee35a132e6957a1f9e9c939 (patch)
tree6772d4baf02133d1bfc52ffcfaedbdba26d52f7f /include/theme.h
parentaa8c90cd7e3a7d226f59a8119639d91be9a60dc1 (diff)
Add some properties to themes
Diffstat (limited to 'include/theme.h')
-rw-r--r--include/theme.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/theme.h b/include/theme.h
index dae85d9c..6d0db4b8 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -3,7 +3,7 @@
#include <glib.h>
typedef enum {
P_INTEGER,
- P_FLOAT,
+ P_DOUBLE,
P_STRING,
P_BOOLEAN,
P_COLOR
@@ -43,4 +43,13 @@ Property *rofi_theme_property_create ( PropertyType type );
void rofi_theme_property_free ( Property *p );
void rofi_theme_free ( Widget * );
void rofi_theme_parse_file ( const char *file );
+
+/**
+ * Public API
+ */
+
+int rofi_theme_get_integer ( const char *name, const char *property, int def );
+int rofi_theme_get_boolean ( const char *name, const char *property, int def );
+char *rofi_theme_get_string ( const char *name, const char *property, char *def );
+double rofi_theme_get_double ( const char *name, const char *property, double def );
#endif