diff options
author | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 18:50:13 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin@gmail.com> | 2016-07-30 18:50:13 -0500 |
commit | 98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972 (patch) | |
tree | a7acb9aab8520040d49be04184d70984a66b95e7 /include | |
parent | Merge pull request #803 from zandrmartin/x11-pids (diff) | |
download | sway-98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972.tar.gz sway-98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972.tar.zst sway-98aa59fdda5fcc9a589e93f7c6ef40d3eaee3972.zip |
implement solid color rendering for swaybg
Diffstat (limited to 'include')
-rw-r--r-- | include/bar/config.h | 6 | ||||
-rw-r--r-- | include/config.h | 2 | ||||
-rw-r--r-- | include/util.h | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/include/bar/config.h b/include/bar/config.h index c957caa7..934116ca 100644 --- a/include/bar/config.h +++ b/include/bar/config.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | 6 | ||
7 | #include "list.h" | 7 | #include "list.h" |
8 | #include "util.h" | ||
8 | 9 | ||
9 | /** | 10 | /** |
10 | * Colors for a box with background, border and text colors. | 11 | * Colors for a box with background, border and text colors. |
@@ -48,11 +49,6 @@ struct config { | |||
48 | }; | 49 | }; |
49 | 50 | ||
50 | /** | 51 | /** |
51 | * Parse colors defined as hex string to uint32_t. | ||
52 | */ | ||
53 | uint32_t parse_color(const char *color); | ||
54 | |||
55 | /** | ||
56 | * Parse position top|bottom|left|right. | 52 | * Parse position top|bottom|left|right. |
57 | */ | 53 | */ |
58 | uint32_t parse_position(const char *position); | 54 | uint32_t parse_position(const char *position); |
diff --git a/include/config.h b/include/config.h index 5e1c123e..56deaf01 100644 --- a/include/config.h +++ b/include/config.h | |||
@@ -81,7 +81,7 @@ struct output_config { | |||
81 | int enabled; | 81 | int enabled; |
82 | int width, height; | 82 | int width, height; |
83 | int x, y; | 83 | int x, y; |
84 | int scale; | 84 | int scale; |
85 | char *background; | 85 | char *background; |
86 | char *background_option; | 86 | char *background_option; |
87 | }; | 87 | }; |
diff --git a/include/util.h b/include/util.h index 6f21bff0..e33a08f7 100644 --- a/include/util.h +++ b/include/util.h | |||
@@ -44,4 +44,10 @@ int get_modifier_names(const char **names, uint32_t modifier_masks); | |||
44 | */ | 44 | */ |
45 | pid_t get_parent_pid(pid_t pid); | 45 | pid_t get_parent_pid(pid_t pid); |
46 | 46 | ||
47 | /** | ||
48 | * Given a string that represents an RGB(A) color, return a uint32_t | ||
49 | * version of the color. | ||
50 | */ | ||
51 | uint32_t parse_color(const char *color); | ||
52 | |||
47 | #endif | 53 | #endif |