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#include <stdbool.h>
25#include <wayland-server-core.h>
26
30typedef struct _wlmtk_surface_vmt_t wlmtk_surface_vmt_t;
31
32#include "element.h"
33
35struct wlr_seat;
36struct wlr_surface;
37struct wlr_xdg_surface;
38
39#ifdef __cplusplus
40extern "C" {
41#endif // __cplusplus
42
53 struct wlr_surface *wlr_surface_ptr,
54 struct wlr_seat *wlr_seat_ptr);
55
68 struct wlr_xdg_surface *wlr_xdg_surface_ptr,
69 struct wlr_seat *wlr_seat_ptr);
70
76void wlmtk_surface_destroy(wlmtk_surface_t *surface_ptr);
77
78
87
96 wlmtk_surface_t *surface_ptr,
97 int *width_ptr,
98 int *height_ptr);
99
107 wlmtk_surface_t *surface_ptr,
108 bool activated);
109
112
115 wlmtk_surface_t *surface_ptr,
116 struct wl_listener *listener_ptr,
117 wl_notify_func_t handler);
120 wlmtk_surface_t *surface_ptr,
121 struct wl_listener *listener_ptr,
122 wl_notify_func_t handler);
123
125extern const bs_test_case_t wlmtk_surface_test_cases[];
126
127#ifdef __cplusplus
128} // extern "C"
129#endif // __cplusplus
130
131#endif /* __WLMTK_SURFACE_H__ */
132/* == End of surface.h ===================================================== */
Definition element.h:181
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:30
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
const bs_test_case_t wlmtk_surface_test_cases[]
Definition surface.c:833
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
void wlmtk_surface_set_activated(wlmtk_surface_t *surface_ptr, bool activated)
Definition surface.c:213