mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
a28730edee
swaylock will use it too
20 lines
484 B
C
20 lines
484 B
C
#ifndef _SWAY_BACKGROUND_IMAGE_H
|
|
#define _SWAY_BACKGROUND_IMAGE_H
|
|
#include "cairo.h"
|
|
|
|
enum background_mode {
|
|
BACKGROUND_MODE_STRETCH,
|
|
BACKGROUND_MODE_FILL,
|
|
BACKGROUND_MODE_FIT,
|
|
BACKGROUND_MODE_CENTER,
|
|
BACKGROUND_MODE_TILE,
|
|
BACKGROUND_MODE_SOLID_COLOR,
|
|
};
|
|
|
|
cairo_surface_t *load_background_image(const char *path);
|
|
void render_background_image(cairo_t *cairo, cairo_surface_t *image,
|
|
enum background_mode mode, int buffer_width, int buffer_height,
|
|
int buffer_scale);
|
|
|
|
#endif
|