Debian Codegraph @

data/org.freedesktop.impl.portal.Screenshot.xml

raw
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.impl.portal.Screenshot:
26 @short_description: Screenshot portal backend interface
27
28 This screenshot portal lets sandboxed applications request a screenshot.
29
30 This documentation describes version 2 of this interface.
31 -->
32 <interface name="org.freedesktop.impl.portal.Screenshot">
33 <!--
34 Screenshot:
35 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
36 @app_id: App id of the application
37 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
38 @options: Vardict with optional further information
39 @response: Numeric response
40 @results: Vardict with the results of the call
41
42 Takes a screenshot.
43
44 Supported keys in the @options vardict include:
45
46 * ``modal`` (``b``)
47
48 Whether the dialog should be modal. Defaults to yes.
49
50 * ``interactive`` (``b``)
51
52 Hint whether the dialog should offer customization before taking a screenshot.
53 Defaults to no.
54
55 * ``permission_store_checked`` (``b``)
56
57 Hint whether the screenshot portal has checked the 'screenshot' permission for
58 the requesting app. Defaults to no.
59
60 This option was added in version 2 of this interface.
61
62 The following results get returned via the @results vardict:
63
64 * ``uri`` (``s``)
65
66 A string containing the URI of the screenshot.
67 -->
68 <method name="Screenshot">
69 <arg type="o" name="handle" direction="in"/>
70 <arg type="s" name="app_id" direction="in"/>
71 <arg type="s" name="parent_window" direction="in"/>
72 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
73 <arg type="a{sv}" name="options" direction="in"/>
74 <arg type="u" name="response" direction="out"/>
75 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
76 <arg type="a{sv}" name="results" direction="out"/>
77 </method>
78
79 <!--
80 PickColor:
81 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
82 @app_id: App id of the application
83 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
84 @options: Vardict with optional further information
85 @response: Numeric response
86 @results: Vardict with the results of the call
87
88 Obtains the value of a pixel.
89
90 The following results get returned via the @results vardict:
91
92 * ``color``` (``(ddd)``)
93
94 The color, RGB values in the range [0,1].
95 -->
96 <method name="PickColor">
97 <arg type="o" name="handle" direction="in"/>
98 <arg type="s" name="app_id" direction="in"/>
99 <arg type="s" name="parent_window" direction="in"/>
100 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
101 <arg type="a{sv}" name="options" direction="in"/>
102 <arg type="u" name="response" direction="out"/>
103 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
104 <arg type="a{sv}" name="results" direction="out"/>
105 </method>
106
107 <property name="version" type="u" access="read"/>
108 </interface>
109 </node>