github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/wayland/xdg-shell-client-protocol.h (about)

     1  //go:build linux && !android
     2  
     3  // Code generated by internal/wayland/wl/gen; DO NOT EDIT.
     4  // XML file : ./protocols/xdg-shell.xml
     5  
     6  // xdg_shell Protocol Copyright:
     7  // 
     8  // Copyright © 2008-2013 Kristian Høgsberg
     9  // Copyright © 2013      Rafael Antognolli
    10  // Copyright © 2013      Jasper St. Pierre
    11  // Copyright © 2010-2013 Intel Corporation
    12  // Copyright © 2015-2017 Samsung Electronics Co., Ltd
    13  // Copyright © 2015-2017 Red Hat Inc.
    14  // 
    15  // Permission is hereby granted, free of charge, to any person obtaining a
    16  // copy of this software and associated documentation files (the "Software"),
    17  // to deal in the Software without restriction, including without limitation
    18  // the rights to use, copy, modify, merge, publish, distribute, sublicense,
    19  // and/or sell copies of the Software, and to permit persons to whom the
    20  // Software is furnished to do so, subject to the following conditions:
    21  // 
    22  // The above copyright notice and this permission notice (including the next
    23  // paragraph) shall be included in all copies or substantial portions of the
    24  // Software.
    25  // 
    26  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    27  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    28  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
    29  // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    30  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    31  // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    32  // DEALINGS IN THE SOFTWARE.
    33  
    34  #ifndef XDG_SHELL_CLIENT_PROTOCOL_H
    35  #define XDG_SHELL_CLIENT_PROTOCOL_H
    36  #include "wayland-util.h"
    37  
    38  #ifdef  __cplusplus
    39  extern "C" {
    40  #endif
    41  
    42  struct wl_proxy;
    43  
    44  typedef int (*proc_wl_proxy_add_listener)(struct wl_proxy *proxy, void (**implementation)(void), void *data);
    45  typedef struct wl_proxy *(*proc_wl_proxy_marshal_flags)(struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, uint32_t flags, ...);
    46  typedef uint32_t (*proc_wl_proxy_get_version)(struct wl_proxy *proxy);
    47  
    48  struct wl_output;
    49  struct wl_seat;
    50  struct wl_surface;
    51  struct xdg_popup;
    52  struct xdg_positioner;
    53  struct xdg_surface;
    54  struct xdg_toplevel;
    55  struct xdg_wm_base;
    56  
    57  #ifndef XDG_WM_BASE_INTERFACE
    58  #define XDG_WM_BASE_INTERFACE
    59  extern const struct wl_interface xdg_wm_base_interface;
    60  #endif
    61  #ifndef XDG_POSITIONER_INTERFACE
    62  #define XDG_POSITIONER_INTERFACE
    63  extern const struct wl_interface xdg_positioner_interface;
    64  #endif
    65  #ifndef XDG_SURFACE_INTERFACE
    66  #define XDG_SURFACE_INTERFACE
    67  extern const struct wl_interface xdg_surface_interface;
    68  #endif
    69  #ifndef XDG_TOPLEVEL_INTERFACE
    70  #define XDG_TOPLEVEL_INTERFACE
    71  extern const struct wl_interface xdg_toplevel_interface;
    72  #endif
    73  #ifndef XDG_POPUP_INTERFACE
    74  #define XDG_POPUP_INTERFACE
    75  extern const struct wl_interface xdg_popup_interface;
    76  #endif
    77  
    78  struct xdg_wm_base_listener {
    79  	void (*ping)(void *data, struct xdg_wm_base *xdg_wm_base, uint32_t serial);
    80  };
    81  static inline int gamen_xdg_wm_base_add_listener(void *fp, struct xdg_wm_base *xdg_wm_base, const struct xdg_wm_base_listener *listener, void *data) {
    82  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) xdg_wm_base, (void (**)(void)) listener, data);
    83  }
    84  
    85  static inline void gamen_xdg_wm_base_destroy(void *fp1, void *fp2, struct xdg_wm_base *xdg_wm_base) {
    86  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_wm_base, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_wm_base), 1);
    87  }
    88  
    89  static inline struct xdg_positioner *gamen_xdg_wm_base_create_positioner(void *fp1, void *fp2, struct xdg_wm_base *xdg_wm_base) {
    90  	struct wl_proxy *id;
    91  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_wm_base, 1, &xdg_positioner_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_wm_base), 0, NULL);
    92  	return (struct xdg_positioner *) id;
    93  }
    94  
    95  static inline struct xdg_surface *gamen_xdg_wm_base_get_xdg_surface(void *fp1, void *fp2, struct xdg_wm_base *xdg_wm_base, struct wl_surface *surface) {
    96  	struct wl_proxy *id;
    97  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_wm_base, 2, &xdg_surface_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_wm_base), 0, NULL, surface);
    98  	return (struct xdg_surface *) id;
    99  }
   100  
   101  static inline void gamen_xdg_wm_base_pong(void *fp1, void *fp2, struct xdg_wm_base *xdg_wm_base, uint32_t serial) {
   102  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_wm_base, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_wm_base), 0, serial);
   103  }
   104  
   105  static inline void gamen_xdg_positioner_destroy(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner) {
   106  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 1);
   107  }
   108  
   109  static inline void gamen_xdg_positioner_set_size(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, int32_t width, int32_t height) {
   110  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, width, height);
   111  }
   112  
   113  static inline void gamen_xdg_positioner_set_anchor_rect(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, int32_t x, int32_t y, int32_t width, int32_t height) {
   114  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, x, y, width, height);
   115  }
   116  
   117  static inline void gamen_xdg_positioner_set_anchor(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, uint32_t anchor) {
   118  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, anchor);
   119  }
   120  
   121  static inline void gamen_xdg_positioner_set_gravity(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, uint32_t gravity) {
   122  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, gravity);
   123  }
   124  
   125  static inline void gamen_xdg_positioner_set_constraint_adjustment(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, uint32_t constraint_adjustment) {
   126  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 5, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, constraint_adjustment);
   127  }
   128  
   129  static inline void gamen_xdg_positioner_set_offset(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, int32_t x, int32_t y) {
   130  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 6, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, x, y);
   131  }
   132  
   133  static inline void gamen_xdg_positioner_set_reactive(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner) {
   134  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 7, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0);
   135  }
   136  
   137  static inline void gamen_xdg_positioner_set_parent_size(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, int32_t parent_width, int32_t parent_height) {
   138  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 8, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, parent_width, parent_height);
   139  }
   140  
   141  static inline void gamen_xdg_positioner_set_parent_configure(void *fp1, void *fp2, struct xdg_positioner *xdg_positioner, uint32_t serial) {
   142  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_positioner, 9, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_positioner), 0, serial);
   143  }
   144  
   145  struct xdg_surface_listener {
   146  	void (*configure)(void *data, struct xdg_surface *xdg_surface, uint32_t serial);
   147  };
   148  static inline int gamen_xdg_surface_add_listener(void *fp, struct xdg_surface *xdg_surface, const struct xdg_surface_listener *listener, void *data) {
   149  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) xdg_surface, (void (**)(void)) listener, data);
   150  }
   151  
   152  static inline void gamen_xdg_surface_destroy(void *fp1, void *fp2, struct xdg_surface *xdg_surface) {
   153  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_surface, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_surface), 1);
   154  }
   155  
   156  static inline struct xdg_toplevel *gamen_xdg_surface_get_toplevel(void *fp1, void *fp2, struct xdg_surface *xdg_surface) {
   157  	struct wl_proxy *id;
   158  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_surface, 1, &xdg_toplevel_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_surface), 0, NULL);
   159  	return (struct xdg_toplevel *) id;
   160  }
   161  
   162  static inline struct xdg_popup *gamen_xdg_surface_get_popup(void *fp1, void *fp2, struct xdg_surface *xdg_surface, struct xdg_surface *parent, struct xdg_positioner *positioner) {
   163  	struct wl_proxy *id;
   164  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_surface, 2, &xdg_popup_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_surface), 0, NULL, parent, positioner);
   165  	return (struct xdg_popup *) id;
   166  }
   167  
   168  static inline void gamen_xdg_surface_set_window_geometry(void *fp1, void *fp2, struct xdg_surface *xdg_surface, int32_t x, int32_t y, int32_t width, int32_t height) {
   169  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_surface, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_surface), 0, x, y, width, height);
   170  }
   171  
   172  static inline void gamen_xdg_surface_ack_configure(void *fp1, void *fp2, struct xdg_surface *xdg_surface, uint32_t serial) {
   173  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_surface, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_surface), 0, serial);
   174  }
   175  
   176  struct xdg_toplevel_listener {
   177  	void (*configure)(void *data, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height, struct wl_array *states);
   178  	void (*close)(void *data, struct xdg_toplevel *xdg_toplevel);
   179  	void (*configure_bounds)(void *data, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height);
   180  	void (*wm_capabilities)(void *data, struct xdg_toplevel *xdg_toplevel, struct wl_array *capabilities);
   181  };
   182  static inline int gamen_xdg_toplevel_add_listener(void *fp, struct xdg_toplevel *xdg_toplevel, const struct xdg_toplevel_listener *listener, void *data) {
   183  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) xdg_toplevel, (void (**)(void)) listener, data);
   184  }
   185  
   186  static inline void gamen_xdg_toplevel_destroy(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel) {
   187  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 1);
   188  }
   189  
   190  static inline void gamen_xdg_toplevel_set_parent(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, struct xdg_toplevel *parent) {
   191  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, parent);
   192  }
   193  
   194  static inline void gamen_xdg_toplevel_set_title(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, const char *title) {
   195  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, title);
   196  }
   197  
   198  static inline void gamen_xdg_toplevel_set_app_id(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, const char *app_id) {
   199  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, app_id);
   200  }
   201  
   202  static inline void gamen_xdg_toplevel_show_window_menu(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial, int32_t x, int32_t y) {
   203  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, seat, serial, x, y);
   204  }
   205  
   206  static inline void gamen_xdg_toplevel_move(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial) {
   207  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 5, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, seat, serial);
   208  }
   209  
   210  static inline void gamen_xdg_toplevel_resize(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, struct wl_seat *seat, uint32_t serial, uint32_t edges) {
   211  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 6, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, seat, serial, edges);
   212  }
   213  
   214  static inline void gamen_xdg_toplevel_set_max_size(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height) {
   215  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 7, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, width, height);
   216  }
   217  
   218  static inline void gamen_xdg_toplevel_set_min_size(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height) {
   219  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 8, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, width, height);
   220  }
   221  
   222  static inline void gamen_xdg_toplevel_set_maximized(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel) {
   223  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 9, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0);
   224  }
   225  
   226  static inline void gamen_xdg_toplevel_unset_maximized(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel) {
   227  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 10, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0);
   228  }
   229  
   230  static inline void gamen_xdg_toplevel_set_fullscreen(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel, struct wl_output *output) {
   231  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 11, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0, output);
   232  }
   233  
   234  static inline void gamen_xdg_toplevel_unset_fullscreen(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel) {
   235  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 12, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0);
   236  }
   237  
   238  static inline void gamen_xdg_toplevel_set_minimized(void *fp1, void *fp2, struct xdg_toplevel *xdg_toplevel) {
   239  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_toplevel, 13, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_toplevel), 0);
   240  }
   241  
   242  struct xdg_popup_listener {
   243  	void (*configure)(void *data, struct xdg_popup *xdg_popup, int32_t x, int32_t y, int32_t width, int32_t height);
   244  	void (*popup_done)(void *data, struct xdg_popup *xdg_popup);
   245  	void (*repositioned)(void *data, struct xdg_popup *xdg_popup, uint32_t token);
   246  };
   247  static inline int gamen_xdg_popup_add_listener(void *fp, struct xdg_popup *xdg_popup, const struct xdg_popup_listener *listener, void *data) {
   248  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) xdg_popup, (void (**)(void)) listener, data);
   249  }
   250  
   251  static inline void gamen_xdg_popup_destroy(void *fp1, void *fp2, struct xdg_popup *xdg_popup) {
   252  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_popup, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_popup), 1);
   253  }
   254  
   255  static inline void gamen_xdg_popup_grab(void *fp1, void *fp2, struct xdg_popup *xdg_popup, struct wl_seat *seat, uint32_t serial) {
   256  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_popup, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_popup), 0, seat, serial);
   257  }
   258  
   259  static inline void gamen_xdg_popup_reposition(void *fp1, void *fp2, struct xdg_popup *xdg_popup, struct xdg_positioner *positioner, uint32_t token) {
   260  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) xdg_popup, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) xdg_popup), 0, positioner, token);
   261  }
   262  
   263  
   264  #ifdef __cplusplus
   265  }
   266  #endif
   267  
   268  
   269  #endif