1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="libwnck-WnckScreen">
<refmeta>
<refentrytitle role="top_of_page">WnckScreen</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBWNCK Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>WnckScreen</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>
<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>
<synopsis>
<link linkend="WnckApplication">WnckApplication</link>;
<link linkend="WnckClassGroup">WnckClassGroup</link>;
<link linkend="WnckWindow">WnckWindow</link>;
<link linkend="WnckWorkspace">WnckWorkspace</link>;
<link linkend="WnckScreenPrivate">WnckScreenPrivate</link>;
<link linkend="WnckScreen">WnckScreen</link>* <link linkend="wnck-screen-get-default">wnck_screen_get_default</link> (void);
<link linkend="WnckScreen">WnckScreen</link>* <link linkend="wnck-screen-get">wnck_screen_get</link> (<link linkend="int">int</link> index);
<link linkend="WnckScreen">WnckScreen</link>* <link linkend="wnck-screen-get-for-root">wnck_screen_get_for_root</link> (<link linkend="gulong">gulong</link> root_window_id);
<link linkend="WnckWorkspace">WnckWorkspace</link>* <link linkend="wnck-screen-get-workspace">wnck_screen_get_workspace</link> (<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> workspace);
<link linkend="WnckWorkspace">WnckWorkspace</link>* <link linkend="wnck-screen-get-active-workspace">wnck_screen_get_active_workspace</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="WnckWindow">WnckWindow</link>* <link linkend="wnck-screen-get-active-window">wnck_screen_get_active_window</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="WnckWindow">WnckWindow</link>* <link linkend="wnck-screen-get-previously-active-window">wnck_screen_get_previously_active_window</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="GList">GList</link>* <link linkend="wnck-screen-get-windows">wnck_screen_get_windows</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="GList">GList</link>* <link linkend="wnck-screen-get-windows-stacked">wnck_screen_get_windows_stacked</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="void">void</link> <link linkend="wnck-screen-force-update">wnck_screen_force_update</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="int">int</link> <link linkend="wnck-screen-get-workspace-count">wnck_screen_get_workspace_count</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="void">void</link> <link linkend="wnck-screen-change-workspace-count">wnck_screen_change_workspace_count</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> count);
<link linkend="gboolean">gboolean</link> <link linkend="wnck-screen-net-wm-supports">wnck_screen_net_wm_supports</link> (<link linkend="WnckScreen">WnckScreen</link> *screen,
const <link linkend="char">char</link> *atom);
<link linkend="gulong">gulong</link> <link linkend="wnck-screen-get-background-pixmap">wnck_screen_get_background_pixmap</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="int">int</link> <link linkend="wnck-screen-get-width">wnck_screen_get_width</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="int">int</link> <link linkend="wnck-screen-get-height">wnck_screen_get_height</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="gboolean">gboolean</link> <link linkend="wnck-screen-get-showing-desktop">wnck_screen_get_showing_desktop</link> (<link linkend="WnckScreen">WnckScreen</link> *screen);
<link linkend="void">void</link> <link linkend="wnck-screen-toggle-showing-desktop">wnck_screen_toggle_showing_desktop</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="gboolean">gboolean</link> show);
<link linkend="void">void</link> <link linkend="wnck-screen-move-viewport">wnck_screen_move_viewport</link> (<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> x,
<link linkend="int">int</link> y);
<link linkend="int">int</link> <link linkend="wnck-screen-try-set-workspace-layout">wnck_screen_try_set_workspace_layout</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> current_token,
<link linkend="int">int</link> rows,
<link linkend="int">int</link> columns);
<link linkend="void">void</link> <link linkend="wnck-screen-release-workspace-layout">wnck_screen_release_workspace_layout</link>
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> current_token);
</synopsis>
</refsynopsisdiv>
<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>
<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="WnckApplication" role="struct"/>WnckApplication</title>
<indexterm><primary>WnckApplication</primary></indexterm><programlisting>typedef struct {
GObject parent_instance;
WnckApplicationPrivate *priv;
} WnckApplication;
</programlisting>
<para>
</para></refsect2>
<refsect2>
<title><anchor id="WnckClassGroup" role="struct"/>WnckClassGroup</title>
<indexterm><primary>WnckClassGroup</primary></indexterm><programlisting>typedef struct {
GObject parent_instance;
WnckClassGroupPrivate *priv;
} WnckClassGroup;
</programlisting>
<para>
</para></refsect2>
<refsect2>
<title><anchor id="WnckWindow" role="struct"/>WnckWindow</title>
<indexterm><primary>WnckWindow</primary></indexterm><programlisting>typedef struct {
GObject parent_instance;
WnckWindowPrivate *priv;
} WnckWindow;
</programlisting>
<para>
</para></refsect2>
<refsect2>
<title><anchor id="WnckWorkspace" role="struct"/>WnckWorkspace</title>
<indexterm><primary>WnckWorkspace</primary></indexterm><programlisting>typedef struct {
GObject parent_instance;
WnckWorkspacePrivate *priv;
} WnckWorkspace;
</programlisting>
<para>
</para></refsect2>
<refsect2>
<title><anchor id="WnckScreenPrivate" role="struct"/>WnckScreenPrivate</title>
<indexterm><primary>WnckScreenPrivate</primary></indexterm><programlisting>typedef struct _WnckScreenPrivate WnckScreenPrivate;</programlisting>
<para>
</para></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-default" role="function"/>wnck_screen_get_default ()</title>
<indexterm><primary>wnck_screen_get_default</primary></indexterm><programlisting><link linkend="WnckScreen">WnckScreen</link>* wnck_screen_get_default (void);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get" role="function"/>wnck_screen_get ()</title>
<indexterm><primary>wnck_screen_get</primary></indexterm><programlisting><link linkend="WnckScreen">WnckScreen</link>* wnck_screen_get (<link linkend="int">int</link> index);</programlisting>
<para>
Gets the <link linkend="WnckScreen"><type>WnckScreen</type></link> for a given screen on the default display.
Creates the <link linkend="WnckScreen"><type>WnckScreen</type></link> if necessary.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>index</parameter> :</term>
<listitem><simpara> screen number, starting from 0, as for Xlib
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the <link linkend="WnckScreen"><type>WnckScreen</type></link> for screen <parameter>index</parameter>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-for-root" role="function"/>wnck_screen_get_for_root ()</title>
<indexterm><primary>wnck_screen_get_for_root</primary></indexterm><programlisting><link linkend="WnckScreen">WnckScreen</link>* wnck_screen_get_for_root (<link linkend="gulong">gulong</link> root_window_id);</programlisting>
<para>
Gets the <link linkend="WnckScreen"><type>WnckScreen</type></link> for the root window at <parameter>root_window_id</parameter>, or
returns <link linkend="NULL:CAPS"><literal>NULL</literal></link> if no <link linkend="WnckScreen"><type>WnckScreen</type></link> exists for this root window. Never
creates a new <link linkend="WnckScreen"><type>WnckScreen</type></link>, unlike <link linkend="wnck-screen-get"><function>wnck_screen_get()</function></link>.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>root_window_id</parameter> :</term>
<listitem><simpara> an Xlib window ID
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="WnckScreen"><type>WnckScreen</type></link> or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-workspace" role="function"/>wnck_screen_get_workspace ()</title>
<indexterm><primary>wnck_screen_get_workspace</primary></indexterm><programlisting><link linkend="WnckWorkspace">WnckWorkspace</link>* wnck_screen_get_workspace (<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> workspace);</programlisting>
<para>
Gets the workspace numbered <parameter>workspace</parameter> for screen <parameter>screen</parameter>, or returns <link linkend="NULL:CAPS"><literal>NULL</literal></link>
if no such workspace exists.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>workspace</parameter> :</term>
<listitem><simpara> a workspace index
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the workspace, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-active-workspace" role="function"/>wnck_screen_get_active_workspace ()</title>
<indexterm><primary>wnck_screen_get_active_workspace</primary></indexterm><programlisting><link linkend="WnckWorkspace">WnckWorkspace</link>* wnck_screen_get_active_workspace
(<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the active workspace. May return <link linkend="NULL:CAPS"><literal>NULL</literal></link> sometimes,
if we are in a weird state due to the asynchronous
nature of our interaction with the window manager.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> active workspace or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-active-window" role="function"/>wnck_screen_get_active_window ()</title>
<indexterm><primary>wnck_screen_get_active_window</primary></indexterm><programlisting><link linkend="WnckWindow">WnckWindow</link>* wnck_screen_get_active_window (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the active window. May return <link linkend="NULL:CAPS"><literal>NULL</literal></link> sometimes,
since not all window managers guarantee that a window
is always active.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> active window or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-previously-active-window" role="function"/>wnck_screen_get_previously_active_window ()</title>
<indexterm><primary>wnck_screen_get_previously_active_window</primary></indexterm><programlisting><link linkend="WnckWindow">WnckWindow</link>* wnck_screen_get_previously_active_window
(<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the previously active window. May return <link linkend="NULL:CAPS"><literal>NULL</literal></link>
sometimes, since not all window managers guarantee
that a window is always active.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> previously active window or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-windows" role="function"/>wnck_screen_get_windows ()</title>
<indexterm><primary>wnck_screen_get_windows</primary></indexterm><programlisting><link linkend="GList">GList</link>* wnck_screen_get_windows (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the screen's list of windows. The list is not copied
and should not be freed. The list is not in a defined order,
but should be "stable" (windows shouldn't reorder themselves in
it). (However, the stability of the list is established by
the window manager, so don't blame libwnck if it breaks down.)</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> reference to list of windows
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-windows-stacked" role="function"/>wnck_screen_get_windows_stacked ()</title>
<indexterm><primary>wnck_screen_get_windows_stacked</primary></indexterm><programlisting><link linkend="GList">GList</link>* wnck_screen_get_windows_stacked (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the screen's list of windows in bottom-to-top order.
The list is not copied and should not be freed.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> reference to list of windows in stacking order
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-force-update" role="function"/>wnck_screen_force_update ()</title>
<indexterm><primary>wnck_screen_force_update</primary></indexterm><programlisting><link linkend="void">void</link> wnck_screen_force_update (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Synchronously and immediately update the window list. This is
usually a bad idea for both performance and correctness reasons (to
get things right, you need to write model-view code that tracks
changes, not get a static list of open windows).</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-workspace-count" role="function"/>wnck_screen_get_workspace_count ()</title>
<indexterm><primary>wnck_screen_get_workspace_count</primary></indexterm><programlisting><link linkend="int">int</link> wnck_screen_get_workspace_count (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
Gets the number of workspaces.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> number of workspaces
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-change-workspace-count" role="function"/>wnck_screen_change_workspace_count ()</title>
<indexterm><primary>wnck_screen_change_workspace_count</primary></indexterm><programlisting><link linkend="void">void</link> wnck_screen_change_workspace_count
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> count);</programlisting>
<para>
Asks the window manager to change the number of workspaces.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>count</parameter> :</term>
<listitem><simpara> requested count
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-net-wm-supports" role="function"/>wnck_screen_net_wm_supports ()</title>
<indexterm><primary>wnck_screen_net_wm_supports</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> wnck_screen_net_wm_supports (<link linkend="WnckScreen">WnckScreen</link> *screen,
const <link linkend="char">char</link> *atom);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>atom</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-background-pixmap" role="function"/>wnck_screen_get_background_pixmap ()</title>
<indexterm><primary>wnck_screen_get_background_pixmap</primary></indexterm><programlisting><link linkend="gulong">gulong</link> wnck_screen_get_background_pixmap
(<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-width" role="function"/>wnck_screen_get_width ()</title>
<indexterm><primary>wnck_screen_get_width</primary></indexterm><programlisting><link linkend="int">int</link> wnck_screen_get_width (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-height" role="function"/>wnck_screen_get_height ()</title>
<indexterm><primary>wnck_screen_get_height</primary></indexterm><programlisting><link linkend="int">int</link> wnck_screen_get_height (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-get-showing-desktop" role="function"/>wnck_screen_get_showing_desktop ()</title>
<indexterm><primary>wnck_screen_get_showing_desktop</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> wnck_screen_get_showing_desktop (<link linkend="WnckScreen">WnckScreen</link> *screen);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-toggle-showing-desktop" role="function"/>wnck_screen_toggle_showing_desktop ()</title>
<indexterm><primary>wnck_screen_toggle_showing_desktop</primary></indexterm><programlisting><link linkend="void">void</link> wnck_screen_toggle_showing_desktop
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="gboolean">gboolean</link> show);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>show</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-move-viewport" role="function"/>wnck_screen_move_viewport ()</title>
<indexterm><primary>wnck_screen_move_viewport</primary></indexterm><programlisting><link linkend="void">void</link> wnck_screen_move_viewport (<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> x,
<link linkend="int">int</link> y);</programlisting>
<para>
Ask window manager to move the viewport of the current workspace.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara> a <link linkend="WnckScreen"><type>WnckScreen</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>x</parameter> :</term>
<listitem><simpara> X offset of viewport
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>y</parameter> :</term>
<listitem><simpara> Y offset of viewport
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-try-set-workspace-layout" role="function"/>wnck_screen_try_set_workspace_layout ()</title>
<indexterm><primary>wnck_screen_try_set_workspace_layout</primary></indexterm><programlisting><link linkend="int">int</link> wnck_screen_try_set_workspace_layout
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> current_token,
<link linkend="int">int</link> rows,
<link linkend="int">int</link> columns);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>current_token</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>rows</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>columns</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="wnck-screen-release-workspace-layout" role="function"/>wnck_screen_release_workspace_layout ()</title>
<indexterm><primary>wnck_screen_release_workspace_layout</primary></indexterm><programlisting><link linkend="void">void</link> wnck_screen_release_workspace_layout
(<link linkend="WnckScreen">WnckScreen</link> *screen,
<link linkend="int">int</link> current_token);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>screen</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>current_token</parameter> :</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
</refsect1>
</refentry>
|