Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
wl.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
9
10#ifndef DUNST_WL_H
11#define DUNST_WL_H
12
13#include <stdbool.h>
14#include <cairo.h>
15#include <glib.h>
16
17#include "../output.h"
18
19bool wl_init(void);
20void wl_deinit(void);
21
22window wl_win_create(void);
23void wl_win_destroy(window);
24
25void wl_win_show(window);
26void wl_win_hide(window);
27
28void wl_display_surface(cairo_surface_t *srf, window win, const struct dimensions*);
29cairo_t* wl_win_get_context(window);
30
31const struct screen_info* wl_get_active_screen(void);
32
33bool wl_is_idle(void);
34bool wl_have_fullscreen_window(void);
35
36// Return the dpi scaling of the current output. Everything that's rendered
37// should be multiplied by this value, but don't use it to multiply other
38// values. All sizes should be in unscaled units.
39double wl_get_scale(void);
40
41#endif
Generic graphics backend wrapper.