| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2016 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 |
Author: Matthias Clasen <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.Screenshot: |
| 26 |
@short_description: Portal for taking screenshots |
| 27 |
|
| 28 |
This simple portal lets sandboxed applications request a screenshot. |
| 29 |
|
| 30 |
The screenshot will be made accessible to the application (which |
| 31 |
may involve adding it to the :ref:`Documents |
| 32 |
portal<org.freedesktop.portal.Documents>`). |
| 33 |
|
| 34 |
This documentation describes **version 2** of this interface. |
| 35 |
--> |
| 36 |
<interface name="org.freedesktop.portal.Screenshot"> |
| 37 |
<!-- |
| 38 |
Screenshot: |
| 39 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 40 |
@options: Vardict with optional further information |
| 41 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 42 |
|
| 43 |
Takes a screenshot. |
| 44 |
|
| 45 |
Supported keys in the @options vardict include: |
| 46 |
|
| 47 |
* ``handle_token`` (``s``) |
| 48 |
|
| 49 |
A string that will be used as the last element of the @handle. Must be a valid |
| 50 |
object path element. See the :ref:`org.freedesktop.portal.Request` documentation for |
| 51 |
more information about the @handle. |
| 52 |
|
| 53 |
* ``modal`` (``b``) |
| 54 |
|
| 55 |
Whether the dialog should be modal. Default is yes. |
| 56 |
|
| 57 |
* ``interactive`` (``b``) |
| 58 |
|
| 59 |
Hint whether the dialog should offer customization before taking a screenshot. |
| 60 |
Default is no. **Since version 2.** |
| 61 |
|
| 62 |
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` |
| 63 |
signal: |
| 64 |
|
| 65 |
* ``uri`` (``s``) |
| 66 |
|
| 67 |
String containing the uri of the screenshot. |
| 68 |
--> |
| 69 |
<method name="Screenshot"> |
| 70 |
<arg type="s" name="parent_window" direction="in"/> |
| 71 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 72 |
<arg type="a{sv}" name="options" direction="in"/> |
| 73 |
<arg type="o" name="handle" direction="out"/> |
| 74 |
</method> |
| 75 |
<!-- |
| 76 |
PickColor: |
| 77 |
@parent_window: Identifier for the application window, see :doc:`window-identifiers` |
| 78 |
@options: Vardict with optional further information |
| 79 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 80 |
|
| 81 |
Obtains the color of a single pixel. |
| 82 |
|
| 83 |
Supported keys in the @options vardict include: |
| 84 |
|
| 85 |
* ``handle_token`` (``s``) |
| 86 |
|
| 87 |
A string that will be used as the last element of the @handle. Must be a valid |
| 88 |
object path element. See the :ref:`org.freedesktop.portal.Request` documentation for |
| 89 |
more information about the @handle. |
| 90 |
|
| 91 |
The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal: |
| 92 |
|
| 93 |
* ``color`` (``(ddd)``) |
| 94 |
|
| 95 |
The color, RGB values in the range [0,1], in the sRGB color space. |
| 96 |
--> |
| 97 |
<method name="PickColor"> |
| 98 |
<arg type="s" name="parent_window" direction="in"/> |
| 99 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 100 |
<arg type="a{sv}" name="options" direction="in"/> |
| 101 |
<arg type="o" name="handle" direction="out"/> |
| 102 |
</method> |
| 103 |
<property name="version" type="u" access="read"/> |
| 104 |
</interface> |
| 105 |
</node> |