2018-10-03 21:46:18 +00:00
|
|
|
#pragma once
|
2018-12-31 14:27:18 +00:00
|
|
|
#include <xcb/render.h>
|
2019-01-01 11:01:47 +00:00
|
|
|
#include <xcb/xcb_image.h>
|
2018-12-31 14:27:18 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "region.h"
|
|
|
|
|
|
|
|
typedef struct session session_t;
|
|
|
|
typedef struct win win;
|
2019-01-01 11:01:47 +00:00
|
|
|
typedef struct conv conv;
|
2018-10-03 21:46:18 +00:00
|
|
|
|
|
|
|
bool build_shadow(session_t *ps, double opacity, const int width, const int height,
|
|
|
|
xcb_render_picture_t shadow_pixel, xcb_pixmap_t *pixmap,
|
|
|
|
xcb_render_picture_t *pict);
|
|
|
|
|
|
|
|
xcb_render_picture_t
|
|
|
|
solid_picture(session_t *ps, bool argb, double a, double r, double g, double b);
|
2018-12-31 14:27:18 +00:00
|
|
|
|
|
|
|
void paint_all_new(session_t *ps, region_t *region, win *const t);
|
2019-01-01 11:01:47 +00:00
|
|
|
|
|
|
|
xcb_image_t *make_shadow(xcb_connection_t *c, const conv *kernel,
|
|
|
|
const double *shadow_sum, double opacity, int width, int height);
|