mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
alpha-modifier-v1: new protocol implementation
References: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/287
This commit is contained in:
parent
8abd43803b
commit
563f100627
4 changed files with 221 additions and 1 deletions
33
include/wlr/types/wlr_alpha_modifier_v1.h
Normal file
33
include/wlr/types/wlr_alpha_modifier_v1.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* 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_ALPHA_MODIFIER_V1_H
|
||||
#define WLR_TYPES_WLR_ALPHA_MODIFIER_V1_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_surface;
|
||||
|
||||
struct wlr_alpha_modifier_surface_v1_state {
|
||||
double multiplier; // between 0 and 1
|
||||
};
|
||||
|
||||
struct wlr_alpha_modifier_v1 {
|
||||
struct wl_global *global;
|
||||
|
||||
// private state
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
};
|
||||
|
||||
struct wlr_alpha_modifier_v1 *wlr_alpha_modifier_v1_create(struct wl_display *display);
|
||||
|
||||
const struct wlr_alpha_modifier_surface_v1_state *wlr_alpha_modifier_v1_get_surface_state(
|
||||
struct wlr_surface *surface);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue