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
|
|
|
|
2019-01-01 11:35:59 +00:00
|
|
|
xcb_image_t *
|
|
|
|
make_shadow(xcb_connection_t *c, const conv *kernel, double opacity, int width, int height);
|
2019-02-03 18:41:02 +00:00
|
|
|
|
|
|
|
/// The default implementation of `is_win_transparent`, it simply looks at win::mode. So
|
|
|
|
/// this is not suitable for backends that alter the content of windows
|
|
|
|
bool default_is_win_transparent(void *, win *, void *);
|
|
|
|
|
|
|
|
/// The default implementation of `is_frame_transparent`, it uses win::frame_opacity. Same
|
|
|
|
/// caveat as `default_is_win_transparent` applies.
|
|
|
|
bool default_is_frame_transparent(void *, win *, void *);
|