wlmaker
Loading...
Searching...
No Matches
surface.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_SURFACE_H__
21#define __WLMTK_SURFACE_H__
22
23#include <libbase/libbase.h>
24
28typedef struct _wlmtk_surface_vmt_t wlmtk_surface_vmt_t;
31
32#include "element.h"
33#include "env.h"
34#include "window.h"
35
37struct wlr_surface;
39struct wlr_scene_surface;
40
41#ifdef __cplusplus
42extern "C" {
43#endif // __cplusplus
44
77
79typedef wlmtk_surface_t *(*wlmtk_surface_create_t)(
80 struct wlr_surface *wlr_surface_ptr,
81 wlmtk_env_t *env_ptr);
82
93 struct wlr_surface *wlr_surface_ptr,
94 wlmtk_env_t *env_ptr);
95
101void wlmtk_surface_destroy(wlmtk_surface_t *surface_ptr);
102
103
112
121 wlmtk_surface_t *surface_ptr,
122 int *width_ptr,
123 int *height_ptr);
124
132 wlmtk_surface_t *surface_ptr,
133 bool activated);
134
137 wlmtk_surface_t *surface_ptr,
138 struct wl_listener *listener_ptr,
139 wl_notify_func_t handler);
142 wlmtk_surface_t *surface_ptr,
143 struct wl_listener *listener_ptr,
144 wl_notify_func_t handler);
145
147extern const bs_test_case_t wlmtk_surface_test_cases[];
148
154
157
160 struct wlr_surface *wlr_surface_ptr,
161 wlmtk_env_t *env_ptr);
162
165 wlmtk_fake_surface_t *fake_surface_ptr,
166 int width,
167 int height);
168
171
172#ifdef __cplusplus
173} // extern "C"
174#endif // __cplusplus
175
176#endif /* __WLMTK_SURFACE_H__ */
177/* == End of surface.h ===================================================== */
Definition element.h:172
Definition element.h:54
Definition env.c:32
Definition surface.h:150
wlmtk_surface_t surface
Definition surface.h:152
Definition surface.h:46
struct wlr_scene_tree * wlr_scene_tree_ptr
Definition surface.h:58
int committed_height
Definition surface.h:65
bool activated
Definition surface.h:75
struct wl_listener surface_map_listener
Definition surface.h:70
struct wlr_surface * wlr_surface_ptr
Definition surface.h:55
wlmtk_env_t * env_ptr
Definition surface.h:52
wlmtk_element_vmt_t orig_super_element_vmt
Definition surface.h:50
struct wl_listener surface_unmap_listener
Definition surface.h:72
int committed_width
Definition surface.h:63
struct wl_listener wlr_scene_tree_node_destroy_listener
Definition surface.h:60
struct wl_listener surface_commit_listener
Definition surface.h:68
wlmtk_element_t super_element
Definition surface.h:48
void wlmtk_surface_destroy(wlmtk_surface_t *surface_ptr)
Definition surface.c:129
void wlmtk_surface_get_size(wlmtk_surface_t *surface_ptr, int *width_ptr, int *height_ptr)
Definition surface.c:142
void wlmtk_fake_surface_destroy(wlmtk_fake_surface_t *fake_surface_ptr)
Definition surface.c:773
struct _wlmtk_surface_vmt_t wlmtk_surface_vmt_t
Definition surface.h:28
void wlmtk_fake_surface_commit_size(wlmtk_fake_surface_t *fake_surface_ptr, int width, int height)
Definition surface.c:764
wlmtk_surface_t * wlmtk_surface_create(struct wlr_surface *wlr_surface_ptr, wlmtk_env_t *env_ptr)
Definition surface.c:113
wlmtk_element_t * wlmtk_surface_element(wlmtk_surface_t *surface_ptr)
Definition surface.c:136
void wlmtk_surface_connect_map_listener_signal(wlmtk_surface_t *surface_ptr, struct wl_listener *listener_ptr, wl_notify_func_t handler)
Definition surface.c:188
wlmtk_surface_t * wlmtk_fake_surface_create_inject(struct wlr_surface *wlr_surface_ptr, wlmtk_env_t *env_ptr)
Definition surface.c:754
const bs_test_case_t wlmtk_surface_test_cases[]
Definition surface.c:845
wlmtk_fake_surface_t * wlmtk_fake_surface_create(void)
Definition surface.c:740
void wlmtk_surface_connect_unmap_listener_signal(wlmtk_surface_t *surface_ptr, struct wl_listener *listener_ptr, wl_notify_func_t handler)
Definition surface.c:201
void wlmtk_surface_set_activated(wlmtk_surface_t *surface_ptr, bool activated)
Definition surface.c:152