#ifndef C8_PATTERN_H
#define C8_PATTERN_H

#include <stdbool.h>
#include <stdint.h>
#include <cairo.h>
#include "background.h"

/* The Start background: bg with its pattern (circles, lines, squares,
 * none) in a lighter shade, over w x h. The lock screen and the SDDM
 * theme draw the same. */
void c8_draw_pattern(cairo_t *cr, int w, int h, uint32_t bg,
	const char *pattern);

/* The picture chosen for Start or the lock screen (background.h, set in
 * Photos) covering w x h; false when there is none or it can't be read */
bool c8_draw_picture(cairo_t *cr, int w, int h, enum c8_background which);
/* That picture, else the colour and pattern */
void c8_draw_background(cairo_t *cr, int w, int h, uint32_t bg,
	const char *pattern, enum c8_background which);

#endif
