diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:34:52 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-02 16:34:52 +0200 |
commit | ea7d20d1503836eba0c16f8a1960b8f462911f0f (patch) | |
tree | cf6dd94d66466930f71d32b2e64a759c8fed5238 /include | |
parent | 9915857a2ec4d13d83a963252264394fb7ce3f28 (diff) |
Change Orientation enum to RofiOrientation.
Diffstat (limited to 'include')
-rw-r--r-- | include/theme.h | 12 | ||||
-rw-r--r-- | include/widgets/box.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/theme.h b/include/theme.h index 6fafce73..d51043ce 100644 --- a/include/theme.h +++ b/include/theme.h @@ -83,7 +83,7 @@ typedef struct double distance; /** Unit type of the distance */ RofiPixelUnit type; - /** Style of the line */ + /** Style of the line (optional)*/ RofiLineStyle style; } RofiDistance; @@ -92,9 +92,9 @@ typedef struct */ typedef enum { - ORIENTATION_VERTICAL, - ORIENTATION_HORIZONTAL -} Orientation; + ROFI_ORIENTATION_VERTICAL, + ROFI_ORIENTATION_HORIZONTAL +} RofiOrientation; /** * Type of property */ @@ -365,7 +365,7 @@ int rofi_theme_get_boolean ( const widget *widget, const char *property, int * * @returns The orientation of this property for this widget or %def not found. */ -Orientation rofi_theme_get_orientation ( const widget *widget, const char *property, Orientation def ); +RofiOrientation rofi_theme_get_orientation ( const widget *widget, const char *property, RofiOrientation def ); /** * @param widget The widget to query * @param property The property to query. @@ -427,7 +427,7 @@ ThemeHighlight rofi_theme_get_highlight ( widget *widget, const char *property, * Convert RofiDistance into pixels. * @returns the number of pixels this distance represents. */ -int distance_get_pixel ( RofiDistance d, Orientation ori ); +int distance_get_pixel ( RofiDistance d, RofiOrientation ori ); /** * @param d The distance handle. * @param draw The cairo drawable. diff --git a/include/widgets/box.h b/include/widgets/box.h index 70132475..cffccd13 100644 --- a/include/widgets/box.h +++ b/include/widgets/box.h @@ -53,7 +53,7 @@ typedef struct _box box; * * @returns a newly created box, free with #widget_free */ -box * box_create ( const char *name, Orientation type ); +box * box_create ( const char *name, RofiOrientation type ); /** * @param box Handle to the box widget. |