diff options
Diffstat (limited to 'include/background-image.h')
-rw-r--r-- | include/background-image.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/background-image.h b/include/background-image.h index a97ef375..5ecd4c53 100644 --- a/include/background-image.h +++ b/include/background-image.h | |||
@@ -1,20 +1,7 @@ | |||
1 | #ifndef _SWAY_BACKGROUND_IMAGE_H | 1 | #ifndef _SWAY_BACKGROUND_IMAGE_H |
2 | #define _SWAY_BACKGROUND_IMAGE_H | 2 | #define _SWAY_BACKGROUND_IMAGE_H |
3 | #include "cairo_util.h" | 3 | #include <cairo.h> |
4 | 4 | ||
5 | enum background_mode { | ||
6 | BACKGROUND_MODE_STRETCH, | ||
7 | BACKGROUND_MODE_FILL, | ||
8 | BACKGROUND_MODE_FIT, | ||
9 | BACKGROUND_MODE_CENTER, | ||
10 | BACKGROUND_MODE_TILE, | ||
11 | BACKGROUND_MODE_SOLID_COLOR, | ||
12 | BACKGROUND_MODE_INVALID, | ||
13 | }; | ||
14 | |||
15 | enum background_mode parse_background_mode(const char *mode); | ||
16 | cairo_surface_t *load_background_image(const char *path); | 5 | cairo_surface_t *load_background_image(const char *path); |
17 | void render_background_image(cairo_t *cairo, cairo_surface_t *image, | ||
18 | enum background_mode mode, int buffer_width, int buffer_height); | ||
19 | 6 | ||
20 | #endif | 7 | #endif |