wlmaker
Loading...
Searching...
No Matches
output.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMBE_OUTPUT_H__
21#define __WLMBE_OUTPUT_H__
22
23#include <libbase/libbase.h>
24#include <stdbool.h>
25
26#include "output_config.h"
27
30
31struct wlr_output;
32struct wlr_allocator;
33struct wlr_renderer;
34struct wlr_scene;
35
36#ifdef __cplusplus
37extern "C" {
38#endif // __cplusplus
39
54 struct wlr_output *wlr_output_ptr,
55 struct wlr_allocator *wlr_allocator_ptr,
56 struct wlr_renderer *wlr_renderer_ptr,
57 struct wlr_scene *wlr_scene_ptr,
58 wlmbe_output_config_t *config_ptr,
59 int width,
60 int height);
61
67void wlmbe_output_destroy(wlmbe_output_t *output_ptr);
68
70const char *wlmbe_output_description(wlmbe_output_t *output_ptr);
71
73struct wlr_output *wlmbe_wlr_output_from_output(wlmbe_output_t *output_ptr);
74
84 wlmbe_output_t *output_ptr);
85
88 wlmbe_output_t *output_ptr,
89 int x,
90 int y,
91 bool has_position);
92
94bs_dllist_node_t *wlmbe_dlnode_from_output(wlmbe_output_t *output_ptr);
95
97wlmbe_output_t *wlmbe_output_from_dlnode(bs_dllist_node_t *dlnode_ptr);
98
99#ifdef __cplusplus
100} // extern "C"
101#endif // __cplusplus
102
103#endif /* __WLMBE_OUTPUT_H__ */
104/* == End of output.h ====================================================== */
wlmbe_output_t * wlmbe_output_from_dlnode(bs_dllist_node_t *dlnode_ptr)
Definition output.c:258
struct wlr_output * wlmbe_wlr_output_from_output(wlmbe_output_t *output_ptr)
Definition output.c:226
bs_dllist_node_t * wlmbe_dlnode_from_output(wlmbe_output_t *output_ptr)
Definition output.c:252
void wlmbe_output_destroy(wlmbe_output_t *output_ptr)
Definition output.c:204
wlmbe_output_t * wlmbe_output_create(struct wlr_output *wlr_output_ptr, struct wlr_allocator *wlr_allocator_ptr, struct wlr_renderer *wlr_renderer_ptr, struct wlr_scene *wlr_scene_ptr, wlmbe_output_config_t *config_ptr, int width, int height)
Definition output.c:81
const wlmbe_output_config_attributes_t * wlmbe_output_attributes(wlmbe_output_t *output_ptr)
Definition output.c:232
const char * wlmbe_output_description(wlmbe_output_t *output_ptr)
Definition output.c:220
void wlmbe_output_update_attributes(wlmbe_output_t *output_ptr, int x, int y, bool has_position)
Definition output.c:239
Definition output_config.c:27
Definition output.c:43
Definition output_config.h:79