wlmaker
Loading...
Searching...
No Matches
backend.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMBE_BACKEND_H__
21#define __WLMBE_BACKEND_H__
22
23#include <stdbool.h>
24#include <stddef.h>
25#include <libbase/libbase.h>
26#include <libbase/plist.h>
27
28struct wl_display;
29struct wlr_output_layout;
30struct wlr_scene;
31
34
35#ifdef __cplusplus
36extern "C" {
37#endif // __cplusplus
38
53 struct wl_display *wl_display_ptr,
54 struct wlr_scene *wlr_scene_ptr,
55 struct wlr_output_layout *wlr_output_layout_ptr,
56 int width,
57 int height,
58 bspl_dict_t *config_dict_ptr,
59 const char *state_fname_ptr);
60
66void wlmbe_backend_destroy(wlmbe_backend_t *backend_ptr);
67
76void wlmbe_backend_switch_to_vt(wlmbe_backend_t *backend_ptr, unsigned vt_num);
77
79struct wlr_backend *wlmbe_backend_wlr(wlmbe_backend_t *backend_ptr);
81struct wlr_compositor *wlmbe_backend_compositor(wlmbe_backend_t *backend_ptr);
82
91struct wlr_output *wlmbe_primary_output(
92 struct wlr_output_layout *wlr_output_layout_ptr);
93
101size_t wlmbe_num_outputs(struct wlr_output_layout *wlr_output_layout_ptr);
102
104void wlmbe_backend_magnify(wlmbe_backend_t *backend_ptr);
106void wlmbe_backend_reduce(wlmbe_backend_t *backend_ptr);
107
110
112extern const bs_test_case_t wlmbe_backend_test_cases[];
113
114#ifdef __cplusplus
115} // extern "C"
116#endif // __cplusplus
117
118#endif /* __WLMBE_BACKEND_H__ */
119/* == End of backend.h ===================================================== */
size_t wlmbe_num_outputs(struct wlr_output_layout *wlr_output_layout_ptr)
Definition backend.c:382
struct wlr_backend * wlmbe_backend_wlr(wlmbe_backend_t *backend_ptr)
Definition backend.c:357
struct wlr_compositor * wlmbe_backend_compositor(wlmbe_backend_t *backend_ptr)
Definition backend.c:363
const bs_test_case_t wlmbe_backend_test_cases[]
Definition backend.c:644
void wlmbe_backend_switch_to_vt(wlmbe_backend_t *backend_ptr, unsigned vt_num)
Definition backend.c:342
wlmbe_backend_t * wlmbe_backend_create(struct wl_display *wl_display_ptr, struct wlr_scene *wlr_scene_ptr, struct wlr_output_layout *wlr_output_layout_ptr, int width, int height, bspl_dict_t *config_dict_ptr, const char *state_fname_ptr)
Definition backend.c:170
void wlmbe_backend_magnify(wlmbe_backend_t *backend_ptr)
Definition backend.c:388
bool wlmbe_backend_save_ephemeral_output_configs(wlmbe_backend_t *backend_ptr)
Definition backend.c:404
void wlmbe_backend_reduce(wlmbe_backend_t *backend_ptr)
Definition backend.c:396
void wlmbe_backend_destroy(wlmbe_backend_t *backend_ptr)
Definition backend.c:309
struct wlr_output * wlmbe_primary_output(struct wlr_output_layout *wlr_output_layout_ptr)
Definition backend.c:369
Definition backend.c:54
uint32_t width
Definition backend.c:81
struct wlr_scene * wlr_scene_ptr
Definition backend.c:114
char * state_fname_ptr
Definition backend.c:119
struct wlr_output_layout * wlr_output_layout_ptr
Definition backend.c:116
uint32_t height
Definition backend.c:83