wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
xwl.h
Go to the documentation of this file.
1
/* ========================================================================= */
22
#ifndef __XWL_H__
23
#define __XWL_H__
24
25
#if defined(WLMAKER_HAVE_XWAYLAND)
26
#include <stdbool.h>
27
#include <xcb/xproto.h>
28
29
struct
wlr_xwayland_surface;
30
31
#endif
// defined(WLMAKER_HAVE_XWAYLAND)
32
34
typedef
struct
_wlmaker_xwl_t
wlmaker_xwl_t
;
35
#include "
server.h
"
// IWYU pragma: keep
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
// __cplusplus
40
41
#if defined(WLMAKER_HAVE_XWAYLAND)
42
44
typedef
enum
{
45
NET_WM_WINDOW_TYPE_NORMAL,
46
NET_WM_WINDOW_TYPE_DIALOG,
47
NET_WM_WINDOW_TYPE_UTILITY,
48
NET_WM_WINDOW_TYPE_TOOLBAR,
49
NET_WM_WINDOW_TYPE_SPLASH,
50
NET_WM_WINDOW_TYPE_MENU,
51
NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
52
NET_WM_WINDOW_TYPE_POPUP_MENU,
53
NET_WM_WINDOW_TYPE_TOOLTIP,
54
NET_WM_WINDOW_TYPE_NOTIFICATION,
55
56
// Sentinel element.
57
XWL_MAX_ATOM_ID
58
}
xwl_atom_identifier_t
;
59
#endif
// defined(WLMAKER_HAVE_XWAYLAND)
60
69
wlmaker_xwl_t
*
wlmaker_xwl_create
(
wlmaker_server_t
*
server_ptr
);
70
76
void
wlmaker_xwl_destroy
(
wlmaker_xwl_t
*xwl_ptr);
77
78
#if defined(WLMAKER_HAVE_XWAYLAND)
79
90
bool
xwl_is_window_type
(
91
wlmaker_xwl_t
*xwl_ptr,
92
struct
wlr_xwayland_surface *wlr_xwayland_surface_ptr,
93
const
xwl_atom_identifier_t
*atom_identifiers);
94
96
const
char
*
xwl_atom_name
(
97
wlmaker_xwl_t
*xwl_ptr,
98
xcb_atom_t atom);
99
100
#ifdef __cplusplus
101
}
// extern "C"
102
#endif
// __cplusplus
103
104
#endif
// defined(WLMAKER_HAVE_XWAYLAND)
105
#endif
/* __XWL_H__ */
106
/* == End of xwl.h ========================================================= */
server.h
wlmaker_server_t
struct _wlmaker_server_t wlmaker_server_t
Definition
server.h:36
_wlmaker_xwl_t
Definition
xwl.c:87
_wlmaker_xwl_t::server_ptr
wlmaker_server_t * server_ptr
Definition
xwl.c:89
xwl_atom_identifier_t
xwl_atom_identifier_t
Definition
xwl.h:44
wlmaker_xwl_t
struct _wlmaker_xwl_t wlmaker_xwl_t
Definition
xwl.h:34
xwl_atom_name
const char * xwl_atom_name(wlmaker_xwl_t *xwl_ptr, xcb_atom_t atom)
Definition
xwl.c:218
xwl_is_window_type
bool xwl_is_window_type(wlmaker_xwl_t *xwl_ptr, struct wlr_xwayland_surface *wlr_xwayland_surface_ptr, const xwl_atom_identifier_t *atom_identifiers)
Definition
xwl.c:199
wlmaker_xwl_create
wlmaker_xwl_t * wlmaker_xwl_create(wlmaker_server_t *server_ptr)
Definition
xwl.c:134
wlmaker_xwl_destroy
void wlmaker_xwl_destroy(wlmaker_xwl_t *xwl_ptr)
Definition
xwl.c:171
Generated by
1.17.0