mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-11 13:29:45 -05:00
single-pixel-buffer-v1: new protocol implementation
This implements the single-pixel-buffer-v1 protocol [1], to allow clients to create 1x1 buffers with a single color. [1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/104
This commit is contained in:
parent
f1e05a6493
commit
b24b50ec0c
4 changed files with 193 additions and 0 deletions
19
include/wlr/types/wlr_single_pixel_buffer_v1.h
Normal file
19
include/wlr/types/wlr_single_pixel_buffer_v1.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* 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_SINGLE_PIXEL_BUFFER_V1
|
||||
#define WLR_TYPES_WLR_SINGLE_PIXEL_BUFFER_V1
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_single_pixel_buffer_manager_v1;
|
||||
|
||||
struct wlr_single_pixel_buffer_manager_v1 *wlr_single_pixel_buffer_manager_v1_create(
|
||||
struct wl_display *display);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue