summaryrefslogtreecommitdiffstats
path: root/include/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/theme.h')
-rw-r--r--include/theme.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/include/theme.h b/include/theme.h
index e8c98810..496c2626 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -32,19 +32,31 @@
#include <widgets/widget.h>
#include "rofi-types.h"
-
+/**
+ * Describe the media constraint type.
+ */
typedef enum {
+ /** Minimum width constraint. */
THEME_MEDIA_TYPE_MIN_WIDTH,
+ /** Maximum width constraint. */
THEME_MEDIA_TYPE_MAX_WIDTH,
+ /** Minimum height constraint. */
THEME_MEDIA_TYPE_MIN_HEIGHT,
+ /** Maximum height constraint. */
THEME_MEDIA_TYPE_MAX_HEIGHT,
+ /** Monitor id constraint. */
THEME_MEDIA_TYPE_MON_ID,
+ /** Minimum aspect ratio constraint. */
THEME_MEDIA_TYPE_MIN_ASPECT_RATIO,
+ /** Maximum aspect ratio constraint. */
THEME_MEDIA_TYPE_MAX_ASPECT_RATIO,
+ /** Invalid entry. */
THEME_MEDIA_TYPE_INVALID,
} ThemeMediaType;
-
+/**
+ * Theme Media description.
+ */
typedef struct ThemeMedia {
ThemeMediaType type;
double value;
@@ -348,6 +360,18 @@ char * rofi_theme_parse_prepare_file ( const char *file, const char *parent_file
* Process conditionals.
*/
void rofi_theme_parse_process_conditionals ( void );
+
+/**
+ * @parent Target theme tree
+ * @parent child source theme three
+ *
+ * Merge all the settings from child into parent.
+ */
void rofi_theme_parse_merge_widgets ( ThemeWidget *parent, ThemeWidget *child );
+/**
+ * @type the media type to parse.
+ *
+ * Returns the media type described by type.
+ */
ThemeMediaType rofi_theme_parse_media_type ( const char *type );
#endif