KWayland

wayland-xdg-shell-v5-server-protocol.h
1 /*
2  * This file is *NOT* autogenerated.
3  * It contains XDGShellV5 with method names modified to be not clashing with XDG stable
4  * Strings inside the sent protocol remain the same
5  */
6 #ifndef ZXDG_SHELL_V5_UNSTABLE_V5_SERVER_PROTOCOL_H
7 #define ZXDG_SHELL_V5_UNSTABLE_V5_SERVER_PROTOCOL_H
8 
9 #include <stdint.h>
10 #include <stddef.h>
11 #include "wayland-server.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 struct wl_client;
18 struct wl_resource;
19 
37 struct wl_output;
38 struct wl_seat;
39 struct wl_surface;
40 struct zxdg_popup_v5;
41 struct zxdg_shell_v5;
42 struct zxdg_surface_v5;
43 
63 extern const struct wl_interface zxdg_shell_v5_interface;
113 extern const struct wl_interface zxdg_surface_v5_interface;
227 extern const struct wl_interface zxdg_popup_v5_interface;
228 
229 #ifndef ZXDG_SHELL_V5_VERSION_ENUM
230 #define ZXDG_SHELL_V5_VERSION_ENUM
231 
240 enum zxdg_shell_v5_version {
245 };
246 #endif /* ZXDG_SHELL_V5_VERSION_ENUM */
247 
248 #ifndef ZXDG_SHELL_V5_ERROR_ENUM
249 #define ZXDG_SHELL_V5_ERROR_ENUM
250 enum zxdg_shell_v5_error {
254  ZXDG_SHELL_V5_ERROR_ROLE = 0,
258  ZXDG_SHELL_V5_ERROR_DEFUNCT_SURFACES = 1,
262  ZXDG_SHELL_V5_ERROR_NOT_THE_TOPMOST_POPUP = 2,
266  ZXDG_SHELL_V5_ERROR_INVALID_POPUP_PARENT = 3,
267 };
268 #endif /* ZXDG_SHELL_V5_ERROR_ENUM */
269 
274 struct zxdg_shell_v5_interface {
284  void (*destroy)(struct wl_client *client,
285  struct wl_resource *resource);
295  void (*use_unstable_version)(struct wl_client *client,
296  struct wl_resource *resource,
297  int32_t version);
310  void (*get_zxdg_surface)(struct wl_client *client,
311  struct wl_resource *resource,
312  uint32_t id,
313  struct wl_resource *surface);
331  void (*get_zxdg_popup)(struct wl_client *client,
332  struct wl_resource *resource,
333  uint32_t id,
334  struct wl_resource *surface,
335  struct wl_resource *parent,
336  struct wl_resource *seat,
337  uint32_t serial,
338  int32_t x,
339  int32_t y);
347  void (*pong)(struct wl_client *client,
348  struct wl_resource *resource,
349  uint32_t serial);
350 };
351 
352 #define ZXDG_SHELL_V5_PING 0
353 
357 #define ZXDG_SHELL_V5_PING_SINCE_VERSION 1
358 
362 #define ZXDG_SHELL_V5_DESTROY_SINCE_VERSION 1
363 
366 #define ZXDG_SHELL_V5_USE_UNSTABLE_VERSION_SINCE_VERSION 1
367 
370 #define ZXDG_SHELL_V5_GET_ZXDG_SURFACE_V5_SINCE_VERSION 1
371 
374 #define ZXDG_SHELL_V5_GET_ZXDG_POPUP_v5_SINCE_VERSION 1
375 
378 #define ZXDG_SHELL_V5_PONG_SINCE_VERSION 1
379 
386 static inline void
387 zxdg_shell_v5_send_ping(struct wl_resource *resource_, uint32_t serial)
388 {
389  wl_resource_post_event(resource_, ZXDG_SHELL_V5_PING, serial);
390 }
391 
392 #ifndef ZXDG_SURFACE_V5_RESIZE_EDGE_ENUM
393 #define ZXDG_SURFACE_V5_RESIZE_EDGE_ENUM
394 
401 enum zxdg_surface_v5_resize_edge {
402  ZXDG_SURFACE_V5_RESIZE_EDGE_NONE = 0,
403  ZXDG_SURFACE_V5_RESIZE_EDGE_TOP = 1,
404  ZXDG_SURFACE_V5_RESIZE_EDGE_BOTTOM = 2,
405  ZXDG_SURFACE_V5_RESIZE_EDGE_LEFT = 4,
406  ZXDG_SURFACE_V5_RESIZE_EDGE_TOP_LEFT = 5,
407  ZXDG_SURFACE_V5_RESIZE_EDGE_BOTTOM_LEFT = 6,
408  ZXDG_SURFACE_V5_RESIZE_EDGE_RIGHT = 8,
409  ZXDG_SURFACE_V5_RESIZE_EDGE_TOP_RIGHT = 9,
410  ZXDG_SURFACE_V5_RESIZE_EDGE_BOTTOM_RIGHT = 10,
411 };
412 #endif /* ZXDG_SURFACE_V5_RESIZE_EDGE_ENUM */
413 
414 #ifndef ZXDG_SURFACE_V5_STATE_ENUM
415 #define ZXDG_SURFACE_V5_STATE_ENUM
416 
424 enum zxdg_surface_v5_state {
441 };
442 #endif /* ZXDG_SURFACE_V5_STATE_ENUM */
443 
448 struct zxdg_surface_v5_interface {
456  void (*destroy)(struct wl_client *client,
457  struct wl_resource *resource);
469  void (*set_parent)(struct wl_client *client,
470  struct wl_resource *resource,
471  struct wl_resource *parent);
483  void (*set_title)(struct wl_client *client,
484  struct wl_resource *resource,
485  const char *title);
511  void (*set_app_id)(struct wl_client *client,
512  struct wl_resource *resource,
513  const char *app_id);
534  void (*show_window_menu)(struct wl_client *client,
535  struct wl_resource *resource,
536  struct wl_resource *seat,
537  uint32_t serial,
538  int32_t x,
539  int32_t y);
563  void (*move)(struct wl_client *client,
564  struct wl_resource *resource,
565  struct wl_resource *seat,
566  uint32_t serial);
604  void (*resize)(struct wl_client *client,
605  struct wl_resource *resource,
606  struct wl_resource *seat,
607  uint32_t serial,
608  uint32_t edges);
633  void (*ack_configure)(struct wl_client *client,
634  struct wl_resource *resource,
635  uint32_t serial);
666  void (*set_window_geometry)(struct wl_client *client,
667  struct wl_resource *resource,
668  int32_t x,
669  int32_t y,
670  int32_t width,
671  int32_t height);
692  void (*set_maximized)(struct wl_client *client,
693  struct wl_resource *resource);
715  void (*unset_maximized)(struct wl_client *client,
716  struct wl_resource *resource);
730  void (*set_fullscreen)(struct wl_client *client,
731  struct wl_resource *resource,
732  struct wl_resource *output);
735  void (*unset_fullscreen)(struct wl_client *client,
736  struct wl_resource *resource);
749  void (*set_minimized)(struct wl_client *client,
750  struct wl_resource *resource);
751 };
752 
753 #define ZXDG_SURFACE_V5_CONFIGURE 0
754 #define ZXDG_SURFACE_V5_CLOSE 1
755 
759 #define ZXDG_SURFACE_V5_CONFIGURE_SINCE_VERSION 1
760 
763 #define ZXDG_SURFACE_V5_CLOSE_SINCE_VERSION 1
764 
768 #define ZXDG_SURFACE_V5_DESTROY_SINCE_VERSION 1
769 
772 #define ZXDG_SURFACE_V5_SET_PARENT_SINCE_VERSION 1
773 
776 #define ZXDG_SURFACE_V5_SET_TITLE_SINCE_VERSION 1
777 
780 #define ZXDG_SURFACE_V5_SET_APP_ID_SINCE_VERSION 1
781 
784 #define ZXDG_SURFACE_V5_SHOW_WINDOW_MENU_SINCE_VERSION 1
785 
788 #define ZXDG_SURFACE_V5_MOVE_SINCE_VERSION 1
789 
792 #define ZXDG_SURFACE_V5_RESIZE_SINCE_VERSION 1
793 
796 #define ZXDG_SURFACE_V5_ACK_CONFIGURE_SINCE_VERSION 1
797 
800 #define ZXDG_SURFACE_V5_SET_WINDOW_GEOMETRY_SINCE_VERSION 1
801 
804 #define ZXDG_SURFACE_V5_SET_MAXIMIZED_SINCE_VERSION 1
805 
808 #define ZXDG_SURFACE_V5_UNSET_MAXIMIZED_SINCE_VERSION 1
809 
812 #define ZXDG_SURFACE_V5_SET_FULLSCREEN_SINCE_VERSION 1
813 
816 #define ZXDG_SURFACE_V5_UNSET_FULLSCREEN_SINCE_VERSION 1
817 
820 #define ZXDG_SURFACE_V5_SET_MINIMIZED_SINCE_VERSION 1
821 
827 static inline void
828 zxdg_surface_v5_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, struct wl_array *states, uint32_t serial)
829 {
830  wl_resource_post_event(resource_, ZXDG_SURFACE_V5_CONFIGURE, width, height, states, serial);
831 }
832 
838 static inline void
839 zxdg_surface_v5_send_close(struct wl_resource *resource_)
840 {
841  wl_resource_post_event(resource_, ZXDG_SURFACE_V5_CLOSE);
842 }
843 
848 struct zxdg_popup_v5_interface {
858  void (*destroy)(struct wl_client *client,
859  struct wl_resource *resource);
860 };
861 
862 #define ZXDG_POPUP_v5_POPUP_DONE 0
863 
867 #define ZXDG_POPUP_v5_POPUP_DONE_SINCE_VERSION 1
868 
872 #define ZXDG_POPUP_v5_DESTROY_SINCE_VERSION 1
873 
879 static inline void
880 zxdg_popup_v5_send_popup_done(struct wl_resource *resource_)
881 {
882  wl_resource_post_event(resource_, ZXDG_POPUP_v5_POPUP_DONE);
883 }
884 
885 #ifdef __cplusplus
886 }
887 #endif
888 
889 #endif
static void zxdg_shell_v5_send_ping(struct wl_resource *resource_, uint32_t serial)
Sends an ping event to the client owning the resource.
static void zxdg_surface_v5_send_close(struct wl_resource *resource_)
Sends an close event to the client owning the resource.
static void zxdg_surface_v5_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, struct wl_array *states, uint32_t serial)
Sends an configure event to the client owning the resource.
static void zxdg_popup_v5_send_popup_done(struct wl_resource *resource_)
Sends an popup_done event to the client owning the resource.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:48:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.