[go: up one dir, main page]

File: WnckScreen.html

package info (click to toggle)
libwnck 2.30.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 8,064 kB
  • sloc: ansic: 19,731; makefile: 237
file content (1426 lines) | stat: -rw-r--r-- 106,374 bytes parent folder | download | duplicates (4)
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>WnckScreen</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Libwnck Reference Manual">
<link rel="up" href="core.html" title="Part II. Libwnck Core Window Management Support">
<link rel="prev" href="WnckWorkspace.html" title="WnckWorkspace">
<link rel="next" href="widgets.html" title="Part III. Libwnck Widgets">
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="WnckWorkspace.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Libwnck Reference Manual</th>
<td><a accesskey="n" href="widgets.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#WnckScreen.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#WnckScreen.description" class="shortcut">Description</a>
                   | 
                  <a href="#WnckScreen.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#WnckScreen.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="WnckScreen"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="WnckScreen.top_of_page"></a>WnckScreen</span></h2>
<p>WnckScreen — an object representing a screen.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="WnckScreen.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="WnckScreen.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;libwnck/libwnck.h&gt;

struct              <a class="link" href="WnckScreen.html#WnckScreen-struct" title="struct WnckScreen">WnckScreen</a>;
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        <a class="link" href="WnckScreen.html#wnck-screen-get-default" title="wnck_screen_get_default ()">wnck_screen_get_default</a>             (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        <a class="link" href="WnckScreen.html#wnck-screen-get" title="wnck_screen_get ()">wnck_screen_get</a>                     (<em class="parameter"><code><span class="type">int</span> index</code></em>);
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        <a class="link" href="WnckScreen.html#wnck-screen-get-for-root" title="wnck_screen_get_for_root ()">wnck_screen_get_for_root</a>            (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> root_window_id</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-get-number" title="wnck_screen_get_number ()">wnck_screen_get_number</a>              (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-get-width" title="wnck_screen_get_width ()">wnck_screen_get_width</a>               (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-get-height" title="wnck_screen_get_height ()">wnck_screen_get_height</a>              (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-force-update" title="wnck_screen_force_update ()">wnck_screen_force_update</a>            (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
const <span class="returnvalue">char</span> *        <a class="link" href="WnckScreen.html#wnck-screen-get-window-manager-name" title="wnck_screen_get_window_manager_name ()">wnck_screen_get_window_manager_name</a> (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="WnckScreen.html#wnck-screen-net-wm-supports" title="wnck_screen_net_wm_supports ()">wnck_screen_net_wm_supports</a>         (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *atom</code></em>);
<a class="link" href="WnckWindow.html" title="WnckWindow"><span class="returnvalue">WnckWindow</span></a> *        <a class="link" href="WnckScreen.html#wnck-screen-get-active-window" title="wnck_screen_get_active_window ()">wnck_screen_get_active_window</a>       (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a class="link" href="WnckWindow.html" title="WnckWindow"><span class="returnvalue">WnckWindow</span></a> *        <a class="link" href="WnckScreen.html#wnck-screen-get-previously-active-window" title="wnck_screen_get_previously_active_window ()">wnck_screen_get_previously_active_window</a>
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="WnckScreen.html#wnck-screen-get-windows" title="wnck_screen_get_windows ()">wnck_screen_get_windows</a>             (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="WnckScreen.html#wnck-screen-get-windows-stacked" title="wnck_screen_get_windows_stacked ()">wnck_screen_get_windows_stacked</a>     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     <a class="link" href="WnckScreen.html#wnck-screen-get-active-workspace" title="wnck_screen_get_active_workspace ()">wnck_screen_get_active_workspace</a>    (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="WnckScreen.html#wnck-screen-get-workspaces" title="wnck_screen_get_workspaces ()">wnck_screen_get_workspaces</a>          (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     <a class="link" href="WnckScreen.html#wnck-screen-get-workspace" title="wnck_screen_get_workspace ()">wnck_screen_get_workspace</a>           (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> workspace</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-get-workspace-index" title="wnck_screen_get_workspace_index ()">wnck_screen_get_workspace_index</a>     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space</code></em>);
enum                <a class="link" href="WnckScreen.html#WnckMotionDirection" title="enum WnckMotionDirection">WnckMotionDirection</a>;
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     <a class="link" href="WnckScreen.html#wnck-screen-get-workspace-neighbor" title="wnck_screen_get_workspace_neighbor ()">wnck_screen_get_workspace_neighbor</a>  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckScreen.html#WnckMotionDirection" title="enum WnckMotionDirection"><span class="type">WnckMotionDirection</span></a> direction</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-get-workspace-count" title="wnck_screen_get_workspace_count ()">wnck_screen_get_workspace_count</a>     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-change-workspace-count" title="wnck_screen_change_workspace_count ()">wnck_screen_change_workspace_count</a>  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> count</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="WnckScreen.html#wnck-screen-try-set-workspace-layout" title="wnck_screen_try_set_workspace_layout ()">wnck_screen_try_set_workspace_layout</a>
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> current_token</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> rows</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> columns</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-release-workspace-layout" title="wnck_screen_release_workspace_layout ()">wnck_screen_release_workspace_layout</a>
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> current_token</code></em>);
struct              <a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout">WnckWorkspaceLayout</a>;
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-calc-workspace-layout" title="wnck_screen_calc_workspace_layout ()">wnck_screen_calc_workspace_layout</a>   (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> num_workspaces</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> space_index</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a> *layout</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-free-workspace-layout" title="wnck_screen_free_workspace_layout ()">wnck_screen_free_workspace_layout</a>   (<em class="parameter"><code><a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a> *layout</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-move-viewport" title="wnck_screen_move_viewport ()">wnck_screen_move_viewport</a>           (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              <a class="link" href="WnckScreen.html#wnck-screen-get-background-pixmap" title="wnck_screen_get_background_pixmap ()">wnck_screen_get_background_pixmap</a>   (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="WnckScreen.html#wnck-screen-get-showing-desktop" title="wnck_screen_get_showing_desktop ()">wnck_screen_get_showing_desktop</a>     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="WnckScreen.html#wnck-screen-toggle-showing-desktop" title="wnck_screen_toggle_showing_desktop ()">wnck_screen_toggle_showing_desktop</a>  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="WnckScreen.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----WnckScreen
</pre>
</div>
<div class="refsect1">
<a name="WnckScreen.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="WnckScreen.html#WnckScreen-active-window-changed" title='The "active-window-changed" signal'>active-window-changed</a>"                          : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-active-workspace-changed" title='The "active-workspace-changed" signal'>active-workspace-changed</a>"                       : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-application-closed" title='The "application-closed" signal'>application-closed</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-application-opened" title='The "application-opened" signal'>application-opened</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-background-changed" title='The "background-changed" signal'>background-changed</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-class-group-closed" title='The "class-group-closed" signal'>class-group-closed</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-class-group-opened" title='The "class-group-opened" signal'>class-group-opened</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-showing-desktop-changed" title='The "showing-desktop-changed" signal'>showing-desktop-changed</a>"                        : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-viewports-changed" title='The "viewports-changed" signal'>viewports-changed</a>"                              : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-window-closed" title='The "window-closed" signal'>window-closed</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-window-manager-changed" title='The "window-manager-changed" signal'>window-manager-changed</a>"                         : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-window-opened" title='The "window-opened" signal'>window-opened</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-window-stacking-changed" title='The "window-stacking-changed" signal'>window-stacking-changed</a>"                        : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-workspace-created" title='The "workspace-created" signal'>workspace-created</a>"                              : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
  "<a class="link" href="WnckScreen.html#WnckScreen-workspace-destroyed" title='The "workspace-destroyed" signal'>workspace-destroyed</a>"                            : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
</pre>
</div>
<div class="refsect1">
<a name="WnckScreen.description"></a><h2>Description</h2>
<p>
The <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> represents a physical screen. A screen may consist of
multiple monitors which are merged to form a large screen area. The
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> is at the bottom of the libwnck stack of objects: <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>
objects exist a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> and <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> objects are displayed on a
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</p>
<p>
The <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> corresponds to the notion of
<code class="classname">GdkScreen</code> in GDK.
</p>
<p>
The <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> objects are always owned by libwnck and must not be
referenced or unreferenced.
</p>
</div>
<div class="refsect1">
<a name="WnckScreen.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="WnckScreen-struct"></a><h3>struct WnckScreen</h3>
<pre class="programlisting">struct WnckScreen;</pre>
<p>
The <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> struct contains only private fields and should not be
directly accessed.
</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-default"></a><h3>wnck_screen_get_default ()</h3>
<pre class="programlisting"><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        wnck_screen_get_default             (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the default <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> on the default display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the default <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>. The returned
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> is owned by libwnck and must not be referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get"></a><h3>wnck_screen_get ()</h3>
<pre class="programlisting"><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        wnck_screen_get                     (<em class="parameter"><code><span class="type">int</span> index</code></em>);</pre>
<p>
Gets the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> for a given screen on the default display.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
<td>screen number, starting from 0.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> for screen <em class="parameter"><code>index</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if no such screen exists. The returned <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> is owned by libwnck and
must not be referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-for-root"></a><h3>wnck_screen_get_for_root ()</h3>
<pre class="programlisting"><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="returnvalue">WnckScreen</span></a> *        wnck_screen_get_for_root            (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> root_window_id</code></em>);</pre>
<p>
Gets the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> for the root window at <em class="parameter"><code>root_window_id</code></em>, or
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> exists for this root window.
</p>
<p>
This function does not work if <a class="link" href="WnckScreen.html#wnck-screen-get" title="wnck_screen_get ()"><code class="function">wnck_screen_get()</code></a> was not called for the
sought <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> before, and returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>root_window_id</code></em> :</span></p></td>
<td>an X window ID.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> for the root window at
<em class="parameter"><code>root_window_id</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The returned <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> is owned by libwnck and
must not be referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-number"></a><h3>wnck_screen_get_number ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_get_number              (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the index of <em class="parameter"><code>screen</code></em> on the display to which it belongs. The first
<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> has an index of 0.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the index of <em class="parameter"><code>space</code></em> on <em class="parameter"><code>screen</code></em>, or -1 on errors.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-width"></a><h3>wnck_screen_get_width ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_get_width               (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the width of <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the width of <em class="parameter"><code>screen</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-height"></a><h3>wnck_screen_get_height ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_get_height              (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the height of <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the height of <em class="parameter"><code>screen</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-force-update"></a><h3>wnck_screen_force_update ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_force_update            (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Synchronously and immediately updates the list of <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>.
This bypasses the standard update mechanism, where the list of <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a>
is updated in the idle loop.
</p>
<p>
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). However, this function can be useful for
small applications that just do something and then exit.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-window-manager-name"></a><h3>wnck_screen_get_window_manager_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *        wnck_screen_get_window_manager_name (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the name of the window manager.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of the window manager, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the window manager
does not comply with the <a class="ulink" href="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html" target="_top">EWMH</a>
specification.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-net-wm-supports"></a><h3>wnck_screen_net_wm_supports ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            wnck_screen_net_wm_supports         (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *atom</code></em>);</pre>
<p>
Gets whether the window manager for <em class="parameter"><code>screen</code></em> supports a certain hint from
the <a class="ulink" href="http://standards.freedesktop.org/wm-spec/wm-spec-latest.html" target="_top">Extended
Window Manager Hints specification</a> (EWMH).
</p>
<p>
When using this function, keep in mind that the window manager can change
over time; so you should not use this function in a way that impacts
persistent application state. A common bug is that your application can
start up before the window manager does when the user logs in, and before
the window manager starts <a class="link" href="WnckScreen.html#wnck-screen-net-wm-supports" title="wnck_screen_net_wm_supports ()"><code class="function">wnck_screen_net_wm_supports()</code></a> will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
for every property.
</p>
<p>
See also <a href="http://library.gnome.org/devel/gdk/gdk3-X-Window-System-Interaction.html#gdk-x11-screen-supports-net-wm-hint"><code class="function">gdk_x11_screen_supports_net_wm_hint()</code></a> in GDK.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>atom</code></em> :</span></p></td>
<td>a property atom.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the window manager for <em class="parameter"><code>screen</code></em> supports the <em class="parameter"><code>atom</code></em>
hint, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-active-window"></a><h3>wnck_screen_get_active_window ()</h3>
<pre class="programlisting"><a class="link" href="WnckWindow.html" title="WnckWindow"><span class="returnvalue">WnckWindow</span></a> *        wnck_screen_get_active_window       (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the active <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>. May return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> sometimes, since
not all window managers guarantee that a window is always active.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the active <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
The returned <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> is owned by libwnck and must not be referenced or
unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-previously-active-window"></a><h3>wnck_screen_get_previously_active_window ()</h3>
<pre class="programlisting"><a class="link" href="WnckWindow.html" title="WnckWindow"><span class="returnvalue">WnckWindow</span></a> *        wnck_screen_get_previously_active_window
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the previously active <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>. May return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
sometimes, since not all window managers guarantee that a window is always
active.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the previously active <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>,
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The returned <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> is owned by libwnck and must not be
referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-windows"></a><h3>wnck_screen_get_windows ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             wnck_screen_get_windows             (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the list of <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>. The list is not in a defined
order, but should be "stable" (windows should not be reordered in it).
However, the stability of the list is established by the window manager, so
don't blame libwnck if it breaks down.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the list of
<a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no window on <em class="parameter"><code>screen</code></em>. The list
should not be modified nor freed, as it is owned by <em class="parameter"><code>screen</code></em>. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> WnckWindow][<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-windows-stacked"></a><h3>wnck_screen_get_windows_stacked ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             wnck_screen_get_windows_stacked     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the list of <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em> in bottom-to-top order.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the list of
<a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> in stacking order on <em class="parameter"><code>screen</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no window on
<em class="parameter"><code>screen</code></em>. The list should not be modified nor freed, as it is owned by
<em class="parameter"><code>screen</code></em>. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> WnckWindow][<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-active-workspace"></a><h3>wnck_screen_get_active_workspace ()</h3>
<pre class="programlisting"><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     wnck_screen_get_active_workspace    (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the active <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>. May return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> sometimes,
if libwnck is in a weird state due to the asynchronous nature of the
interaction with the window manager.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the active <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>, or
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The returned <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> is owned by libwnck and must not be
referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-workspaces"></a><h3>wnck_screen_get_workspaces ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             wnck_screen_get_workspaces          (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the list of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>. The list is ordered: the
first element in the list is the first <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>, etc..
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the list of
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>. The list should not be modified nor freed, as it
is owned by <em class="parameter"><code>screen</code></em>. <span class="annotation">[<a href="http://foldoc.org/element-type"><span class="acronym">element-type</span></a> WnckWorkspace][<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-workspace"></a><h3>wnck_screen_get_workspace ()</h3>
<pre class="programlisting"><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     wnck_screen_get_workspace           (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> workspace</code></em>);</pre>
<p>
Gets the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> numbered <em class="parameter"><code>workspace</code></em> on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>workspace</code></em> :</span></p></td>
<td>a workspace index, starting from 0.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> numbered <em class="parameter"><code>workspace</code></em> on
<em class="parameter"><code>screen</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no such workspace exists. The returned <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>
is owned by libwnck and must not be referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-workspace-index"></a><h3>wnck_screen_get_workspace_index ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_get_workspace_index     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">wnck_screen_get_workspace_index</code> has been deprecated since version 2.20 and should not be used in newly-written code. Use <a class="link" href="WnckWorkspace.html#wnck-workspace-get-number" title="wnck_workspace_get_number ()"><code class="function">wnck_workspace_get_number()</code></a> instead.</p>
</div>
<p>
Gets the index of <em class="parameter"><code>space</code></em> on <em class="parameter"><code>screen</code></em>. The first <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> has an
index of 0. See also <a class="link" href="WnckWorkspace.html#wnck-workspace-get-number" title="wnck_workspace_get_number ()"><code class="function">wnck_workspace_get_number()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space</code></em> :</span></p></td>
<td>a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the index of <em class="parameter"><code>space</code></em> on <em class="parameter"><code>screen</code></em>, or -1 on errors.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckMotionDirection"></a><h3>enum WnckMotionDirection</h3>
<pre class="programlisting">typedef enum
{
  WNCK_MOTION_UP = -1,
  WNCK_MOTION_DOWN = -2,
  WNCK_MOTION_LEFT = -3,
  WNCK_MOTION_RIGHT = -4
} WnckMotionDirection;
</pre>
<p>
Type defining a direction in which to search a neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="WNCK-MOTION-UP:CAPS"></a><span class="term"><code class="literal">WNCK_MOTION_UP</code></span></p></td>
<td>search a neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> above another
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>. 
</td>
</tr>
<tr>
<td><p><a name="WNCK-MOTION-DOWN:CAPS"></a><span class="term"><code class="literal">WNCK_MOTION_DOWN</code></span></p></td>
<td>search a neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> below another
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</td>
</tr>
<tr>
<td><p><a name="WNCK-MOTION-LEFT:CAPS"></a><span class="term"><code class="literal">WNCK_MOTION_LEFT</code></span></p></td>
<td>search a neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> at the left of another
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</td>
</tr>
<tr>
<td><p><a name="WNCK-MOTION-RIGHT:CAPS"></a><span class="term"><code class="literal">WNCK_MOTION_RIGHT</code></span></p></td>
<td>search a neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> at the right of another
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-workspace-neighbor"></a><h3>wnck_screen_get_workspace_neighbor ()</h3>
<pre class="programlisting"><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="returnvalue">WnckWorkspace</span></a> *     wnck_screen_get_workspace_neighbor  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckScreen.html#WnckMotionDirection" title="enum WnckMotionDirection"><span class="type">WnckMotionDirection</span></a> direction</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">wnck_screen_get_workspace_neighbor</code> has been deprecated since version 2.20 and should not be used in newly-written code. Use <a class="link" href="WnckWorkspace.html#wnck-workspace-get-neighbor" title="wnck_workspace_get_neighbor ()"><code class="function">wnck_workspace_get_neighbor()</code></a> instead.</p>
</div>
<p>
Gets the neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> of <em class="parameter"><code>space</code></em> in the <em class="parameter"><code>direction</code></em> direction on
<em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space</code></em> :</span></p></td>
<td>a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td>
<td>direction in which to search the neighbor.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> of <em class="parameter"><code>space</code></em> in the
<em class="parameter"><code>direction</code></em> direction on <em class="parameter"><code>screen</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no such neighbor <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>
exists. The returned <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> is owned by libwnck and must not be
referenced or unreferenced. <span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-workspace-count"></a><h3>wnck_screen_get_workspace_count ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_get_workspace_count     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-change-workspace-count"></a><h3>wnck_screen_change_workspace_count ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_change_workspace_count  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> count</code></em>);</pre>
<p>
Asks the window manager to change the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> to request.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-try-set-workspace-layout"></a><h3>wnck_screen_try_set_workspace_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 wnck_screen_try_set_workspace_layout
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> current_token</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> rows</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> columns</code></em>);</pre>
<p>
Tries to modify the layout of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>. To do this, tries
to acquire ownership of the layout. If the current process is the owner of
the layout, <em class="parameter"><code>current_token</code></em> is used to determine if the caller is the owner
(there might be more than one part of the same process trying to set the
layout). Since no more than one application should set this property of
<em class="parameter"><code>screen</code></em> at a time, setting the layout is not guaranteed to work.
</p>
<p>
If <em class="parameter"><code>rows</code></em> is 0, the actual number of rows will be determined based on
<em class="parameter"><code>columns</code></em> and the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>. If <em class="parameter"><code>columns</code></em> is 0, the actual
number of columns will be determined based on <em class="parameter"><code>rows</code></em> and the number of
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>. <em class="parameter"><code>rows</code></em> and <em class="parameter"><code>columns</code></em> must not be 0 at the same time.
</p>
<p>
You have to release the ownership of the layout with
<a class="link" href="WnckScreen.html#wnck-screen-release-workspace-layout" title="wnck_screen_release_workspace_layout ()"><code class="function">wnck_screen_release_workspace_layout()</code></a> when you do not need it anymore.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>current_token</code></em> :</span></p></td>
<td>a token. Use 0 if you do not called
<a class="link" href="WnckScreen.html#wnck-screen-try-set-workspace-layout" title="wnck_screen_try_set_workspace_layout ()"><code class="function">wnck_screen_try_set_workspace_layout()</code></a> before, or if you did not keep the
old token.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>rows</code></em> :</span></p></td>
<td>the number of rows to use for the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> layout.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>columns</code></em> :</span></p></td>
<td>the number of columns to use for the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> layout.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a token to use for future calls to
<a class="link" href="WnckScreen.html#wnck-screen-try-set-workspace-layout" title="wnck_screen_try_set_workspace_layout ()"><code class="function">wnck_screen_try_set_workspace_layout()</code></a> and to
<a class="link" href="WnckScreen.html#wnck-screen-release-workspace-layout" title="wnck_screen_release_workspace_layout ()"><code class="function">wnck_screen_release_workspace_layout()</code></a>, or 0 if the layout could not be set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-release-workspace-layout"></a><h3>wnck_screen_release_workspace_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_release_workspace_layout
                                                        (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> current_token</code></em>);</pre>
<p>
Releases the ownership of the layout of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>.
<em class="parameter"><code>current_token</code></em> is used to verify that the caller is the owner of the layout.
If the verification fails, nothing happens.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>current_token</code></em> :</span></p></td>
<td>the token obtained through
<a class="link" href="WnckScreen.html#wnck-screen-try-set-workspace-layout" title="wnck_screen_try_set_workspace_layout ()"><code class="function">wnck_screen_try_set_workspace_layout()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckWorkspaceLayout"></a><h3>struct WnckWorkspaceLayout</h3>
<pre class="programlisting">struct WnckWorkspaceLayout {
  int rows;
  int cols;
  int *grid;
  int grid_area;
  int current_row;
  int current_col;
};
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">WnckWorkspaceLayout</code> has been deprecated since version 2.20 and should not be used in newly-written code. </p>
</div>
<p>
The <a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a> struct contains information about the layout of
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>, and the exact position of a specific
<a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="WnckWorkspaceLayout.rows"></a>rows</code></em>;</span></p></td>
<td>number of rows in the layout grid.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="WnckWorkspaceLayout.cols"></a>cols</code></em>;</span></p></td>
<td>number of columns in the layout grid.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> *<em class="structfield"><code><a name="WnckWorkspaceLayout.grid"></a>grid</code></em>;</span></p></td>
<td>array of size <em class="parameter"><code>grid_area</code></em> containing the index (starting from 0) of
the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> for each position in the layout grid, or -1 if the
position does not correspond to any <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="WnckWorkspaceLayout.grid-area"></a>grid_area</code></em>;</span></p></td>
<td>size of the grid containing all <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>. This can be
bigger than the number of <span class="type">WnckWorskpace</span> because the grid might not be
filled.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="WnckWorkspaceLayout.current-row"></a>current_row</code></em>;</span></p></td>
<td>row of the specific <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>, starting from 0.</td>
</tr>
<tr>
<td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="WnckWorkspaceLayout.current-col"></a>current_col</code></em>;</span></p></td>
<td>column of the specific <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>, starting from 0.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-calc-workspace-layout"></a><h3>wnck_screen_calc_workspace_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_calc_workspace_layout   (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> num_workspaces</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> space_index</code></em>,
                                                         <em class="parameter"><code><a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a> *layout</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">wnck_screen_calc_workspace_layout</code> has been deprecated since version 2.20 and should not be used in newly-written code. </p>
</div>
<p>
Calculates the layout of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>, with additional information like
the row and column of the <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> with index <em class="parameter"><code>space_index</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_workspaces</code></em> :</span></p></td>
<td>the number of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> on <em class="parameter"><code>screen</code></em>, or -1 to let
<a class="link" href="WnckScreen.html#wnck-screen-calc-workspace-layout" title="wnck_screen_calc_workspace_layout ()"><code class="function">wnck_screen_calc_workspace_layout()</code></a> find this number.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space_index</code></em> :</span></p></td>
<td>the index of a <span class="type">Workspace</span>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
<td>return location for the layout of <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> with additional
information.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-free-workspace-layout"></a><h3>wnck_screen_free_workspace_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_free_workspace_layout   (<em class="parameter"><code><a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a> *layout</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">wnck_screen_free_workspace_layout</code> has been deprecated since version 2.20 and should not be used in newly-written code. </p>
</div>
<p>
Frees the content of <em class="parameter"><code>layout</code></em>. This does not free <em class="parameter"><code>layout</code></em> itself, so you
might want to free <em class="parameter"><code>layout</code></em> yourself after calling this.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html#WnckWorkspaceLayout" title="struct WnckWorkspaceLayout"><span class="type">WnckWorkspaceLayout</span></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-move-viewport"></a><h3>wnck_screen_move_viewport ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_move_viewport           (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> x</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
<p>
Asks the window manager to move the viewport of the current <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>
on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X offset in pixels of viewport.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y offset in pixels of viewport.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-background-pixmap"></a><h3>wnck_screen_get_background_pixmap ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              wnck_screen_get_background_pixmap   (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets the X window ID of the background pixmap of <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the X window ID of the background pixmap of <em class="parameter"><code>screen</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-get-showing-desktop"></a><h3>wnck_screen_get_showing_desktop ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            wnck_screen_get_showing_desktop     (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>);</pre>
<p>
Gets whether <em class="parameter"><code>screen</code></em> is in the "showing the desktop" mode. This mode is
changed when a <a class="link" href="WnckScreen.html#WnckScreen-showing-desktop-changed" title='The "showing-desktop-changed" signal'><span class="type">"showing-desktop-changed"</span></a> signal gets emitted.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>window</code></em> is fullscreen, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
<hr>
<div class="refsect2">
<a name="wnck-screen-toggle-showing-desktop"></a><h3>wnck_screen_toggle_showing_desktop ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                wnck_screen_toggle_showing_desktop  (<em class="parameter"><code><a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show</code></em>);</pre>
<p>
Asks the window manager to set the "showing the desktop" mode on <em class="parameter"><code>screen</code></em>
according to <em class="parameter"><code>show</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>show</code></em> :</span></p></td>
<td>whether to activate the "showing the desktop" mode on <em class="parameter"><code>screen</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.2</p>
</div>
</div>
<div class="refsect1">
<a name="WnckScreen.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="WnckScreen-active-window-changed"></a><h3>The <code class="literal">"active-window-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> *previously_active_window,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)                     : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the active window on <em class="parameter"><code>screen</code></em> has changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>previously_active_window</code></em> :</span></p></td>
<td>the previously active <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> before this
change.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-active-workspace-changed"></a><h3>The <code class="literal">"active-workspace-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>    *screen,
                                                        <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *previously_active_space,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)                    : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the active workspace on <em class="parameter"><code>screen</code></em> has changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>previously_active_space</code></em> :</span></p></td>
<td>the previously active <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> before this
change.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-application-closed"></a><h3>The <code class="literal">"application-closed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>      *screen,
                                                        <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a> *app,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>         user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a> is closed on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
<td>the closed <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-application-opened"></a><h3>The <code class="literal">"application-opened"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>      *screen,
                                                        <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a> *app,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>         user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a new <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a> is opened on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
<td>the opened <a class="link" href="WnckApplication.html" title="WnckApplication"><span class="type">WnckApplication</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-background-changed"></a><h3>The <code class="literal">"background-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the background on the root window of <em class="parameter"><code>screen</code></em> has changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-class-group-closed"></a><h3>The <code class="literal">"class-group-closed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>     *screen,
                                                        <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a> *class_group,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>        user_data)        : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a> is closed on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_group</code></em> :</span></p></td>
<td>the closed <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-class-group-opened"></a><h3>The <code class="literal">"class-group-opened"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>     *screen,
                                                        <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a> *class_group,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>        user_data)        : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a new <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a> is opened on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_group</code></em> :</span></p></td>
<td>the opened <a class="link" href="WnckClassGroup.html" title="WnckClassGroup"><span class="type">WnckClassGroup</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-showing-desktop-changed"></a><h3>The <code class="literal">"showing-desktop-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when "showing the desktop" mode of <em class="parameter"><code>screen</code></em> is toggled.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-viewports-changed"></a><h3>The <code class="literal">"viewports-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a viewport position has changed in a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> of
<em class="parameter"><code>screen</code></em> or when a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> of <em class="parameter"><code>screen</code></em> gets or loses its viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-window-closed"></a><h3>The <code class="literal">"window-closed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> *window,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> is closed on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>the closed <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-window-manager-changed"></a><h3>The <code class="literal">"window-manager-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the window manager on <em class="parameter"><code>screen</code></em> has changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-window-opened"></a><h3>The <code class="literal">"window-opened"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> *window,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a new <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> is opened on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>the opened <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-window-stacking-changed"></a><h3>The <code class="literal">"window-stacking-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> *screen,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>    user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when the stacking order of <a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a> on <em class="parameter"><code>screen</code></em> has changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-workspace-created"></a><h3>The <code class="literal">"workspace-created"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>    *screen,
                                                        <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> is created on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space</code></em> :</span></p></td>
<td>the workspace that has been created.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="WnckScreen-workspace-destroyed"></a><h3>The <code class="literal">"workspace-destroyed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a>    *screen,
                                                        <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> *space,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>       user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
<p>
Emitted when a <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a> is destroyed on <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>the <a class="link" href="WnckScreen.html" title="WnckScreen"><span class="type">WnckScreen</span></a> which emitted the signal.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>space</code></em> :</span></p></td>
<td>the workspace that has been destroyed.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="WnckScreen.see-also"></a><h2>See Also</h2>
<a class="link" href="WnckWindow.html" title="WnckWindow"><span class="type">WnckWindow</span></a>, <a class="link" href="WnckWorkspace.html" title="WnckWorkspace"><span class="type">WnckWorkspace</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17.1</div>
</body>
</html>