Add make_shadow and paint_all_new to backend_common.c

Also made make_shadow private in render.c

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-31 14:27:18 +00:00
parent 3b2e149369
commit 86713c8170
7 changed files with 245 additions and 10 deletions

View File

@@ -1,6 +1,13 @@
#pragma once
#include <xcb/xcb_image.h>
#include "common.h"
#include <xcb/render.h>
#include <stdbool.h>
#include "region.h"
typedef struct session session_t;
typedef struct win win;
bool build_shadow(session_t *ps, double opacity, const int width, const int height,
xcb_render_picture_t shadow_pixel, xcb_pixmap_t *pixmap,
@@ -8,3 +15,5 @@ bool build_shadow(session_t *ps, double opacity, const int width, const int heig
xcb_render_picture_t
solid_picture(session_t *ps, bool argb, double a, double r, double g, double b);
void paint_all_new(session_t *ps, region_t *region, win *const t);