wlmaker
Loading...
Searching...
No Matches
surface.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_SURFACE_H__
22#define __WLMTK_SURFACE_H__
23
24#include <libbase/libbase.h>
25#include <stdbool.h>
26#include <wayland-server-core.h>
27
31typedef struct _wlmtk_surface_vmt_t wlmtk_surface_vmt_t;
32
33#include "element.h"
34
36struct wlr_seat;
37struct wlr_surface;
38struct wlr_xdg_surface;
39
40#ifdef __cplusplus
41extern "C" {
42#endif // __cplusplus
43
54 struct wlr_surface *wlr_surface_ptr,
55 struct wlr_seat *wlr_seat_ptr);
56
69 struct wlr_xdg_surface *wlr_xdg_surface_ptr,
70 struct wlr_seat *wlr_seat_ptr);
71
77void wlmtk_surface_destroy(wlmtk_surface_t *surface_ptr);
78
79
88
97 wlmtk_surface_t *surface_ptr,
98 int *width_ptr,
99 int *height_ptr);
100
108 wlmtk_surface_t *surface_ptr,
109 bool activated);
110
113
116 wlmtk_surface_t *surface_ptr,
117 struct wl_listener *listener_ptr,
118 wl_notify_func_t handler);
121 wlmtk_surface_t *surface_ptr,
122 struct wl_listener *listener_ptr,
123 wl_notify_func_t handler);
124
126extern const bs_test_set_t wlmtk_surface_test_set;
127
128#ifdef __cplusplus
129} // extern "C"
130#endif // __cplusplus
131
132#endif /* __WLMTK_SURFACE_H__ */
133/* == End of surface.h ===================================================== */
Definition element.h:188
Definition surface.c:46
bool wlmtk_surface_is_activated(wlmtk_surface_t *surface_ptr)
Definition surface.c:247
wlmtk_surface_t * wlmtk_xdg_surface_create(struct wlr_xdg_surface *wlr_xdg_surface_ptr, struct wlr_seat *wlr_seat_ptr)
Definition surface.c:173
void wlmtk_surface_destroy(wlmtk_surface_t *surface_ptr)
Definition surface.c:190
void wlmtk_surface_get_size(wlmtk_surface_t *surface_ptr, int *width_ptr, int *height_ptr)
Definition surface.c:203
struct _wlmtk_surface_vmt_t wlmtk_surface_vmt_t
Definition surface.h:31
wlmtk_element_t * wlmtk_surface_element(wlmtk_surface_t *surface_ptr)
Definition surface.c:197
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:253
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:266
wlmtk_surface_t * wlmtk_surface_create(struct wlr_surface *wlr_surface_ptr, struct wlr_seat *wlr_seat_ptr)
Definition surface.c:156
const bs_test_set_t wlmtk_surface_test_set
Definition surface.c:832
void wlmtk_surface_set_activated(wlmtk_surface_t *surface_ptr, bool activated)
Definition surface.c:213