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 3 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 * ``target`` (``u``)
56
57 The screenshot target. It is a single target value, not a bitmask, and
58 must be one of the targets advertised in AvailableTargets. If this option
59 is omitted, the backend should preserve the previous Screenshot
60 behavior. Available targets are:
61
62 - ``1``: Screen: The entire screen.
63 - ``2``: Window: A window selected by the user.
64 - ``4``: Area: An area selected by the user.
65 - ``8``: Active Window: The currently active window.
66
67 This option was added in version 3 of this interface.
68
69 * ``permission_store_checked`` (``b``)
70
71 Hint whether the screenshot portal has checked the 'screenshot' permission for
72 the requesting app. Defaults to no.
73
74 This option was added in version 2 of this interface.
75
76 The following results get returned via the @results vardict:
77
78 * ``uri`` (``s``)
79
80 A string containing the URI of the screenshot.
81 -->
82 <method name="Screenshot">
83 <arg type="o" name="handle" direction="in"/>
84 <arg type="s" name="app_id" direction="in"/>
85 <arg type="s" name="parent_window" direction="in"/>
86 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
87 <arg type="a{sv}" name="options" direction="in"/>
88 <arg type="u" name="response" direction="out"/>
89 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
90 <arg type="a{sv}" name="results" direction="out"/>
91 </method>
92
93 <!--
94 PickColor:
95 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
96 @app_id: App id of the application
97 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
98 @options: Vardict with optional further information
99 @response: Numeric response
100 @results: Vardict with the results of the call
101
102 Obtains the value of a pixel.
103
104 The following results get returned via the @results vardict:
105
106 * ``color``` (``(ddd)``)
107
108 The color, RGB values in the range [0,1].
109 -->
110 <method name="PickColor">
111 <arg type="o" name="handle" direction="in"/>
112 <arg type="s" name="app_id" direction="in"/>
113 <arg type="s" name="parent_window" direction="in"/>
114 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
115 <arg type="a{sv}" name="options" direction="in"/>
116 <arg type="u" name="response" direction="out"/>
117 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
118 <arg type="a{sv}" name="results" direction="out"/>
119 </method>
120
121 <!--
122 AvailableTargets:
123
124 A bitmask of available screenshot targets. Available targets are:
125
126 - ``1``: Screen: The entire screen.
127 - ``2``: Window: A window selected by the user.
128 - ``4``: Area: An area selected by the user.
129 - ``8``: Active Window: The currently active window.
130
131 This property was added in version 3 of this interface.
132 -->
133 <property name="AvailableTargets" type="u" access="read"/>
134 <property name="version" type="u" access="read"/>
135 </interface>
136 </node>