aboutsummaryrefslogtreecommitdiff
path: root/src/backend/backend_common.h
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-09-19 17:46:20 +1000
committerallusive-dev <[email protected]>2023-09-19 17:46:20 +1000
commit5650d887357bf2a3fac8c5fd4f467bf8795b5fc4 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/backend/backend_common.h
parentUpdate picom.sample.conf (diff)
downloadcompfy-5650d887357bf2a3fac8c5fd4f467bf8795b5fc4.tar.xz
compfy-5650d887357bf2a3fac8c5fd4f467bf8795b5fc4.zip
reset
Diffstat (limited to 'src/backend/backend_common.h')
-rw-r--r--src/backend/backend_common.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/backend/backend_common.h b/src/backend/backend_common.h
deleted file mode 100644
index 5c9c806..0000000
--- a/src/backend/backend_common.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// SPDX-License-Identifier: MPL-2.0
-// Copyright (c) Yuxuan Shui <[email protected]>
-#pragma once
-
-#include <xcb/render.h>
-#include <xcb/xcb_image.h>
-
-#include <stdbool.h>
-
-#include "backend.h"
-#include "config.h"
-#include "region.h"
-
-typedef struct session session_t;
-typedef struct win win;
-typedef struct conv conv;
-typedef struct backend_base backend_t;
-struct backend_operations;
-
-struct dual_kawase_params {
- /// Number of downsample passes
- int iterations;
- /// Pixel offset for down- and upsample
- float offset;
- /// Save area around blur target (@ref resize_width, @ref resize_height)
- int expand;
-};
-
-struct backend_image_inner_base {
- int refcount;
- bool has_alpha;
-};
-
-struct backend_image {
- // Backend dependent inner image data
- struct backend_image_inner_base *inner;
- double opacity;
- double dim;
- double max_brightness;
- // Effective size of the image
- int ewidth, eheight;
- bool color_inverted;
-};
-
-bool build_shadow(xcb_connection_t *, xcb_drawable_t, double opacity, int width,
- int height, const conv *kernel, xcb_render_picture_t shadow_pixel,
- xcb_pixmap_t *pixmap, xcb_render_picture_t *pict);
-
-xcb_render_picture_t solid_picture(xcb_connection_t *, xcb_drawable_t, bool argb,
- double a, double r, double g, double b);
-
-xcb_image_t *
-make_shadow(xcb_connection_t *c, const conv *kernel, double opacity, int width, int height);
-
-/// 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 *);
-
-void *
-default_backend_render_shadow(backend_t *backend_data, int width, int height,
- const conv *kernel, double r, double g, double b, double a);
-
-void init_backend_base(struct backend_base *base, session_t *ps);
-
-struct conv **generate_blur_kernel(enum blur_method method, void *args, int *kernel_count);
-struct dual_kawase_params *generate_dual_kawase_params(void *args);
-
-void *default_clone_image(backend_t *base, const void *image_data, const region_t *reg);
-void *default_resize_image(backend_t *base, const void *image_data, uint16_t desired_width,
- uint16_t desired_height, const region_t *reg);
-bool default_is_image_transparent(backend_t *base attr_unused, void *image_data);
-bool default_set_image_property(backend_t *base attr_unused, enum image_properties op,
- void *image_data, void *arg);
-struct backend_image *default_new_backend_image(int w, int h);