Debian Codegraph @

kysdk-waylandhelper/src/windowmanager/wayland-plasma-window-management-client-protocol.h

raw symbols SCIP
1 /* Generated by wayland-scanner 1.20.0 */
2
3 /*
4 * libkysdk-waylandhelper's Library
5 *
6 * Copyright (C) 2023, KylinSoft Co., Ltd.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 3 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this library. If not, see <https://www.gnu.org/licenses/>.
20 *
21 * Authors: Zhen Sun <[email protected]>
22 *
23 */
24
25 #ifndef PLASMA_WINDOW_MANAGEMENT_CLIENT_PROTOCOL_H
26 #define PLASMA_WINDOW_MANAGEMENT_CLIENT_PROTOCOL_H
27
28 #include <stdint.h>
29 #include <stddef.h>
30 #include "wayland-client.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 /**
37 * @page page_plasma_window_management The plasma_window_management protocol
38 * @section page_ifaces_plasma_window_management Interfaces
39 * - @subpage page_iface_org_kde_plasma_window_management - application windows management
40 * - @subpage page_iface_org_kde_plasma_window - interface to control application windows
41 * - @subpage page_iface_org_kde_plasma_activation_feedback - activation feedback
42 * - @subpage page_iface_org_kde_plasma_activation -
43 * @section page_copyright_plasma_window_management Copyright
44 * <pre>
45 *
46 * SPDX-FileCopyrightText: 2013-2014 Pier Luigi Fiorini
47 *
48 * SPDX-License-Identifier: LGPL-2.1-or-later
49 * </pre>
50 */
51 struct org_kde_plasma_activation;
52 struct org_kde_plasma_activation_feedback;
53 struct org_kde_plasma_window;
54 struct org_kde_plasma_window_management;
55 struct wl_output;
56 struct wl_surface;
57
58 #ifndef ORG_KDE_PLASMA_WINDOW_MANAGEMENT_INTERFACE
59 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_INTERFACE
60 /**
61 * @page page_iface_org_kde_plasma_window_management org_kde_plasma_window_management
62 * @section page_iface_org_kde_plasma_window_management_desc Description
63 *
64 * This interface manages application windows.
65 * It provides requests to show and hide the desktop and emits
66 * an event every time a window is created so that the client can
67 * use it to manage the window.
68 *
69 * Only one client can bind this interface at a time.
70 * @section page_iface_org_kde_plasma_window_management_api API
71 * See @ref iface_org_kde_plasma_window_management.
72 */
73 /**
74 * @defgroup iface_org_kde_plasma_window_management The org_kde_plasma_window_management interface
75 *
76 * This interface manages application windows.
77 * It provides requests to show and hide the desktop and emits
78 * an event every time a window is created so that the client can
79 * use it to manage the window.
80 *
81 * Only one client can bind this interface at a time.
82 */
83 extern const struct wl_interface org_kde_plasma_window_management_interface;
84 #endif
85 #ifndef ORG_KDE_PLASMA_WINDOW_INTERFACE
86 #define ORG_KDE_PLASMA_WINDOW_INTERFACE
87 /**
88 * @page page_iface_org_kde_plasma_window org_kde_plasma_window
89 * @section page_iface_org_kde_plasma_window_desc Description
90 *
91 * Manages and control an application window.
92 *
93 * Only one client can bind this interface at a time.
94 * @section page_iface_org_kde_plasma_window_api API
95 * See @ref iface_org_kde_plasma_window.
96 */
97 /**
98 * @defgroup iface_org_kde_plasma_window The org_kde_plasma_window interface
99 *
100 * Manages and control an application window.
101 *
102 * Only one client can bind this interface at a time.
103 */
104 extern const struct wl_interface org_kde_plasma_window_interface;
105 #endif
106 #ifndef ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_INTERFACE
107 #define ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_INTERFACE
108 /**
109 * @page page_iface_org_kde_plasma_activation_feedback org_kde_plasma_activation_feedback
110 * @section page_iface_org_kde_plasma_activation_feedback_desc Description
111 *
112 * The activation manager interface provides a way to get notified
113 * when an application is about to be activated.
114 * @section page_iface_org_kde_plasma_activation_feedback_api API
115 * See @ref iface_org_kde_plasma_activation_feedback.
116 */
117 /**
118 * @defgroup iface_org_kde_plasma_activation_feedback The org_kde_plasma_activation_feedback interface
119 *
120 * The activation manager interface provides a way to get notified
121 * when an application is about to be activated.
122 */
123 extern const struct wl_interface org_kde_plasma_activation_feedback_interface;
124 #endif
125 #ifndef ORG_KDE_PLASMA_ACTIVATION_INTERFACE
126 #define ORG_KDE_PLASMA_ACTIVATION_INTERFACE
127 /**
128 * @page page_iface_org_kde_plasma_activation org_kde_plasma_activation
129 * @section page_iface_org_kde_plasma_activation_api API
130 * See @ref iface_org_kde_plasma_activation.
131 */
132 /**
133 * @defgroup iface_org_kde_plasma_activation The org_kde_plasma_activation interface
134 */
135 extern const struct wl_interface org_kde_plasma_activation_interface;
136 #endif
137
138 #ifndef ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_ENUM
139 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_ENUM
140 enum org_kde_plasma_window_management_state {
141 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_ACTIVE = 1 << 0,
142 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MINIMIZED = 1 << 1,
143 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MAXIMIZED = 1 << 2,
144 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREEN = 1 << 3,
145 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_KEEP_ABOVE = 1 << 4,
146 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_KEEP_BELOW = 1 << 5,
147 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_ON_ALL_DESKTOPS = 1 << 6,
148 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_DEMANDS_ATTENTION = 1 << 7,
149 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_CLOSEABLE = 1 << 8,
150 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MINIMIZABLE = 1 << 9,
151 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MAXIMIZABLE = 1 << 10,
152 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_FULLSCREENABLE = 1 << 11,
153 /**
154 * @since 2
155 */
156 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR = 1 << 12,
157 /**
158 * @since 3
159 */
160 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE = 1 << 13,
161 /**
162 * @since 3
163 */
164 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED = 1 << 14,
165 /**
166 * @since 3
167 */
168 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE = 1 << 15,
169 /**
170 * @since 3
171 */
172 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_RESIZABLE = 1 << 16,
173 /**
174 * @since 3
175 */
176 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_VIRTUAL_DESKTOP_CHANGEABLE = 1 << 17,
177 /**
178 * @since 9
179 */
180 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPSWITCHER = 1 << 18,
181 };
182 /**
183 * @ingroup iface_org_kde_plasma_window_management
184 */
185 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPTASKBAR_SINCE_VERSION 2
186 /**
187 * @ingroup iface_org_kde_plasma_window_management
188 */
189 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADEABLE_SINCE_VERSION 3
190 /**
191 * @ingroup iface_org_kde_plasma_window_management
192 */
193 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SHADED_SINCE_VERSION 3
194 /**
195 * @ingroup iface_org_kde_plasma_window_management
196 */
197 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_MOVABLE_SINCE_VERSION 3
198 /**
199 * @ingroup iface_org_kde_plasma_window_management
200 */
201 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_RESIZABLE_SINCE_VERSION 3
202 /**
203 * @ingroup iface_org_kde_plasma_window_management
204 */
205 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_VIRTUAL_DESKTOP_CHANGEABLE_SINCE_VERSION 3
206 /**
207 * @ingroup iface_org_kde_plasma_window_management
208 */
209 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_SKIPSWITCHER_SINCE_VERSION 9
210 #endif /* ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_ENUM */
211
212 #ifndef ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_ENUM
213 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_ENUM
214 enum org_kde_plasma_window_management_show_desktop {
215 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_DISABLED = 0,
216 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_ENABLED = 1,
217 };
218 #endif /* ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_ENUM */
219
220 /**
221 * @ingroup iface_org_kde_plasma_window_management
222 * @struct org_kde_plasma_window_management_listener
223 */
224 struct org_kde_plasma_window_management_listener {
225 /**
226 * notify the client when the show desktop mode is entered/left
227 *
228 * This event will be sent whenever the show desktop mode
229 * changes. E.g. when it is entered or left.
230 *
231 * On binding the interface the current state is sent.
232 * @param state new state
233 */
234 void (*show_desktop_changed)(void *data,
235 struct org_kde_plasma_window_management *org_kde_plasma_window_management,
236 uint32_t state);
237 /**
238 * notify the client that a window was mapped
239 *
240 * This event will be sent immediately after a window is mapped.
241 * @param id Deprecated: internal window Id
242 */
243 void (*window)(void *data,
244 struct org_kde_plasma_window_management *org_kde_plasma_window_management,
245 uint32_t id);
246 /**
247 * notify the client when stacking order changed
248 *
249 * This event will be sent when stacking order changed and on
250 * bind
251 * @param ids internal windows id array
252 * @since 11
253 */
254 void (*stacking_order_changed)(void *data,
255 struct org_kde_plasma_window_management *org_kde_plasma_window_management,
256 struct wl_array *ids);
257 /**
258 * notify the client when stacking order changed
259 *
260 * This event will be sent when stacking order changed and on
261 * bind
262 * @param uuids internal windows id ;-separated
263 * @since 12
264 */
265 void (*stacking_order_uuid_changed)(void *data,
266 struct org_kde_plasma_window_management *org_kde_plasma_window_management,
267 const char *uuids);
268 /**
269 * notify the client that a window was mapped
270 *
271 * This event will be sent immediately after a window is mapped.
272 * @param id Deprecated: internal window Id
273 * @param uuid internal window uuid
274 * @since 13
275 */
276 void (*window_with_uuid)(void *data,
277 struct org_kde_plasma_window_management *org_kde_plasma_window_management,
278 uint32_t id,
279 const char *uuid);
280 };
281
282 /**
283 * @ingroup iface_org_kde_plasma_window_management
284 */
285 static inline int
286 org_kde_plasma_window_management_add_listener(struct org_kde_plasma_window_management *org_kde_plasma_window_management,
287 const struct org_kde_plasma_window_management_listener *listener, void *data)
288 {
289 return wl_proxy_add_listener((struct wl_proxy *) org_kde_plasma_window_management,
290 (void (**)(void)) listener, data);
291 }
292
293 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP 0
294 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW 1
295 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW_BY_UUID 2
296
297 /**
298 * @ingroup iface_org_kde_plasma_window_management
299 */
300 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_CHANGED_SINCE_VERSION 1
301 /**
302 * @ingroup iface_org_kde_plasma_window_management
303 */
304 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_WINDOW_SINCE_VERSION 1
305 /**
306 * @ingroup iface_org_kde_plasma_window_management
307 */
308 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STACKING_ORDER_CHANGED_SINCE_VERSION 11
309 /**
310 * @ingroup iface_org_kde_plasma_window_management
311 */
312 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STACKING_ORDER_UUID_CHANGED_SINCE_VERSION 12
313 /**
314 * @ingroup iface_org_kde_plasma_window_management
315 */
316 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_WINDOW_WITH_UUID_SINCE_VERSION 13
317
318 /**
319 * @ingroup iface_org_kde_plasma_window_management
320 */
321 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP_SINCE_VERSION 1
322 /**
323 * @ingroup iface_org_kde_plasma_window_management
324 */
325 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW_SINCE_VERSION 1
326 /**
327 * @ingroup iface_org_kde_plasma_window_management
328 */
329 #define ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW_BY_UUID_SINCE_VERSION 12
330
331 /** @ingroup iface_org_kde_plasma_window_management */
332 static inline void
333 org_kde_plasma_window_management_set_user_data(struct org_kde_plasma_window_management *org_kde_plasma_window_management, void *user_data)
334 {
335 wl_proxy_set_user_data((struct wl_proxy *) org_kde_plasma_window_management, user_data);
336 }
337
338 /** @ingroup iface_org_kde_plasma_window_management */
339 static inline void *
340 org_kde_plasma_window_management_get_user_data(struct org_kde_plasma_window_management *org_kde_plasma_window_management)
341 {
342 return wl_proxy_get_user_data((struct wl_proxy *) org_kde_plasma_window_management);
343 }
344
345 static inline uint32_t
346 org_kde_plasma_window_management_get_version(struct org_kde_plasma_window_management *org_kde_plasma_window_management)
347 {
348 return wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window_management);
349 }
350
351 /** @ingroup iface_org_kde_plasma_window_management */
352 static inline void
353 org_kde_plasma_window_management_destroy(struct org_kde_plasma_window_management *org_kde_plasma_window_management)
354 {
355 wl_proxy_destroy((struct wl_proxy *) org_kde_plasma_window_management);
356 }
357
358 /**
359 * @ingroup iface_org_kde_plasma_window_management
360 *
361 * Tell the compositor to show/hide the desktop.
362 */
363 static inline void
364 org_kde_plasma_window_management_show_desktop(struct org_kde_plasma_window_management *org_kde_plasma_window_management, uint32_t state)
365 {
366 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window_management,
367 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_SHOW_DESKTOP, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window_management), 0, state);
368 }
369
370 /**
371 * @ingroup iface_org_kde_plasma_window_management
372 * Deprecated: use get_window_by_uuid
373 */
374 static inline struct org_kde_plasma_window *
375 org_kde_plasma_window_management_get_window(struct org_kde_plasma_window_management *org_kde_plasma_window_management, uint32_t internal_window_id)
376 {
377 struct wl_proxy *id;
378
379 id = wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window_management,
380 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW, &org_kde_plasma_window_interface, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window_management), 0, NULL, internal_window_id);
381
382 return (struct org_kde_plasma_window *) id;
383 }
384
385 /**
386 * @ingroup iface_org_kde_plasma_window_management
387 */
388 static inline struct org_kde_plasma_window *
389 org_kde_plasma_window_management_get_window_by_uuid(struct org_kde_plasma_window_management *org_kde_plasma_window_management, const char *internal_window_uuid)
390 {
391 struct wl_proxy *id;
392
393 id = wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window_management,
394 ORG_KDE_PLASMA_WINDOW_MANAGEMENT_GET_WINDOW_BY_UUID, &org_kde_plasma_window_interface, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window_management), 0, NULL, internal_window_uuid);
395
396 return (struct org_kde_plasma_window *) id;
397 }
398
399 /**
400 * @ingroup iface_org_kde_plasma_window
401 * @struct org_kde_plasma_window_listener
402 */
403 struct org_kde_plasma_window_listener {
404 /**
405 * window title has been changed
406 *
407 * This event will be sent as soon as the window title is
408 * changed.
409 * @param title window title
410 */
411 void (*title_changed)(void *data,
412 struct org_kde_plasma_window *org_kde_plasma_window,
413 const char *title);
414 /**
415 * application identifier has been changed
416 *
417 * This event will be sent as soon as the application identifier
418 * is changed.
419 */
420 void (*app_id_changed)(void *data,
421 struct org_kde_plasma_window *org_kde_plasma_window,
422 const char *app_id);
423 /**
424 * window state has been changed
425 *
426 * This event will be sent as soon as the window state changes.
427 *
428 * Values for state argument are described by
429 * org_kde_plasma_window_management.state.
430 * @param flags bitfield of state flags
431 */
432 void (*state_changed)(void *data,
433 struct org_kde_plasma_window *org_kde_plasma_window,
434 uint32_t flags);
435 /**
436 * window was moved to another workspace
437 *
438 * DEPRECATED: use virtual_desktop_entered and
439 * virtual_desktop_left instead This event will be sent when a
440 * window is moved to another virtual desktop.
441 *
442 * It is not sent if it becomes visible on all virtual desktops
443 * though.
444 * @param number zero based virtual desktop number
445 */
446 void (*virtual_desktop_changed)(void *data,
447 struct org_kde_plasma_window *org_kde_plasma_window,
448 int32_t number);
449 /**
450 * window's icon name changed
451 *
452 * This event will be sent whenever the themed icon name changes.
453 * May be null.
454 * @param name the new themed icon name
455 */
456 void (*themed_icon_name_changed)(void *data,
457 struct org_kde_plasma_window *org_kde_plasma_window,
458 const char *name);
459 /**
460 * window's surface was unmapped
461 *
462 * This event will be sent immediately after the window is closed
463 * and its surface is unmapped.
464 */
465 void (*unmapped)(void *data,
466 struct org_kde_plasma_window *org_kde_plasma_window);
467 /**
468 * All initial known state is submitted
469 *
470 * This event will be sent immediately after all initial state
471 * been sent to the client. If the Plasma window is already
472 * unmapped, the unmapped event will be sent before the
473 * initial_state event.
474 * @since 4
475 */
476 void (*initial_state)(void *data,
477 struct org_kde_plasma_window *org_kde_plasma_window);
478 /**
479 * The parent window changed
480 *
481 * This event will be sent whenever the parent window of this
482 * org_kde_plasma_window changes. The passed parent is another
483 * org_kde_plasma_window and this org_kde_plasma_window is a
484 * transient window to the parent window. If the parent argument is
485 * null, this org_kde_plasma_window does not have a parent window.
486 * @param parent The parent window
487 * @since 5
488 */
489 void (*parent_window)(void *data,
490 struct org_kde_plasma_window *org_kde_plasma_window,
491 struct org_kde_plasma_window *parent);
492 /**
493 * The geometry of this window in absolute coordinates
494 *
495 * This event will be sent whenever the window geometry of this
496 * org_kde_plasma_window changes. The coordinates are in absolute
497 * coordinates of the windowing system.
498 * @param x x position of the org_kde_plasma_window
499 * @param y y position of the org_kde_plasma_window
500 * @param width width of the org_kde_plasma_window
501 * @param height height of the org_kde_plasma_window
502 * @since 6
503 */
504 void (*geometry)(void *data,
505 struct org_kde_plasma_window *org_kde_plasma_window,
506 int32_t x,
507 int32_t y,
508 uint32_t width,
509 uint32_t height);
510 /**
511 * The icon of the window changed
512 *
513 * This event will be sent whenever the icon of the window
514 * changes, but there is no themed icon name. Common examples are
515 * Xwayland windows which have a pixmap based icon.
516 *
517 * The client can request the icon using get_icon.
518 * @since 7
519 */
520 void (*icon_changed)(void *data,
521 struct org_kde_plasma_window *org_kde_plasma_window);
522 /**
523 * process id of application owning the window has changed
524 *
525 * This event will be sent when the compositor has set the
526 * process id this window belongs to. This should be set once
527 * before the initial_state is sent.
528 * @param pid process id
529 */
530 void (*pid_changed)(void *data,
531 struct org_kde_plasma_window *org_kde_plasma_window,
532 uint32_t pid);
533 /**
534 * the window entered a new virtual desktop
535 *
536 * This event will be sent when the window has entered a new
537 * virtual desktop. The window can be on more than one desktop, or
538 * none: then is considered on all of them.
539 * @param id desktop id
540 * @since 8
541 */
542 void (*virtual_desktop_entered)(void *data,
543 struct org_kde_plasma_window *org_kde_plasma_window,
544 const char *id);
545 /**
546 * the window left a virtual desktop
547 *
548 * This event will be sent when the window left a virtual
549 * desktop. If the window leaves all desktops, it can be considered
550 * on all. If the window gets manually added on all desktops, the
551 * server has to send virtual_desktop_left for every previous
552 * desktop it was in for the window to be really considered on all
553 * desktops.
554 * @param is desktop id
555 * @since 8
556 */
557 void (*virtual_desktop_left)(void *data,
558 struct org_kde_plasma_window *org_kde_plasma_window,
559 const char *is);
560 /**
561 * notify the client that the current appmenu changed
562 *
563 * This event will be sent after the application menu for the
564 * window has changed.
565 * @since 10
566 */
567 void (*application_menu)(void *data,
568 struct org_kde_plasma_window *org_kde_plasma_window,
569 const char *service_name,
570 const char *object_path);
571 /**
572 * the window entered an activity
573 *
574 * This event will be sent when the window has entered an
575 * activity. The window can be on more than one activity, or none:
576 * then is considered on all of them.
577 * @param id activity id
578 * @since 14
579 */
580 void (*activity_entered)(void *data,
581 struct org_kde_plasma_window *org_kde_plasma_window,
582 const char *id);
583 /**
584 * the window left an activity
585 *
586 * This event will be sent when the window left an activity. If
587 * the window leaves all activities, it will be considered on all.
588 * If the window gets manually added on all activities, the server
589 * has to send activity_left for every previous activity it was in
590 * for the window to be really considered on all activities.
591 * @param id activity id
592 * @since 14
593 */
594 void (*activity_left)(void *data,
595 struct org_kde_plasma_window *org_kde_plasma_window,
596 const char *id);
597 };
598
599 /**
600 * @ingroup iface_org_kde_plasma_window
601 */
602 static inline int
603 org_kde_plasma_window_add_listener(struct org_kde_plasma_window *org_kde_plasma_window,
604 const struct org_kde_plasma_window_listener *listener, void *data)
605 {
606 return wl_proxy_add_listener((struct wl_proxy *) org_kde_plasma_window,
607 (void (**)(void)) listener, data);
608 }
609
610 #define ORG_KDE_PLASMA_WINDOW_SET_STATE 0
611 #define ORG_KDE_PLASMA_WINDOW_SET_VIRTUAL_DESKTOP 1
612 #define ORG_KDE_PLASMA_WINDOW_SET_MINIMIZED_GEOMETRY 2
613 #define ORG_KDE_PLASMA_WINDOW_UNSET_MINIMIZED_GEOMETRY 3
614 #define ORG_KDE_PLASMA_WINDOW_CLOSE 4
615 #define ORG_KDE_PLASMA_WINDOW_REQUEST_MOVE 5
616 #define ORG_KDE_PLASMA_WINDOW_REQUEST_RESIZE 6
617 #define ORG_KDE_PLASMA_WINDOW_DESTROY 7
618 #define ORG_KDE_PLASMA_WINDOW_GET_ICON 8
619 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_VIRTUAL_DESKTOP 9
620 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_NEW_VIRTUAL_DESKTOP 10
621 #define ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_VIRTUAL_DESKTOP 11
622 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_ACTIVITY 12
623 #define ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_ACTIVITY 13
624 #define ORG_KDE_PLASMA_WINDOW_SEND_TO_OUTPUT 14
625
626 /**
627 * @ingroup iface_org_kde_plasma_window
628 */
629 #define ORG_KDE_PLASMA_WINDOW_TITLE_CHANGED_SINCE_VERSION 1
630 /**
631 * @ingroup iface_org_kde_plasma_window
632 */
633 #define ORG_KDE_PLASMA_WINDOW_APP_ID_CHANGED_SINCE_VERSION 1
634 /**
635 * @ingroup iface_org_kde_plasma_window
636 */
637 #define ORG_KDE_PLASMA_WINDOW_STATE_CHANGED_SINCE_VERSION 1
638 /**
639 * @ingroup iface_org_kde_plasma_window
640 */
641 #define ORG_KDE_PLASMA_WINDOW_VIRTUAL_DESKTOP_CHANGED_SINCE_VERSION 1
642 /**
643 * @ingroup iface_org_kde_plasma_window
644 */
645 #define ORG_KDE_PLASMA_WINDOW_THEMED_ICON_NAME_CHANGED_SINCE_VERSION 1
646 /**
647 * @ingroup iface_org_kde_plasma_window
648 */
649 #define ORG_KDE_PLASMA_WINDOW_UNMAPPED_SINCE_VERSION 1
650 /**
651 * @ingroup iface_org_kde_plasma_window
652 */
653 #define ORG_KDE_PLASMA_WINDOW_INITIAL_STATE_SINCE_VERSION 4
654 /**
655 * @ingroup iface_org_kde_plasma_window
656 */
657 #define ORG_KDE_PLASMA_WINDOW_PARENT_WINDOW_SINCE_VERSION 5
658 /**
659 * @ingroup iface_org_kde_plasma_window
660 */
661 #define ORG_KDE_PLASMA_WINDOW_GEOMETRY_SINCE_VERSION 6
662 /**
663 * @ingroup iface_org_kde_plasma_window
664 */
665 #define ORG_KDE_PLASMA_WINDOW_ICON_CHANGED_SINCE_VERSION 7
666 /**
667 * @ingroup iface_org_kde_plasma_window
668 */
669 #define ORG_KDE_PLASMA_WINDOW_PID_CHANGED_SINCE_VERSION 1
670 /**
671 * @ingroup iface_org_kde_plasma_window
672 */
673 #define ORG_KDE_PLASMA_WINDOW_VIRTUAL_DESKTOP_ENTERED_SINCE_VERSION 8
674 /**
675 * @ingroup iface_org_kde_plasma_window
676 */
677 #define ORG_KDE_PLASMA_WINDOW_VIRTUAL_DESKTOP_LEFT_SINCE_VERSION 8
678 /**
679 * @ingroup iface_org_kde_plasma_window
680 */
681 #define ORG_KDE_PLASMA_WINDOW_APPLICATION_MENU_SINCE_VERSION 10
682 /**
683 * @ingroup iface_org_kde_plasma_window
684 */
685 #define ORG_KDE_PLASMA_WINDOW_ACTIVITY_ENTERED_SINCE_VERSION 14
686 /**
687 * @ingroup iface_org_kde_plasma_window
688 */
689 #define ORG_KDE_PLASMA_WINDOW_ACTIVITY_LEFT_SINCE_VERSION 14
690
691 /**
692 * @ingroup iface_org_kde_plasma_window
693 */
694 #define ORG_KDE_PLASMA_WINDOW_SET_STATE_SINCE_VERSION 1
695 /**
696 * @ingroup iface_org_kde_plasma_window
697 */
698 #define ORG_KDE_PLASMA_WINDOW_SET_VIRTUAL_DESKTOP_SINCE_VERSION 1
699 /**
700 * @ingroup iface_org_kde_plasma_window
701 */
702 #define ORG_KDE_PLASMA_WINDOW_SET_MINIMIZED_GEOMETRY_SINCE_VERSION 1
703 /**
704 * @ingroup iface_org_kde_plasma_window
705 */
706 #define ORG_KDE_PLASMA_WINDOW_UNSET_MINIMIZED_GEOMETRY_SINCE_VERSION 1
707 /**
708 * @ingroup iface_org_kde_plasma_window
709 */
710 #define ORG_KDE_PLASMA_WINDOW_CLOSE_SINCE_VERSION 1
711 /**
712 * @ingroup iface_org_kde_plasma_window
713 */
714 #define ORG_KDE_PLASMA_WINDOW_REQUEST_MOVE_SINCE_VERSION 3
715 /**
716 * @ingroup iface_org_kde_plasma_window
717 */
718 #define ORG_KDE_PLASMA_WINDOW_REQUEST_RESIZE_SINCE_VERSION 3
719 /**
720 * @ingroup iface_org_kde_plasma_window
721 */
722 #define ORG_KDE_PLASMA_WINDOW_DESTROY_SINCE_VERSION 4
723 /**
724 * @ingroup iface_org_kde_plasma_window
725 */
726 #define ORG_KDE_PLASMA_WINDOW_GET_ICON_SINCE_VERSION 7
727 /**
728 * @ingroup iface_org_kde_plasma_window
729 */
730 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_VIRTUAL_DESKTOP_SINCE_VERSION 8
731 /**
732 * @ingroup iface_org_kde_plasma_window
733 */
734 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_NEW_VIRTUAL_DESKTOP_SINCE_VERSION 8
735 /**
736 * @ingroup iface_org_kde_plasma_window
737 */
738 #define ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_VIRTUAL_DESKTOP_SINCE_VERSION 8
739 /**
740 * @ingroup iface_org_kde_plasma_window
741 */
742 #define ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_ACTIVITY_SINCE_VERSION 14
743 /**
744 * @ingroup iface_org_kde_plasma_window
745 */
746 #define ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_ACTIVITY_SINCE_VERSION 14
747 /**
748 * @ingroup iface_org_kde_plasma_window
749 */
750 #define ORG_KDE_PLASMA_WINDOW_SEND_TO_OUTPUT_SINCE_VERSION 15
751
752 /** @ingroup iface_org_kde_plasma_window */
753 static inline void
754 org_kde_plasma_window_set_user_data(struct org_kde_plasma_window *org_kde_plasma_window, void *user_data)
755 {
756 wl_proxy_set_user_data((struct wl_proxy *) org_kde_plasma_window, user_data);
757 }
758
759 /** @ingroup iface_org_kde_plasma_window */
760 static inline void *
761 org_kde_plasma_window_get_user_data(struct org_kde_plasma_window *org_kde_plasma_window)
762 {
763 return wl_proxy_get_user_data((struct wl_proxy *) org_kde_plasma_window);
764 }
765
766 static inline uint32_t
767 org_kde_plasma_window_get_version(struct org_kde_plasma_window *org_kde_plasma_window)
768 {
769 return wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window);
770 }
771
772 /**
773 * @ingroup iface_org_kde_plasma_window
774 *
775 * Set window state.
776 *
777 * Values for state argument are described by org_kde_plasma_window_management.state
778 * and can be used together in a bitfield. The flags bitfield describes which flags are
779 * supposed to be set, the state bitfield the value for the set flags
780 */
781 static inline void
782 org_kde_plasma_window_set_state(struct org_kde_plasma_window *org_kde_plasma_window, uint32_t flags, uint32_t state)
783 {
784 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
785 ORG_KDE_PLASMA_WINDOW_SET_STATE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, flags, state);
786 }
787
788 /**
789 * @ingroup iface_org_kde_plasma_window
790 *
791 * Deprecated: use enter_virtual_desktop
792 * Maps the window to a different virtual desktop.
793 *
794 * To show the window on all virtual desktops, call the
795 * org_kde_plasma_window.set_state request and specify a on_all_desktops
796 * state in the bitfield.
797 */
798 static inline void
799 org_kde_plasma_window_set_virtual_desktop(struct org_kde_plasma_window *org_kde_plasma_window, uint32_t number)
800 {
801 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
802 ORG_KDE_PLASMA_WINDOW_SET_VIRTUAL_DESKTOP, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, number);
803 }
804
805 /**
806 * @ingroup iface_org_kde_plasma_window
807 *
808 * Sets the geometry of the taskbar entry for this window.
809 * The geometry is relative to a panel in particular.
810 */
811 static inline void
812 org_kde_plasma_window_set_minimized_geometry(struct org_kde_plasma_window *org_kde_plasma_window, struct wl_surface *panel, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
813 {
814 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
815 ORG_KDE_PLASMA_WINDOW_SET_MINIMIZED_GEOMETRY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, panel, x, y, width, height);
816 }
817
818 /**
819 * @ingroup iface_org_kde_plasma_window
820 *
821 * Remove the task geometry information for a particular panel.
822 */
823 static inline void
824 org_kde_plasma_window_unset_minimized_geometry(struct org_kde_plasma_window *org_kde_plasma_window, struct wl_surface *panel)
825 {
826 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
827 ORG_KDE_PLASMA_WINDOW_UNSET_MINIMIZED_GEOMETRY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, panel);
828 }
829
830 /**
831 * @ingroup iface_org_kde_plasma_window
832 *
833 * Close this window.
834 */
835 static inline void
836 org_kde_plasma_window_close(struct org_kde_plasma_window *org_kde_plasma_window)
837 {
838 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
839 ORG_KDE_PLASMA_WINDOW_CLOSE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0);
840 }
841
842 /**
843 * @ingroup iface_org_kde_plasma_window
844 *
845 * Request an interactive move for this window.
846 */
847 static inline void
848 org_kde_plasma_window_request_move(struct org_kde_plasma_window *org_kde_plasma_window)
849 {
850 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
851 ORG_KDE_PLASMA_WINDOW_REQUEST_MOVE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0);
852 }
853
854 /**
855 * @ingroup iface_org_kde_plasma_window
856 *
857 * Request an interactive resize for this window.
858 */
859 static inline void
860 org_kde_plasma_window_request_resize(struct org_kde_plasma_window *org_kde_plasma_window)
861 {
862 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
863 ORG_KDE_PLASMA_WINDOW_REQUEST_RESIZE, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0);
864 }
865
866 /**
867 * @ingroup iface_org_kde_plasma_window
868 *
869 * Removes the resource bound for this org_kde_plasma_window.
870 */
871 static inline void
872 org_kde_plasma_window_destroy(struct org_kde_plasma_window *org_kde_plasma_window)
873 {
874 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
875 ORG_KDE_PLASMA_WINDOW_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), WL_MARSHAL_FLAG_DESTROY);
876 }
877
878 /**
879 * @ingroup iface_org_kde_plasma_window
880 *
881 * The compositor will write the window icon into the provided file descriptor.
882 * The data is a serialized QIcon with QDataStream.
883 */
884 static inline void
885 org_kde_plasma_window_get_icon(struct org_kde_plasma_window *org_kde_plasma_window, int32_t fd)
886 {
887 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
888 ORG_KDE_PLASMA_WINDOW_GET_ICON, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, fd);
889 }
890
891 /**
892 * @ingroup iface_org_kde_plasma_window
893 *
894 * Make the window enter a virtual desktop. A window can enter more
895 * than one virtual desktop. if the id is empty or invalid, no action will be performed.
896 */
897 static inline void
898 org_kde_plasma_window_request_enter_virtual_desktop(struct org_kde_plasma_window *org_kde_plasma_window, const char *id)
899 {
900 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
901 ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_VIRTUAL_DESKTOP, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, id);
902 }
903
904 /**
905 * @ingroup iface_org_kde_plasma_window
906 * RFC: do this with an empty id to request_enter_virtual_desktop?
907 * Make the window enter a new virtual desktop. If the server consents the request,
908 * it will create a new virtual desktop and assign the window to it.
909 */
910 static inline void
911 org_kde_plasma_window_request_enter_new_virtual_desktop(struct org_kde_plasma_window *org_kde_plasma_window)
912 {
913 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
914 ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_NEW_VIRTUAL_DESKTOP, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0);
915 }
916
917 /**
918 * @ingroup iface_org_kde_plasma_window
919 *
920 * Make the window exit a virtual desktop. If it exits all desktops it will be considered on all of them.
921 */
922 static inline void
923 org_kde_plasma_window_request_leave_virtual_desktop(struct org_kde_plasma_window *org_kde_plasma_window, const char *id)
924 {
925 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
926 ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_VIRTUAL_DESKTOP, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, id);
927 }
928
929 /**
930 * @ingroup iface_org_kde_plasma_window
931 *
932 * Make the window enter an activity. A window can enter more activity. If the id is empty or invalid, no action will be performed.
933 */
934 static inline void
935 org_kde_plasma_window_request_enter_activity(struct org_kde_plasma_window *org_kde_plasma_window, const char *id)
936 {
937 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
938 ORG_KDE_PLASMA_WINDOW_REQUEST_ENTER_ACTIVITY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, id);
939 }
940
941 /**
942 * @ingroup iface_org_kde_plasma_window
943 *
944 * Make the window exit a an activity. If it exits all activities it will be considered on all of them.
945 */
946 static inline void
947 org_kde_plasma_window_request_leave_activity(struct org_kde_plasma_window *org_kde_plasma_window, const char *id)
948 {
949 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
950 ORG_KDE_PLASMA_WINDOW_REQUEST_LEAVE_ACTIVITY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, id);
951 }
952
953 /**
954 * @ingroup iface_org_kde_plasma_window
955 *
956 * Requests this window to be displayed in a specific output.
957 */
958 static inline void
959 org_kde_plasma_window_send_to_output(struct org_kde_plasma_window *org_kde_plasma_window, struct wl_output *output)
960 {
961 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_window,
962 ORG_KDE_PLASMA_WINDOW_SEND_TO_OUTPUT, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_window), 0, output);
963 }
964
965 /**
966 * @ingroup iface_org_kde_plasma_activation_feedback
967 * @struct org_kde_plasma_activation_feedback_listener
968 */
969 struct org_kde_plasma_activation_feedback_listener {
970 /**
971 * notify that an app is starting
972 *
973 * Will be issued when an app is set to be activated. It offers
974 * an instance of org_kde_plasma_activation that will tell us the
975 * app_id and the extent of the activation.
976 */
977 void (*activation)(void *data,
978 struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback,
979 struct org_kde_plasma_activation *id);
980 };
981
982 /**
983 * @ingroup iface_org_kde_plasma_activation_feedback
984 */
985 static inline int
986 org_kde_plasma_activation_feedback_add_listener(struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback,
987 const struct org_kde_plasma_activation_feedback_listener *listener, void *data)
988 {
989 return wl_proxy_add_listener((struct wl_proxy *) org_kde_plasma_activation_feedback,
990 (void (**)(void)) listener, data);
991 }
992
993 #define ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_DESTROY 0
994
995 /**
996 * @ingroup iface_org_kde_plasma_activation_feedback
997 */
998 #define ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_ACTIVATION_SINCE_VERSION 1
999
1000 /**
1001 * @ingroup iface_org_kde_plasma_activation_feedback
1002 */
1003 #define ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_DESTROY_SINCE_VERSION 1
1004
1005 /** @ingroup iface_org_kde_plasma_activation_feedback */
1006 static inline void
1007 org_kde_plasma_activation_feedback_set_user_data(struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback, void *user_data)
1008 {
1009 wl_proxy_set_user_data((struct wl_proxy *) org_kde_plasma_activation_feedback, user_data);
1010 }
1011
1012 /** @ingroup iface_org_kde_plasma_activation_feedback */
1013 static inline void *
1014 org_kde_plasma_activation_feedback_get_user_data(struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback)
1015 {
1016 return wl_proxy_get_user_data((struct wl_proxy *) org_kde_plasma_activation_feedback);
1017 }
1018
1019 static inline uint32_t
1020 org_kde_plasma_activation_feedback_get_version(struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback)
1021 {
1022 return wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_activation_feedback);
1023 }
1024
1025 /**
1026 * @ingroup iface_org_kde_plasma_activation_feedback
1027 *
1028 * Destroy the activation manager object. The activation objects introduced
1029 * by this manager object will be unaffected.
1030 */
1031 static inline void
1032 org_kde_plasma_activation_feedback_destroy(struct org_kde_plasma_activation_feedback *org_kde_plasma_activation_feedback)
1033 {
1034 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_activation_feedback,
1035 ORG_KDE_PLASMA_ACTIVATION_FEEDBACK_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_activation_feedback), WL_MARSHAL_FLAG_DESTROY);
1036 }
1037
1038 /**
1039 * @ingroup iface_org_kde_plasma_activation
1040 * @struct org_kde_plasma_activation_listener
1041 */
1042 struct org_kde_plasma_activation_listener {
1043 /**
1044 * Offers the app_id
1045 *
1046 *
1047 * @param app_id application id, as described in xdg_activation_v1
1048 */
1049 void (*app_id)(void *data,
1050 struct org_kde_plasma_activation *org_kde_plasma_activation,
1051 const char *app_id);
1052 /**
1053 * Notifies about activation finished, either by activation or because it got invalidated
1054 *
1055 *
1056 */
1057 void (*finished)(void *data,
1058 struct org_kde_plasma_activation *org_kde_plasma_activation);
1059 };
1060
1061 /**
1062 * @ingroup iface_org_kde_plasma_activation
1063 */
1064 static inline int
1065 org_kde_plasma_activation_add_listener(struct org_kde_plasma_activation *org_kde_plasma_activation,
1066 const struct org_kde_plasma_activation_listener *listener, void *data)
1067 {
1068 return wl_proxy_add_listener((struct wl_proxy *) org_kde_plasma_activation,
1069 (void (**)(void)) listener, data);
1070 }
1071
1072 #define ORG_KDE_PLASMA_ACTIVATION_DESTROY 0
1073
1074 /**
1075 * @ingroup iface_org_kde_plasma_activation
1076 */
1077 #define ORG_KDE_PLASMA_ACTIVATION_APP_ID_SINCE_VERSION 1
1078 /**
1079 * @ingroup iface_org_kde_plasma_activation
1080 */
1081 #define ORG_KDE_PLASMA_ACTIVATION_FINISHED_SINCE_VERSION 1
1082
1083 /**
1084 * @ingroup iface_org_kde_plasma_activation
1085 */
1086 #define ORG_KDE_PLASMA_ACTIVATION_DESTROY_SINCE_VERSION 1
1087
1088 /** @ingroup iface_org_kde_plasma_activation */
1089 static inline void
1090 org_kde_plasma_activation_set_user_data(struct org_kde_plasma_activation *org_kde_plasma_activation, void *user_data)
1091 {
1092 wl_proxy_set_user_data((struct wl_proxy *) org_kde_plasma_activation, user_data);
1093 }
1094
1095 /** @ingroup iface_org_kde_plasma_activation */
1096 static inline void *
1097 org_kde_plasma_activation_get_user_data(struct org_kde_plasma_activation *org_kde_plasma_activation)
1098 {
1099 return wl_proxy_get_user_data((struct wl_proxy *) org_kde_plasma_activation);
1100 }
1101
1102 static inline uint32_t
1103 org_kde_plasma_activation_get_version(struct org_kde_plasma_activation *org_kde_plasma_activation)
1104 {
1105 return wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_activation);
1106 }
1107
1108 /**
1109 * @ingroup iface_org_kde_plasma_activation
1110 *
1111 * Notify the compositor that the org_kde_plasma_activation object will no
1112 * longer be used.
1113 */
1114 static inline void
1115 org_kde_plasma_activation_destroy(struct org_kde_plasma_activation *org_kde_plasma_activation)
1116 {
1117 wl_proxy_marshal_flags((struct wl_proxy *) org_kde_plasma_activation,
1118 ORG_KDE_PLASMA_ACTIVATION_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) org_kde_plasma_activation), WL_MARSHAL_FLAG_DESTROY);
1119 }
1120
1121 #ifdef __cplusplus
1122 }
1123 #endif
1124
1125 #endif