summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-31 23:27:17 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-31 23:27:17 +0100
commit7b0e0643c856a4a366a434ae15ee706166d19078 (patch)
tree7130b61670922014b5a08cc6bec254475c9e5cb0 /include
parent52e850dc332b5628e727d5277823f505f2be4548 (diff)
Make spacing be of type distance.
Diffstat (limited to 'include')
-rw-r--r--include/theme.h5
-rw-r--r--include/widgets/textbox.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/include/theme.h b/include/theme.h
index 89b4ac2f..043cf6f8 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -9,7 +9,7 @@ typedef enum {
} PixelWidth;
typedef struct {
- int distance;
+ double distance;
PixelWidth type;
} Distance;
@@ -86,10 +86,13 @@ void rofi_theme_widget_add_properties ( Widget *widget, GHashTable *table );
* Public API
*/
+Distance rofi_theme_get_distance ( const char *wclass, const char *name, const char *state, const char *property, int def );
int rofi_theme_get_integer ( const char *wclass, const char *name, const char *state, const char *property, int def );
int rofi_theme_get_boolean ( const char *wclass, const char *name, const char *state, const char *property, int def );
char *rofi_theme_get_string ( const char *wclass, const char *name, const char *state, const char *property, char *def );
double rofi_theme_get_double ( const char *wclass, const char *name, const char *state, const char *property, double def );
void rofi_theme_get_color ( const char *wclass, const char *name, const char *state, const char *property, cairo_t *d);
Padding rofi_theme_get_padding ( const char *wclass, const char *name, const char *state, const char *property, Padding pad );
+
+int distance_get_pixel ( Distance d );
#endif
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index 15d2ef5d..14484a25 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -255,5 +255,6 @@ PangoAttrList *textbox_get_pango_attributes ( textbox *tb );
* @returns the visible text.
*/
const char *textbox_get_visible_text ( const textbox *tb );
+int distance_get_pixel ( Distance d );
/*@}*/
#endif //ROFI_TEXTBOX_H