wlmaker
Loading...
Searching...
No Matches
layer_surface.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMAKER_WLCLIENT_LAYER_SURFACE_H__
22#define __WLMAKER_WLCLIENT_LAYER_SURFACE_H__
23
24#include <stdbool.h>
25#include <stdint.h>
26
27#include "wlclient.h" // IWYU pragma: keep
28#include "wlr-layer-shell-unstable-v1-client-protocol.h" // IWYU pragma: keep
29
30#ifdef __cplusplus
31extern "C" {
32#endif // __cplusplus
33
36
43
60 uint32_t layer,
61 const char *namespace_ptr,
62 uint32_t anchor,
63 uint32_t width,
64 uint32_t height);
65
72
84 uint32_t width,
85 uint32_t height);
86
98 int32_t top,
99 int32_t right,
100 int32_t bottom,
101 int32_t left);
102
114 int32_t pixels);
115
123struct wl_surface *wlmcl_layer_surface_wl_surface(
124 wlmcl_layer_surface_t *layer_surface_ptr);
125
134 wlmcl_layer_surface_t *layer_surface_ptr,
135 void (*callback)(void *ud_ptr, uint32_t width, uint32_t height),
136 void *ud_ptr);
137
138#ifdef __cplusplus
139} // extern "C"
140#endif // __cplusplus
141
142#endif /* __WLMAKER_WLCLIENT_LAYER_SURFACE_H__ */
143/* == End of layer_surface.h ================================================= */
void wlmcl_layer_surface_set_exclusive_zone(wlmcl_layer_surface_t *layer_surface_ptr, int32_t pixels)
Definition layer_surface.c:194
void wlmcl_layer_surface_set_margin(wlmcl_layer_surface_t *layer_surface_ptr, int32_t top, int32_t right, int32_t bottom, int32_t left)
Definition layer_surface.c:181
void wlmcl_layer_surface_request_size(wlmcl_layer_surface_t *layer_surface_ptr, uint32_t width, uint32_t height)
Definition layer_surface.c:170
void wlmcl_layer_surface_register_configure_callback(wlmcl_layer_surface_t *layer_surface_ptr, void(*callback)(void *ud_ptr, uint32_t width, uint32_t height), void *ud_ptr)
Definition layer_surface.c:211
void wlmcl_layer_surface_destroy(wlmcl_layer_surface_t *layer_surface_ptr)
Definition layer_surface.c:150
bool wlmcl_layer_shell_supported(wlmcl_client_t *wlclient_ptr)
Definition layer_surface.c:83
wlmcl_layer_surface_t * wlmcl_layer_surface_create(wlmcl_client_t *wlclient_ptr, uint32_t layer, const char *namespace_ptr, uint32_t anchor, uint32_t width, uint32_t height)
Definition layer_surface.c:89
struct wl_surface * wlmcl_layer_surface_wl_surface(wlmcl_layer_surface_t *layer_surface_ptr)
Definition layer_surface.c:205
Definition wlclient.c:59
Definition layer_surface.c:37
uint32_t height
Definition layer_surface.c:49
struct zwlr_layer_surface_v1 * layer_surface_ptr
Definition layer_surface.c:44
uint32_t width
Definition layer_surface.c:47
static wlmcl_client_t * wlclient_ptr
Definition wlmbattery.c:46