aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2022-04-05 09:52:49 +0200
committerSimon Ser <contact@emersion.fr>2023-02-08 16:31:39 +0100
commitefb8df8b22ab33208f8daf8ed912757a4acafd51 (patch)
treed8e0325179ea84340e56eb326ff3cbb740b5d4fd /include/wlr
parentc6ecbf09b527dabb37e814d2207249ee95f5d80f (diff)
wp-fractional-scale-v1: new protocol implementation
This implements the WIP wp-fractional-scale-v1 protocol.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_fractional_scale_v1.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_fractional_scale_v1.h b/include/wlr/types/wlr_fractional_scale_v1.h
new file mode 100644
index 00000000..9126360d
--- /dev/null
+++ b/include/wlr/types/wlr_fractional_scale_v1.h
@@ -0,0 +1,34 @@
+/*
+ * This an unstable interface of wlroots. No guarantees are made regarding the
+ * future consistency of this API.
+ */
+#ifndef WLR_USE_UNSTABLE
+#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
+#endif
+
+#ifndef WLR_TYPES_WLR_FRACTIONAL_SCALE_V1_H
+#define WLR_TYPES_WLR_FRACTIONAL_SCALE_V1_H
+
+#include <wayland-server-core.h>
+
+struct wlr_surface;
+
+struct wlr_fractional_scale_manager_v1 {
+ struct wl_global *global;
+
+ struct {
+ struct wl_signal destroy;
+ } events;
+
+ // private state
+
+ struct wl_listener display_destroy;
+};
+
+void wlr_fractional_scale_v1_notify_scale(
+ struct wlr_surface *surface, double scale);
+
+struct wlr_fractional_scale_manager_v1 *wlr_fractional_scale_manager_v1_create(
+ struct wl_display *display, uint32_t version);
+
+#endif