wlmaker
Loading...
Searching...
No Matches
xdg_toplevel.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMAKER_WLCLIENT_XDG_TOPLEVEL_H__
22#define __WLMAKER_WLCLIENT_XDG_TOPLEVEL_H__
23
24#include <stdbool.h>
25#include <stdint.h>
26
27#include "wlclient.h" // IWYU pragma: keep
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
35
48 const char *title_ptr,
49 unsigned width,
50 unsigned height);
51
58
65
76 wlmcl_xdg_toplevel_t *toplevel_ptr,
77 bool enabled);
78
86struct wl_surface *wlmcl_xdg_toplevel_wl_surface(
87 wlmcl_xdg_toplevel_t *toplevel_ptr);
88
97 wlmcl_xdg_toplevel_t *toplevel_ptr,
98 void (*callback)(void *ud_ptr, uint32_t width, uint32_t height),
99 void *ud_ptr);
100
110 wlmcl_xdg_toplevel_t *toplevel_ptr,
111 void (*callback)(double x, double y, void *ud_ptr),
112 void *callback_ud_ptr);
113
114#ifdef __cplusplus
115} // extern "C"
116#endif // __cplusplus
117
118#endif /* __WLMAKER_WLCLIENT_XDG_TOPLEVEL_H__ */
119/* == End of xdg_toplevel.h ================================================== */
Definition wlclient.c:59
Definition xdg_toplevel.c:43
char * title_ptr
Definition xdg_toplevel.c:48
uint32_t width
Definition xdg_toplevel.c:63
uint32_t height
Definition xdg_toplevel.c:65
wlmcl_xdg_toplevel_t * wlmcl_xdg_toplevel_create(wlmcl_client_t *wlclient_ptr, const char *title_ptr, unsigned width, unsigned height)
Definition xdg_toplevel.c:159
struct wl_surface * wlmcl_xdg_toplevel_wl_surface(wlmcl_xdg_toplevel_t *toplevel_ptr)
Definition xdg_toplevel.c:337
void wlmcl_xdg_toplevel_register_configure_callback(wlmcl_xdg_toplevel_t *toplevel_ptr, void(*callback)(void *ud_ptr, uint32_t width, uint32_t height), void *ud_ptr)
Definition xdg_toplevel.c:343
void wlmcl_xdg_toplevel_destroy(wlmcl_xdg_toplevel_t *toplevel_ptr)
Definition xdg_toplevel.c:279
bool wlmcl_xdg_supported(wlmcl_client_t *wlclient_ptr)
Definition xdg_toplevel.c:314
bool wlmcl_xdg_decoration_set_server_side(wlmcl_xdg_toplevel_t *toplevel_ptr, bool enabled)
Definition xdg_toplevel.c:320
void wlmcl_xdg_toplevel_register_position_callback(wlmcl_xdg_toplevel_t *toplevel_ptr, void(*callback)(double x, double y, void *ud_ptr), void *callback_ud_ptr)
Definition xdg_toplevel.c:356
static wlmcl_client_t * wlclient_ptr
Definition wlmbattery.c:46