Changeset View
Changeset View
Standalone View
Standalone View
src/client/registry.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | struct org_kde_kwin_dpms_manager; | 45 | struct org_kde_kwin_dpms_manager; | ||
46 | struct org_kde_kwin_shadow_manager; | 46 | struct org_kde_kwin_shadow_manager; | ||
47 | struct org_kde_kwin_blur_manager; | 47 | struct org_kde_kwin_blur_manager; | ||
48 | struct org_kde_kwin_contrast_manager; | 48 | struct org_kde_kwin_contrast_manager; | ||
49 | struct org_kde_kwin_slide_manager; | 49 | struct org_kde_kwin_slide_manager; | ||
50 | struct org_kde_plasma_shell; | 50 | struct org_kde_plasma_shell; | ||
51 | struct org_kde_plasma_window_management; | 51 | struct org_kde_plasma_window_management; | ||
52 | struct org_kde_kwin_server_decoration_manager; | 52 | struct org_kde_kwin_server_decoration_manager; | ||
53 | struct org_kde_kwin_server_decoration_palette_manager; | ||||
53 | struct xdg_shell; | 54 | struct xdg_shell; | ||
54 | struct zxdg_shell_v6; | 55 | struct zxdg_shell_v6; | ||
55 | struct zwp_relative_pointer_manager_v1; | 56 | struct zwp_relative_pointer_manager_v1; | ||
56 | struct zwp_pointer_gestures_v1; | 57 | struct zwp_pointer_gestures_v1; | ||
57 | struct zwp_pointer_constraints_v1; | 58 | struct zwp_pointer_constraints_v1; | ||
58 | struct zxdg_exporter_v2; | 59 | struct zxdg_exporter_v2; | ||
59 | struct zxdg_importer_v2; | 60 | struct zxdg_importer_v2; | ||
60 | struct zwp_idle_inhibit_manager_v1; | 61 | struct zwp_idle_inhibit_manager_v1; | ||
Show All 23 Lines | |||||
84 | class Seat; | 85 | class Seat; | ||
85 | class ShadowManager; | 86 | class ShadowManager; | ||
86 | class BlurManager; | 87 | class BlurManager; | ||
87 | class ContrastManager; | 88 | class ContrastManager; | ||
88 | class SlideManager; | 89 | class SlideManager; | ||
89 | class Shell; | 90 | class Shell; | ||
90 | class ShmPool; | 91 | class ShmPool; | ||
91 | class ServerSideDecorationManager; | 92 | class ServerSideDecorationManager; | ||
93 | class ServerSideDecorationPaletteManager; | ||||
92 | class SubCompositor; | 94 | class SubCompositor; | ||
93 | class TextInputManager; | 95 | class TextInputManager; | ||
94 | class TextInputManagerUnstableV0; | 96 | class TextInputManagerUnstableV0; | ||
95 | class TextInputManagerUnstableV2; | 97 | class TextInputManagerUnstableV2; | ||
96 | class XdgShell; | 98 | class XdgShell; | ||
97 | class RelativePointerManager; | 99 | class RelativePointerManager; | ||
98 | class XdgExporterUnstableV2; | 100 | class XdgExporterUnstableV2; | ||
99 | class XdgImporterUnstableV2; | 101 | class XdgImporterUnstableV2; | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 139 | enum class Interface { | |||
162 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | 164 | RelativePointerManagerUnstableV1, ///< Refers to zwp_relative_pointer_manager_v1, @since 5.28 | ||
163 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | 165 | PointerGesturesUnstableV1, ///< Refers to zwp_pointer_gestures_v1, @since 5.29 | ||
164 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | 166 | PointerConstraintsUnstableV1, ///< Refers to zwp_pointer_constraints_v1, @since 5.29 | ||
165 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | 167 | XdgExporterUnstableV2, ///< refers to zxdg_exporter_v2, @since 5.40 | ||
166 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | 168 | XdgImporterUnstableV2, ///< refers to zxdg_importer_v2, @since 5.40 | ||
167 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.39 | 169 | XdgShellUnstableV6, ///< Refers to zxdg_shell_v6 (unstable version 6), @since 5.39 | ||
168 | IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | 170 | IdleInhibitManagerUnstableV1, ///< Refers to zwp_idle_inhibit_manager_v1 (unstable version 1), @since 5.41 | ||
169 | AppMenu ///Refers to org_kde_kwin_appmenu @since 5.42 | 171 | AppMenu ///Refers to org_kde_kwin_appmenu @since 5.42 | ||
172 | ServerSideDecorationPalette ///Refers to org_kde_kwin_server_decoration_palette_manager @since 5.42 | ||||
170 | }; | 173 | }; | ||
171 | explicit Registry(QObject *parent = nullptr); | 174 | explicit Registry(QObject *parent = nullptr); | ||
172 | virtual ~Registry(); | 175 | virtual ~Registry(); | ||
173 | 176 | | |||
174 | /** | 177 | /** | ||
175 | * Releases the wl_registry interface. | 178 | * Releases the wl_registry interface. | ||
176 | * After the interface has been released the Registry instance is no | 179 | * After the interface has been released the Registry instance is no | ||
177 | * longer valid and can be setup with another wl_registry interface. | 180 | * longer valid and can be setup with another wl_registry interface. | ||
▲ Show 20 Lines • Show All 399 Lines • ▼ Show 20 Line(s) | |||||
577 | 580 | | |||
578 | /** | 581 | /** | ||
579 | * Binds the org_kde_kwin_appmenu_manager with @p name and @p version. | 582 | * Binds the org_kde_kwin_appmenu_manager with @p name and @p version. | ||
580 | * If the @p name does not exist or is not for the appmenu manager interface, | 583 | * If the @p name does not exist or is not for the appmenu manager interface, | ||
581 | * @c null will be returned. | 584 | * @c null will be returned. | ||
582 | * | 585 | * | ||
583 | * Prefer using createAppMenuManager instead. | 586 | * Prefer using createAppMenuManager instead. | ||
584 | * @see createAppMenuManager | 587 | * @see createAppMenuManager | ||
585 | * @since 5.XX | 588 | * @since 5.42 | ||
586 | **/ | 589 | **/ | ||
587 | org_kde_kwin_appmenu_manager *bindAppMenuManager(uint32_t name, uint32_t version) const; | 590 | org_kde_kwin_appmenu_manager *bindAppMenuManager(uint32_t name, uint32_t version) const; | ||
588 | 591 | | |||
589 | /** | 592 | /** | ||
593 | * Binds the org_kde_kwin_server_decoration_palette_manager with @p name and @p version. | ||||
594 | * If the @p name does not exist or is not for the server side decoration palette manager interface, | ||||
595 | * @c null will be returned. | ||||
596 | * | ||||
597 | * Prefer using createServerSideDecorationPaletteManager instead. | ||||
598 | * @see createAppMenuManager | ||||
599 | * @since 5.42 | ||||
600 | **/ | ||||
601 | org_kde_kwin_server_decoration_palette_manager *bindServerSideDecorationPaletteManager(uint32_t name, uint32_t version) const; | ||||
602 | | ||||
603 | | ||||
604 | /** | ||||
590 | * @name Convenient factory methods for global objects. | 605 | * @name Convenient factory methods for global objects. | ||
591 | **/ | 606 | **/ | ||
592 | ///@{ | 607 | ///@{ | ||
593 | /** | 608 | /** | ||
594 | * Creates a Compositor and sets it up to manage the interface identified by | 609 | * Creates a Compositor and sets it up to manage the interface identified by | ||
595 | * @p name and @p version. | 610 | * @p name and @p version. | ||
596 | * | 611 | * | ||
597 | * Note: in case @p name is invalid or isn't for the wl_compositor interface, | 612 | * Note: in case @p name is invalid or isn't for the wl_compositor interface, | ||
▲ Show 20 Lines • Show All 456 Lines • ▼ Show 20 Line(s) | |||||
1054 | * @param parent The parent for AppMenuManager | 1069 | * @param parent The parent for AppMenuManager | ||
1055 | * | 1070 | * | ||
1056 | * @returns The created AppMenuManager. | 1071 | * @returns The created AppMenuManager. | ||
1057 | * @since 5.42 | 1072 | * @since 5.42 | ||
1058 | **/ | 1073 | **/ | ||
1059 | AppMenuManager *createAppMenuManager(quint32 name, quint32 version, QObject *parent = nullptr); | 1074 | AppMenuManager *createAppMenuManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||
1060 | 1075 | | |||
1061 | /** | 1076 | /** | ||
1077 | * Creates a ServerSideDecorationPaletteManager and sets it up to manage the interface identified by | ||||
1078 | * @p name and @p version. | ||||
1079 | * | ||||
1080 | * Note: in case @p name is invalid or isn't for the org_kde_kwin_appmenu_manager interface, | ||||
1081 | * the returned ServerSideDecorationPaletteManager will not be valid. Therefore it's recommended to call | ||||
1082 | * isValid on the created instance. | ||||
1083 | * | ||||
1084 | * @param name The name of the org_kde_kwin_server_decoration_palette_manager interface to bind | ||||
1085 | * @param version The version or the org_kde_kwin_server_decoration_palette_manager interface to use | ||||
1086 | * @param parent The parent for ServerSideDecorationPaletteManager | ||||
1087 | * | ||||
1088 | * @returns The created ServerSideDecorationPaletteManager. | ||||
1089 | * @since 5.42 | ||||
1090 | **/ | ||||
1091 | ServerSideDecorationPaletteManager *createServerSideDecorationPaletteManager(quint32 name, quint32 version, QObject *parent = nullptr); | ||||
1092 | | ||||
1093 | /** | ||||
1062 | * cast operator to the low-level Wayland @c wl_registry | 1094 | * cast operator to the low-level Wayland @c wl_registry | ||
1063 | **/ | 1095 | **/ | ||
1064 | operator wl_registry*(); | 1096 | operator wl_registry*(); | ||
1065 | /** | 1097 | /** | ||
1066 | * cast operator to the low-level Wayland @c wl_registry | 1098 | * cast operator to the low-level Wayland @c wl_registry | ||
1067 | **/ | 1099 | **/ | ||
1068 | operator wl_registry*() const; | 1100 | operator wl_registry*() const; | ||
1069 | /** | 1101 | /** | ||
▲ Show 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 1106 | Q_SIGNALS: | |||
1280 | 1312 | | |||
1281 | /** | 1313 | /** | ||
1282 | * Emitted whenever a org_kde_kwin_appmenu_manager interface gets announced. | 1314 | * Emitted whenever a org_kde_kwin_appmenu_manager interface gets announced. | ||
1283 | * @param name The name for the announced interface | 1315 | * @param name The name for the announced interface | ||
1284 | * @param version The maximum supported version of the announced interface | 1316 | * @param version The maximum supported version of the announced interface | ||
1285 | * @since 5.42 | 1317 | * @since 5.42 | ||
1286 | */ | 1318 | */ | ||
1287 | void appMenuAnnounced(quint32 name, quint32 version); | 1319 | void appMenuAnnounced(quint32 name, quint32 version); | ||
1320 | | ||||
1321 | /** | ||||
1322 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager interface gets announced. | ||||
1323 | * @param name The name for the announced interface | ||||
1324 | * @param version The maximum supported version of the announced interface | ||||
1325 | * @since 5.42 | ||||
1326 | */ | ||||
1327 | void serverSideDecorationPaletteManagerAnnounced(quint32 name, quint32 version); | ||||
1328 | | ||||
1288 | ///@} | 1329 | ///@} | ||
1289 | 1330 | | |||
1290 | /** | 1331 | /** | ||
1291 | * @name Interface removed signals. | 1332 | * @name Interface removed signals. | ||
1292 | **/ | 1333 | **/ | ||
1293 | ///@{ | 1334 | ///@{ | ||
1294 | /** | 1335 | /** | ||
1295 | * Emitted whenever a wl_compositor interface gets removed. | 1336 | * Emitted whenever a wl_compositor interface gets removed. | ||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | |||||
1468 | void idleInhibitManagerUnstableV1Removed(quint32 name); | 1509 | void idleInhibitManagerUnstableV1Removed(quint32 name); | ||
1469 | 1510 | | |||
1470 | /** | 1511 | /** | ||
1471 | * Emitted whenever a org_kde_kwin_appmenu_manager gets removed. | 1512 | * Emitted whenever a org_kde_kwin_appmenu_manager gets removed. | ||
1472 | * @param name The name of the removed interface | 1513 | * @param name The name of the removed interface | ||
1473 | * @since 5.42 | 1514 | * @since 5.42 | ||
1474 | **/ | 1515 | **/ | ||
1475 | void appMenuRemoved(quint32 name); | 1516 | void appMenuRemoved(quint32 name); | ||
1517 | | ||||
1518 | /** | ||||
1519 | * Emitted whenever a org_kde_kwin_server_decoration_palette_manager gets removed. | ||||
1520 | * @param name The name of the removed interface | ||||
1521 | * @since 5.42 | ||||
1522 | **/ | ||||
1523 | void serverSideDecorationPaletteManagerRemoved(quint32 name); | ||||
1524 | | ||||
1476 | ///@} | 1525 | ///@} | ||
1477 | /** | 1526 | /** | ||
1478 | * Generic announced signal which gets emitted whenever an interface gets | 1527 | * Generic announced signal which gets emitted whenever an interface gets | ||
1479 | * announced. | 1528 | * announced. | ||
1480 | * | 1529 | * | ||
1481 | * This signal is emitted before the dedicated signals are handled. If one | 1530 | * This signal is emitted before the dedicated signals are handled. If one | ||
1482 | * wants to know about one of the well-known interfaces use the dedicated | 1531 | * wants to know about one of the well-known interfaces use the dedicated | ||
1483 | * signals instead. Especially the bind methods might fail before the dedicated | 1532 | * signals instead. Especially the bind methods might fail before the dedicated | ||
Show All 40 Lines |