Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
pool-buffer.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause */
9
10
#ifndef DUNST_POOL_BUFFER_H
11
#define DUNST_POOL_BUFFER_H
12
13
#include <cairo/cairo.h>
14
#include <pango/pangocairo.h>
15
#include <stdbool.h>
16
#include <stdint.h>
17
#include <wayland-client.h>
18
19
struct
pool_buffer
{
20
struct
wl_buffer *buffer;
21
cairo_surface_t *surface;
22
cairo_t *cairo;
23
PangoContext *pango;
24
uint32_t width, height;
25
void
*data;
26
size_t
size;
27
bool
busy;
28
};
29
30
struct
pool_buffer
*get_next_buffer(
struct
wl_shm *shm,
31
struct
pool_buffer
pool[
static
2], uint32_t width, uint32_t height);
32
void
finish_buffer(
struct
pool_buffer
*buffer);
33
34
#endif
pool_buffer
Definition
pool-buffer.h:19
src
wayland
pool-buffer.h
Generated on Wed Jan 28 2026 22:21:34 for Dunst by
1.13.2