summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-04 22:27:27 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-04 22:27:27 +0100
commit9dd3cb312e46575637627fbfd78980b9aee39533 (patch)
tree36a270b5ce64f483140d6e8dc1a0e11de4020e0c /include
parenta77e080c60116f856687451d719bba08703a6c54 (diff)
Support linestyle on border
Diffstat (limited to 'include')
-rw-r--r--include/theme.h58
1 files changed, 36 insertions, 22 deletions
diff --git a/include/theme.h b/include/theme.h
index 58d7b7b8..defa3d05 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -2,7 +2,12 @@
#define THEME_H
#include <glib.h>
#include <cairo.h>
+#include <widgets/widget.h>
+typedef enum {
+ SOLID,
+ DASH
+} LineStyle;
/**
* Distance unit type.
*/
@@ -23,6 +28,8 @@ typedef struct {
double distance;
/** Unit type of the distance */
PixelWidth type;
+ /** Style of the line */
+ LineStyle style;
} Distance;
/**
@@ -150,7 +157,7 @@ void rofi_theme_property_free ( Property *p );
void rofi_theme_free ( ThemeWidget *wid );
/**
- * @param file filename to parse.
+ * @param file filename to parse.
*
* Parse the input theme file.
*/
@@ -169,87 +176,87 @@ void rofi_theme_widget_add_properties ( ThemeWidget *widget, GHashTable *table )
*/
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param def The default value.
*
* Obtain the distance of the widget.
*
- * @returns The distance value of this property for this widget.
+ * @returns The distance value of this property for this widget.
*/
-Distance rofi_theme_get_distance ( const char *name, const char *state, const char *property, int def );
+Distance rofi_theme_get_distance ( const widget *widget, const char *property, int def );
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param def The default value.
*
* Obtain the integer of the widget.
*
- * @returns The integer value of this property for this widget.
+ * @returns The integer value of this property for this widget.
*/
-int rofi_theme_get_integer ( const char *name, const char *state, const char *property, int def );
+int rofi_theme_get_integer ( const widget *widget, const char *property, int def );
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param def The default value.
*
* Obtain the boolean of the widget.
*
- * @returns The boolean value of this property for this widget.
+ * @returns The boolean value of this property for this widget.
*/
-int rofi_theme_get_boolean ( const char *name, const char *state, const char *property, int def );
+int rofi_theme_get_boolean ( const widget *widget, const char *property, int def );
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param def The default value.
*
* Obtain the string of the widget.
*
- * @returns The string value of this property for this widget.
+ * @returns The string value of this property for this widget.
*/
-char *rofi_theme_get_string ( const char *name, const char *state, const char *property, char *def );
+char *rofi_theme_get_string ( const widget *widget, const char *property, char *def );
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param def The default value.
*
* Obtain the padding of the widget.
*
- * @returns The double value of this property for this widget.
+ * @returns The double value of this property for this widget.
*/
-double rofi_theme_get_double ( const char *name, const char *state, const char *property, double def );
+double rofi_theme_get_double ( const widget *widget, const char *property, double def );
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
- * @param d The drawable to apply color.
+ * @param d The drawable to apply color.
*
* Obtain the color of the widget and applies this to the drawable d.
*
*/
-void rofi_theme_get_color ( const char *name, const char *state, const char *property, cairo_t *d);
+void rofi_theme_get_color ( const widget *widget, const char *property, cairo_t *d);
/**
- * @param name The name class
+ * @param widget The widget to query
* @param state The widget current state
* @param property The property to query.
* @param pad The default value.
*
* Obtain the padding of the widget.
*
- * @returns The padding of this property for this widget.
+ * @returns The padding of this property for this widget.
*/
-Padding rofi_theme_get_padding ( const char *name, const char *state, const char *property, Padding pad );
+Padding rofi_theme_get_padding ( const widget *widget, const char *property, Padding pad );
/**
* @param d The distance handle.
@@ -259,6 +266,13 @@ Padding rofi_theme_get_padding ( const char *name, const char *state, const cha
* @returns the number of pixels this distance represents.
*/
int distance_get_pixel ( Distance d, Orientation ori );
+/**
+ * @param d The distance handle.
+ * @param draw The cairo drawable.
+ *
+ * Set linestyle.
+ */
+void distance_get_linestyle ( Distance d, cairo_t *draw );
#ifdef THEME_CONVERTER
/**