Blender V4.3
wayland_dynload_libdecor.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#ifdef WAYLAND_DYNLOAD_FN
40#elif defined(WAYLAND_DYNLOAD_IFACE)
41/* No interfaces. */
42#else
43
44/* Header guard. */
45# if !defined(__WAYLAND_DYNLOAD_LIBDECOR_H__) && !defined(WAYLAND_DYNLOAD_VALIDATE)
46# define __WAYLAND_DYNLOAD_LIBDECOR_H__
47
48# ifndef WAYLAND_DYNLOAD_VALIDATE
49# include <libdecor.h>
51# endif
52
53/* Support validating declarations against the header. */
54# ifndef WAYLAND_DYNLOAD_VALIDATE
55# define WL_DYN_FN(sym) (*sym)
56# else
57# define WL_DYN_FN(sym) (sym)
58# endif
59
60# ifndef WAYLAND_DYNLOAD_VALIDATE
62# endif
63
65 struct libdecor_configuration *configuration,
66 struct libdecor_frame *frame,
67 int *width,
68 int *height);
70 struct libdecor_configuration *configuration, enum libdecor_window_state *window_state);
71 struct libdecor_frame *WL_DYN_FN(libdecor_decorate)(struct libdecor *context,
72 struct wl_surface *surface,
73 struct libdecor_frame_interface *iface,
74 void *user_data);
75 int WL_DYN_FN(libdecor_dispatch)(struct libdecor *context, int timeout);
76 void WL_DYN_FN(libdecor_frame_commit)(struct libdecor_frame *frame,
77 struct libdecor_state *state,
78 struct libdecor_configuration *configuration);
79 struct xdg_toplevel *WL_DYN_FN(libdecor_frame_get_xdg_toplevel)(struct libdecor_frame *frame);
80 void WL_DYN_FN(libdecor_frame_map)(struct libdecor_frame *frame);
81 void WL_DYN_FN(libdecor_frame_set_app_id)(struct libdecor_frame *frame, const char *app_id);
82 void WL_DYN_FN(libdecor_frame_set_fullscreen)(struct libdecor_frame *frame,
83 struct wl_output *output);
84 void WL_DYN_FN(libdecor_frame_set_maximized)(struct libdecor_frame *frame);
85 void WL_DYN_FN(libdecor_frame_set_min_content_size)(struct libdecor_frame *frame,
86 int content_width,
87 int content_height);
88 void WL_DYN_FN(libdecor_frame_set_minimized)(struct libdecor_frame *frame);
89 void WL_DYN_FN(libdecor_frame_set_parent)(struct libdecor_frame *frame,
90 struct libdecor_frame *parent);
91 void WL_DYN_FN(libdecor_frame_set_title)(struct libdecor_frame *frame, const char *title);
92 void WL_DYN_FN(libdecor_frame_unref)(struct libdecor_frame *frame);
93 void WL_DYN_FN(libdecor_frame_unset_fullscreen)(struct libdecor_frame *frame);
94 void WL_DYN_FN(libdecor_frame_unset_maximized)(struct libdecor_frame *frame);
95 struct libdecor *WL_DYN_FN(libdecor_new)(struct wl_display *display,
96 struct libdecor_interface *iface);
97 void WL_DYN_FN(libdecor_state_free)(struct libdecor_state *state);
98 struct libdecor_state *WL_DYN_FN(libdecor_state_new)(int width, int height);
99 void WL_DYN_FN(libdecor_unref)(struct libdecor *context);
100
101# ifndef WAYLAND_DYNLOAD_VALIDATE
102};
103# endif
104# undef WL_DYN_FN
105
106# ifndef WAYLAND_DYNLOAD_VALIDATE
107# define libdecor_configuration_get_content_size(...) \
108 (*wayland_dynload_libdecor.libdecor_configuration_get_content_size)(__VA_ARGS__)
109# define libdecor_configuration_get_window_state(...) \
110 (*wayland_dynload_libdecor.libdecor_configuration_get_window_state)(__VA_ARGS__)
111# define libdecor_decorate(...) (*wayland_dynload_libdecor.libdecor_decorate)(__VA_ARGS__)
112# define libdecor_dispatch(...) (*wayland_dynload_libdecor.libdecor_dispatch)(__VA_ARGS__)
113# define libdecor_frame_commit(...) \
114 (*wayland_dynload_libdecor.libdecor_frame_commit)(__VA_ARGS__)
115# define libdecor_frame_get_xdg_toplevel(...) \
116 (*wayland_dynload_libdecor.libdecor_frame_get_xdg_toplevel)(__VA_ARGS__)
117# define libdecor_frame_map(...) (*wayland_dynload_libdecor.libdecor_frame_map)(__VA_ARGS__)
118# define libdecor_frame_set_app_id(...) \
119 (*wayland_dynload_libdecor.libdecor_frame_set_app_id)(__VA_ARGS__)
120# define libdecor_frame_set_fullscreen(...) \
121 (*wayland_dynload_libdecor.libdecor_frame_set_fullscreen)(__VA_ARGS__)
122# define libdecor_frame_set_maximized(...) \
123 (*wayland_dynload_libdecor.libdecor_frame_set_maximized)(__VA_ARGS__)
124# define libdecor_frame_set_min_content_size(...) \
125 (*wayland_dynload_libdecor.libdecor_frame_set_min_content_size)(__VA_ARGS__)
126# define libdecor_frame_set_minimized(...) \
127 (*wayland_dynload_libdecor.libdecor_frame_set_minimized)(__VA_ARGS__)
128# define libdecor_frame_set_parent(...) \
129 (*wayland_dynload_libdecor.libdecor_frame_set_parent)(__VA_ARGS__)
130# define libdecor_frame_set_title(...) \
131 (*wayland_dynload_libdecor.libdecor_frame_set_title)(__VA_ARGS__)
132# define libdecor_frame_unref(...) \
133 (*wayland_dynload_libdecor.libdecor_frame_unref)(__VA_ARGS__)
134# define libdecor_frame_unset_fullscreen(...) \
135 (*wayland_dynload_libdecor.libdecor_frame_unset_fullscreen)(__VA_ARGS__)
136# define libdecor_frame_unset_maximized(...) \
137 (*wayland_dynload_libdecor.libdecor_frame_unset_maximized)(__VA_ARGS__)
138# define libdecor_new(...) (*wayland_dynload_libdecor.libdecor_new)(__VA_ARGS__)
139# define libdecor_state_free(...) (*wayland_dynload_libdecor.libdecor_state_free)(__VA_ARGS__)
140# define libdecor_state_new(...) (*wayland_dynload_libdecor.libdecor_state_new)(__VA_ARGS__)
141# define libdecor_unref(...) (*wayland_dynload_libdecor.libdecor_unref)(__VA_ARGS__)
142
143# endif /* !WAYLAND_DYNLOAD_VALIDATE */
144# endif /* !defined(__WAYLAND_DYNLOAD_LIBDECOR_H__) && !defined(WAYLAND_DYNLOAD_VALIDATE) */
145#endif /* !defined(WAYLAND_DYNLOAD_FN) && !defined(WAYLAND_DYNLOAD_IFACE) */
146
147#ifdef __cplusplus
148}
149#endif
#define wl_display
#define wl_surface
#define output
static ulong state[N]
#define WAYLAND_DYNLOAD_FN(symbol)
#define libdecor_frame_set_fullscreen(...)
#define libdecor_frame_map(...)
#define libdecor_state_new(...)
#define WL_DYN_FN(sym)
#define libdecor_frame_unset_fullscreen(...)
struct WaylandDynload_Libdecor wayland_dynload_libdecor
#define libdecor_configuration_get_content_size(...)
#define libdecor_dispatch(...)
#define libdecor_state_free(...)
#define libdecor_configuration_get_window_state(...)
#define libdecor_frame_unref(...)
#define libdecor_frame_unset_maximized(...)
#define libdecor_frame_get_xdg_toplevel(...)
#define libdecor_unref(...)
#define libdecor_frame_set_app_id(...)
#define libdecor_frame_set_min_content_size(...)
#define libdecor_frame_set_parent(...)
#define libdecor_new(...)
#define libdecor_frame_set_title(...)
#define libdecor_frame_set_minimized(...)
#define libdecor_frame_commit(...)
#define libdecor_decorate(...)
#define libdecor_frame_set_maximized(...)