summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/theme.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/theme.h b/include/theme.h
index 0a7c5fc3..2196887e 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -32,6 +32,24 @@
#include <widgets/widget.h>
#include "rofi-types.h"
+
+typedef enum {
+ THEME_MEDIA_TYPE_MIN_WIDTH,
+ THEME_MEDIA_TYPE_MAX_WIDTH,
+ THEME_MEDIA_TYPE_MIN_HEIGHT,
+ THEME_MEDIA_TYPE_MAX_HEIGHT,
+ THEME_MEDIA_TYPE_MON_ID,
+ THEME_MEDIA_TYPE_MIN_ASPECT_RATIO,
+ THEME_MEDIA_TYPE_MAX_ASPECT_RATIO,
+ THEME_MEDIA_TYPE_INVALID,
+} ThemeMediaType;
+
+
+typedef struct ThemeMedia {
+ ThemeMediaType type;
+ double value;
+} ThemeMedia;
+
/**
* ThemeWidget.
*/
@@ -43,6 +61,8 @@ typedef struct ThemeWidget
unsigned int num_widgets;
struct ThemeWidget **widgets;
+ ThemeMedia *media;
+
GHashTable *properties;
struct ThemeWidget *parent;
@@ -323,4 +343,11 @@ char *helper_get_theme_path ( const char *file );
* @returns full path to file.
*/
char * rofi_theme_parse_prepare_file ( const char *file, const char *parent_file );
+
+/**
+ * Process conditionals.
+ */
+void rofi_theme_parse_process_conditionals ( void );
+void rofi_theme_parse_merge_widgets ( ThemeWidget *parent, ThemeWidget *child );
+ThemeMediaType rofi_theme_parse_media_type ( const char *type );
#endif