Debian Codegraph @

data/org.freedesktop.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.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 3** 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 * ``target`` (``u``)
63
64 The screenshot target. It is a single target value, not a bitmask, and
65 must be one of the targets advertised in
66 :ref:`org.freedesktop.portal.Screenshot:AvailableTargets`. If this
67 option is omitted, the portal preserves the previous Screenshot
68 behavior. Available targets are:
69
70 - ``1``: Screen: The entire screen.
71 - ``2``: Window: A window selected by the user.
72 - ``4``: Area: An area selected by the user.
73 - ``8``: Active Window: The currently active window.
74
75 This option was added in version 3 of this interface.
76
77 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response`
78 signal:
79
80 * ``uri`` (``s``)
81
82 String containing the uri of the screenshot.
83 -->
84 <method name="Screenshot">
85 <arg type="s" name="parent_window" direction="in"/>
86 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
87 <arg type="a{sv}" name="options" direction="in"/>
88 <arg type="o" name="handle" direction="out"/>
89 </method>
90 <!--
91 PickColor:
92 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
93 @options: Vardict with optional further information
94 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
95
96 Obtains the color of a single pixel.
97
98 Supported keys in the @options vardict include:
99
100 * ``handle_token`` (``s``)
101
102 A string that will be used as the last element of the @handle. Must be a valid
103 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
104 more information about the @handle.
105
106 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
107
108 * ``color`` (``(ddd)``)
109
110 The color, RGB values in the range [0,1], in the sRGB color space.
111 -->
112 <method name="PickColor">
113 <arg type="s" name="parent_window" direction="in"/>
114 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
115 <arg type="a{sv}" name="options" direction="in"/>
116 <arg type="o" name="handle" direction="out"/>
117 </method>
118 <!--
119 AvailableTargets:
120
121 A bitmask of available screenshot targets. Available targets are:
122
123 - ``1``: Screen: The entire screen.
124 - ``2``: Window: A window selected by the user.
125 - ``4``: Area: An area selected by the user.
126 - ``8``: Active Window: The currently active window.
127
128 This property was added in version 3 of this interface.
129 -->
130 <property name="AvailableTargets" type="u" access="read"/>
131 <property name="version" type="u" access="read"/>
132 </interface>
133 </node>