| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2022 Red Hat, Inc. |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.1-or-later |
| 6 |
|
| 7 |
This library is free software; you can redistribute it and/or |
| 8 |
modify it under the terms of the GNU Lesser General Public |
| 9 |
License as published by the Free Software Foundation; either |
| 10 |
version 2.1 of the License, or (at your option) any later version. |
| 11 |
|
| 12 |
This library is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
Lesser General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU Lesser General Public |
| 18 |
License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
--> |
| 20 |
|
| 21 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 22 |
<!-- |
| 23 |
org.freedesktop.impl.portal.InputCapture: |
| 24 |
@short_description: Input Capture portal backend interface |
| 25 |
|
| 26 |
The Input Capture portal allows clients to capture input from local |
| 27 |
devices. This portal is mostly a 1:1 mapping of the |
| 28 |
:ref:`org.freedesktop.portal.InputCapture` portal, see that portal's |
| 29 |
documentation for details on methods, signals and arguments. |
| 30 |
|
| 31 |
This documentation describes version 2 of this interface. |
| 32 |
--> |
| 33 |
<interface name="org.freedesktop.impl.portal.InputCapture"> |
| 34 |
<!-- |
| 35 |
CreateSession: |
| 36 |
@handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call |
| 37 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session being created |
| 38 |
@app_id: App id of the application |
| 39 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 40 |
@options: Vardict with optional further information |
| 41 |
@response: Numeric response |
| 42 |
@results: Vardict with the results of the call |
| 43 |
|
| 44 |
This method was deprecated in version 2 of this interface and will not |
| 45 |
be called by the frontend if the implementation indicates support for |
| 46 |
version 2. See CreateSession2 instead. |
| 47 |
|
| 48 |
Create an input capture session. |
| 49 |
|
| 50 |
Supported keys in the @options vardict include: |
| 51 |
|
| 52 |
* ``capabilities`` (``u``) |
| 53 |
|
| 54 |
Bitmask of requested capabilities, see the |
| 55 |
SupportedCapabilities property. This value is required. |
| 56 |
|
| 57 |
The following results get returned in the @results vardict: |
| 58 |
|
| 59 |
* ``session_id`` (``s``) |
| 60 |
|
| 61 |
The session id. A string representing the created input capture session. |
| 62 |
|
| 63 |
* ``capabilities`` (``u``) |
| 64 |
|
| 65 |
The capabilities available to this session. This is always a |
| 66 |
subset of the requested capabilities. |
| 67 |
--> |
| 68 |
<method name="CreateSession"> |
| 69 |
<arg type="o" name="handle" direction="in"/> |
| 70 |
<arg type="o" name="session_handle" direction="in"/> |
| 71 |
<arg type="s" name="app_id" direction="in"/> |
| 72 |
<arg type="s" name="parent_window" direction="in"/> |
| 73 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/> |
| 74 |
<arg type="a{sv}" name="options" direction="in"/> |
| 75 |
<arg type="u" name="response" direction="out"/> |
| 76 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 77 |
<arg type="a{sv}" name="results" direction="out"/> |
| 78 |
</method> |
| 79 |
|
| 80 |
<!-- |
| 81 |
CreateSession2: |
| 82 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session being created |
| 83 |
@app_id: App id of the application |
| 84 |
@options: Vardict with optional further information |
| 85 |
@results: Vardict with the results of the call |
| 86 |
|
| 87 |
Create an input capture session. In contrast with CreateSession, the |
| 88 |
created session is not in the started state. |
| 89 |
|
| 90 |
There are currently no supported keys in the @options vardict. |
| 91 |
|
| 92 |
There are currently no supported keys in the @results vardict. |
| 93 |
|
| 94 |
This method was added in version 2 of this interface. |
| 95 |
--> |
| 96 |
<method name="CreateSession2"> |
| 97 |
<arg type="o" name="session_handle" direction="in"/> |
| 98 |
<arg type="s" name="app_id" direction="in"/> |
| 99 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 100 |
<arg type="a{sv}" name="options" direction="in"/> |
| 101 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/> |
| 102 |
<arg type="a{sv}" name="results" direction="out"/> |
| 103 |
</method> |
| 104 |
|
| 105 |
<!-- |
| 106 |
Start: |
| 107 |
@handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call |
| 108 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 109 |
@app_id: App id of the application |
| 110 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 111 |
@options: Vardict with optional further information |
| 112 |
@response: Numeric response |
| 113 |
@results: Vardict with the results of the call |
| 114 |
|
| 115 |
Start the input capture session. This will typically result in the portal |
| 116 |
presenting a dialog letting the user decide whether they want to allow the |
| 117 |
input of the session to be captured, and what capabilities to support. |
| 118 |
|
| 119 |
This method may only be called once on a session previously created with CreateSession2. |
| 120 |
Sessions created by the deprecated CreateSession are immediately started. |
| 121 |
|
| 122 |
Supported keys in the @options vardict include: |
| 123 |
|
| 124 |
* ``capabilities`` (``u``) |
| 125 |
|
| 126 |
Bitmask of requested capabilities, see the SupportedCapabilities property. |
| 127 |
This value is required and must not be zero. |
| 128 |
|
| 129 |
* ``restore_data`` (``(suv)``) |
| 130 |
|
| 131 |
The data to restore from a previous session. |
| 132 |
|
| 133 |
If the stored session cannot be restored, this value is ignored |
| 134 |
and the user will be prompted normally. This may happen when, for |
| 135 |
example, the session contains capabilities that are not available |
| 136 |
anymore, or when the stored permissions are withdrawn. |
| 137 |
|
| 138 |
The restore data is composed of the vendor name (e.g. "GNOME" or |
| 139 |
"KDE"), the version of the implementation-specific private data, |
| 140 |
and the implementation-specific private data itself. |
| 141 |
|
| 142 |
This option was added in version 2 of this interface. |
| 143 |
|
| 144 |
* ``persist_mode`` (``u``) |
| 145 |
|
| 146 |
How this session should persist. Default is 0. Accepted values are: |
| 147 |
|
| 148 |
- ``0``: Do not persist (default) |
| 149 |
- ``1``: Permissions persist as long as the application is running |
| 150 |
- ``2``: Permissions persist until explicitly revoked |
| 151 |
|
| 152 |
If the permission for the session to persist is granted, ``restore_data`` |
| 153 |
will be returned in the @results vardict of the |
| 154 |
:ref:`org.freedesktop.impl.portal.InputCapture.Start` method. |
| 155 |
|
| 156 |
This option was added in version 2 of this interface. |
| 157 |
|
| 158 |
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal: |
| 159 |
|
| 160 |
* ``capabilities`` (``u``) |
| 161 |
|
| 162 |
The capabilities available to this session. This is always a |
| 163 |
subset of the requested capabilities. |
| 164 |
See the SupportedCapabilities property for details. Note that |
| 165 |
while a capability may be available to a session, there is no |
| 166 |
guarantee a device with that capability is currently available |
| 167 |
or if one does become available that it will trigger input capture. |
| 168 |
|
| 169 |
It is best to view this set as a negative confirmation - a |
| 170 |
capability that was requested but is missing is an indication that |
| 171 |
this application may not capture events of that capability. |
| 172 |
|
| 173 |
* ``clipboard_enabled`` (``b``) |
| 174 |
|
| 175 |
A boolean for whether the clipboard was enabled ('true') or not ('false'). |
| 176 |
See the :ref:`org.freedesktop.portal.Clipboard` documentation for more |
| 177 |
information. |
| 178 |
|
| 179 |
* ``restore_data`` (``(suv)``) |
| 180 |
|
| 181 |
The data for this session to store in the XDG Portal, for a session |
| 182 |
with a ``persist_mode`` other than zero. If this session |
| 183 |
is restored in the future, this data is used as the ``restore_data`` |
| 184 |
argument in the @options vardict. |
| 185 |
|
| 186 |
This option was added in version 2 of this interface. |
| 187 |
|
| 188 |
This method was added in version 2 of this interface. |
| 189 |
--> |
| 190 |
<method name="Start"> |
| 191 |
<arg type="o" name="handle" direction="in"/> |
| 192 |
<arg type="o" name="session_handle" direction="in"/> |
| 193 |
<arg type="s" name="app_id" direction="in"/> |
| 194 |
<arg type="s" name="parent_window" direction="in"/> |
| 195 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/> |
| 196 |
<arg type="a{sv}" name="options" direction="in"/> |
| 197 |
<arg type="u" name="response" direction="out"/> |
| 198 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 199 |
<arg type="a{sv}" name="results" direction="out"/> |
| 200 |
</method> |
| 201 |
|
| 202 |
<!-- |
| 203 |
GetZones: |
| 204 |
@handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call |
| 205 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 206 |
@app_id: App id of the application |
| 207 |
@options: Vardict with optional further information |
| 208 |
@response: Numeric response |
| 209 |
@results: Vardict with the results of the call |
| 210 |
|
| 211 |
Return the current zones for this session. |
| 212 |
|
| 213 |
The following results get returned in the @results vardict: |
| 214 |
|
| 215 |
* ``zones`` (``a(uuii)``) |
| 216 |
|
| 217 |
An array of zones with width, height, x-offset, y-offset. |
| 218 |
|
| 219 |
* ``zone_set`` (``u``) |
| 220 |
|
| 221 |
The zone_set ID required in |
| 222 |
org.freedesktop.impl.portal.InputCapture.SetPointerBarriers(). |
| 223 |
--> |
| 224 |
<method name="GetZones"> |
| 225 |
<arg type="o" name="handle" direction="in"/> |
| 226 |
<arg type="o" name="session_handle" direction="in"/> |
| 227 |
<arg type="s" name="app_id" direction="in"/> |
| 228 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/> |
| 229 |
<arg type="a{sv}" name="options" direction="in"/> |
| 230 |
<arg type="u" name="response" direction="out"/> |
| 231 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 232 |
<arg type="a{sv}" name="results" direction="out"/> |
| 233 |
</method> |
| 234 |
|
| 235 |
<!-- |
| 236 |
SetPointerBarriers: |
| 237 |
@handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call |
| 238 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 239 |
@app_id: App id of the application |
| 240 |
@options: Vardict with optional further information |
| 241 |
@barriers: An array of vardicts, each specifying one barrier |
| 242 |
@zone_set: A unique ID referring to the zone set |
| 243 |
@response: Numeric response |
| 244 |
@results: Vardict with the results of the call |
| 245 |
|
| 246 |
Set up zero or more pointer barriers. |
| 247 |
|
| 248 |
Supported keys in the @barriers vardicts include: |
| 249 |
|
| 250 |
* ``barrier_id`` (``u``) |
| 251 |
|
| 252 |
The non-zero id of this barrier. This id is used in the |
| 253 |
#org.freedesktop.portal.impl.InputCapture::Activated signal to inform |
| 254 |
which barrier triggered input capture. |
| 255 |
|
| 256 |
* ``position`` (``(iiii)``) |
| 257 |
|
| 258 |
The x1/y1 x2/y2 position of the pointer barrier. A horizontal |
| 259 |
pointer barrier must have y1 == y2, a vertical pointer barrier |
| 260 |
must have x1 == x2. Diagonal pointer barriers are not supported. |
| 261 |
|
| 262 |
The following results get returned in the @results vardict: |
| 263 |
|
| 264 |
* ``failed_barriers`` (``au``) |
| 265 |
|
| 266 |
An array of barrier_ids of pointer barriers that have been denied. The |
| 267 |
id matches the barrier_id of the entries in the @barriers argument. |
| 268 |
--> |
| 269 |
<method name="SetPointerBarriers"> |
| 270 |
<arg type="o" name="handle" direction="in"/> |
| 271 |
<arg type="o" name="session_handle" direction="in"/> |
| 272 |
<arg type="s" name="app_id" direction="in"/> |
| 273 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/> |
| 274 |
<arg type="a{sv}" name="options" direction="in"/> |
| 275 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QList<QVariantMap>"/> |
| 276 |
<arg type="aa{sv}" name="barriers" direction="in"/> |
| 277 |
<arg type="u" name="zone_set" direction="in"/> |
| 278 |
<arg type="u" name="response" direction="out"/> |
| 279 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 280 |
<arg type="a{sv}" name="results" direction="out"/> |
| 281 |
</method> |
| 282 |
|
| 283 |
<!-- |
| 284 |
Enable: |
| 285 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 286 |
@app_id: App id of the application |
| 287 |
@options: Vardict with optional further information |
| 288 |
|
| 289 |
Enable input capturing. |
| 290 |
--> |
| 291 |
<method name="Enable"> |
| 292 |
<arg type="o" name="session_handle" direction="in"/> |
| 293 |
<arg type="s" name="app_id" direction="in"/> |
| 294 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 295 |
<arg type="a{sv}" name="options" direction="in"/> |
| 296 |
<arg type="u" name="response" direction="out"/> |
| 297 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 298 |
<arg type="a{sv}" name="results" direction="out"/> |
| 299 |
</method> |
| 300 |
|
| 301 |
<!-- |
| 302 |
Disable: |
| 303 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 304 |
@app_id: App id of the application |
| 305 |
@options: Vardict with optional further information |
| 306 |
|
| 307 |
Disable input capturing. |
| 308 |
--> |
| 309 |
<method name="Disable"> |
| 310 |
<arg type="o" name="session_handle" direction="in"/> |
| 311 |
<arg type="s" name="app_id" direction="in"/> |
| 312 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 313 |
<arg type="a{sv}" name="options" direction="in"/> |
| 314 |
<arg type="u" name="response" direction="out"/> |
| 315 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 316 |
<arg type="a{sv}" name="results" direction="out"/> |
| 317 |
</method> |
| 318 |
|
| 319 |
<!-- |
| 320 |
Release: |
| 321 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 322 |
@app_id: App id of the application |
| 323 |
@options: Vardict with optional further information |
| 324 |
|
| 325 |
Release ongoing input capturing. |
| 326 |
|
| 327 |
Supported keys in the @options vardict include: |
| 328 |
|
| 329 |
* ``activation_id`` (``u``) |
| 330 |
|
| 331 |
The same activation_id number as in the |
| 332 |
#org.freedesktop.impl.portal.InputCapture::Activated signal. |
| 333 |
|
| 334 |
* ``cursor_position`` (``(dd)``) |
| 335 |
|
| 336 |
The suggested cursor position within the Zones available in |
| 337 |
this session. |
| 338 |
|
| 339 |
This is a suggestion to the compositor to place the cursor in |
| 340 |
the correct position to allow for fluent movement between virtual |
| 341 |
screens. The compositor is not required to honor this suggestion. |
| 342 |
--> |
| 343 |
<method name="Release"> |
| 344 |
<arg type="o" name="session_handle" direction="in"/> |
| 345 |
<arg type="s" name="app_id" direction="in"/> |
| 346 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 347 |
<arg type="a{sv}" name="options" direction="in"/> |
| 348 |
<arg type="u" name="response" direction="out"/> |
| 349 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 350 |
<arg type="a{sv}" name="results" direction="out"/> |
| 351 |
</method> |
| 352 |
|
| 353 |
<!-- |
| 354 |
ConnectToEIS: |
| 355 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 356 |
@app_id: App id of the application |
| 357 |
@options: Vardict with optional further information |
| 358 |
@fd: A file descriptor to an EIS implementation that can be passed to a passive libei context |
| 359 |
|
| 360 |
Set up the connection to an EIS implementation. Once input capturing starts, |
| 361 |
input events are sent via the EI protocol between the compositor and the application. |
| 362 |
This call must be invoked before :ref:`org.freedesktop.portal.InputCapture.Enable`. |
| 363 |
|
| 364 |
A session only needs to set this up once, the EIS implementation is not affected by |
| 365 |
calls to Disable() and :ref:`org.freedesktop.portal.InputCapture.Enable` - |
| 366 |
the same context can be re-used until the session is closed. |
| 367 |
--> |
| 368 |
<method name="ConnectToEIS"> |
| 369 |
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 370 |
<arg type="o" name="session_handle" direction="in"/> |
| 371 |
<arg type="s" name="app_id" direction="in"/> |
| 372 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 373 |
<arg type="a{sv}" name="options" direction="in"/> |
| 374 |
<arg type="h" name="fd" direction="out"/> |
| 375 |
</method> |
| 376 |
<!-- |
| 377 |
Disabled: |
| 378 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 379 |
@options: Vardict with optional further information |
| 380 |
|
| 381 |
The Disabled signal is emitted when the application will no longer |
| 382 |
receive captured input. If input capturing is currently ongoing, the |
| 383 |
#org.freedesktop.impl.portal.InputCapture::Deactivated signal is emitted |
| 384 |
before this signal. |
| 385 |
--> |
| 386 |
<signal name="Disabled"> |
| 387 |
<arg type="o" name="session_handle" direction="out"/> |
| 388 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 389 |
<arg type="a{sv}" name="options" direction="out"/> |
| 390 |
</signal> |
| 391 |
|
| 392 |
<!-- |
| 393 |
Activated: |
| 394 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 395 |
@options: Vardict with optional further information |
| 396 |
|
| 397 |
The Activated signal is emitted when input capture starts and input events |
| 398 |
are about to be sent to the application. |
| 399 |
|
| 400 |
This signal is only emitted after a prior call |
| 401 |
to org.freedesktop.impl.portal.InputCapture.Enable(). |
| 402 |
|
| 403 |
Supported keys in the @options vardict include: |
| 404 |
|
| 405 |
* ``activation_id`` (``u``) |
| 406 |
|
| 407 |
A number that can be used to synchronize with the |
| 408 |
transport-layer. This number has no intrinsic meaning but |
| 409 |
is guaranteed to increase by an unspecified amount on each call. |
| 410 |
|
| 411 |
In particular: if the compositor sends an activation_id of N as |
| 412 |
part of this request it will also set the sequence in EIS' |
| 413 |
start_emulating event the same value N on the EIS connection |
| 414 |
before the first event from a device is sent. |
| 415 |
This allows an application to have a synchronization point and |
| 416 |
attribute an event sequence to the portal interaction. |
| 417 |
|
| 418 |
Applications must be able to handle the activation_id number wrapping |
| 419 |
around. Implementations of this portal must to increase the |
| 420 |
activation_id number by an sensible amount to allow for wrapping |
| 421 |
detection. |
| 422 |
|
| 423 |
* ``cursor_position`` (``(dd)``) |
| 424 |
|
| 425 |
The current cursor position. Note that this position may be |
| 426 |
outside the Zones available to this session - this indicates |
| 427 |
movement larger than a single pixel. |
| 428 |
|
| 429 |
For example, a fast movement against a barrier on the right edge |
| 430 |
of a screen may logically put the cursor dozens of pixels into |
| 431 |
the (non-existing) screen on the other side of the barrier. |
| 432 |
It is the application's responsibility to adjust the cursor |
| 433 |
position as necessary. |
| 434 |
|
| 435 |
* ``barrier_id`` (``u``) |
| 436 |
|
| 437 |
The barrier id of the barrier that triggered. If the value is |
| 438 |
nonzero, it matches the barrier id as specified in |
| 439 |
org.freedesktop.impl.portal.InputCapture.SetPointerBarriers(). |
| 440 |
|
| 441 |
If the id is zero, the pointer barrier could be determined. |
| 442 |
If the id is missing, the input capture was not triggered by a |
| 443 |
pointer barrier. |
| 444 |
|
| 445 |
Where more than one pointer barrier are triggered by the same |
| 446 |
movement it is up to the compositor to choose one barrier (or use |
| 447 |
a barrier id of zero). |
| 448 |
--> |
| 449 |
<signal name="Activated"> |
| 450 |
<arg type="o" name="session_handle" direction="out"/> |
| 451 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 452 |
<arg type="a{sv}" name="options" direction="out"/> |
| 453 |
</signal> |
| 454 |
|
| 455 |
<!-- |
| 456 |
Deactivated: |
| 457 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 458 |
@options: Vardict with optional further information |
| 459 |
|
| 460 |
The Deactivated signal is emitted when input capture stopped and input events |
| 461 |
are no longer sent to the application. To prevent future input |
| 462 |
capture, an application must call :ref:`org.freedesktop.portal.InputCapture.Disable`. |
| 463 |
|
| 464 |
Supported keys in the @options vardict include: |
| 465 |
|
| 466 |
* ``activation_id`` (``u``) |
| 467 |
|
| 468 |
The same activation_id as in the corresponding |
| 469 |
#org.freedesktop.impl.portal.InputCapture::Activated signal. |
| 470 |
|
| 471 |
* ``cursor_position`` (``(dd)``) |
| 472 |
|
| 473 |
The current cursor position. Note that this position may be |
| 474 |
outside the Zones available to this session - this indicates |
| 475 |
movement larger than a single pixel. |
| 476 |
|
| 477 |
For example, a fast movement against a barrier on the right edge |
| 478 |
of a screen may logically put the cursor dozens of pixels into |
| 479 |
the (non-existing) screen on the other side of the barrier. |
| 480 |
It is the application's responsibility to adjust the cursor |
| 481 |
position as necessary. |
| 482 |
--> |
| 483 |
<signal name="Deactivated"> |
| 484 |
<arg type="o" name="session_handle" direction="out"/> |
| 485 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 486 |
<arg type="a{sv}" name="options" direction="out"/> |
| 487 |
</signal> |
| 488 |
|
| 489 |
<!-- |
| 490 |
ZonesChanged: |
| 491 |
@session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session |
| 492 |
@options: Vardict with optional further information |
| 493 |
|
| 494 |
The ZonesChanged signal is emitted when one or more of the zones |
| 495 |
available **to this session** change. An application should immediately call |
| 496 |
:ref:`org.freedesktop.portal.InputCapture.GetZones` to update its state of the zones. |
| 497 |
--> |
| 498 |
<signal name="ZonesChanged"> |
| 499 |
<arg type="o" name="session_handle" direction="out"/> |
| 500 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 501 |
<arg type="a{sv}" name="options" direction="out"/> |
| 502 |
</signal> |
| 503 |
|
| 504 |
<!-- |
| 505 |
SupportedCapabilities: |
| 506 |
|
| 507 |
A bitmask of supported capabilities. This list is constant, it is not the list of |
| 508 |
capabilities currently available but rather which capabilities are |
| 509 |
implemented by the portal. |
| 510 |
|
| 511 |
Applications must ignore unknown capabilities. |
| 512 |
|
| 513 |
Currently defined types are: |
| 514 |
|
| 515 |
- ``1``: KEYBOARD |
| 516 |
- ``2``: POINTER |
| 517 |
- ``4``: TOUCHSCREEN |
| 518 |
--> |
| 519 |
<property name="SupportedCapabilities" type="u" access="read"/> |
| 520 |
<property name="version" type="u" access="read"/> |
| 521 |
</interface> |
| 522 |
</node> |