summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-03 19:23:09 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-03 19:23:09 +0100
commitf9fc01b176f177bc744aaba643c9a12d0b511e30 (patch)
tree130f5622f1c43028272414162160c13c2c6b00ae /include
parent7600668bffacb5844e9e6064cb7b75c9aa737230 (diff)
Add percentage option to border,padding
Diffstat (limited to 'include')
-rw-r--r--include/theme.h12
-rw-r--r--include/view.h7
2 files changed, 18 insertions, 1 deletions
diff --git a/include/theme.h b/include/theme.h
index af6a2f9b..8733df2a 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -11,6 +11,8 @@ typedef enum {
PW_PX,
/** PixelWidth in EM. */
PW_EM,
+ /** PixelWidget in percentage */
+ PW_PERCENT,
} PixelWidth;
/**
@@ -24,6 +26,13 @@ typedef struct {
} Distance;
/**
+ * Type of orientation.
+ */
+typedef enum {
+ ORIENTATION_VERTICAL,
+ ORIENTATION_HORIZONTAL
+} Orientation;
+/**
* Type of property
*/
typedef enum {
@@ -251,11 +260,12 @@ Padding rofi_theme_get_padding ( const char *wclass, const char *name, const ch
/**
* @param d The distance handle.
+ * @param ori The orientation.
*
* Convert Distance into pixels.
* @returns the number of pixels this distance represents.
*/
-int distance_get_pixel ( Distance d );
+int distance_get_pixel ( Distance d, Orientation ori );
#ifdef THEME_CONVERTER
/**
diff --git a/include/view.h b/include/view.h
index c6322af0..3a482310 100644
--- a/include/view.h
+++ b/include/view.h
@@ -248,5 +248,12 @@ void rofi_view_workers_initialize ( void );
* Stop all threads and free the resources used by the threadpool
*/
void rofi_view_workers_finalize ( void );
+
+/**
+ * Return the current monitor workarea.
+ *
+ * @returns the current monitor workarea
+ */
+void rofi_view_get_current_monitor ( int *width, int *height );
/**@}*/
#endif