1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
5
<refentry id="gdbus-org.gnome.Shell.Screenshot">
6
<refmeta> <refentrytitle role="top_of_page" id="gdbus-interface-org-gnome-Shell-Screenshot.top_of_page">org.gnome.Shell.Screenshot</refentrytitle>
7
<indexterm zone="gdbus-interface-org-gnome-Shell-Screenshot.top_of_page"><primary sortas="org.gnome.Shell.Screenshot">org.gnome.Shell.Screenshot</primary></indexterm>
8
</refmeta> <refnamediv> <refname>org.gnome.Shell.Screenshot</refname> <refpurpose>Screenshot interface</refpurpose> </refnamediv> <refsynopsisdiv role="synopsis">
9
<title role="synopsis.title">Methods</title>
11
<link linkend="gdbus-method-org-gnome-Shell-Screenshot.Screenshot">Screenshot</link> (IN b include_cursor,
16
<link linkend="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotWindow">ScreenshotWindow</link> (IN b include_frame,
22
<link linkend="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotArea">ScreenshotArea</link> (IN i x,
30
<link linkend="gdbus-method-org-gnome-Shell-Screenshot.FlashArea">FlashArea</link> (IN i x,
34
<link linkend="gdbus-method-org-gnome-Shell-Screenshot.SelectArea">SelectArea</link> (OUT i x,
40
<refsect1 role="desc" id="gdbus-interface-org-gnome-Shell-Screenshot">
41
<title role="desc.title">Description</title>
42
<para> The interface used to capture pictures of the screen contents.
45
<refsect1 role="details" id="gdbus-methods-org.gnome.Shell.Screenshot">
46
<title role="details.title">Method Details</title>
47
<refsect2 role="method" id="gdbus-method-org-gnome-Shell-Screenshot.Screenshot">
48
<title>The Screenshot() method</title>
49
<indexterm zone="gdbus-method-org-gnome-Shell-Screenshot.Screenshot"><primary sortas="org.gnome.Shell.Screenshot.Screenshot">org.gnome.Shell.Screenshot.Screenshot()</primary></indexterm>
51
Screenshot (IN b include_cursor,
57
<para> Takes a screenshot of the whole screen and saves it
58
in <parameter>filename</parameter> as png image, it returns a boolean
59
indicating whether the operation was successful or not.
60
<parameter>filename</parameter> can either be an absolute path or a basename, in
61
which case the screenshot will be saved in the $XDG_PICTURES_DIR
62
or the home directory if it doesn't exist. The filename used
63
to save the screenshot will be returned in <parameter>filename_used</parameter>.
65
<variablelist role="params">
67
<term><literal>IN b <parameter>include_cursor</parameter></literal>:</term>
68
<listitem><para>Whether to include the cursor image or not</para></listitem>
71
<term><literal>IN b <parameter>flash</parameter></literal>:</term>
72
<listitem><para>Whether to flash the screen or not</para></listitem>
75
<term><literal>IN s <parameter>filename</parameter></literal>:</term>
76
<listitem><para>The filename for the screenshot</para></listitem>
79
<term><literal>OUT b <parameter>success</parameter></literal>:</term>
80
<listitem><para>whether the screenshot was captured</para></listitem>
83
<term><literal>OUT s <parameter>filename_used</parameter></literal>:</term>
84
<listitem><para>the file where the screenshot was saved</para></listitem>
88
<refsect2 role="method" id="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotWindow">
89
<title>The ScreenshotWindow() method</title>
90
<indexterm zone="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotWindow"><primary sortas="org.gnome.Shell.Screenshot.ScreenshotWindow">org.gnome.Shell.Screenshot.ScreenshotWindow()</primary></indexterm>
92
ScreenshotWindow (IN b include_frame,
99
<para> Takes a screenshot of the focused window (optionally omitting the frame)
100
and saves it in <parameter>filename</parameter> as png image, it returns a boolean
101
indicating whether the operation was successful or not.
102
<parameter>filename</parameter> can either be an absolute path or a basename, in
103
which case the screenshot will be saved in the $XDG_PICTURES_DIR
104
or the home directory if it doesn't exist. The filename used
105
to save the screenshot will be returned in <parameter>filename_used</parameter>.
107
<variablelist role="params">
109
<term><literal>IN b <parameter>include_frame</parameter></literal>:</term>
110
<listitem><para>Whether to include the frame or not</para></listitem>
113
<term><literal>IN b <parameter>include_cursor</parameter></literal>:</term>
114
<listitem><para>Whether to include the cursor image or not</para></listitem>
117
<term><literal>IN b <parameter>flash</parameter></literal>:</term>
118
<listitem><para>Whether to flash the window area or not</para></listitem>
121
<term><literal>IN s <parameter>filename</parameter></literal>:</term>
122
<listitem><para>The filename for the screenshot</para></listitem>
125
<term><literal>OUT b <parameter>success</parameter></literal>:</term>
126
<listitem><para>whether the screenshot was captured</para></listitem>
129
<term><literal>OUT s <parameter>filename_used</parameter></literal>:</term>
130
<listitem><para>the file where the screenshot was saved</para></listitem>
134
<refsect2 role="method" id="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotArea">
135
<title>The ScreenshotArea() method</title>
136
<indexterm zone="gdbus-method-org-gnome-Shell-Screenshot.ScreenshotArea"><primary sortas="org.gnome.Shell.Screenshot.ScreenshotArea">org.gnome.Shell.Screenshot.ScreenshotArea()</primary></indexterm>
138
ScreenshotArea (IN i x,
145
OUT s filename_used);
147
<para> Takes a screenshot of the passed in area and saves it
148
in <parameter>filename</parameter> as png image, it returns a boolean
149
indicating whether the operation was successful or not.
150
<parameter>filename</parameter> can either be an absolute path or a basename, in
151
which case the screenshot will be saved in the $XDG_PICTURES_DIR
152
or the home directory if it doesn't exist. The filename used
153
to save the screenshot will be returned in <parameter>filename_used</parameter>.
155
<variablelist role="params">
157
<term><literal>IN i <parameter>x</parameter></literal>:</term>
158
<listitem><para>the X coordinate of the area to capture</para></listitem>
161
<term><literal>IN i <parameter>y</parameter></literal>:</term>
162
<listitem><para>the Y coordinate of the area to capture</para></listitem>
165
<term><literal>IN i <parameter>width</parameter></literal>:</term>
166
<listitem><para>the width of the area to capture</para></listitem>
169
<term><literal>IN i <parameter>height</parameter></literal>:</term>
170
<listitem><para>the height of the area to capture</para></listitem>
173
<term><literal>IN b <parameter>flash</parameter></literal>:</term>
174
<listitem><para>whether to flash the area or not</para></listitem>
177
<term><literal>IN s <parameter>filename</parameter></literal>:</term>
178
<listitem><para>the filename for the screenshot</para></listitem>
181
<term><literal>OUT b <parameter>success</parameter></literal>:</term>
182
<listitem><para>whether the screenshot was captured</para></listitem>
185
<term><literal>OUT s <parameter>filename_used</parameter></literal>:</term>
186
<listitem><para>the file where the screenshot was saved</para></listitem>
190
<refsect2 role="method" id="gdbus-method-org-gnome-Shell-Screenshot.FlashArea">
191
<title>The FlashArea() method</title>
192
<indexterm zone="gdbus-method-org-gnome-Shell-Screenshot.FlashArea"><primary sortas="org.gnome.Shell.Screenshot.FlashArea">org.gnome.Shell.Screenshot.FlashArea()</primary></indexterm>
199
<para> Renders a flash spot effect in the specified rectangle of the screen.
201
<variablelist role="params">
203
<term><literal>IN i <parameter>x</parameter></literal>:</term>
204
<listitem><para>the X coordinate of the area to flash</para></listitem>
207
<term><literal>IN i <parameter>y</parameter></literal>:</term>
208
<listitem><para>the Y coordinate of the area to flash</para></listitem>
211
<term><literal>IN i <parameter>width</parameter></literal>:</term>
212
<listitem><para>the width of the area to flash</para></listitem>
215
<term><literal>IN i <parameter>height</parameter></literal>:</term>
216
<listitem><para>the height of the area to flash</para></listitem>
220
<refsect2 role="method" id="gdbus-method-org-gnome-Shell-Screenshot.SelectArea">
221
<title>The SelectArea() method</title>
222
<indexterm zone="gdbus-method-org-gnome-Shell-Screenshot.SelectArea"><primary sortas="org.gnome.Shell.Screenshot.SelectArea">org.gnome.Shell.Screenshot.SelectArea()</primary></indexterm>
229
<para> Interactively allows the user to select a rectangular area of
230
the screen, and returns its coordinates.
232
<variablelist role="params">
234
<term><literal>OUT i <parameter>x</parameter></literal>:</term>
235
<listitem><para>the X coordinate of the selected area</para></listitem>
238
<term><literal>OUT i <parameter>y</parameter></literal>:</term>
239
<listitem><para>the Y coordinate of the selected area</para></listitem>
242
<term><literal>OUT i <parameter>width</parameter></literal>:</term>
243
<listitem><para>the width of the selected area</para></listitem>
246
<term><literal>OUT i <parameter>height</parameter></literal>:</term>
247
<listitem><para>the height of the selected area</para></listitem>