/usr/share/doc/libghc-gtk3-doc/html/gtk3.txt is in libghc-gtk3-doc 0.14.8-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Binding to the Gtk+ 3 graphical user interface library
--
-- This is the core library of the Gtk2Hs suite of libraries for Haskell
-- based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit
-- for creating graphical user interfaces.
@package gtk3
@version 0.14.8
-- | Support for named paper sizes
module Graphics.UI.Gtk.Printing.PaperSize
newtype PaperSize
PaperSize :: (ForeignPtr (PaperSize)) -> PaperSize
mkPaperSize :: Ptr PaperSize -> IO PaperSize
data Unit
UnitNone :: Unit
UnitPoints :: Unit
UnitInch :: Unit
UnitMm :: Unit
-- | Creates a new <a>PaperSize</a> object by parsing a PWG 5101.1-2002
-- paper name.
--
-- If <tt>name</tt> is Nothing, the default paper size is returned, see
-- <a>paperSizeGetDefault</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeNew :: GlibString string => Maybe string -> IO PaperSize
-- | Creates a new <a>PaperSize</a> object by using PPD information.
--
-- If <tt>ppdName</tt> is not a recognized PPD paper name,
-- <tt>ppdDisplayName</tt>, <tt>width</tt> and <tt>height</tt> are used
-- to construct a custom <a>PaperSize</a> object.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeNewFromPpd :: GlibString string => string -> string -> Double -> Double -> IO PaperSize
-- | Creates a new <a>PaperSize</a> object with the given parameters.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeNewCustom :: GlibString string => string -> string -> Double -> Double -> Unit -> IO PaperSize
-- | Copies an existing <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeCopy :: PaperSize -> IO PaperSize
-- | Compares two <a>PaperSize</a> objects.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeIsEqual :: PaperSize -> PaperSize -> IO Bool
-- | Gets the name of the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetName :: GlibString string => PaperSize -> IO string
-- | Gets the human-readable name of the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDisplayName :: GlibString string => PaperSize -> IO string
-- | Gets the PPD name of the <a>PaperSize</a>, which may be
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetPpdName :: GlibString string => PaperSize -> IO (Maybe string)
-- | Gets the paper width of the <a>PaperSize</a>, in units of
-- <tt>unit</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetWidth :: PaperSize -> Unit -> IO Double
-- | Gets the paper height of the <a>PaperSize</a>, in units of
-- <tt>unit</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetHeight :: PaperSize -> Unit -> IO Double
-- | Returns <tt>True</tt> if <tt>size</tt> is not a standard paper size.
paperSizeIsCustom :: PaperSize -> IO Bool
-- | Changes the dimensions of a <tt>size</tt> to <tt>width</tt> x
-- <tt>height</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeSetSize :: PaperSize -> Double -> Double -> Unit -> IO ()
-- | Gets the default top margin for the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDefaultTopMargin :: PaperSize -> Unit -> IO Double
-- | Gets the default bottom margin for the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDefaultBottomMargin :: PaperSize -> Unit -> IO Double
-- | Gets the default left margin for the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDefaultLeftMargin :: PaperSize -> Unit -> IO Double
-- | Gets the default right margin for the <a>PaperSize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDefaultRightMargin :: PaperSize -> Unit -> IO Double
-- | Returns the name of the default paper size, which depends on the
-- current locale.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
paperSizeGetDefault :: GlibString string => IO string
-- | Creates a list of known paper sizes.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
paperSizeGetPaperSizes :: Bool -> IO [PaperSize]
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PaperSize.Unit
-- | An input method context supporting table-based input methods
module Graphics.UI.Gtk.Misc.IMContextSimple
data IMContextSimple
class IMContextClass o => IMContextSimpleClass o
castToIMContextSimple :: GObjectClass obj => obj -> IMContextSimple
toIMContextSimple :: IMContextSimpleClass o => o -> IMContextSimple
-- | Creates a new <a>IMContextSimple</a>.
imContextSimpleNew :: IO IMContextSimple
-- | Adds an additional table to search to the input context. Each row of
-- the table consists of <tt>maxSeqLen</tt> key symbols followed by two
-- <a>Int</a> interpreted as the high and low words of a gunicode value.
-- Tables are searched starting from the last added.
--
-- The table must be sorted in dictionary order on the numeric value of
-- the key symbol fields. (Values beyond the length of the sequence
-- should be zero.)
imContextSimpleAddTable :: (IMContextSimpleClass self, GlibString string) => self -> Map string string -> Int -> Int -> IO ()
-- | An input method context supporting multiple, loadable input methods
module Graphics.UI.Gtk.Misc.IMMulticontext
data IMMulticontext
class IMContextClass o => IMMulticontextClass o
castToIMMulticontext :: GObjectClass obj => obj -> IMMulticontext
gTypeIMMulticontext :: GType
toIMMulticontext :: IMMulticontextClass o => o -> IMMulticontext
-- | Creates a new <a>IMMulticontext</a>.
imMulticontextNew :: IO IMContext
-- | Add menuitems for various available input methods to a menu; the
-- menuitems, when selected, will switch the input method for the context
-- and the global default input method.
imMulticontextAppendMenuitems :: (IMMulticontextClass self, MenuShellClass menushell) => self -> menushell -> IO ()
-- | Grouping widgets so they request the same size
module Graphics.UI.Gtk.Misc.SizeGroup
data SizeGroup
class GObjectClass o => SizeGroupClass o
castToSizeGroup :: GObjectClass obj => obj -> SizeGroup
gTypeSizeGroup :: GType
toSizeGroup :: SizeGroupClass o => o -> SizeGroup
-- | Create a new <a>SizeGroup</a>.
sizeGroupNew :: SizeGroupMode -> IO SizeGroup
data SizeGroupMode
SizeGroupNone :: SizeGroupMode
SizeGroupHorizontal :: SizeGroupMode
SizeGroupVertical :: SizeGroupMode
SizeGroupBoth :: SizeGroupMode
-- | Sets the <a>SizeGroupMode</a> of the size group. The mode of the size
-- group determines whether the widgets in the size group should all have
-- the same horizontal requisition <a>SizeGroupHorizontal</a> all have
-- the same vertical requisition <a>SizeGroupVertical</a>, or should all
-- have the same requisition in both directions <a>SizeGroupBoth</a>.
sizeGroupSetMode :: SizeGroupClass self => self -> SizeGroupMode -> IO ()
-- | Gets the current mode of the size group. See <a>sizeGroupSetMode</a>.
sizeGroupGetMode :: SizeGroupClass self => self -> IO SizeGroupMode
-- | Adds a widget to a <a>SizeGroup</a>. In the future, the requisition of
-- the widget will be determined as the maximum of its requisition and
-- the requisition of the other widgets in the size group. Whether this
-- applies horizontally, vertically, or in both directions depends on the
-- mode of the size group. See <a>sizeGroupSetMode</a>.
sizeGroupAddWidget :: (SizeGroupClass self, WidgetClass widget) => self -> widget -> IO ()
-- | Removes a widget from a <a>SizeGroup</a>.
sizeGroupRemoveWidget :: (SizeGroupClass self, WidgetClass widget) => self -> widget -> IO ()
-- | Sets whether invisible widgets should be ignored when calculating the
-- size.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
sizeGroupSetIgnoreHidden :: SizeGroupClass self => self -> Bool -> IO ()
-- | Returns if invisible widgets are ignored when calculating the size.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
sizeGroupGetIgnoreHidden :: SizeGroupClass self => self -> IO Bool
-- | The directions in which the size group affects the requested sizes of
-- its component widgets.
--
-- Default value: <a>SizeGroupHorizontal</a>
sizeGroupMode :: SizeGroupClass self => Attr self SizeGroupMode
-- | If <tt>True</tt>, hidden widgets are ignored when determining the size
-- of the group.
--
-- Default value: <tt>False</tt>
sizeGroupIgnoreHidden :: SizeGroupClass self => Attr self Bool
instance GHC.Enum.Enum Graphics.UI.Gtk.Misc.SizeGroup.SizeGroupMode
-- | An object for rendering a cell in a list, icon or combo box widget.
module Graphics.UI.Gtk.ModelView.CellRenderer
data CellRenderer
class GObjectClass o => CellRendererClass o
castToCellRenderer :: GObjectClass obj => obj -> CellRenderer
gTypeCellRenderer :: GType
toCellRenderer :: CellRendererClass o => o -> CellRenderer
data CellRendererMode
CellRendererModeInert :: CellRendererMode
CellRendererModeActivatable :: CellRendererMode
CellRendererModeEditable :: CellRendererMode
-- | Informs the cell renderer that the editing is stopped. If
-- <tt>canceled</tt> is <tt>True</tt>, the cell renderer will emit the
-- <a>editingCanceled</a> signal.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
cellRendererStopEditing :: CellRendererClass self => self -> Bool -> IO ()
-- | Returns <tt>(width, height)</tt> denoting the size of the fixed size
-- of <tt>cell</tt>. If no fixed size is set, returns <tt>-1</tt> for
-- that value.
cellRendererGetFixedSize :: CellRendererClass self => self -> IO (Int, Int)
-- | Sets the renderer size to be explicit, independent of the properties
-- set.
cellRendererSetFixedSize :: CellRendererClass self => self -> Int -> Int -> IO ()
-- | Editable mode of the CellRenderer.
--
-- Default value: <a>CellRendererModeInert</a>
cellMode :: CellRendererClass self => Attr self CellRendererMode
-- | Display the cell.
--
-- Default value: <tt>True</tt>
cellVisible :: CellRendererClass self => Attr self Bool
-- | Display the cell sensitive.
--
-- Default value: <tt>True</tt>
cellSensitive :: CellRendererClass self => Attr self Bool
-- | The x-align.
--
-- Allowed values: <tt>[0,1]</tt>
--
-- Default value: <tt>0.5</tt>
cellXAlign :: CellRendererClass self => Attr self Float
-- | The y-align.
--
-- Allowed values: <tt>[0,1]</tt>
--
-- Default value: <tt>0.5</tt>
cellYAlign :: CellRendererClass self => Attr self Float
-- | The xpad.
--
-- Default value: <tt>0</tt>
cellXPad :: CellRendererClass self => Attr self Int
-- | The ypad.
--
-- Default value: <tt>0</tt>
cellYPad :: CellRendererClass self => Attr self Int
-- | The fixed width.
--
-- Allowed values: <tt>>= -1</tt>
--
-- Default value: <tt>-1</tt>
cellWidth :: CellRendererClass self => Attr self Int
-- | The fixed height.
--
-- Allowed values: <tt>>= -1</tt>
--
-- Default value: <tt>-1</tt>
cellHeight :: CellRendererClass self => Attr self Int
-- | Row has children.
--
-- Default value: <tt>False</tt>
cellIsExpander :: CellRendererClass self => Attr self Bool
-- | Row is an expander row, and is expanded.
--
-- Default value: <tt>False</tt>
cellIsExpanded :: CellRendererClass self => Attr self Bool
-- | Cell background color as a string.
--
-- Default value: <tt>""</tt>
cellBackground :: (CellRendererClass self, GlibString string) => WriteAttr self string
-- | Whether the <a>cellBackground</a> / <tt>cellBackgroundColor</tt>
-- attribute is set.
--
-- You can use this to reset the attribute to its default.
--
-- Default value: <tt>False</tt>
cellBackgroundSet :: CellRendererClass self => Attr self Bool
-- | This signal gets emitted when a cell starts to be edited. The indended
-- use of this signal is to do special setup on <tt>editable</tt>, e.g.
-- adding a <a>EntryCompletion</a> or setting up additional columns in a
-- <a>ComboBox</a>.
--
-- <ul>
-- <li>The widget that is passed to the handler contains the widget that
-- is used by the <a>CellRenderer</a> to interact with the user. The
-- widget must be casted to the appropriate widget. For instance, a
-- <a>CellRendererText</a> uses an <a>Entry</a> widget, while a
-- <a>CellRendererCombo</a> uses a <a>ComboBox</a> (if
-- <a>cellComboHasEntry</a> is <tt>False</tt>) or a <a>ComboBoxEntry</a>
-- (if <a>cellComboHasEntry</a> is <tt>True</tt>).</li>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
editingStarted :: CellRendererClass self => Signal self (Widget -> TreePath -> IO ())
-- | This signal gets emitted when the user cancels the process of editing
-- a cell. For example, an editable cell renderer could be written to
-- cancel editing when the user presses Escape.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
editingCanceled :: CellRendererClass self => Signal self (IO ())
instance GHC.Classes.Eq Graphics.UI.Gtk.ModelView.CellRenderer.CellRendererMode
instance GHC.Enum.Enum Graphics.UI.Gtk.ModelView.CellRenderer.CellRendererMode
-- | A persistent index into a tree model.
module Graphics.UI.Gtk.ModelView.TreeRowReference
-- | Tree Row Reference : like a <a>TreePath</a> it points to a subtree or
-- node, but it is persistent. It identifies the same node (so long as it
-- exists) even when items are added, removed, or reordered.
data TreeRowReference
-- | Creates a row reference based on a path. This reference will keep
-- pointing to the node pointed to by the given path, so long as it
-- exists. Returns <tt>Nothing</tt> if there is no node at the given
-- path.
treeRowReferenceNew :: TreeModelClass self => self -> TreePath -> IO (Maybe TreeRowReference)
-- | Returns a path that the row reference currently points to.
--
-- <ul>
-- <li>The returned path may be the empty list if the reference was
-- invalid.</li>
-- </ul>
treeRowReferenceGetPath :: TreeRowReference -> IO TreePath
-- | Returns True if the reference refers to a current valid path.
treeRowReferenceValid :: TreeRowReference -> IO Bool
-- | A position in the buffer preserved across buffer modifications
module Graphics.UI.Gtk.Multiline.TextMark
data TextMark
class GObjectClass o => TextMarkClass o
castToTextMark :: GObjectClass obj => obj -> TextMark
gTypeTextMark :: GType
toTextMark :: TextMarkClass o => o -> TextMark
-- | The name of a mark.
type MarkName = DefaultGlibString
-- | Creates a text mark. Add it to a buffer using
-- <tt>textBufferAddMark</tt>. If <tt>name</tt> is <tt>Nothing</tt>, the
-- mark is anonymous; otherwise, the mark can be retrieved by this name
-- using <tt>textBufferGetMark</tt>. If a mark has left gravity, and text
-- is inserted at the mark's current location, the mark will be moved to
-- the left of the newly-inserted text. If the mark has right gravity
-- (<tt>leftGravity</tt> = <tt>False</tt>), the mark will end up on the
-- right of newly-inserted text. The standard left-to-right cursor is a
-- mark with right gravity (when you type, the cursor stays on the right
-- side of the text you're typing).
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
textMarkNew :: Maybe MarkName -> Bool -> IO TextMark
-- | Sets the visibility of <tt>mark</tt>; the insertion point is normally
-- visible, i.e. you can see it as a vertical bar. Also, the text widget
-- uses a visible mark to indicate where a drop will occur when
-- dragging-and-dropping text. Most other marks are not visible. Marks
-- are not visible by default.
textMarkSetVisible :: TextMarkClass self => self -> Bool -> IO ()
-- | Returns <tt>True</tt> if the mark is visible (i.e. a cursor is
-- displayed for it)
textMarkGetVisible :: TextMarkClass self => self -> IO Bool
-- | Returns <tt>True</tt> if the mark has been removed from its buffer
-- with <tt>textBufferDeleteMark</tt>. Marks can't be used once deleted.
textMarkGetDeleted :: TextMarkClass self => self -> IO Bool
-- | Returns the mark name; returns <tt>Nothing</tt> for anonymous marks.
textMarkGetName :: TextMarkClass self => self -> IO (Maybe MarkName)
-- | Gets the buffer this mark is located inside, or <tt>Nothing</tt> if
-- the mark is deleted.
textMarkGetBuffer :: TextMarkClass self => self -> IO (Maybe TextBuffer)
-- | Determines whether the mark has left gravity.
--
-- The name is misleading as Arabic, Hebrew and some other languages have
-- the beginning of a line towards the right.
textMarkGetLeftGravity :: TextMarkClass self => self -> IO Bool
-- | Retreives the name of a mark.
textMarkName :: TextMarkClass self => ReadAttr self (Maybe MarkName)
-- | The 'visible' property. See <a>textMarkGetVisible</a> and
-- <a>textMarkSetVisible</a>
textMarkVisible :: TextMarkClass self => Attr self Bool
-- | Determines whether the mark keeps to the left when text is inserted at
-- its position.
textMarkLeftGravity :: TextMarkClass self => ReadAttr self Bool
-- | Collection of tags that can be used together
module Graphics.UI.Gtk.Multiline.TextTagTable
data TextTagTable
class GObjectClass o => TextTagTableClass o
castToTextTagTable :: GObjectClass obj => obj -> TextTagTable
gTypeTextTagTable :: GType
toTextTagTable :: TextTagTableClass o => o -> TextTagTable
-- | Creates a new <a>TextTagTable</a>. The table contains no tags by
-- default.
textTagTableNew :: IO TextTagTable
-- | Add a tag to the table. The tag is assigned the highest priority in
-- the table.
--
-- The tag must not be in a tag table already, and may not have the same
-- name as an already-added tag.
textTagTableAdd :: (TextTagTableClass self, TextTagClass tag) => self -> tag -> IO ()
-- | Remove a tag from the table.
textTagTableRemove :: (TextTagTableClass self, TextTagClass tag) => self -> tag -> IO ()
-- | Look up a named tag.
textTagTableLookup :: (TextTagTableClass self, GlibString string) => self -> string -> IO (Maybe TextTag)
-- | Maps over each tag in the table.
textTagTableForeach :: TextTagTableClass self => self -> (TextTag -> IO ()) -> IO ()
-- | Returns the size of the table (the number of tags).
textTagTableGetSize :: TextTagTableClass self => self -> IO Int
-- | Encapsulates context for drawing pages
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Printing.PrintContext
data PrintContext
class GObjectClass o => PrintContextClass o
castToPrintContext :: GObjectClass obj => obj -> PrintContext
toPrintContext :: PrintContextClass o => o -> PrintContext
-- | Obtains the cairo context that is associated with the
-- <a>PrintContext</a>.
printContextGetCairoContext :: PrintContextClass self => self -> IO Cairo
-- | Sets a new cairo context on a print context.
--
-- This function is intended to be used when implementing an internal
-- print preview, it is not needed for printing, since Gtk+ itself
-- creates a suitable cairo context in that case.
printContextSetCairoContext :: PrintContextClass self => self -> Cairo -> Double -> Double -> IO ()
-- | Obtains the <a>PageSetup</a> that determines the page dimensions of
-- the <a>PrintContext</a>.
printContextGetPageSetup :: PrintContextClass self => self -> IO PageSetup
-- | Obtains the width of the <a>PrintContext</a>, in pixels.
printContextGetWidth :: PrintContextClass self => self -> IO Double
-- | Obtains the height of the <a>PrintContext</a>, in pixels.
printContextGetHeight :: PrintContextClass self => self -> IO Double
-- | Obtains the horizontal resolution of the <a>PrintContext</a>, in dots
-- per inch.
printContextGetDpiX :: PrintContextClass self => self -> IO Double
-- | Obtains the vertical resolution of the <a>PrintContext</a>, in dots
-- per inch.
printContextGetDpiY :: PrintContextClass self => self -> IO Double
-- | Returns a <a>FontMap</a> that is suitable for use with the
-- <a>PrintContext</a>.
printContextGetPangoFontmap :: PrintContextClass self => self -> IO FontMap
-- | Creates a new <tt>Context</tt> that can be used with the
-- <a>PrintContext</a>.
printContextCreatePangoContext :: PrintContextClass self => self -> IO PangoContext
-- | Creates a new <a>PangoLayout</a> that is suitable for use with the
-- <a>PrintContext</a>.
printContextCreatePangoLayout :: PrintContextClass self => self -> IO PangoLayout
printContextGetHardMargins :: PrintContextClass self => self -> IO (Maybe (Double, Double, Double, Double))
-- | High-level Printing API
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Printing.PrintOperation
data PrintOperation
class GObjectClass o => PrintOperationClass o
castToPrintOperation :: GObjectClass obj => obj -> PrintOperation
toPrintOperation :: PrintOperationClass o => o -> PrintOperation
data PrintOperationPreview
class GObjectClass o => PrintOperationPreviewClass o
castToPrintOperationPreview :: GObjectClass obj => obj -> PrintOperationPreview
toPrintOperationPreview :: PrintOperationPreviewClass o => o -> PrintOperationPreview
-- | The status gives a rough indication of the completion of a running
-- print operation.
data PrintStatus
PrintStatusInitial :: PrintStatus
PrintStatusPreparing :: PrintStatus
PrintStatusGeneratingData :: PrintStatus
PrintStatusSendingData :: PrintStatus
PrintStatusPending :: PrintStatus
PrintStatusPendingIssue :: PrintStatus
PrintStatusPrinting :: PrintStatus
PrintStatusFinished :: PrintStatus
PrintStatusFinishedAborted :: PrintStatus
-- | The action parameter to <a>printOperationRun</a> determines what
-- action the print operation should perform.
data PrintOperationAction
PrintOperationActionPrintDialog :: PrintOperationAction
PrintOperationActionPrint :: PrintOperationAction
PrintOperationActionPreview :: PrintOperationAction
PrintOperationActionExport :: PrintOperationAction
-- | A value of this type is returned by <a>printOperationRun</a>.
data PrintOperationResult
PrintOperationResultError :: PrintOperationResult
PrintOperationResultApply :: PrintOperationResult
PrintOperationResultCancel :: PrintOperationResult
PrintOperationResultInProgress :: PrintOperationResult
-- | Error codes that identify various errors that can occur while using
-- the GTK+ printing support.
data PrintError
PrintErrorGeneral :: PrintError
PrintErrorInternalError :: PrintError
PrintErrorNomem :: PrintError
PrintErrorInvalidFile :: PrintError
-- | Creates a new <a>PrintOperation</a>.
printOperationNew :: IO PrintOperation
-- | Sets whether the <a>printOperationRun</a> may return before the print
-- operation is completed. Note that some platforms may not allow
-- asynchronous operation.
printOperationSetAllowAsync :: PrintOperationClass self => self -> Bool -> IO ()
-- | Call this when the result of a print operation is
-- <a>PrintOperationResultError</a>, either as returned by
-- <a>printOperationRun</a>, or in the <tt>done</tt> signal handler. The
-- returned <a>GError</a> will contain more details on what went wrong.
printOperationGetError :: PrintOperationClass self => self -> IO ()
-- | Sets the name of the print job. The name is used to identify the job
-- (e.g. in monitoring applications like eggcups).
--
-- If you don't set a job name, Gtk+ picks a default one by numbering
-- successive print jobs.
printOperationSetJobName :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()
-- | Sets the number of pages in the document.
--
-- This <i>must</i> be set to a positive number before the rendering
-- starts. It may be set in a <tt>beginPrint</tt> signal hander.
--
-- Note that the page numbers passed to the <tt>requestPageSetup</tt> and
-- <tt>drawPage</tt> signals are 0-based, i.e. if the user chooses to
-- print all pages, the last 'draw-page' signal will be for page
-- <tt>nPages</tt> - 1.
printOperationSetNPages :: PrintOperationClass self => self -> Int -> IO ()
-- | Returns the number of pages that will be printed.
--
-- Note that this value is set during print preparation phase
-- (<a>PrintStatusPreparing</a>), so this function should never be called
-- before the data generation phase (<a>PrintStatusGeneratingData</a>).
-- You can connect to the <tt>statusChanged</tt> signal and call
-- <a>printOperationGetNPagesToPrint</a> when print status is
-- <a>PrintStatusGeneratingData</a>. This is typically used to track the
-- progress of print operation.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
printOperationGetNPagesToPrint :: PrintOperationClass self => self -> IO Int
-- | Sets the current page.
--
-- If this is called before <a>printOperationRun</a>, the user will be
-- able to select to print only the current page.
--
-- Note that this only makes sense for pre-paginated documents.
printOperationSetCurrentPage :: PrintOperationClass self => self -> Int -> IO ()
-- | If <tt>fullPage</tt> is <tt>True</tt>, the transformation for the
-- cairo context obtained from <a>PrintContext</a> puts the origin at the
-- top left corner of the page (which may not be the top left corner of
-- the sheet, depending on page orientation and the number of pages per
-- sheet). Otherwise, the origin is at the top left corner of the
-- imageable area (i.e. inside the margins).
printOperationSetUseFullPage :: PrintOperationClass self => self -> Bool -> IO ()
-- | Sets up the transformation for the cairo context obtained from
-- <a>PrintContext</a> in such a way that distances are measured in units
-- of <tt>unit</tt>.
printOperationSetUnit :: PrintOperationClass self => self -> Unit -> IO ()
-- | Sets up the <a>PrintOperation</a> to generate a file instead of
-- showing the print dialog. The indended use of this function is for
-- implementing "Export to PDF" actions. Currently, PDF is the only
-- supported format.
--
-- "Print to PDF" support is independent of this and is done by letting
-- the user pick the "Print to PDF" item from the list of printers in the
-- print dialog.
printOperationSetExportFilename :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()
-- | If <tt>showProgress</tt> is <tt>True</tt>, the print operation will
-- show a progress dialog during the print operation.
printOperationSetShowProgress :: PrintOperationClass self => self -> Bool -> IO ()
-- | If track_status is <tt>True</tt>, the print operation will try to
-- continue report on the status of the print job in the printer queues
-- and printer. This can allow your application to show things like "out
-- of paper" issues, and when the print job actually reaches the printer.
--
-- This function is often implemented using some form of polling, so it
-- should not be enabled unless needed.
printOperationSetTrackPrintStatus :: PrintOperationClass self => self -> Bool -> IO ()
-- | Sets the label for the tab holding custom widgets.
printOperationSetCustomTabLabel :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()
-- | Runs the print operation, by first letting the user modify print
-- settings in the print dialog, and then print the document.
--
-- Normally that this function does not return until the rendering of all
-- pages is complete. You can connect to the <tt>statusChanged</tt>
-- signal on <tt>op</tt> to obtain some information about the progress of
-- the print operation. Furthermore, it may use a recursive mainloop to
-- show the print dialog.
--
-- If you call <a>printOperationSetAllowAsync</a> or set the
-- <tt>allowAsync</tt> property the operation will run asynchronously if
-- this is supported on the platform. The <tt>done</tt> signal will be
-- emitted with the result of the operation when the it is done (i.e.
-- when the dialog is canceled, or when the print succeeds or fails).
printOperationRun :: (PrintOperationClass self, WindowClass parent) => self -> PrintOperationAction -> parent -> IO PrintOperationResult
-- | Cancels a running print operation. This function may be called from a
-- <tt>beginPrint</tt>, <tt>paginate</tt> or <tt>drawPage</tt> signal
-- handler to stop the currently running print operation.
printOperationCancel :: PrintOperationClass self => self -> IO ()
-- | Signalize that drawing of particular page is complete.
--
-- It is called after completion of page drawing (e.g. drawing in another
-- thread). If <a>printOperationSetDeferDrawing</a> was called before,
-- then this function has to be called by application. In another case it
-- is called by the library itself.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
printOperationDrawPageFinish :: PrintOperationClass self => self -> IO ()
-- | Sets up the <a>PrintOperation</a> to wait for calling of
-- <a>printOperationDrawPageFinish</a> from application. It can be used
-- for drawing page in another thread.
--
-- This function must be called in the callback of "draw-page" signal.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
printOperationSetDeferDrawing :: PrintOperationClass self => self -> IO ()
-- | Returns the status of the print operation. Also see
-- <a>printOperationGetStatusString</a>.
printOperationGetStatus :: PrintOperationClass self => self -> IO PrintStatus
-- | Returns a string representation of the status of the print operation.
-- The string is translated and suitable for displaying the print status
-- e.g. in a <a>Statusbar</a>.
--
-- Use <a>printOperationGetStatus</a> to obtain a status value that is
-- suitable for programmatic use.
printOperationGetStatusString :: (PrintOperationClass self, GlibString string) => self -> IO string
-- | A convenience function to find out if the print operation is finished,
-- either successfully (<a>PrintStatusFinished</a>) or unsuccessfully
-- (<a>PrintStatusFinishedAborted</a>).
--
-- Note: when you enable print status tracking the print operation can be
-- in a non-finished state even after done has been called, as the
-- operation status then tracks the print job status on the printer.
printOperationIsFinished :: PrintOperationClass self => self -> IO Bool
-- | Runs a page setup dialog, letting the user modify the values from
-- <tt>pageSetup</tt>. If the user cancels the dialog, the returned
-- <a>PageSetup</a> is identical to the passed in <tt>pageSetup</tt>,
-- otherwise it contains the modifications done in the dialog.
--
-- Note that this function may use a recursive mainloop to show the page
-- setup dialog. See <a>printRunPageSetupDialogAsync</a> if this is a
-- problem.
printRunPageSetupDialog :: (WindowClass window, PageSetupClass pageSetup, PrintSettingsClass setting) => window -> pageSetup -> setting -> IO PageSetup
-- | Runs a page setup dialog, letting the user modify the values from
-- <tt>pageSetup</tt>.
--
-- In contrast to <a>printRunPageSetupDialog</a>, this function returns
-- after showing the page setup dialog on platforms that support this,
-- and calls <tt>doneCb</tt> from a signal handler for the
-- <tt>response</tt> signal of the dialog.
printRunPageSetupDialogAsync :: (WindowClass window, PageSetupClass pageSetup, PrintSettingsClass setting) => window -> pageSetup -> setting -> (PageSetup -> IO ()) -> IO ()
-- | Ends a preview.
--
-- This function must be called to finish a custom print preview.
printOperationPreviewEndPreview :: PrintOperationPreviewClass self => self -> IO ()
-- | Returns whether the given page is included in the set of pages that
-- have been selected for printing.
printOperationPreviewIsSelected :: PrintOperationPreviewClass self => self -> Int -> IO Bool
-- | Renders a page to the preview, using the print context that was passed
-- to the "preview" handler together with preview.
--
-- A custom iprint preview should use this function in its
-- <tt>expose</tt> handler to render the currently selected page.
--
-- Note that this function requires a suitable cairo context to be
-- associated with the print context.
printOperationPreviewRenderPage :: PrintOperationPreviewClass self => self -> Int -> IO ()
-- | The <a>PageSetup</a> used by default.
--
-- This page setup will be used by <a>printOperationRun</a>, but it can
-- be overridden on a per-page basis by connecting to the
-- <tt>requestPageSetup</tt> signal.
--
-- Since 2.10
printOperationDefaultPageSetup :: (PrintOperationClass self, PageSetupClass pageSetup) => ReadWriteAttr self PageSetup pageSetup
-- | The <a>PrintSettings</a> used for initializing the dialog.
--
-- Setting this property is typically used to re-establish print settings
-- from a previous print operation, see <a>printOperationRun</a>.
--
-- Since 2.10
printOperationPrintSettings :: (PrintOperationClass self, PrintSettingsClass printSettings) => ReadWriteAttr self PrintSettings printSettings
-- | A string used to identify the job (e.g. in monitoring applications
-- like eggcups).
--
-- If you don't set a job name, GTK+ picks a default one by numbering
-- successive print jobs.
--
-- Default value: ""
--
-- Since 2.10
printOperationJobName :: (PrintOperationClass self, GlibString string) => Attr self string
-- | The number of pages in the document.
--
-- This must be set to a positive number before the rendering starts. It
-- may be set in a <tt>beginPrint</tt> signal hander.
--
-- Note that the page numbers passed to the <tt>requestPageSetup</tt> and
-- <tt>drawPage</tt> signals are 0-based, i.e. if the user chooses to
-- print all pages, the last <tt>drawPage</tt> signal will be for page
-- <tt>nPages</tt> - 1.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: -1
--
-- Since 2.10
printOperationNPages :: PrintOperationClass self => Attr self Int
-- | The current page in the document.
--
-- If this is set before <a>printOperationRun</a>, the user will be able
-- to select to print only the current page.
--
-- Note that this only makes sense for pre-paginated documents.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: -1
--
-- Since 2.10
printOperationCurrentPage :: PrintOperationClass self => Attr self Int
-- | If <a>True</a>, the transformation for the cairo context obtained from
-- <a>PrintContext</a> puts the origin at the top left corner of the page
-- (which may not be the top left corner of the sheet, depending on page
-- orientation and the number of pages per sheet). Otherwise, the origin
-- is at the top left corner of the imageable area (i.e. inside the
-- margins).
--
-- Default value: <a>False</a>
--
-- Since 2.10
printOperationUseFullPage :: PrintOperationClass self => Attr self Bool
-- | If <a>True</a>, the print operation will try to continue report on the
-- status of the print job in the printer queues and printer. This can
-- allow your application to show things like "out of paper" issues, and
-- when the print job actually reaches the printer. However, this is
-- often implemented using polling, and should not be enabled unless
-- needed.
--
-- Default value: <a>False</a>
--
-- Since 2.10
printOperationTrackPrintStatus :: PrintOperationClass self => Attr self Bool
-- | The transformation for the cairo context obtained from
-- <a>PrintContext</a> is set up in such a way that distances are
-- measured in units of unit.
--
-- Default value: '<tt>UnitPixel'</tt>
--
-- Since 2.10
printOperationUnit :: PrintOperationClass self => Attr self Unit
-- | Determines whether to show a progress dialog during the print
-- operation.
--
-- Default value: <a>False</a>
--
-- Since 2.10
printOperationShowProgress :: PrintOperationClass self => Attr self Bool
-- | Determines whether the print operation may run asynchronously or not.
--
-- Some systems don't support asynchronous printing, but those that do
-- will return '<tt>PrintOperationResultInProgress'</tt> as the status,
-- and emit the "done" signal when the operation is actually done.
--
-- The Windows port does not support asynchronous operation at all (this
-- is unlikely to change). On other platforms, all actions except for
-- '<tt>PrintOperationActionExport'</tt> support asynchronous operation.
--
-- Default value: <a>False</a>
--
-- Since 2.10
printOperationAllowAsync :: PrintOperationClass self => Attr self Bool
-- | The name of a file to generate instead of showing the print dialog.
-- Currently, PDF is the only supported format.
--
-- The intended use of this property is for implementing "Export to PDF"
-- actions.
--
-- "Print to PDF" support is independent of this and is done by letting
-- the user pick the "Print to PDF" item from the list of printers in the
-- print dialog.
--
-- Default value: <a>Nothing</a>
--
-- Since 2.10
printOperationExportFilename :: (PrintOperationClass self, GlibString string) => Attr self string
-- | The status of the print operation.
--
-- Default value: '<tt>PrintStatusInitial'</tt>
--
-- Since 2.10
printOperationStatus :: PrintOperationClass self => ReadAttr self PrintStatus
-- | A string representation of the status of the print operation. The
-- string is translated and suitable for displaying the print status e.g.
-- in a <a>Statusbar</a>.
--
-- See the <a>printOperationStatus</a> property for a status value that
-- is suitable for programmatic use.
--
-- Default value: ""
--
-- Since 2.10
printOperationStatusString :: (PrintOperationClass self, GlibString string) => ReadAttr self string
-- | Used as the label of the tab containing custom widgets. Note that this
-- property may be ignored on some platforms.
--
-- If this is <a>Nothing</a>, GTK+ uses a default label.
--
-- Default value: <a>Nothing</a>
--
-- Since 2.10
printOperationCustomTabLabel :: (PrintOperationClass self, GlibString string) => Attr self string
-- | If <a>True</a>, the print operation will support print of selection.
-- This allows the print dialog to show a <a>Selection</a> button.
--
-- Default value: <a>False</a>
--
-- Since 2.18
printOperationSupportSelection :: PrintOperationClass self => Attr self Bool
-- | Determines whether there is a selection in your application. This can
-- allow your application to print the selection. This is typically used
-- to make a <a>Selection</a> button sensitive.
--
-- Default value: <a>False</a>
--
-- Since 2.18
printOperationHasSelection :: PrintOperationClass self => Attr self Bool
-- | If <a>True</a>, page size combo box and orientation combo box are
-- embedded into page setup page.
--
-- Default value: <a>False</a>
--
-- Since 2.18
printOperationEmbedPageSetup :: PrintOperationClass self => Attr self Bool
-- | The number of pages that will be printed.
--
-- Note that this value is set during print preparation phase
-- ('<tt>PrintStatusPreparing'</tt>), so this value should never be get
-- before the data generation phase
-- ('<tt>PrintStatusGeneratingData'</tt>). You can connect to the
-- <tt>statusChanged</tt> signal and call
-- <a>printOperationGetNPagesToPrint</a> when print status is
-- '<tt>PrintStatusGeneratingData'</tt>. This is typically used to track
-- the progress of print operation.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: -1
--
-- Since 2.18
printOperationNPagesToPrint :: PrintOperationClass self => ReadAttr self Int
-- | Emitted when the print operation run has finished doing everything
-- required for printing.
--
-- <tt>result</tt> gives you information about what happened during the
-- run. If <tt>result</tt> is <a>PrintOperationResultError</a> then you
-- can call <a>printOperationGetError</a> for more information.
--
-- If you enabled print status tracking then
-- <a>printOperationIsFinished</a> may still return <tt>False</tt> after
-- <tt>done</tt> was emitted.
printOptDone :: PrintOperationClass self => Signal self (PrintOperationResult -> IO ())
-- | Emitted after the user has finished changing print settings in the
-- dialog, before the actual rendering starts.
--
-- A typical use for 'begin-print' is to use the parameters from the
-- <a>PrintContext</a> and paginate the document accordingly, and then
-- set the number of pages with <a>printOperationSetNPages</a>.
printOptBeginPrint :: PrintOperationClass self => Signal self (PrintContext -> IO ())
-- | Emitted after the <tt>beginPrint</tt> signal, but before the actual
-- rendering starts. It keeps getting emitted until a connected signal
-- handler returns <tt>True</tt>.
--
-- The <tt>paginate</tt> signal is intended to be used for paginating a
-- document in small chunks, to avoid blocking the user interface for a
-- long time. The signal handler should update the number of pages using
-- <a>printOperationSetNPages</a>, and return <tt>True</tt> if the
-- document has been completely paginated.
--
-- If you don't need to do pagination in chunks, you can simply do it all
-- in the 'begin-print handler', and set the number of pages from there.
printOptPaginate :: PrintOperationClass self => Signal self (PrintContext -> IO Bool)
-- | Emitted once for every page that is printed, to give the application a
-- chance to modify the page setup. Any changes done to <tt>setup</tt>
-- will be in force only for printing this page.
printOptRequestPageSetup :: PrintOperationClass self => Signal self (PrintContext -> Int -> PageSetup -> IO ())
-- | Emitted for every page that is printed. The signal handler must render
-- the <tt>pageNr</tt>'s page onto the cairo context obtained from
-- <tt>context</tt> using <tt>printContextGetCairoContext</tt>.
--
-- Use <a>printOperationSetUseFullPage</a> and
-- <a>printOperationSetUnit</a> before starting the print operation to
-- set up the transformation of the cairo context according to your
-- needs.
printOptDrawPage :: PrintOperationClass self => Signal self (PrintContext -> Int -> IO ())
-- | Emitted after all pages have been rendered. A handler for this signal
-- can clean up any resources that have been allocated in the
-- <tt>beginPrint</tt> handler.
printOptEndPrint :: PrintOperationClass self => Signal self (PrintContext -> IO ())
-- | Emitted at between the various phases of the print operation. See
-- <a>PrintStatus</a> for the phases that are being discriminated. Use
-- <a>printOperationGetStatus</a> to find out the current status.
printOptStatusChanged :: PrintOperationClass self => Signal self (IO ())
-- | Emitted when displaying the print dialog. If you return a widget in a
-- handler for this signal it will be added to a custom tab in the print
-- dialog. You typically return a container widget with multiple widgets
-- in it.
--
-- The print dialog owns the returned widget, and its lifetime is not
-- controlled by the application. However, the widget is guaranteed to
-- stay around until the <tt>customWidgetApply</tt> signal is emitted on
-- the operation. Then you can read out any information you need from the
-- widgets.
printOptCreateCustomWidget :: PrintOperationClass self => Signal self (IO Widget)
-- | Emitted after change of selected printer. The actual page setup and
-- print settings are passed to the custom widget, which can actualize
-- itself according to this change.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
printOptUpdateCustomWidget :: PrintOperationClass self => Signal self (Widget -> PageSetup -> PrintSettings -> IO ())
-- | Emitted right before <tt>beginPrint</tt> if you added a custom widget
-- in the <tt>createCustomWidtet</tt> handler. When you get this signal
-- you should read the information from the custom widgets, as the
-- widgets are not guaraneed to be around at a later time.
printOptCustomWidgetApply :: PrintOperationClass self => Signal self (Widget -> IO ())
-- | Gets emitted when a preview is requested from the native dialog.
--
-- The default handler for this signal uses an external viewer
-- application to preview.
--
-- To implement a custom print preview, an application must return
-- <tt>True</tt> from its handler for this signal. In order to use the
-- provided <tt>context</tt> for the preview implementation, it must be
-- given a suitable cairo context with
-- <tt>printContextSetCairoContext</tt>.
--
-- The custom preview implementation can use
-- <a>printOperationPreviewIsSelected</a> and
-- <a>printOperationPreviewRenderPage</a> to find pages which are
-- selected for print and render them. The preview must be finished by
-- calling <a>printOperationPreviewEndPreview</a> (typically in response
-- to the user clicking a close button).
printOptPreview :: PrintOperationClass self => Signal self (PrintOperationPreview -> PrintContext -> Window -> IO Bool)
-- | The <tt>ready</tt> signal gets emitted once per preview operation,
-- before the first page is rendered.
--
-- A handler for this signal can be used for setup tasks.
printOptReady :: PrintOperationPreviewClass self => Signal self (PrintContext -> IO ())
-- | The <tt>gotPageSize</tt> signal is emitted once for each page that
-- gets rendered to the preview.
--
-- A handler for this signal should update the context according to
-- <tt>pageSetup</tt> and set up a suitable cairo context, using
-- <tt>printContextSetCairoContext</tt>.
printOptGotPageSize :: PrintOperationPreviewClass self => Signal self (PrintContext -> PageSetup -> IO ())
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance Graphics.UI.Gtk.Types.PrintOperationPreviewClass Graphics.UI.Gtk.Types.PrintOperation
-- | Stores print settings
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Printing.PrintSettings
data PrintSettings
class GObjectClass o => PrintSettingsClass o
castToPrintSettings :: GObjectClass obj => obj -> PrintSettings
toPrintSettings :: PrintSettingsClass o => o -> PrintSettings
data PageOrientation
PageOrientationPortrait :: PageOrientation
PageOrientationLandscape :: PageOrientation
PageOrientationReversePortrait :: PageOrientation
PageOrientationReverseLandscape :: PageOrientation
-- | Used to determine the layout of pages on a sheet when printing
-- multiple pages per sheet.
data NumberUpLayout
NumberUpLayoutLeftToRightTopToBottom :: NumberUpLayout
NumberUpLayoutLeftToRightBottomToTop :: NumberUpLayout
NumberUpLayoutRightToLeftTopToBottom :: NumberUpLayout
NumberUpLayoutRightToLeftBottomToTop :: NumberUpLayout
NumberUpLayoutTopToBottomLeftToRight :: NumberUpLayout
NumberUpLayoutTopToBottomRightToLeft :: NumberUpLayout
NumberUpLayoutBottomToTopLeftToRight :: NumberUpLayout
NumberUpLayoutBottomToTopRightToLeft :: NumberUpLayout
data PrintQuality
PrintQualityLow :: PrintQuality
PrintQualityNormal :: PrintQuality
PrintQualityHigh :: PrintQuality
PrintQualityDraft :: PrintQuality
data PrintDuplex
PrintDuplexSimplex :: PrintDuplex
PrintDuplexHorizontal :: PrintDuplex
PrintDuplexVertical :: PrintDuplex
data PrintPages
PrintPagesAll :: PrintPages
PrintPagesCurrent :: PrintPages
PrintPagesRanges :: PrintPages
PrintPagesSelection :: PrintPages
data PageSet
PageSetAll :: PageSet
PageSetEven :: PageSet
PageSetOdd :: PageSet
-- | Creates a new <a>PrintSettings</a> object.
printSettingsNew :: IO PrintSettings
-- | Reads the print settings from <tt>fileName</tt>. Returns a new
-- <a>PrintSettings</a> object with the restored settings.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
printSettingsNewFromFile :: GlibFilePath fp => fp -> IO PrintSettings
-- | Copies a <a>PrintSettings</a> object.
printSettingsCopy :: PrintSettingsClass self => self -> IO PrintSettings
-- | Returns <tt>True</tt>, if a value is associated with <tt>key</tt>.
printSettingsHasKey :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool
-- | Looks up the string value associated with <tt>key</tt>.
printSettingsGet :: (PrintSettingsClass self, GlibString string) => self -> string -> IO string
-- | Associates <tt>value</tt> with <tt>key</tt>.
printSettingsSet :: (PrintSettingsClass self, GlibString string) => self -> string -> string -> IO ()
-- | Removes any value associated with <tt>key</tt>
printSettingsUnset :: (PrintSettingsClass self, GlibString string) => self -> string -> IO ()
-- | Calls <tt>func</tt> for each key-value pair of <tt>settings</tt>.
printSettingsForeach :: PrintSettingsClass self => self -> (String -> IO ()) -> IO ()
-- | Returns the boolean represented by the value that is associated with
-- <tt>key</tt>.
--
-- The string "true" represents <tt>True</tt>, any other string
-- <tt>False</tt>.
printSettingsGetBool :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool
-- | Sets <tt>key</tt> to a boolean value.
printSettingsSetBool :: (PrintSettingsClass self, GlibString string) => self -> string -> Bool -> IO ()
-- | Returns the double value associated with <tt>key</tt>, or 0.
printSettingsGetDouble :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Double
-- | Returns the floating point number represented by the value that is
-- associated with <tt>key</tt>, or <tt>defaultVal</tt> if the value does
-- not represent a floating point number.
--
-- Floating point numbers are parsed with <tt>gAsciiStrtod</tt>.
printSettingsGetDoubleWithDefault :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> IO Double
-- | Sets <tt>key</tt> to a double value.
printSettingsSetDouble :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> IO ()
-- | Returns the value associated with <tt>key</tt>, interpreted as a
-- length. The returned value is converted to <tt>units</tt>.
printSettingsGetLength :: (PrintSettingsClass self, GlibString string) => self -> string -> Unit -> IO Double
-- | Associates a length in units of <tt>unit</tt> with <tt>key</tt>.
printSettingsSetLength :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> Unit -> IO ()
-- | Returns the integer value of <tt>key</tt>, or 0.
printSettingsGetInt :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Int
-- | Returns the value of <tt>key</tt>, interpreted as an integer, or the
-- default value.
printSettingsGetIntWithDefault :: (PrintSettingsClass self, GlibString string) => self -> string -> Int -> IO Int
-- | Sets <tt>key</tt> to an integer value.
printSettingsSetInt :: (PrintSettingsClass self, GlibString string) => self -> string -> Int -> IO ()
-- | Gets the value of <tt>PrintSettingsPaperWidth</tt>, converted to unit.
printSettingsGetPaperWidth :: PrintSettingsClass self => self -> Unit -> IO Double
-- | Sets the value of <tt>PrintSettingsPaperWidth</tt>.
printSettingsSetPaperWidth :: PrintSettingsClass self => self -> Double -> Unit -> IO ()
-- | Gets the value of <tt>PrintSettingsPaperHeight</tt>, converted to
-- unit.
printSettingsGetPaperHeight :: PrintSettingsClass self => self -> Unit -> IO Double
-- | Sets the value of <tt>PrintSettingsPaperHeight</tt>.
printSettingsSetPaperHeight :: PrintSettingsClass self => self -> Double -> Unit -> IO ()
-- | Sets the values of <tt>PrintSettingsResolution</tt>,
-- <tt>PrintSettingsResolutionX</tt> and
-- <tt>PrintSettingsResolutionY</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
printSettingsSetResolutionXy :: PrintSettingsClass self => self -> Int -> Int -> IO ()
-- | Gets the value of <tt>"resolution-x"</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
printSettingsGetResolutionX :: PrintSettingsClass self => self -> IO Int
-- | Gets the value of <tt>"resolution-y"</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
printSettingsGetResolutionY :: PrintSettingsClass self => self -> IO Int
-- | Reads the print settings from <tt>fileName</tt>. See
-- <a>printSettingsToFile</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
printSettingsLoadFile :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool
-- | This function saves the print settings from <tt>settings</tt> to
-- <tt>fileName</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
printSettingsToFile :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool
-- | Obtain the value of <tt>PrintSettingsPrinter</tt>.
printSettingsPrinter :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of '<tt>PrintSettingsOrientation'</tt>, converted to a
-- <a>PageOrientation</a>.
printSettingsOrientation :: PrintSettingsClass self => Attr self PageOrientation
-- | The value of <tt>PrintSettingsPaperFormat</tt>, converted to a
-- <a>PaperSize</a>.
printSettingsPaperSize :: PrintSettingsClass self => Attr self PaperSize
-- | The value of '<tt>PrintSettingsUseColor'</tt>.
printSettingsUseColor :: PrintSettingsClass self => Attr self Bool
-- | The value of '<tt>PrintSettingsCollate'</tt>.
printSettingsCollate :: PrintSettingsClass self => Attr self Bool
-- | The value of '<tt>PrintSettingsReverse'</tt>.
printSettingsReverse :: PrintSettingsClass self => Attr self Bool
-- | The value of '<tt>PrintSettingsDuplex'</tt>.
printSettingsDuplex :: PrintSettingsClass self => Attr self PrintDuplex
-- | The value of '<tt>PrintSettingsQuality'</tt>.
printSettingsQuality :: PrintSettingsClass self => Attr self PrintQuality
-- | The value of <tt>PrintSettingsNCopies</tt>.
printSettingsNCopies :: PrintSettingsClass self => Attr self Int
-- | The value of <tt>PrintSettingsNumberUp</tt>.
printSettingsNumberUp :: PrintSettingsClass self => Attr self Int
-- | The value of <tt>PrintSettingsResolution</tt>.
printSettingsResolution :: PrintSettingsClass self => Attr self Int
-- | The value of <tt>PrintSettingsScale</tt>.
printSettingsScale :: PrintSettingsClass self => Attr self Double
-- | The value of <tt>PrintSettingsPrintPages</tt>.
printSettingsPrintPages :: PrintSettingsClass self => Attr self PrintPages
-- | The value of <tt>PrintSettingsPageSet</tt>.
printSettingsPageSet :: PrintSettingsClass self => Attr self PageSet
-- | The value of <tt>PrintSettingsDefaultSource</tt>.
printSettingsDefaultSource :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of <tt>PrintSettingsMediaType</tt>.
printSettingsMediaType :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of <tt>PrintSettingsDither</tt>.
printSettingsDither :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of <tt>PrintSettingsFinishings</tt>.
printSettingsFinishings :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of <tt>PrintSettingsOutputBin</tt>.
printSettingsOutputBin :: (PrintSettingsClass self, GlibString string) => Attr self string
-- | The value of <tt>PrintSettingsNumberUpLayout</tt>.
printSettingsNumberUpLayout :: PrintSettingsClass self => Attr self NumberUpLayout
-- | The value of <tt>PrintSettingsPrinterLpi</tt>.
printSettingsPrinterLpi :: PrintSettingsClass self => Attr self Double
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
-- | Stores page setup information
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Printing.PageSetup
data PageSetup
class GObjectClass o => PageSetupClass o
castToPageSetup :: GObjectClass obj => obj -> PageSetup
toPageSetup :: PageSetupClass o => o -> PageSetup
-- | Creates a new <a>PageSetup</a>.
pageSetupNew :: IO PageSetup
-- | Reads the page setup from the file <tt>fileName</tt>. Returns a new
-- <a>PageSetup</a> object with the restored page setup.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
pageSetupNewFromFile :: GlibString string => string -> IO PageSetup
-- | Copies a <a>PageSetup</a>.
pageSetupCopy :: PageSetupClass self => self -> IO PageSetup
-- | Gets the top margin in units of <tt>unit</tt>.
pageSetupGetTopMargin :: PageSetupClass self => self -> Unit -> IO Double
-- | Sets the top margin of the <a>PageSetup</a>.
pageSetupSetTopMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()
-- | Gets the bottom margin in units of <tt>unit</tt>.
pageSetupGetBottomMargin :: PageSetupClass self => self -> Unit -> IO Double
-- | Sets the bottom margin of the <a>PageSetup</a>.
pageSetupSetBottomMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()
-- | Gets the left margin in units of <tt>unit</tt>.
pageSetupGetLeftMargin :: PageSetupClass self => self -> Unit -> IO Double
-- | Sets the left margin of the <a>PageSetup</a>.
pageSetupSetLeftMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()
-- | Gets the right margin in units of <tt>unit</tt>.
pageSetupGetRightMargin :: PageSetupClass self => self -> Unit -> IO Double
-- | Sets the right margin of the <a>PageSetup</a>.
pageSetupSetRightMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()
-- | Sets the paper size of the <a>PageSetup</a> and modifies the margins
-- according to the new paper size.
pageSetupSetPaperSizeAndDefaultMargins :: PageSetupClass self => self -> PaperSize -> IO ()
-- | Returns the paper width in units of <tt>unit</tt>.
--
-- Note that this function takes orientation, but not margins into
-- consideration. See <a>pageSetupGetPageWidth</a>.
pageSetupGetPaperWidth :: PageSetupClass self => self -> Unit -> IO Double
-- | Returns the paper height in units of <tt>unit</tt>.
--
-- Note that this function takes orientation, but not margins into
-- consideration. See <a>pageSetupGetPageHeight</a>.
pageSetupGetPaperHeight :: PageSetupClass self => self -> Unit -> IO Double
-- | Returns the page width in units of <tt>unit</tt>.
--
-- Note that this function takes orientation and margins into
-- consideration. See <a>pageSetupGetPaperWidth</a>.
pageSetupGetPageWidth :: PageSetupClass self => self -> Unit -> IO Double
-- | Returns the page height in units of <tt>unit</tt>.
--
-- Note that this function takes orientation and margins into
-- consideration. See <a>pageSetupGetPaperHeight</a>.
pageSetupGetPageHeight :: PageSetupClass self => self -> Unit -> IO Double
-- | Reads the page setup from the file <tt>fileName</tt>. See
-- <a>pageSetupToFile</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
pageSetupLoadFile :: (PageSetupClass self, GlibString string) => self -> string -> IO Bool
-- | This function saves the information from <tt>setup</tt> to
-- <tt>fileName</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
pageSetupToFile :: (PageSetupClass self, GlibString string) => self -> string -> IO Bool
-- | The page orientation of the <a>PageSetup</a>.
pageSetupOrientation :: PageSetupClass self => Attr self PageOrientation
-- | The paper size of the <a>PageSetup</a>.
pageSetupPaperSize :: PageSetupClass self => Attr self PaperSize
module Graphics.UI.Gtk.Recent.RecentInfo
data RecentInfo
-- | Helper function for build <a>RecentInfo</a>
mkRecentInfo :: Ptr RecentInfo -> IO RecentInfo
-- | Checks whether the resource pointed by info still exists. At the
-- moment this check is done only on resources pointing to local files.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoExists :: RecentInfo -> IO Bool
-- | Gets the timestamp (seconds from system's Epoch) when the resource was
-- added to the recently used resources list.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetAdded :: RecentInfo -> IO Int
-- | Gets the number of days elapsed since the last update of the resource
-- pointed by info.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetAge :: RecentInfo -> IO Int
-- | Gets the data regarding the application that has registered the
-- resource pointed by info.
--
-- If the command line contains any escape characters defined inside the
-- storage specification, they will be expanded.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetApplicationInfo :: GlibString string => RecentInfo -> string -> IO (Maybe ([string], Int, Int))
-- | Retrieves the list of applications that have registered this resource.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetApplications :: GlibString string => RecentInfo -> IO [string]
-- | Gets the (short) description of the resource.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetDescription :: GlibString string => RecentInfo -> IO string
-- | Gets the name of the resource. If none has been defined, the basename
-- of the resource is obtained.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetDisplayName :: GlibString string => RecentInfo -> IO string
-- | Returns all groups registered for the recently used item info.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetGroups :: GlibString string => RecentInfo -> IO [string]
-- | Retrieves the icon of size size associated to the resource MIME type.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetIcon :: RecentInfo -> Int -> IO (Maybe Pixbuf)
-- | Gets the MIME type of the resource.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetMimeType :: GlibString string => RecentInfo -> IO string
-- | Gets the timestamp (seconds from system's Epoch) when the resource was
-- last modified.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetModified :: RecentInfo -> IO Int
-- | Gets the value of the "private" flag. Resources in the recently used
-- list that have this flag set to <a>True</a> should only be displayed
-- by the applications that have registered them.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetPrivateHint :: RecentInfo -> IO Bool
-- | Computes a valid UTF-8 string that can be used as the name of the item
-- in a menu or list. For example, calling this function on an item that
-- refers to "file://<i>foo</i>bar.txt" will yield "bar.txt".
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetShortName :: GlibString string => RecentInfo -> IO string
-- | Gets the URI of the resource.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetURI :: GlibString string => RecentInfo -> IO string
-- | Gets a displayable version of the resource's URI. If the resource is
-- local, it returns a local path; if the resource is not local, it
-- returns the UTF-8 encoded content of <tt>recentInfoGetUri</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetURIDisplay :: GlibString string => RecentInfo -> IO string
-- | Gets the timestamp (seconds from system's Epoch) when the resource was
-- last visited.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoGetVisited :: RecentInfo -> IO Int
-- | Checks whether an application registered this resource using
-- <tt>appName</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoHasApplication :: GlibString string => RecentInfo -> string -> IO Bool
-- | Checks whether <tt>groupName</tt> appears inside the groups registered
-- for the recently used item info.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoHasGroup :: GlibString string => RecentInfo -> string -> IO Bool
-- | Checks whether the resource is local or not by looking at the scheme
-- of its URI.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoIsLocal :: RecentInfo -> IO Bool
-- | Gets the name of the last application that have registered the
-- recently used resource represented by info.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoLastApplication :: GlibString string => RecentInfo -> IO string
-- | Checks whether two <a>RecentInfo</a> structures point to the same
-- resource.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentInfoMatch :: RecentInfo -> RecentInfo -> IO Bool
-- | Managing Recently Used Files
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
--
-- TODO: GtkRecentData gtk_recent_manager_add_full
module Graphics.UI.Gtk.Recent.RecentManager
data RecentManager
class GObjectClass o => RecentManagerClass o
castToRecentManager :: GObjectClass obj => obj -> RecentManager
toRecentManager :: RecentManagerClass o => o -> RecentManager
-- | Creates a new recent manager object. Recent manager objects are used
-- to handle the list of recently used resources. A <a>RecentManager</a>
-- object monitors the recently used resources list, and emits the
-- "changed" signal each time something inside the list changes.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerNew :: IO RecentManager
-- | Gets a unique instance of <a>RecentManager</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerGetDefault :: IO RecentManager
-- | Adds a new resource, pointed by <tt>uri</tt>, into the recently used
-- resources list.
--
-- This function automatically retrieves some of the needed metadata and
-- setting other metadata to common default values; it then feeds the
-- data to <tt>recentManagerAddFull</tt>.
--
-- See <tt>recentManagerAddFull</tt> if you want to explicitly define the
-- metadata for the resource pointed by <tt>uri</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerAddItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool
-- | Removes a resource pointed by <tt>uri</tt> from the recently used
-- resources list handled by a recent manager.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerRemoveItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool
-- | Searches for a URI inside the recently used resources list, and
-- returns a structure containing informations about the resource like
-- its MIME type, or its display name.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerLookupItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO RecentInfo
-- | Checks whether there is a recently used resource registered with
-- <tt>uri</tt> inside the recent manager.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerHasItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool
-- | Changes the location of a recently used resource from <tt>uri</tt> to
-- <tt>newUri</tt>.
--
-- Please note that this function will not affect the resource pointed by
-- the URIs, but only the URI used in the recently used resources list.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerMoveItem :: (RecentManagerClass self, GlibString string) => self -> string -> string -> IO Bool
-- | Gets the list of recently used resources.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerGetItems :: RecentManagerClass self => self -> IO [RecentInfo]
-- | Purges every item from the recently used resources list.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerPurgeItems :: RecentManagerClass self => self -> IO Int
-- | The full path to the file to be used to store and read the recently
-- used resources list
--
-- Default value: <a>Nothing</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerFilename :: (RecentManagerClass self, GlibString string) => ReadAttr self string
-- | The maximum number of items to be returned by the
-- <a>recentManagerGetItems</a> function.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: -1
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerLimit :: RecentManagerClass self => Attr self Int
-- | The size of the recently used resources list.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerSize :: RecentManagerClass self => ReadAttr self Int
-- | Emitted when the current recently used resources manager changes its
-- contents.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentManagerChanged :: RecentManagerClass self => Signal self (IO ())
-- | Limit the effect of grabs
module Graphics.UI.Gtk.Windows.WindowGroup
data WindowGroup
class GObjectClass o => WindowGroupClass o
castToWindowGroup :: GObjectClass obj => obj -> WindowGroup
gTypeWindowGroup :: GType
toWindowGroup :: WindowGroupClass o => o -> WindowGroup
-- | Creates a new <a>WindowGroup</a> object. Grabs added with
-- <a>grabAdd</a> only affect windows within the same <a>WindowGroup</a>.
windowGroupNew :: IO WindowGroup
-- | Adds a window to a <a>WindowGroup</a>.
windowGroupAddWindow :: (WindowGroupClass self, WindowClass window) => self -> window -> IO ()
-- | Removes a window from a <a>WindowGroup</a>.
windowGroupRemoveWindow :: (WindowGroupClass self, WindowClass window) => self -> window -> IO ()
-- | Returns a list of the <a>Window</a>s that belong to
-- <tt>windowGroup</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
windowGroupListWindows :: WindowGroupClass self => self -> IO [Window]
-- | Interface to provide style information to <tt>StyleContext</tt>
module Graphics.UI.Gtk.General.StyleProvider
data StyleProvider
class GObjectClass o => StyleProviderClass o
castToStyleProvider :: GObjectClass obj => obj -> StyleProvider
gTypeStyleProvider :: GType
toStyleProvider :: StyleProviderClass o => o -> StyleProvider
-- | Rendering UI elements
module Graphics.UI.Gtk.General.StyleContext
data StyleContext
class GObjectClass o => StyleContextClass o
castToStyleContext :: GObjectClass obj => obj -> StyleContext
gTypeStyleContext :: GType
toStyleContext :: StyleContextClass o => o -> StyleContext
-- | Creates a standalone <tt>StyleContext</tt>, this style context won't
-- be attached to any widget, so you may want to call
-- <tt>styleContextSetPath</tt> yourself.
--
-- Note : This function is only useful when using the theming layer
-- separated from GTK+, if you are using <tt>StyleContext</tt> to theme
-- <tt>Widgets</tt>, use <tt>widgetGetStyleContext</tt> in order to get a
-- style context ready to theme the widget.
styleContextNew :: IO StyleContext
-- | Adds a style provider to <tt>context</tt>, to be used in style
-- construction. Note that a style provider added by this function only
-- affects the style of the widget to which <tt>context</tt> belongs. If
-- you want to affect the style of all widgets, use
-- <tt>styleContextAddProviderForScreen</tt>.
--
-- Note : If both priorities are the same, A <tt>StyleProvider</tt> added
-- through this function takes precedence over another added through
-- @styleContextAddProviderForScreen.
styleContextAddProvider :: (StyleContextClass context, StyleProviderClass provider) => context -> provider -> Int -> IO ()
-- | Adds a global style provider to <tt>screen</tt>, which will be used in
-- style construction for all <tt>StyleContexts</tt> under
-- <tt>screen</tt>.
--
-- GTK+ uses this to make styling information from <tt>Settings</tt>
-- available.
--
-- Note : If both priorities are the same, A <tt>StyleProvider</tt> added
-- through <tt>styleContextAddProvider</tt> takes precedence over another
-- added through this function.
styleContextAddProviderForScreen :: (ScreenClass screen, StyleProviderClass provider) => screen -> provider -> Int -> IO ()
-- | Adds a style class to context , so posterior calls to
-- gtk_style_context_get() or any of the gtk_render_*() functions will
-- make use of this new class for styling.
--
-- In the CSS file format, a GtkEntry defining an “entry” class, would be
-- matched by:
--
-- <pre>
-- GtkEntry.entry { ... }
-- </pre>
--
-- While any widget defining an “entry” class would be matched by:
--
-- <pre>
-- .entry { ... }
-- </pre>
styleContextAddClass :: (StyleContextClass context, GlibString string) => context -> string -> IO ()
-- | Removes <tt>className</tt> from <tt>context</tt>.
styleContextRemoveClass :: (StyleContextClass context, GlibString string) => context -> string -> IO ()
-- | Returns <tt>True</tt> if context currently has defined the given class
-- name
styleContextHasClass :: (StyleContextClass context, GlibString string) => context -> string -> IO Bool
-- | Returns the list of classes currently defined in context.
styleContextListClasses :: (StyleContextClass context, GlibString string) => context -> IO [string]
-- | Storing data on clipboards
module Graphics.UI.Gtk.General.Settings
data Settings
class GObjectClass o => SettingsClass o
castToSettings :: GObjectClass obj => obj -> Settings
gTypeSettings :: GType
toSettings :: SettingsClass o => o -> Settings
-- | Gets the Settings object for the default GDK screen, creating it if
-- necessary. See <a>settingsGetForScreen</a>.
settingsGetDefault :: IO (Maybe Settings)
-- | Gets the Settings object for screen, creating it if necessary.
settingsGetForScreen :: ScreenClass screen => screen -> IO Settings
settingsSetLongProperty :: (SettingsClass settings, GlibString string) => settings -> string -> Int -> string -> IO ()
settingsSetStringProperty :: (SettingsClass settings, GlibString string) => settings -> string -> string -> string -> IO ()
-- | Routines for handling resource files
module Graphics.UI.Gtk.General.RcStyle
data RcStyle
class GObjectClass o => RcStyleClass o
castToRcStyle :: GObjectClass obj => obj -> RcStyle
gTypeRcStyle :: GType
toRcStyle :: RcStyleClass o => o -> RcStyle
-- | Creates a new <a>RcStyle</a> with no fields set. The <a>RcStyle</a>
-- structure is used to represent a set of information about the
-- appearance of a widget. This can later be composited together with
-- other <a>RcStyle</a> structures to form a <a>Style</a>.
rcStyleNew :: IO RcStyle
-- | Makes a copy of the specified <a>RcStyle</a>. This function will
-- correctly copy an RC style that is a member of a class derived from
-- <a>RcStyle</a>.
rcStyleCopy :: RcStyleClass self => self -> IO RcStyle
-- | Adds a file to the list of files to be parsed at the end of
-- <tt>initGUI</tt>.
rcAddDefaultFile :: GlibString string => string -> IO ()
-- | etrieves the current list of RC files that will be parsed at the end
-- of <tt>initGUI</tt>.
rcGetDefaultFiles :: GlibString string => IO [string]
-- | Obtains the path to the IM modules file. See the documentation of the
-- <tt>GTK_IM_MODULE_FILE</tt> environment variable for more details.
rcGetImModuleFile :: GlibString string => IO string
-- | Returns a directory in which GTK+ looks for theme engines.
rcGetModuleDir :: GlibString string => IO string
-- | Finds all matching RC styles for a given widget, composites them
-- together, and then creates a GtkStyle representing the composite
-- appearance. (GTK+ actually keeps a cache of previously created styles,
-- so a new style may not be created.)
rcGetStyle :: WidgetClass widget => widget -> IO Style
-- | Creates up a <a>Style</a> from styles defined in a RC file by
-- providing the raw components used in matching. This function may be
-- useful when creating pseudo-widgets that should be themed like widgets
-- but don't actually have corresponding GTK+ widgets.
rcGetStyleByPaths :: GlibString string => Settings -> Maybe string -> Maybe string -> GType -> IO Style
-- | Returns the standard directory in which themes should be installed.
-- (GTK+ does not actually use this directory itself.)
rcGetThemeDir :: GlibString string => IO string
-- | Parses a given resource file.
rcParse :: GlibString string => string -> IO ()
-- | Parses resource information directly from a string.
rcParseString :: GlibString string => string -> IO ()
-- | If the modification time on any previously read file for the default
-- <a>Settings</a> has changed, discard all style information and then
-- reread all previously read RC files.
rcReparseAll :: IO Bool
-- | f the modification time on any previously read file for the given
-- <a>Settings</a> has changed, discard all style information and then
-- reread all previously read RC files.
rcReparseAllForSettings :: Settings -> Bool -> IO Bool
-- | This function recomputes the styles for all widgets that use a
-- particular <a>Settings</a> object. (There is one <a>Settings</a>
-- object per <a>Screen</a>, see <tt>settingsGetForScreen</tt>.) It is
-- useful when some global parameter has changed that affects the
-- appearance of all widgets, because when a widget gets a new style, it
-- will both redraw and recompute any cached information about its
-- appearance. As an example, it is used when the default font size set
-- by the operating system changes. Note that this function doesn't
-- affect widgets that have a style set explicitely on them with
-- <tt>widgetSetStyle</tt>.
rcResetStyles :: Settings -> IO ()
-- | Sets the list of files that GTK+ will read at the end of
-- <tt>initGUI</tt>.
rcSetDefaultFiles :: GlibString string => [string] -> IO ()
-- | Allows a custom data structure to be used with the <a>TreeView</a> and
-- other widgets that follow the model-view-controller paradigm. The two
-- models <a>ListStore</a> and <a>TreeStore</a> are based on the
-- <a>CustomStore</a>. Even if no application-specific tree model should
-- be implemented, this module is relevant in that it provides the
-- functions <a>customStoreSetColumn</a> and <a>customStoreGetRow</a>
-- functions.
module Graphics.UI.Gtk.ModelView.CustomStore
-- | A <a>CustomStore</a> is an instance of a Gtk+ <a>TreeModel</a> and can
-- thus be used for any widget that stores data in a <a>TreeModel</a>.
-- The user may either create an instance of a <a>CustomStore</a> or use
-- one of the pre-defined models <a>ListStore</a> or <a>TreeStore</a>.
data CustomStore private row
-- | These flags indicate various properties of a <a>TreeModel</a>.
--
-- <ul>
-- <li>If a model has <a>TreeModelItersPersist</a> set, iterators remain
-- valid after a <a>TreeModel</a> signal was emitted.</li>
-- <li>The <a>TreeModelListOnly</a> flag is set if the rows are arranged
-- in a simple flat list. This is set in the <a>ListStore</a>
-- implementation.</li>
-- </ul>
data TreeModelFlags
TreeModelItersPersist :: TreeModelFlags
TreeModelListOnly :: TreeModelFlags
-- | The <a>TreeModelIface</a> structure contains all functions that are
-- required to implement an application-specific <a>TreeModel</a>.
data TreeModelIface row
TreeModelIface :: IO [TreeModelFlags] -> (TreePath -> IO (Maybe TreeIter)) -> (TreeIter -> IO TreePath) -> (TreeIter -> IO row) -> (TreeIter -> IO (Maybe TreeIter)) -> (Maybe TreeIter -> IO (Maybe TreeIter)) -> (TreeIter -> IO Bool) -> (Maybe TreeIter -> IO Int) -> (Maybe TreeIter -> Int -> IO (Maybe TreeIter)) -> (TreeIter -> IO (Maybe TreeIter)) -> (TreeIter -> IO ()) -> (TreeIter -> IO ()) -> TreeModelIface row
-- | Return the flags that are valid for this model.
[treeModelIfaceGetFlags] :: TreeModelIface row -> IO [TreeModelFlags]
-- | Convert an path into the tree into a more concise <a>TreeIter</a>.
-- Return <tt>Nothing</tt> if the path does not exit.
[treeModelIfaceGetIter] :: TreeModelIface row -> TreePath -> IO (Maybe TreeIter)
-- | Convert an iterator to a path. The iterator will always be valid.
[treeModelIfaceGetPath] :: TreeModelIface row -> TreeIter -> IO TreePath
-- | Retrieve a row at the given iterator.
[treeModelIfaceGetRow] :: TreeModelIface row -> TreeIter -> IO row
-- | Advance the given iterator to the next node at the same level. Return
-- <tt>Nothing</tt> if there is no next node at this level.
[treeModelIfaceIterNext] :: TreeModelIface row -> TreeIter -> IO (Maybe TreeIter)
-- | Advance the given iterator to the first child of this iterator. Return
-- <tt>Notihing</tt> if the node at this iterator has no children.
[treeModelIfaceIterChildren] :: TreeModelIface row -> Maybe TreeIter -> IO (Maybe TreeIter)
-- | Check if the node at the given iterator has children.
[treeModelIfaceIterHasChild] :: TreeModelIface row -> TreeIter -> IO Bool
-- | Query the number of children the the node at the given iteratore has.
[treeModelIfaceIterNChildren] :: TreeModelIface row -> Maybe TreeIter -> IO Int
-- | Ask for an iterator to the <tt>n</tt>th child. Return <tt>Nothing</tt>
-- if no such child exists.
[treeModelIfaceIterNthChild] :: TreeModelIface row -> Maybe TreeIter -> Int -> IO (Maybe TreeIter)
-- | Ask for an iterator to the parent of the node.
[treeModelIfaceIterParent] :: TreeModelIface row -> TreeIter -> IO (Maybe TreeIter)
-- | Increase a reference count for this node. A positive reference count
-- indicates that the node is used (that is, most likely it is visible)
-- in at least one widget. Tracking reference counts for nodes is
-- optional but may be useful to infer when a given row can be discarded
-- if it was retrieved from an external source.
[treeModelIfaceRefNode] :: TreeModelIface row -> TreeIter -> IO ()
-- | Decrement the reference count of the given node.
[treeModelIfaceUnrefNode] :: TreeModelIface row -> TreeIter -> IO ()
-- | A structure containing functions that enable this widget to be used as
-- a source in drag-and-drop.
data DragSourceIface model row
DragSourceIface :: (model row -> TreePath -> IO Bool) -> (model row -> TreePath -> SelectionDataM Bool) -> (model row -> TreePath -> IO Bool) -> DragSourceIface model row
-- | Determine if the row at the given path is draggable. Return
-- <tt>False</tt> if for some reason this row should not be dragged by
-- the user.
[treeDragSourceRowDraggable] :: DragSourceIface model row -> model row -> TreePath -> IO Bool
-- | Fill in the <a>SelectionDataM</a> structure with information on the
-- given node using <a>selectionDataSet</a>.
[treeDragSourceDragDataGet] :: DragSourceIface model row -> model row -> TreePath -> SelectionDataM Bool
-- | The widget is informed that the row at the given path should be
-- deleted as the result of this drag.
[treeDragSourceDragDataDelete] :: DragSourceIface model row -> model row -> TreePath -> IO Bool
-- | A structure containing functions that enable this widget to be used as
-- a target in drag-and-drop.
data DragDestIface model row
DragDestIface :: (model row -> TreePath -> SelectionDataM Bool) -> (model row -> TreePath -> SelectionDataM Bool) -> DragDestIface model row
-- | Tell the drag-and-drop mechanism if the row can be dropped at the
-- given path.
[treeDragDestRowDropPossible] :: DragDestIface model row -> model row -> TreePath -> SelectionDataM Bool
-- | The data in the <a>SelectionDataM</a> structure should be read using
-- <a>selectionDataGet</a> and its information be used to insert a new
-- row at the given path.
[treeDragDestDragDataReceived] :: DragDestIface model row -> model row -> TreePath -> SelectionDataM Bool
-- | Create a new store that implements the <a>TreeModelIface</a> interface
-- and optionally the <a>DragSourceIface</a> and the
-- <a>DragDestIface</a>. If the latter two are set to <tt>Nothing</tt> a
-- dummy interface is substituted that rejects every drag and drop.
customStoreNew :: (TreeModelClass (model row), TypedTreeModelClass model) => private -> ((CustomStore private row) -> model row) -> TreeModelIface row -> Maybe (DragSourceIface model row) -> Maybe (DragDestIface model row) -> IO (model row)
-- | Extract a row of the given model at the given <a>TreeIter</a>.
customStoreGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row
-- | Set or update a column mapping. This function should be used before
-- the model is installed into a widget since the number of defined
-- columns are only checked once by widgets.
customStoreSetColumn :: TypedTreeModelClass model => model row -> (ColumnId row ty) -> (row -> ty) -> IO ()
-- | Return the private data stored in this <a>CustomStore</a>. The private
-- data is meant as a container for the data stored in this model.
customStoreGetPrivate :: CustomStore private row -> private
-- | Query the current value of the stamp that is used to create
-- <a>TreeIter</a> iterators. The stamp is compared each time a view
-- accesses this store. If the stamp doesn't match, a warning is emitted.
-- The stamp should be updated each time a the data in the model changes.
-- The rationale is that a view should never use a stale <a>TreeIter</a>,
-- i.e., one that refers to an old model.
customStoreGetStamp :: CustomStore private row -> IO CInt
-- | Create a new stamp. See <a>customStoreGetStamp</a>.
customStoreInvalidateIters :: CustomStore private row -> IO ()
treeModelGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row
treeModelSetColumn :: TypedTreeModelClass model => model row -> (ColumnId row ty) -> (row -> ty) -> IO ()
instance GHC.Enum.Bounded Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.CustomStore.CustomStore private row)
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.CustomStore.CustomStore private row)
-- | The tree interface used by <a>TreeView</a>.
module Graphics.UI.Gtk.ModelView.TreeModel
data TreeModel
class GObjectClass o => TreeModelClass o
castToTreeModel :: GObjectClass obj => obj -> TreeModel
gTypeTreeModel :: GType
toTreeModel :: TreeModelClass o => o -> TreeModel
data TypedTreeModel row
class TypedTreeModelClass model where dummy _ = error "not used"
toTypedTreeModel :: TypedTreeModelClass model => model row -> TypedTreeModel row
-- | Tree Iterator: a pointer to an entry in a <a>TreeModel</a>. The
-- constructor of this structure is public for the sake of creating
-- custom tree models. The first value is a time stamp that is handled by
-- the functions that interface with Gtk. The time stamps are used to
-- print warnings if programmers use an iter to a model that has changed
-- meanwhile. The other three fields are used by the custom model
-- implementation to implement an indexing scheme. The precise use of the
-- three words is therefore implementation specific. See also
-- <a>TreePath</a>.
data TreeIter
TreeIter :: {-# UNPACK #-} !CInt -> !Word32 -> !Word32 -> !Word32 -> TreeIter
-- | TreePath : a list of indices to specify a subtree or node in a
-- <a>TreeModel</a>. The node that correspond to a given <a>TreePath</a>
-- might change if nodes are removed or added and a <a>TreePath</a> may
-- refer to a different or even non-existent node after a modification of
-- the model. In contrast, a <a>TreeIter</a> is a more compact
-- representation of a <a>TreePath</a> which becomes invalid after each
-- modification of the underlying model. An intelligent index that is
-- adjusted with each update of the model to point to the same node
-- (whenever possible) is <a>TreeRowReference</a>.
type TreePath = [Int]
-- | The type of a tree column.
data ColumnId row ty
-- | Create a <a>ColumnId</a> to extract an integer.
makeColumnIdInt :: Int -> ColumnId row Int
-- | Create a <a>ColumnId</a> to extract an Boolean.
makeColumnIdBool :: Int -> ColumnId row Bool
-- | Create a <a>ColumnId</a> to extract an string.
makeColumnIdString :: GlibString string => Int -> ColumnId row string
-- | Create a <a>ColumnId</a> to extract an <a>Pixbuf</a>.
makeColumnIdPixbuf :: Int -> ColumnId row Pixbuf
-- | The invalid <a>ColumnId</a>. Widgets use this value if no column id
-- has been set.
invalidColumnId :: ColumnId row ty
-- | Convert a <a>ColumnId</a> to a bare number.
columnIdToNumber :: ColumnId row ty -> Int
-- | Convert a comma or colon separated string into a <a>TreePath</a>. Any
-- non-digit characters are assumed to separate indices, thus, the
-- function always is always successful.
stringToTreePath :: DefaultGlibString -> TreePath
-- | Returns a set of flags supported by this interface.
--
-- The flags supported should not change during the lifecycle of the
-- tree_model.
treeModelGetFlags :: TreeModelClass self => self -> IO [TreeModelFlags]
-- | Turn a <a>TreePath</a> into a <a>TreeIter</a>.
--
-- Returns <tt>Nothing</tt> if the given <a>TreePath</a> was invalid. The
-- empty list is always invalid. The root node of a tree can be accessed
-- by passing <tt>[0]</tt> as <tt>path</tt>.
treeModelGetIter :: TreeModelClass self => self -> TreePath -> IO (Maybe TreeIter)
-- | Turn a <a>String</a> into a <a>TreeIter</a>.
--
-- <ul>
-- <li>Returns <tt>Nothing</tt> if the string is not a colon separated
-- list of numbers that references a valid node.</li>
-- </ul>
treeModelGetIterFromString :: (TreeModelClass self, GlibString string) => self -> string -> IO (Maybe TreeIter)
-- | Retrieves an <a>TreeIter</a> to the first entry.
--
-- Returns <tt>Nothing</tt> if the table is empty.
treeModelGetIterFirst :: TreeModelClass self => self -> IO (Maybe TreeIter)
-- | Turn an abstract <a>TreeIter</a> into a <a>TreePath</a>.
--
-- In case the given <a>TreeIter</a> was invalid, an empty list is
-- returned.
treeModelGetPath :: TreeModelClass self => self -> TreeIter -> IO TreePath
-- | Read the value of at a specific column and <a>TreeIter</a>.
treeModelGetValue :: TreeModelClass self => self -> TreeIter -> ColumnId row ty -> IO ty
-- | Retrieve an iterator to the node following it at the current level. If
-- there is no next node, <tt>Nothing</tt> is returned.
treeModelIterNext :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)
-- | Retrieve an iterator to the first child of <tt>parent</tt>. If
-- <tt>parent</tt> has no children, <tt>Nothing</tt>.
treeModelIterChildren :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)
-- | Returns <tt>True</tt> if <tt>iter</tt> has children, <tt>False</tt>
-- otherwise.
treeModelIterHasChild :: TreeModelClass self => self -> TreeIter -> IO Bool
-- | Returns the number of children that <tt>iter</tt> has. As a special
-- case, if <tt>iter</tt> is <tt>Nothing</tt>, then the number of
-- toplevel nodes is returned.
treeModelIterNChildren :: TreeModelClass self => self -> Maybe TreeIter -> IO Int
-- | Retrieve the <tt>n</tt>th child of <tt>parent</tt>, counting from
-- zero. If <tt>n</tt> is too big or <tt>parent</tt> has no children,
-- <tt>Nothing</tt> is returned. If <tt>Nothing</tt> is specified for the
-- <tt>parent</tt> argument, the function will return the <tt>n</tt>th
-- root node.
treeModelIterNthChild :: TreeModelClass self => self -> Maybe TreeIter -> Int -> IO (Maybe TreeIter)
-- | Retrieve the parent of this iterator.
treeModelIterParent :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)
-- | Maps a function over each node in model in a depth-first fashion. If
-- it returns <tt>True</tt>, then the tree ceases to be walked, and
-- <a>treeModelForeach</a> returns.
treeModelForeach :: TreeModelClass self => self -> (TreeIter -> IO Bool) -> IO ()
-- | Generates a string representation of the iter. This string is a ':'
-- separated list of numbers. For example, "4:10:0:3" would be an
-- acceptable return value for this string.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeModelGetStringFromIter :: (TreeModelClass self, GlibString string) => self -> TreeIter -> IO string
-- | Lets the tree ref the node. This is an optional method for models to
-- implement. To be more specific, models may ignore this call as it
-- exists primarily for performance reasons.
--
-- This function is primarily meant as a way for views to let caching
-- model know when nodes are being displayed (and hence, whether or not
-- to cache that node.) For example, a file-system based model would not
-- want to keep the entire file-hierarchy in memory, just the sections
-- that are currently being displayed by every current view.
--
-- A model should be expected to be able to get an iter independent of
-- its reffed state.
treeModelRefNode :: TreeModelClass self => self -> TreeIter -> IO ()
-- | Lets the tree unref the node. This is an optional method for models to
-- implement. To be more specific, models may ignore this call as it
-- exists primarily for performance reasons.
--
-- For more information on what this means, see <a>treeModelRefNode</a>.
-- Please note that nodes that are deleted are not unreffed.
treeModelUnrefNode :: TreeModelClass self => self -> TreeIter -> IO ()
-- | Emits the <a>rowChanged</a> signal on the model.
--
-- <ul>
-- <li>This function is only necessary to implement a custom tree model.
-- When using <a>ListStore</a> or <a>TreeStore</a>, this function is
-- called automatically.</li>
-- </ul>
treeModelRowChanged :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()
-- | Emits the <a>rowInserted</a> signal on the model.
--
-- <ul>
-- <li>This function is only necessary to implement a custom tree model.
-- When using <a>ListStore</a> or <a>TreeStore</a>, this function is
-- called automatically.</li>
-- </ul>
treeModelRowInserted :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()
-- | Emits the <a>rowHasChildToggled</a> signal on the model. This should
-- be called by models after the child state of a node changes.
--
-- <ul>
-- <li>This function is only necessary to implement a custom tree model.
-- When using <a>ListStore</a> or <a>TreeStore</a>, this function is
-- called automatically.</li>
-- </ul>
treeModelRowHasChildToggled :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()
-- | Emits the <a>rowDeleted</a> signal on the model. This should be called
-- by models after a row has been removed. The location pointed to by
-- <tt>path</tt> should be the location that the row previously was at.
-- It may not be a valid location anymore.
--
-- <ul>
-- <li>This function is only necessary to implement a custom tree model.
-- When using <a>ListStore</a> or <a>TreeStore</a>, this function is
-- called automatically.</li>
-- </ul>
treeModelRowDeleted :: TreeModelClass self => self -> TreePath -> IO ()
-- | Emits the <a>rowsReordered</a> signal on the model. This should be
-- called by models when their rows have been reordered. The length of
-- <tt>newOrder</tt> must be equal to the value returned by
-- <tt>treeModelIterNChildren self iter</tt>.
--
-- <ul>
-- <li>This function is only necessary to implement a custom tree model.
-- When using <a>ListStore</a> or <a>TreeStore</a>, this function is
-- called automatically.</li>
-- </ul>
treeModelRowsReordered :: TreeModelClass self => self -> TreePath -> Maybe TreeIter -> [Int] -> IO ()
-- | This signal is emitted when a row in the model has changed.
rowChanged :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())
-- | This signal is emitted when a new row has been inserted in the model.
rowInserted :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())
-- | This signal is emitted when a row has gotten the first child row or
-- lost its last child row.
rowHasChildToggled :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())
-- | This signal is emitted when a row has been deleted.
--
-- Note that no iterator is passed to the signal handler, since the row
-- is already deleted.
--
-- Implementations of <a>TreeModel</a> must emit row-deleted
-- <i>before</i> removing the node from its internal data structures.
-- This is because models and views which access and monitor this model
-- might have references on the node which need to be released in the
-- <a>rowDeleted</a> handler.
rowDeleted :: TreeModelClass self => Signal self (TreePath -> IO ())
-- | This signal is emitted when the children of a node in the
-- <a>TreeModel</a> have been reordered. See
-- <a>treeModelRowsReordered</a> for more information about the
-- parameters that this signal carries.
--
-- Note that this signal is <i>not</i> emitted when rows are reordered by
-- DND, since this is implemented by removing and then reinserting the
-- row.
rowsReordered :: TreeModelClass self => Signal self (TreePath -> Maybe TreeIter -> [Int] -> IO ())
instance GHC.Classes.Eq (Graphics.UI.Gtk.ModelView.Types.ColumnId row ty)
instance GHC.Show.Show (Graphics.UI.Gtk.ModelView.Types.ColumnId row ty)
-- | An interface for packing cells
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellLayout
class GObjectClass o => CellLayoutClass o
toCellLayout :: CellLayoutClass o => o -> CellLayout
-- | Packs the <tt>cell</tt> into the beginning of the cell layout. If
-- <tt>expand</tt> is <tt>False</tt>, then the <tt>cell</tt> is allocated
-- no more space than it needs. Any unused space is divided evenly
-- between cells for which <tt>expand</tt> is <tt>True</tt>.
--
-- Note that reusing the same cell renderer is not supported.
cellLayoutPackStart :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()
-- | Adds the <tt>cell</tt> to the end of <tt>cellLayout</tt>. If
-- <tt>expand</tt> is <tt>False</tt>, then the <tt>cell</tt> is allocated
-- no more space than it needs. Any unused space is divided evenly
-- between cells for which <tt>expand</tt> is <tt>True</tt>.
--
-- Note that reusing the same cell renderer is not supported.
cellLayoutPackEnd :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()
-- | Re-inserts <tt>cell</tt> at <tt>position</tt>. Note that <tt>cell</tt>
-- has already to be packed into <tt>cellLayout</tt> for this to function
-- properly.
cellLayoutReorder :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Int -> IO ()
-- | Remove all renderers from the cell layout.
cellLayoutClear :: CellLayoutClass self => self -> IO ()
-- | Clears all existing attributes previously set with
-- <a>cellLayoutSetAttributes</a>.
cellLayoutClearAttributes :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> IO ()
-- | Returns the cell renderers which have been added to
-- <tt>cellLayout</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
cellLayoutGetCells :: CellLayoutClass self => self -> IO [CellRenderer]
-- | Adds an attribute mapping to the renderer <tt>cell</tt>. The
-- <tt>column</tt> is the <a>ColumnId</a> of the model to get a value
-- from, and the <tt>attribute</tt> is the parameter on <tt>cell</tt> to
-- be set from the value. So for example if column 2 of the model
-- contains strings, you could have the "text" attribute of a
-- <a>CellRendererText</a> get its values from column 2.
cellLayoutAddColumnAttribute :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> ReadWriteAttr cell a v -> ColumnId row v -> IO ()
-- | Specify how a row of the <tt>model</tt> defines the attributes of the
-- <a>CellRenderer</a> <tt>cell</tt>. This is a convenience wrapper
-- around <a>cellLayoutSetAttributeFunc</a> in that it sets the cells of
-- the <tt>cell</tt> with the data retrieved from the model.
--
-- <ul>
-- <li>Note on using <a>TreeModelSort</a> and <a>TreeModelFilter</a>:
-- These two models wrap another model, the so-called child model,
-- instead of storing their own data. This raises the problem that the
-- data of cell renderers must be set using the child model, while the
-- <a>TreeIter</a>s that the view works with refer to the model that
-- encapsulates the child model. For convenience, this function
-- transparently translates an iterator to the child model before
-- extracting the data using e.g.
-- <a>treeModelSortConvertIterToChildIter</a>. Hence, it is possible to
-- install the encapsulating model in the view and to pass the child
-- model to this function.</li>
-- </ul>
cellLayoutSetAttributes :: (CellLayoutClass self, CellRendererClass cell, TreeModelClass (model row), TypedTreeModelClass model) => self -> cell -> model row -> (row -> [AttrOp cell]) -> IO ()
-- | Install a function that looks up a row in the model and sets the
-- attributes of the <a>CellRenderer</a> <tt>cell</tt> using the row's
-- content.
cellLayoutSetAttributeFunc :: (CellLayoutClass self, CellRendererClass cell, TreeModelClass model) => self -> cell -> model -> (TreeIter -> IO ()) -> IO ()
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.CellView
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.IconView
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.EntryCompletion
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.TreeViewColumn
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.ComboBox
-- | A <a>TreeModel</a> which hides parts of an underlying tree model
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.TreeModelFilter
data TreeModelFilter
data TypedTreeModelFilter row
class GObjectClass o => TreeModelFilterClass o
castToTreeModelFilter :: GObjectClass obj => obj -> TreeModelFilter
gTypeTreeModelFilter :: GType
toTreeModelFilter :: TreeModelFilterClass o => o -> TreeModelFilter
-- | Creates a new <a>TreeModel</a>, with <tt>childModel</tt> as the child
-- model and <tt>root</tt> as the virtual root.
treeModelFilterNew :: (TreeModelClass (childModel row), TypedTreeModelClass childModel) => childModel row -> TreePath -> IO (TypedTreeModelFilter row)
-- | Sets the visible function used when filtering the rows to be
-- <tt>func</tt>. The function should return <tt>True</tt> if the given
-- row should be visible and <tt>False</tt> otherwise. The passed-in
-- iterator is an iterator of the child model, not of the
-- <a>TreeModelFilter</a> model that is passed in as the first argument
-- to this function.
--
-- If the condition calculated by the function changes over time (e.g.
-- because it depends on some global parameters), you must call
-- <a>treeModelFilterRefilter</a> to keep the visibility information of
-- the model up to date.
treeModelFilterSetVisibleFunc :: TreeModelFilterClass self => self -> (TreeIter -> IO Bool) -> IO ()
-- | Sets <tt>column</tt> of the child model to be the column where the
-- filter model should look for visibility information. A row containing
-- <tt>True</tt> means that this row should be shown.
treeModelFilterSetVisibleColumn :: (TreeModelFilterClass (self row), TypedTreeModelClass self) => self row -> ColumnId row Bool -> IO ()
-- | Returns a pointer to the child model of <tt>filter</tt>.
treeModelFilterGetModel :: TreeModelFilterClass self => self -> IO (Maybe TreeModel)
-- | Return an iterator in the sorted model that points to the row pointed
-- to by the given iter from the unfiltered model.
treeModelFilterConvertChildIterToIter :: TreeModelFilterClass self => self -> TreeIter -> IO TreeIter
-- | Return an iterator in the unfiltered model that points to the row
-- pointed to by the given iter from the filtered model.
treeModelFilterConvertIterToChildIter :: TreeModelFilterClass self => self -> TreeIter -> IO TreeIter
-- | Converts the given path to a path relative to the given filtered
-- model.
--
-- <ul>
-- <li>The given path points to a row in the child model. The returned
-- path will point to the same row in the filtered model.</li>
-- </ul>
treeModelFilterConvertChildPathToPath :: TreeModelFilterClass self => self -> TreePath -> IO TreePath
-- | Converts path in the filtered model to a path on the unfiltered model
-- on which the given <a>TreeModelFilter</a> is based. That is, the given
-- path points to a location in the given <a>TreeModelFilter</a>. The
-- returned path will point to the same location in the underlying
-- unfiltered model.
treeModelFilterConvertPathToChildPath :: TreeModelFilterClass self => self -> TreePath -> IO TreePath
-- | Emits <a>rowChanged</a> for each row in the child model, which causes
-- the filter to re-evaluate whether a row is visible or not.
treeModelFilterRefilter :: TreeModelFilterClass self => self -> IO ()
-- | This function should almost never be called. It clears the
-- <tt>filter</tt> of any cached iterators that haven't been reffed with
-- <a>treeModelRefNode</a>. This might be useful if the child model being
-- filtered is static (and doesn't change often) and there has been a lot
-- of unreffed access to nodes. As a side effect of this function, all
-- unreffed iters will be invalid.
treeModelFilterClearCache :: TreeModelFilterClass self => self -> IO ()
-- | The model for the filtermodel to filter.
treeModelFilterChildModel :: TreeModelFilterClass self => ReadAttr self TreeModel
-- | The virtual root (relative to the child model) for this filtermodel.
treeModelFilterVirtualRoot :: TreeModelFilterClass self => ReadAttr self TreePath
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)
instance Graphics.UI.Gtk.Types.TreeModelFilterClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)
-- | A <a>TreeModel</a> which makes an underlying tree model sortable
module Graphics.UI.Gtk.ModelView.TreeModelSort
data TreeModelSort
class GObjectClass o => TreeModelSortClass o
castToTreeModelSort :: GObjectClass obj => obj -> TreeModelSort
gTypeTreeModelSort :: GType
toTreeModelSort :: TreeModelSortClass o => o -> TreeModelSort
data TypedTreeModelSort row
-- | Creates a new <a>TreeModelSort</a>, that will be a sorted view of the
-- given model.
treeModelSortNewWithModel :: (TreeModelClass (childModel row), TypedTreeModelClass childModel) => childModel row -> IO (TypedTreeModelSort row)
-- | Returns the underlying model the <a>TreeModelSort</a> is sorting.
treeModelSortGetModel :: TreeModelSortClass self => self -> IO TreeModel
-- | Converts the given path to a path relative to the given sorted model.
--
-- <ul>
-- <li>The given path points to a row in the child model. The returned
-- path will point to the same row in the sorted model.</li>
-- </ul>
treeModelSortConvertChildPathToPath :: TreeModelSortClass self => self -> TreePath -> IO TreePath
-- | Converts path in the sorted model to a path on the unsorted model on
-- which the given <a>TreeModelSort</a> is based. That is, the given path
-- points to a location in the given <a>TreeModelSort</a>. The returned
-- path will point to the same location in the underlying unsorted model.
treeModelSortConvertPathToChildPath :: TreeModelSortClass self => self -> TreePath -> IO TreePath
-- | Return an iterator in the sorted model that points to the row pointed
-- to by the given iter from the unsorted model.
treeModelSortConvertChildIterToIter :: TreeModelSortClass self => self -> TreeIter -> IO TreeIter
-- | Return an iterator in the unsorted model that points to the row
-- pointed to by the given iter from the sorted model.
treeModelSortConvertIterToChildIter :: TreeModelSortClass self => self -> TreeIter -> IO TreeIter
-- | This resets the default sort function. As a consequence, the order of
-- this model will be the same order as that of the child model.
treeModelSortResetDefaultSortFunc :: TreeModelSortClass self => self -> IO ()
-- | Clear the cache of unref'd iterators.
--
-- <ul>
-- <li>This function should almost never be called. It clears the
-- <a>TreeModelSort</a> of any cached iterators that haven't been reffed
-- with <a>treeModelRefNode</a>. This might be useful if the child model
-- being sorted is static (and doesn't change often) and there has been a
-- lot of unreffed access to nodes. As a side effect of this function,
-- all unreffed iters will be invalid.</li>
-- </ul>
treeModelSortClearCache :: TreeModelSortClass self => self -> IO ()
-- | Checks if the given iter is a valid iter for this
-- <a>TreeModelSort</a>.
--
-- <ul>
-- <li>WARNING: This function is slow. Only use it for debugging and/or
-- testing purposes.</li>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeModelSortIterIsValid :: TreeModelSortClass self => self -> TreeIter -> IO Bool
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance Graphics.UI.Gtk.Types.TreeModelSortClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance Graphics.UI.Gtk.Types.TreeSortableClass Graphics.UI.Gtk.Types.TreeModelSort
instance Graphics.UI.Gtk.Types.TreeSortableClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort row)
-- | Interfaces for drag-and-drop support in <a>TreeView</a>.
module Graphics.UI.Gtk.ModelView.TreeDrag
treeModelEqual :: (TreeModelClass tm1, TreeModelClass tm2) => tm1 -> tm2 -> Bool
-- | The <tt>SelectionTag</tt>, <a>TargetTag</a> and
-- <tt>SelectionTypeTag</tt> of the DND mechanism of <a>ListStore</a> and
-- <a>TreeStore</a>. This tag is used by <a>treeGetRowDragData</a> and
-- <a>treeSetRowDragData</a> to store a store and a <a>TreePath</a> in a
-- <a>SelectionDataM</a>. This target should be added to a
-- <a>TargetList</a> using <a>TargetSameWidget</a> flag and an
-- <a>InfoId</a> of <tt>0</tt>.
targetTreeModelRow :: TargetTag
-- | Obtains a <a>TreeModel</a> and a path from <a>SelectionDataM</a>
-- whenever the target is <a>targetTreeModelRow</a>. Normally called from
-- a <tt>treeDragDestDragDataReceived</tt> handler.
treeGetRowDragData :: SelectionDataM (Maybe (TreeModel, TreePath))
-- | Sets selection data with the target <a>targetTreeModelRow</a>,
-- consisting of a <a>TreeModel</a> and a <a>TreePath</a>. Normally used
-- in a <tt>treeDragSourceDragDataGet</tt> handler.
--
-- <ul>
-- <li>Returns <tt>True</tt> if setting the data was successful.</li>
-- </ul>
treeSetRowDragData :: TreeModelClass treeModel => treeModel -> TreePath -> SelectionDataM Bool
-- | Standard model to store list data.
module Graphics.UI.Gtk.ModelView.ListStore
data ListStore a
-- | Create a new <a>TreeModel</a> that contains a list of elements.
listStoreNew :: [a] -> IO (ListStore a)
-- | Create a new <a>TreeModel</a> that contains a list of elements. In
-- addition, specify two interfaces for drag and drop.
listStoreNewDND :: [a] -> Maybe (DragSourceIface ListStore a) -> Maybe (DragDestIface ListStore a) -> IO (ListStore a)
-- | Default drag functions for <a>ListStore</a>. These functions allow the
-- rows of the model to serve as drag source. Any row is allowed to be
-- dragged and the data set in the <tt>SelectionDataM</tt> object is set
-- with <a>treeSetRowDragData</a>, i.e. it contains the model and the
-- <a>TreePath</a> to the row.
listStoreDefaultDragSourceIface :: DragSourceIface ListStore row
-- | Default drop functions for <a>ListStore</a>. These functions accept a
-- row and insert the row into the new location if it is dragged into a
-- tree view that uses the same model.
listStoreDefaultDragDestIface :: DragDestIface ListStore row
-- | Convert a <a>TreeIter</a> to an an index into the <a>ListStore</a>.
-- Note that this function merely extracts the second element of the
-- <a>TreeIter</a>.
listStoreIterToIndex :: TreeIter -> Int
-- | Extract the value at the given index.
listStoreGetValue :: ListStore a -> Int -> IO a
-- | Extract the value at the given index.
listStoreSafeGetValue :: ListStore a -> Int -> IO (Maybe a)
-- | Update the value at the given index. The index must exist.
listStoreSetValue :: ListStore a -> Int -> a -> IO ()
-- | Extract all data from the store.
listStoreToList :: ListStore a -> IO [a]
-- | Query the number of elements in the store.
listStoreGetSize :: ListStore a -> IO Int
-- | Insert an element in front of the given element. The element is
-- appended if the index is greater or equal to the size of the list.
listStoreInsert :: ListStore a -> Int -> a -> IO ()
-- | Prepend the element to the store.
listStorePrepend :: ListStore a -> a -> IO ()
-- | Append an element to the store. Returns the index of the inserted
-- element.
listStoreAppend :: ListStore a -> a -> IO Int
-- | Remove the element at the given index.
listStoreRemove :: ListStore a -> Int -> IO ()
-- | Empty the store.
listStoreClear :: ListStore a -> IO ()
instance Graphics.UI.Gtk.ModelView.Types.TypedTreeModelClass Graphics.UI.Gtk.ModelView.ListStore.ListStore
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.ListStore.ListStore a)
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.ListStore.ListStore a)
-- | Standard model to store hierarchical data.
module Graphics.UI.Gtk.ModelView.TreeStore
-- | A store for hierarchical data.
data TreeStore a
-- | Create a new list store.
--
-- <ul>
-- <li>The given rose tree determines the initial content and may be the
-- empty list. Each <a>Tree</a> in the forest corresponds to one
-- top-level node.</li>
-- <li>The TreeStore maintains the initially given Forest and aligns the
-- <a>TreePath</a> bits to fit in 96-bit length <a>TreeIter</a>
-- storage.</li>
-- <li>Additionally, a cache is used to achieve higher performance if
-- operating on recently used TreePaths.</li>
-- <li><b>Note:</b> due to the limited amount of bits available in
-- TreeIter storage, only limited depth forests can be used with this
-- implementation, the result of too deep Forests is an undefined
-- behaviour while trying to retrieve the deeply nested nodes. For
-- example: assuming the average requiement is 8 bits per tree level (max
-- number of children at the level is 255), then we can only use 12
-- levels deep trees (96/8) - any further levels in a TreePath will not
-- be encoded in the corresponding TreeIter storage.</li>
-- </ul>
treeStoreNew :: Forest a -> IO (TreeStore a)
-- | Create a new list store.
--
-- <ul>
-- <li>In addition to <a>treeStoreNew</a>, this function takes an two
-- interfaces to implement user-defined drag-and-drop functionality.</li>
-- </ul>
treeStoreNewDND :: Forest a -> Maybe (DragSourceIface TreeStore a) -> Maybe (DragDestIface TreeStore a) -> IO (TreeStore a)
-- | Default drag functions for <a>TreeStore</a>. These functions allow the
-- rows of the model to serve as drag source. Any row is allowed to be
-- dragged and the data set in the <tt>SelectionDataM</tt> object is set
-- with <a>treeSetRowDragData</a>, i.e. it contains the model and the
-- <a>TreePath</a> to the row.
treeStoreDefaultDragSourceIface :: DragSourceIface TreeStore row
-- | Default drop functions for <a>TreeStore</a>. These functions accept a
-- row and insert the row into the new location if it is dragged into a
-- tree view that uses the same model.
treeStoreDefaultDragDestIface :: DragDestIface TreeStore row
-- | Extract one node from the current model. Fails if the given
-- <a>TreePath</a> refers to a non-existent node.
treeStoreGetValue :: TreeStore a -> TreePath -> IO a
-- | Extract a subtree from the current model. Fails if the given
-- <a>TreePath</a> refers to a non-existent node.
treeStoreGetTree :: TreeStore a -> TreePath -> IO (Tree a)
-- | Extract a subtree from the current model. Like <a>treeStoreGetTree</a>
-- but returns <tt>Nothing</tt> if the path refers to a non-existant
-- node.
treeStoreLookup :: TreeStore a -> TreePath -> IO (Maybe (Tree a))
-- | Set a node in the store.
treeStoreSetValue :: TreeStore a -> TreePath -> a -> IO ()
-- | Insert a single node into the store.
--
-- <ul>
-- <li>This function inserts a single node without children into the
-- tree. Its arguments are similar to those of
-- <a>treeStoreInsert</a>.</li>
-- </ul>
treeStoreInsert :: TreeStore a -> TreePath -> Int -> a -> IO ()
-- | Insert a node into the store.
treeStoreInsertTree :: TreeStore a -> TreePath -> Int -> Tree a -> IO ()
-- | Insert nodes into the store.
--
-- <ul>
-- <li>The given list of nodes is inserted into given parent at
-- <tt>pos</tt>. If the parent existed, the function returns <tt>Just
-- path</tt> where <tt>path</tt> is the position of the newly inserted
-- elements. If <tt>pos</tt> is negative or greater or equal to the
-- number of children of the node at <tt>path</tt>, the new nodes are
-- appended to the list.</li>
-- </ul>
treeStoreInsertForest :: TreeStore a -> TreePath -> Int -> Forest a -> IO ()
-- | Remove a node from the store.
--
-- <ul>
-- <li>The node denoted by the path is removed, along with all its
-- children. The function returns <tt>True</tt> if the given node was
-- found.</li>
-- </ul>
treeStoreRemove :: TreeStore a -> TreePath -> IO Bool
treeStoreClear :: TreeStore a -> IO ()
-- | Change a node in the store.
--
-- <ul>
-- <li>Returns <tt>True</tt> if the node was found. For a monadic
-- version, see <a>treeStoreChangeM</a>.</li>
-- </ul>
treeStoreChange :: TreeStore a -> TreePath -> (a -> a) -> IO Bool
-- | Change a node in the store.
--
-- <ul>
-- <li>Returns <tt>True</tt> if the node was found. For a purely
-- functional version, see <a>treeStoreChange</a>.</li>
-- </ul>
treeStoreChangeM :: TreeStore a -> TreePath -> (a -> IO a) -> IO Bool
instance Graphics.UI.Gtk.ModelView.Types.TypedTreeModelClass Graphics.UI.Gtk.ModelView.TreeStore.TreeStore
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.TreeStore.TreeStore a)
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.TreeStore.TreeStore a)
-- | CSS-like styling for widgets.
module Graphics.UI.Gtk.General.CssProvider
data CssProvider
class GObjectClass o => CssProviderClass o
castToCssProvider :: GObjectClass obj => obj -> CssProvider
gTypeCssProvider :: GType
toCssProvider :: CssProviderClass o => o -> CssProvider
data CssProviderError
CssProviderErrorFailed :: CssProviderError
CssProviderErrorSyntax :: CssProviderError
CssProviderErrorImport :: CssProviderError
CssProviderErrorName :: CssProviderError
CssProviderErrorDeprecated :: CssProviderError
CssProviderErrorUnknownValue :: CssProviderError
-- | Returns a newly created CssProvider
cssProviderNew :: IO CssProvider
-- | Returns the provider containing the style settings used as a fallback
-- for all widgets.
cssProviderGetDefault :: IO CssProvider
-- | Loads a theme from the usual theme paths
cssProviderGetNamed :: GlibString string => string -> Maybe string -> IO (Maybe CssProvider)
-- | Loads <tt>_data</tt> into <tt>cssProvider</tt>, making it clear any
-- previously loaded information.
cssProviderLoadFromData :: CssProviderClass cssProvider => cssProvider -> Ptr CChar -> Int -> IO ()
-- | Loads <tt>css</tt> into <tt>cssProvider</tt>, making it clear any
-- previously loaded information.
cssProviderLoadFromString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> string -> IO ()
-- | Loads the data contained in <tt>path</tt> into <tt>cssProvider</tt>,
-- making it clear any previously loaded information
cssProviderLoadFromPath :: (CssProviderClass cssProvider, GlibFilePath fp) => cssProvider -> fp -> IO ()
-- | Convertes the <tt>provider</tt> into a string representation in CSS
-- format.
--
-- Using <tt>cssProviderLoadFromString</tt> with the return value from
-- this function on a new provider created with <tt>cssProviderNew</tt>
-- will basically create a duplicate of this <tt>provider</tt>.
cssProviderToString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> IO string
instance GHC.Show.Show Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Classes.Eq Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Enum.Enum Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance Graphics.UI.Gtk.Types.StyleProviderClass Graphics.UI.Gtk.Types.CssProvider
module Graphics.UI.Gtk.Gdk.PixbufAnimation
data PixbufAnimation
class GObjectClass o => PixbufAnimationClass o
castToPixbufAnimation :: GObjectClass obj => obj -> PixbufAnimation
gTypePixbufAnimation :: GType
toPixbufAnimation :: PixbufAnimationClass o => o -> PixbufAnimation
data PixbufAnimationIter
class GObjectClass o => PixbufAnimationIterClass o
castToPixbufAnimationIter :: GObjectClass obj => obj -> PixbufAnimationIter
gTypePixbufAnimationIter :: GType
toPixbufAnimationIter :: PixbufAnimationIterClass o => o -> PixbufAnimationIter
data PixbufSimpleAnim
class PixbufAnimationClass o => PixbufSimpleAnimClass o
castToPixbufSimpleAnim :: GObjectClass obj => obj -> PixbufSimpleAnim
gTypePixbufSimpleAnim :: GType
toPixbufSimpleAnim :: PixbufSimpleAnimClass o => o -> PixbufSimpleAnim
-- | Creates a new animation by loading it from a file. The file format is
-- detected automatically. If the file's format does not support
-- multi-frame images, then an animation with a single frame will be
-- created. Possible errors are in the <tt>PixbufError</tt> and
-- <tt>GFileError</tt> domains.
--
-- Any of several error conditions may occur: the file could not be
-- opened, there was no loader for the file's format, there was not
-- enough memory to allocate the image buffer, or the image file
-- contained invalid data.
--
-- <ul>
-- <li>If an error occurs, the function will throw an exception that can
-- be caught using e.g. <a>catchGErrorJust</a> and one of the error codes
-- in <tt>PixbufError</tt> or <tt>GFileError</tt></li>
-- </ul>
pixbufAnimationNewFromFile :: GlibFilePath fp => fp -> IO PixbufAnimation
-- | Creates a new, empty animation.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
pixbufSimpleAnimNew :: Int -> Int -> Float -> IO PixbufSimpleAnim
-- | Queries the width of the bounding box of a pixbuf animation.
pixbufAnimationGetWidth :: PixbufAnimation -> IO Int
-- | Queries the height of the bounding box of a pixbuf animation.
pixbufAnimationGetHeight :: PixbufAnimation -> IO Int
-- | Get an iterator for displaying an animation. The iterator provides the
-- frames that should be displayed at a given time. The start time would
-- normally come from <a>gGetCurrentTime</a>, and marks the beginning of
-- animation playback. After creating an iterator, you should immediately
-- display the pixbuf returned by <a>pixbufAnimationIterGetPixbuf</a>.
-- Then, you should install a timeout (with <tt>timeoutAdd</tt>) or by
-- some other mechanism ensure that you'll update the image after
-- <a>pixbufAnimationIterGetDelayTime</a> milliseconds. Each time the
-- image is updated, you should reinstall the timeout with the new,
-- possibly-changed delay time.
--
-- As a shortcut, if start_time is <tt>Nothing</tt>, the result of
-- <a>gGetCurrentTime</a> will be used automatically.
--
-- To update the image (i.e. possibly change the result of
-- <a>pixbufAnimationIterGetPixbuf</a> to a new frame of the animation),
-- call <a>pixbufAnimationIterAdvance</a>.
--
-- If you're using <tt>PixbufLoader</tt>, in addition to updating the
-- image after the delay time, you should also update it whenever you
-- receive the area_updated signal and
-- <a>pixbufAnimationIterOnCurrentlyLoadingFrame</a> returns
-- <tt>True</tt>. In this case, the frame currently being fed into the
-- loader has received new data, so needs to be refreshed. The delay time
-- for a frame may also be modified after an area_updated signal, for
-- example if the delay time for a frame is encoded in the data after the
-- frame itself. So your timeout should be reinstalled after any
-- area_updated signal.
--
-- A delay time of -1 is possible, indicating "infinite."
pixbufAnimationGetIter :: PixbufAnimation -> Maybe GTimeVal -> IO PixbufAnimationIter
-- | If you load a file with <a>pixbufAnimationNewFromFile</a> and it turns
-- out to be a plain, unanimated image, then this function will return
-- <tt>True</tt>. Use <a>pixbufAnimationGetStaticImage</a> to retrieve
-- the image.
pixbufAnimationIsStaticImage :: PixbufAnimation -> IO Bool
-- | If an animation is really just a plain image (has only one frame),
-- this function returns that image. If the animation is an animation,
-- this function returns a reasonable thing to display as a static
-- unanimated image, which might be the first frame, or something more
-- sophisticated. If an animation hasn't loaded any frames yet, this
-- function will return <tt>Nothing</tt>.
pixbufAnimationGetStaticImage :: PixbufAnimation -> IO (Maybe Pixbuf)
-- | Possibly advances an animation to a new frame. Chooses the frame based
-- on the start time passed to <a>pixbufAnimationGetIter</a>.
--
-- current_time would normally come from <a>gGetCurrentTime</a>, and must
-- be greater than or equal to the time passed to
-- <a>pixbufAnimationGetIter</a>, and must increase or remain unchanged
-- each time <a>pixbufAnimationIterGetPixbuf</a> is called. That is, you
-- can't go backward in time; animations only play forward.
--
-- As a shortcut, pass <tt>Nothing</tt> for the current time and
-- <a>gGetCurrentTime</a> will be invoked on your behalf. So you only
-- need to explicitly pass current_time if you're doing something odd
-- like playing the animation at double speed.
--
-- If this function returns <tt>False</tt>, there's no need to update the
-- animation display, assuming the display had been rendered prior to
-- advancing; if <tt>True</tt>, you need to call
-- <tt>animationIterGetPixbuf</tt> and update the display with the new
-- pixbuf.
pixbufAnimationIterAdvance :: PixbufAnimationIter -> Maybe GTimeVal -> IO Bool
-- | Gets the number of milliseconds the current pixbuf should be
-- displayed, or -1 if the current pixbuf should be displayed forever.
-- <tt>timeoutAdd</tt> conveniently takes a timeout in milliseconds, so
-- you can use a timeout to schedule the next update.
pixbufAnimationIterGetDelayTime :: PixbufAnimationIter -> IO Int
-- | Used to determine how to respond to the area_updated signal on
-- <tt>PixbufLoader</tt> when loading an animation. area_updated is
-- emitted for an area of the frame currently streaming in to the loader.
-- So if you're on the currently loading frame, you need to redraw the
-- screen for the updated area.
pixbufAnimationIterOnCurrentlyLoadingFrame :: PixbufAnimationIter -> IO Bool
-- | Gets the current pixbuf which should be displayed; the pixbuf will be
-- the same size as the animation itself (<a>pixbufAnimationGetWidth</a>,
-- <a>pixbufAnimationGetHeight</a>). This pixbuf should be displayed for
-- <a>pixbufAnimationIterGetDelayTime</a> milliseconds. The caller of
-- this function does not own a reference to the returned pixbuf; the
-- returned pixbuf will become invalid when the iterator advances to the
-- next frame, which may happen anytime you call
-- <a>pixbufAnimationIterAdvance</a>. Copy the pixbuf to keep it (don't
-- just add a reference), as it may get recycled as you advance the
-- iterator.
pixbufAnimationIterGetPixbuf :: PixbufAnimationIter -> IO Pixbuf
-- | Adds a new frame to animation. The pixbuf must have the dimensions
-- specified when the animation was constructed.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
pixbufSimpleAnimAddFrame :: PixbufSimpleAnim -> Pixbuf -> IO ()
-- | Sets whether animation should loop indefinitely when it reaches the
-- end.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
pixbufSimpleAnimSetLoop :: PixbufSimpleAnim -> Bool -> IO ()
-- | Gets whether animation should loop indefinitely when it reaches the
-- end.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
pixbufSimpleAnimGetLoop :: PixbufSimpleAnim -> IO Bool
-- | <a>Pixbuf</a>s are bitmap images in memory.
--
-- <ul>
-- <li>A Pixbuf is used to represent images. It contains information
-- about the image's pixel data, its color space, bits per sample, width
-- and height, and the rowstride or number of bytes between rows.</li>
-- <li>This module contains functions to scale and crop <a>Pixbuf</a>s
-- and to scale and crop a <a>Pixbuf</a> and compose the result with an
-- existing image.</li>
-- <li><a>Pixbuf</a>s can be displayed on screen by either creating an
-- <a>Image</a> that from the <a>Pixbuf</a> or by rendering (part of) the
-- <a>Pixbuf</a> into a vanilla widget like <a>DrawWindow</a> using
-- <a>drawPixbuf</a>.</li>
-- </ul>
module Graphics.UI.Gtk.Gdk.Pixbuf
data Pixbuf
class GObjectClass o => PixbufClass o
castToPixbuf :: GObjectClass obj => obj -> Pixbuf
gTypePixbuf :: GType
toPixbuf :: PixbufClass o => o -> Pixbuf
-- | Error codes for loading image files.
data PixbufError
PixbufErrorCorruptImage :: PixbufError
PixbufErrorInsufficientMemory :: PixbufError
PixbufErrorBadOption :: PixbufError
PixbufErrorUnknownType :: PixbufError
PixbufErrorUnsupportedOperation :: PixbufError
PixbufErrorFailed :: PixbufError
PixbufErrorIncompleteAnimation :: PixbufError
-- | Enumerate all supported color spaces.
--
-- <ul>
-- <li>Only RGB is supported right now.</li>
-- </ul>
data Colorspace
ColorspaceRgb :: Colorspace
-- | Create a new image in memory.
--
-- <ul>
-- <li>Creates a new pixbuf structure and allocates a buffer for it. Note
-- that the buffer is not cleared initially.</li>
-- <li>The boolean flag is true if the pixbuf should have an alpha
-- (transparency) channel. The next integer denotes the bits per color
-- sample, e.g. 8 bits per color for 2^24 colors. The last two integers
-- denote the width and height, respectively.</li>
-- </ul>
pixbufNew :: Colorspace -> Bool -> Int -> Int -> Int -> IO Pixbuf
pixbufNewFromData :: Ptr CUChar -> Colorspace -> Bool -> Int -> Int -> Int -> Int -> IO Pixbuf
-- | Load an image synchonously.
--
-- <ul>
-- <li>Use this function to load only small images as this call will
-- block.</li>
-- <li>If an error occurs, the function will throw an exception that can
-- be caught using e.g. <a>catchGErrorJust</a> and one of the error codes
-- in <a>PixbufError</a>.</li>
-- </ul>
pixbufNewFromFile :: GlibFilePath fp => fp -> IO Pixbuf
-- | Creates a new pixbuf by loading an image from a file. The file format
-- is detected automatically. The image will be scaled to fit in the
-- requested size, preserving the image's aspect ratio.
--
-- <ul>
-- <li>If an error occurs, the function will throw an exception that can
-- be caught using e.g. <a>catchGErrorJust</a> and one of the error codes
-- in <a>PixbufError</a>.</li>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
pixbufNewFromFileAtSize :: GlibString string => string -> Int -> Int -> IO Pixbuf
-- | Creates a new pixbuf by loading an image from a file. The file format
-- is detected automatically. The image will be scaled to fit in the
-- requested size, optionally preserving the image's aspect ratio.
--
-- When preserving the aspect ratio, a width of -1 will cause the image
-- to be scaled to the exact given height, and a height of -1 will cause
-- the image to be scaled to the exact given width. When not preserving
-- aspect ratio, a width or height of -1 means to not scale the image at
-- all in that dimension. Negative values for width and height are
-- allowed since Gtk+ 2.8.
--
-- <ul>
-- <li>If an error occurs, the function will throw an exception that can
-- be caught using e.g. <a>catchGErrorJust</a> and one of the error codes
-- in <a>PixbufError</a>.</li>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
pixbufNewFromFileAtScale :: GlibString string => string -> Int -> Int -> Bool -> IO Pixbuf
-- | Creates a new pixbuf from a cairo Surface.
--
-- Transfers image data from a cairo Surface and converts it to an RGB(A)
-- representation inside a Pixbuf. This allows you to efficiently read
-- individual pixels from cairo surfaces. For GdkWindows, use
-- gdk_pixbuf_get_from_window() instead.
--
-- This function will create an RGB pixbuf with 8 bits per channel. The
-- pixbuf will contain an alpha channel if the surface contains one.
pixbufNewFromSurface :: Surface -> Int -> Int -> Int -> Int -> IO Pixbuf
-- | Create a new image from a static pointer.
--
-- <ul>
-- <li>Like <a>pixbufNewFromXPMData</a>, this function allows to include
-- images in the final binary program. The method used by this function
-- uses a binary representation and therefore needs less space in the
-- final executable. Save the image you want to include as <tt>png</tt>
-- and run:</li>
-- </ul>
--
-- <pre>
-- @echo #include "my_image.h" > my_image.c
-- gdk-pixbuf-csource --raw --extern --name=my_image myimage.png >> my_image.c
-- </pre>
--
-- on it. Write a header file <tt>my_image.h</tt> containing:
--
-- <pre>
-- #include <gdk/gdk.h>
-- extern guint8 my_image[];
-- </pre>
--
-- and save it in the current directory. The created file can be compiled
-- with:
--
-- <pre>
-- cc -c my_image.c `pkg-config --cflags gdk-2.0`
-- </pre>
--
-- into an object file which must be linked into your Haskell program by
-- specifying <tt>my_image.o</tt> and <tt>"-#include my_image.h"</tt> on
-- the command line of GHC. Within you application you delcare a pointer
-- to this image:
--
-- <pre>
-- foreign label "my_image" myImage :: Ptr InlineImage
-- </pre>
--
-- Calling <a>pixbufNewFromInline</a> with this pointer will return the
-- image in the object file. Creating the C file with the <tt>--raw</tt>
-- flag will result in a non-compressed image in the object file. The
-- advantage is that the picture will not be copied when this function is
-- called.
pixbufNewFromInline :: Ptr InlineImage -> IO Pixbuf
-- | A dymmy type for inline picture data.
--
-- <ul>
-- <li>This dummy type is used to declare pointers to image data that is
-- embedded in the executable. See <a>pixbufNewFromInline</a> for an
-- example.</li>
-- </ul>
data InlineImage
-- | Create a restricted view of an image.
--
-- <ul>
-- <li>This function returns a <a>Pixbuf</a> object which shares the
-- image of the original one but only shows a part of it. Modifying
-- either buffer will affect the other.</li>
-- <li>This function throw an exception if the requested bounds are
-- invalid.</li>
-- </ul>
pixbufNewSubpixbuf :: Pixbuf -> Int -> Int -> Int -> Int -> IO Pixbuf
-- | Create a new image from a string.
--
-- <ul>
-- <li>Creates a new pixbuf from a string description.</li>
-- </ul>
pixbufNewFromXPMData :: GlibString string => [string] -> IO Pixbuf
-- | Queries the color space of a pixbuf.
pixbufGetColorSpace :: Pixbuf -> IO Colorspace
-- | Queries the number of colors for each pixel.
--
-- <ul>
-- <li>This function returns 3 for an RGB image without alpha
-- (transparency) channel, 4 for an RGB image with alpha channel.</li>
-- </ul>
pixbufGetNChannels :: Pixbuf -> IO Int
-- | Query if the image has an alpha channel.
--
-- <ul>
-- <li>The alpha channel determines the opaqueness of the pixel.</li>
-- </ul>
pixbufGetHasAlpha :: Pixbuf -> IO Bool
-- | Queries the number of bits for each color.
--
-- <ul>
-- <li>Each pixel is has a number of cannels for each pixel, each channel
-- has this many bits.</li>
-- </ul>
pixbufGetBitsPerSample :: Pixbuf -> IO Int
-- | An array that stored the raw pixel data of a <a>Pixbuf</a>.
--
-- <ul>
-- <li>See <a>pixbufGetPixels</a>.</li>
-- </ul>
data PixbufData i e
-- | Retrieve the internal array of raw image data.
--
-- <ul>
-- <li>Image data in a pixbuf is stored in memory in uncompressed, packed
-- format. Rows in the image are stored top to bottom, and in each row
-- pixels are stored from left to right. There may be padding at the end
-- of a row. The "rowstride" value of a pixbuf, as returned by
-- <a>pixbufGetRowstride</a>, indicates the number of bytes between
-- rows.</li>
-- <li>The returned array is a flat representation of a three dimensional
-- array: x-coordiante, y-coordinate and several channels for each color.
-- The number of channels is usually 3 for plain RGB data or 4 for RGB
-- data with an alpha channel. To read or write a specific pixel use the
-- formula: <tt>p = y * rowstride + x * nChannels</tt> for the pixel. If
-- the array contains bytes (or <a>Word8</a>s), <tt>p+0</tt> is the red
-- value, <tt>p+1</tt> green, <tt>p+2</tt> blue and <tt>p+3</tt> the
-- alpha (transparency) channel if present. If the alpha channel is
-- present, the array can accessed as an array over <a>Word32</a> to
-- modify a whole pixel at a time. See also <a>pixbufGetBitsPerSample</a>
-- and <a>pixbufGetNChannels</a>.</li>
-- <li>Calling this function without explicitly giving it a type will
-- often lead to a compiler error since the type parameter <tt>e</tt> is
-- underspecified. If this happens the function can be explicitly typed:
-- <tt>pbData <- (pixbufGetPixels pb :: IO (PixbufData Int
-- Word8))</tt></li>
-- <li>If modifying an image through Haskell's array interface is not
-- fast enough, it is possible to use <tt>unsafeRead</tt> and
-- <tt>unsafeWrite</tt> which have the same type signatures as
-- <tt>readArray</tt> and <tt>writeArray</tt>. Note that these are
-- internal functions that might change with GHC.</li>
-- </ul>
pixbufGetPixels :: Storable e => Pixbuf -> IO (PixbufData Int e)
-- | Queries the width of this image.
pixbufGetWidth :: Pixbuf -> IO Int
-- | Queries the height of this image.
pixbufGetHeight :: Pixbuf -> IO Int
-- | Queries the rowstride of this image.
--
-- <ul>
-- <li>Queries the rowstride of a pixbuf, which is the number of bytes
-- between rows. Use this value to caculate the offset to a certain
-- row.</li>
-- </ul>
pixbufGetRowstride :: Pixbuf -> IO Int
-- | Returns an attribut of an image.
--
-- <ul>
-- <li>Looks up if some information was stored under the <tt>key</tt>
-- when this image was saved.</li>
-- </ul>
pixbufGetOption :: (GlibString string) => Pixbuf -> string -> IO (Maybe string)
-- | A string representing an image file format.
type ImageFormat = DefaultGlibString
pixbufGetFormats :: [ImageFormat]
-- | Save an image to disk.
--
-- <ul>
-- <li>The function takes a list of key - value pairs to specify either
-- how an image is saved or to actually save this additional data with
-- the image. JPEG images can be saved with a "quality" parameter; its
-- value should be in the range [0,100]. Text chunks can be attached to
-- PNG images by specifying parameters of the form "tEXt::key", where key
-- is an ASCII string of length 1-79. The values are Unicode
-- strings.</li>
-- <li>If an error occurs, the function will throw an exception that can
-- be caught using e.g. <a>catchGErrorJust</a> and one of the error codes
-- in <a>PixbufError</a>.</li>
-- </ul>
pixbufSave :: (GlibString string, GlibFilePath fp) => Pixbuf -> fp -> ImageFormat -> [(string, string)] -> IO ()
-- | Create a deep copy of an image.
pixbufCopy :: Pixbuf -> IO Pixbuf
-- | How an image is scaled.
--
-- <ul>
-- <li><i><tt>InterpNearest</tt></i> Nearest neighbor sampling; this is
-- the fastest and lowest quality mode. Quality is normally unacceptable
-- when scaling down, but may be OK when scaling up.</li>
-- <li><i><tt>InterpTiles</tt></i> This is an accurate simulation of the
-- PostScript image operator without any interpolation enabled. Each
-- pixel is rendered as a tiny parallelogram of solid color, the edges of
-- which are implemented with antialiasing. It resembles nearest neighbor
-- for enlargement, and bilinear for reduction.</li>
-- <li><i><tt>InterpBilinear</tt></i> Best quality/speed balance; use
-- this mode by default. Bilinear interpolation. For enlargement, it is
-- equivalent to point-sampling the ideal bilinear-interpolated image.
-- For reduction, it is equivalent to laying down small tiles and
-- integrating over the coverage area.</li>
-- <li><i><tt>InterpHyper</tt></i> This is the slowest and highest
-- quality reconstruction function. It is derived from the hyperbolic
-- filters in Wolberg's "Digital Image Warping", and is formally defined
-- as the hyperbolic-filter sampling the ideal hyperbolic-filter
-- interpolated image (the filter is designed to be idempotent for 1:1
-- pixel mapping).</li>
-- </ul>
data InterpType
InterpNearest :: InterpType
InterpTiles :: InterpType
InterpBilinear :: InterpType
InterpHyper :: InterpType
-- | Scale an image.
--
-- <ul>
-- <li>Creates a new <a>Pixbuf</a> containing a copy of <tt>src</tt>
-- scaled to the given measures. Leaves <tt>src</tt> unaffected.</li>
-- <li><tt>interp</tt> affects the quality and speed of the scaling
-- function. <a>InterpNearest</a> is the fastest option but yields very
-- poor quality when scaling down. <a>InterpBilinear</a> is a good
-- trade-off between speed and quality and should thus be used as a
-- default.</li>
-- </ul>
pixbufScaleSimple :: Pixbuf -> Int -> Int -> InterpType -> IO Pixbuf
-- | Copy a scaled image part to another image.
--
-- <ul>
-- <li>This function is the generic version of <a>pixbufScaleSimple</a>.
-- It scales <tt>src</tt> by <tt>scaleX</tt> and <tt>scaleY</tt> and
-- translate the image by <tt>offsetX</tt> and <tt>offsetY</tt>. Whatever
-- is in the intersection with the rectangle <tt>destX</tt>,
-- <tt>destY</tt>, <tt>destWidth</tt>, <tt>destHeight</tt> will be
-- rendered into <tt>dest</tt>.</li>
-- <li>The rectangle in the destination is simply overwritten. Use
-- <a>pixbufComposite</a> if you need to blend the source image onto the
-- destination.</li>
-- </ul>
pixbufScale :: Pixbuf -> Pixbuf -> Int -> Int -> Int -> Int -> Double -> Double -> Double -> Double -> InterpType -> IO ()
-- | Blend a scaled image part onto another image.
--
-- <ul>
-- <li>This function is similar to <a>pixbufScale</a> but allows the
-- original image to "shine through". The <tt>alpha</tt> value determines
-- how opaque the source image is. Passing <tt>0</tt> is equivalent to
-- not calling this function at all, passing <tt>255</tt> has the same
-- effect as calling <a>pixbufScale</a>.</li>
-- </ul>
pixbufComposite :: Pixbuf -> Pixbuf -> Int -> Int -> Int -> Int -> Double -> Double -> Double -> Double -> InterpType -> Word8 -> IO ()
-- | Flips a pixbuf horizontally and returns the result in a new pixbuf.
pixbufFlipHorizontally :: Pixbuf -> IO Pixbuf
pixbufFlipHorazontally :: Pixbuf -> IO Pixbuf
-- | Flips a pixbuf vertically and returns the result in a new pixbuf.
pixbufFlipVertically :: Pixbuf -> IO Pixbuf
-- | Rotates a pixbuf by a multiple of 90 degrees, and returns the result
-- in a new pixbuf.
pixbufRotateSimple :: Pixbuf -> PixbufRotation -> IO Pixbuf
-- | The possible rotations which can be passed to
-- <a>pixbufRotateSimple</a>.
--
-- To make them easier to use, their numerical values are the actual
-- degrees.
data PixbufRotation
PixbufRotateNone :: PixbufRotation
PixbufRotateCounterclockwise :: PixbufRotation
PixbufRotateUpsidedown :: PixbufRotation
PixbufRotateClockwise :: PixbufRotation
pixbufAddAlpha :: Pixbuf -> Maybe (Word8, Word8, Word8) -> IO Pixbuf
-- | Copy a rectangular portion into another <a>Pixbuf</a>.
--
-- The source <a>Pixbuf</a> remains unchanged. Converion between
-- different formats is done automatically.
pixbufCopyArea :: Pixbuf -> Int -> Int -> Int -> Int -> Pixbuf -> Int -> Int -> IO ()
-- | Fills a <a>Pixbuf</a> with a color.
--
-- <ul>
-- <li>The passed-in color is a quadruple consisting of the red, green,
-- blue and alpha component of the pixel. If the <a>Pixbuf</a> does not
-- have an alpha channel, the alpha value is ignored.</li>
-- </ul>
pixbufFill :: Pixbuf -> Word8 -> Word8 -> Word8 -> Word8 -> IO ()
instance GHC.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.InterpType
instance GHC.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.Colorspace
instance GHC.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.PixbufError
instance System.Glib.GError.GErrorClass Graphics.UI.Gtk.Gdk.Pixbuf.PixbufError
instance GHC.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.PixbufRotation
-- | A <a>KeyVal</a> is a numeric value identifying a keyboard key. The
-- defined values can be found at <http: The names of the keys are the
-- names of the macros without the prefix.
module Graphics.UI.Gtk.Gdk.Keys
-- | Key values are the codes which are sent whenever a key is pressed or
-- released.
type KeyVal = Word32
type KeyCode = Word16
-- | Converts a key value into a symbolic name.
keyName :: KeyVal -> DefaultGlibString
-- | Converts a key name to a key value.
keyFromName :: DefaultGlibString -> KeyVal
-- | Convert from a Gdk key symbol to the corresponding Unicode character.
keyToChar :: KeyVal -> Maybe Char
keyvalName :: KeyVal -> IO DefaultGlibString
keyvalFromName :: DefaultGlibString -> IO KeyVal
keyvalToChar :: KeyVal -> IO (Maybe Char)
-- | Obtains the upper- and lower-case versions of the keyval symbol.
-- Examples of keyvals are GDK_a, <tt>Enter</tt>, <tt>F1</tt>, etc.
keyvalConvertCase :: KeyVal -> (KeyVal, KeyVal)
-- | Converts a key value to upper case, if applicable.
keyvalToUpper :: KeyVal -> KeyVal
-- | Converts a key value to lower case, if applicable.
keyvalToLower :: KeyVal -> KeyVal
-- | Returns <a>True</a> if the given key value is in upper case.
keyvalIsUpper :: KeyVal -> Bool
-- | Returns <a>True</a> if the given key value is in upper case.
keyvalIsLower :: KeyVal -> Bool
-- | General enumeration types.
module Graphics.UI.Gtk.General.Enums
-- | State of an accelerator
data AccelFlags
AccelVisible :: AccelFlags
AccelLocked :: AccelFlags
AccelMask :: AccelFlags
-- | State of an accelerator
data Align
AlignFill :: Align
AlignStart :: Align
AlignEnd :: Align
AlignCenter :: Align
AlignBaseline :: Align
-- | Arrow directions for the arrow widget
data ArrowType
ArrowUp :: ArrowType
ArrowDown :: ArrowType
ArrowLeft :: ArrowType
ArrowRight :: ArrowType
ArrowNone :: ArrowType
-- | Child widget attach options for table containers
data AttachOptions
Expand :: AttachOptions
Shrink :: AttachOptions
Fill :: AttachOptions
-- | Whenever a container has some form of natural row it may align
-- children in that row along a common typographical baseline. If the
-- amount of verical space in the row is taller than the total requested
-- height of the baseline-aligned children then it can use a
-- BaselinePosition to select where to put the baseline inside the extra
-- availible space.
data BaselinePosition
BaselinePositionTop :: BaselinePosition
BaselinePositionCenter :: BaselinePosition
BaselinePositionBottom :: BaselinePosition
-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton
-- | Dictate the style that a ButtonBox uses to align it contents
data ButtonBoxStyle
ButtonboxSpread :: ButtonBoxStyle
ButtonboxEdge :: ButtonBoxStyle
ButtonboxStart :: ButtonBoxStyle
ButtonboxEnd :: ButtonBoxStyle
ButtonboxCenter :: ButtonBoxStyle
ButtonboxExpand :: ButtonBoxStyle
-- | Specify which items of a calendar should be displayed.
data CalendarDisplayOptions
CalendarShowHeading :: CalendarDisplayOptions
CalendarShowDayNames :: CalendarDisplayOptions
CalendarNoMonthChange :: CalendarDisplayOptions
CalendarShowWeekNumbers :: CalendarDisplayOptions
CalendarShowDetails :: CalendarDisplayOptions
-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click
-- | Specifies in which corner a child widget should be placed
data CornerType
CornerTopLeft :: CornerType
CornerBottomLeft :: CornerType
CornerTopRight :: CornerType
CornerBottomRight :: CornerType
-- | Editing option
data DeleteType
DeleteChars :: DeleteType
DeleteWordEnds :: DeleteType
DeleteWords :: DeleteType
DeleteDisplayLines :: DeleteType
DeleteDisplayLineEnds :: DeleteType
DeleteParagraphEnds :: DeleteType
DeleteParagraphs :: DeleteType
DeleteWhitespace :: DeleteType
-- | The <a>DestDefaults</a> enumeration specifies the various types of
-- action that will be taken on behalf of the user for a drag destination
-- site.
--
-- <ul>
-- <li><a>DestDefaultMotion</a>: If set for a widget, GTK+, during a drag
-- over this widget will check if the drag matches this widget's list of
-- possible targets and actions. GTK+ will then call <a>dragStatus</a> as
-- appropriate.</li>
-- <li><a>DestDefaultHighlight</a>: If set for a widget, GTK+ will draw a
-- highlight on this widget as long as a drag is over this widget and the
-- widget drag format and action are acceptable.</li>
-- <li><a>DestDefaultDrop</a>: If set for a widget, when a drop occurs,
-- GTK+ will will check if the drag matches this widget's list of
-- possible targets and actions. If so, GTK+ will call <a>dragGetData</a>
-- on behalf of the widget. Whether or not the drop is successful, GTK+
-- will call <a>dragFinish</a>. If the action was a move, then if the
-- drag was successful, then <tt>True</tt> will be passed for the delete
-- parameter to <a>dragFinish</a></li>
-- <li><a>DestDefaultAll</a>: If set, specifies that all default actions
-- should be taken.</li>
-- </ul>
data DestDefaults
DestDefaultMotion :: DestDefaults
DestDefaultHighlight :: DestDefaults
DestDefaultDrop :: DestDefaults
DestDefaultAll :: DestDefaults
data DragResult
DragResultSuccess :: DragResult
DragResultNoTarget :: DragResult
DragResultUserCancelled :: DragResult
DragResultTimeoutExpired :: DragResult
DragResultGrabBroken :: DragResult
DragResultError :: DragResult
-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType
-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification
data LevelBarMode
LevelBarModeContinuous :: LevelBarMode
LevelBarModeDiscrete :: LevelBarMode
-- | From where was a menu item entered?
data MenuDirectionType
MenuDirParent :: MenuDirectionType
MenuDirChild :: MenuDirectionType
MenuDirNext :: MenuDirectionType
MenuDirPrev :: MenuDirectionType
-- | Movement in text widget
data MovementStep
MovementLogicalPositions :: MovementStep
MovementVisualPositions :: MovementStep
MovementWords :: MovementStep
MovementDisplayLines :: MovementStep
MovementDisplayLineEnds :: MovementStep
MovementParagraphs :: MovementStep
MovementParagraphEnds :: MovementStep
MovementPages :: MovementStep
MovementBufferEnds :: MovementStep
MovementHorizontalPages :: MovementStep
-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation
-- | Packing parameters of a widget
--
-- <ul>
-- <li>The <a>Packing</a> parameter determines how the child behaves in
-- the horizontal or vertical way in an <a>HBox</a> or <a>VBox</a>,
-- respectively. <a>PackNatural</a> means the child is as big as it
-- requests. It will stay at the start or end of a <a>Box</a> if there is
-- more space available. All children packed with <a>PackRepel</a> will
-- be padded on both sides with additional space. <a>PackGrow</a> will
-- increase the size of a widget so that it covers the available space. A
-- menu bar, for instance, should always stay at the top of a window and
-- should only occupy as little space as possible. Hence it should be
-- packed at the start of a <a>VBox</a> with the packing option
-- <a>PackNatural</a>. The working area of a window (e.g. the text area
-- in an editor) should expand when the window is resized. Here the
-- packing option <a>PackGrow</a> is the right choice and it is
-- irrelevant whether the main area is inserted at the start or the end
-- of a box. Finally <a>PackRepel</a> is most useful in a window where no
-- widget can make use of excess space. Examples include a dialog box
-- without list boxes or text fields.</li>
-- </ul>
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing
toPacking :: Bool -> Bool -> Packing
fromPacking :: Packing -> (Bool, Bool)
-- | Packing of widgets at start or end in a box
data PackType
PackStart :: PackType
PackEnd :: PackType
-- | Priorities
data PathPriorityType
PathPrioLowest :: PathPriorityType
PathPrioGtk :: PathPriorityType
PathPrioApplication :: PathPriorityType
PathPrioTheme :: PathPriorityType
PathPrioRc :: PathPriorityType
PathPrioHighest :: PathPriorityType
-- | Widget identification path
data PathType
PathWidget :: PathType
PathWidgetClass :: PathType
PathClass :: PathType
data PolicyType
PolicyAlways :: PolicyType
PolicyAutomatic :: PolicyType
PolicyNever :: PolicyType
PolicyExternal :: PolicyType
-- | Position a scale's value is drawn relative to the trough
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType
-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle
-- | Resize mode, for containers
--
-- <ul>
-- <li><a>ResizeParent</a> Pass resize request to the parent</li>
-- <li><a>ResizeQueue</a> Queue resizes on this widget</li>
-- <li><a>ResizeImmediate</a> Perform the resizes now</li>
-- </ul>
data ResizeMode
ResizeParent :: ResizeMode
ResizeQueue :: ResizeMode
ResizeImmediate :: ResizeMode
-- | Scrolling type
data ScrollType
ScrollNone :: ScrollType
ScrollJump :: ScrollType
ScrollStepBackward :: ScrollType
ScrollStepForward :: ScrollType
ScrollPageBackward :: ScrollType
ScrollPageForward :: ScrollType
ScrollStepUp :: ScrollType
ScrollStepDown :: ScrollType
ScrollPageUp :: ScrollType
ScrollPageDown :: ScrollType
ScrollStepLeft :: ScrollType
ScrollStepRight :: ScrollType
ScrollPageLeft :: ScrollType
ScrollPageRight :: ScrollType
ScrollStart :: ScrollType
ScrollEnd :: ScrollType
-- | Scrolling step
data ScrollStep
ScrollSteps :: ScrollStep
ScrollPages :: ScrollStep
ScrollEnds :: ScrollStep
ScrollHorizontalSteps :: ScrollStep
ScrollHorizontalPages :: ScrollStep
ScrollHorizontalEnds :: ScrollStep
-- | Mode in which selections can be performed
--
-- <ul>
-- <li>There is a deprecated entry SelectionExtended which should have
-- the same value as SelectionMultiple. C2HS chokes on that
-- construct.</li>
-- </ul>
data SelectionMode
SelectionNone :: SelectionMode
SelectionSingle :: SelectionMode
SelectionBrowse :: SelectionMode
SelectionMultiple :: SelectionMode
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
-- | Describes a widget state. Widget states are used to match the widget
-- against CSS pseudo-classes. Note that GTK extends the regular CSS
-- classes and sometimes uses different names.
data StateFlags
StateFlagNormal :: StateFlags
StateFlagActive :: StateFlags
StateFlagPrelight :: StateFlags
StateFlagSelected :: StateFlags
StateFlagInsensitive :: StateFlags
StateFlagInconsistent :: StateFlags
StateFlagFocused :: StateFlags
StateFlagBackdrop :: StateFlags
StateFlagDirLtr :: StateFlags
StateFlagDirRtl :: StateFlags
StateFlagLink :: StateFlags
StateFlagVisited :: StateFlags
StateFlagChecked :: StateFlags
StateFlagDropActive :: StateFlags
data SortType
SortAscending :: SortType
SortDescending :: SortType
-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType
-- | Whether to clamp or ignore illegal values.
data SpinButtonUpdatePolicy
UpdateAlways :: SpinButtonUpdatePolicy
UpdateIfValid :: SpinButtonUpdatePolicy
-- | Spin a SpinButton with the following method.
data SpinType
SpinStepForward :: SpinType
SpinStepBackward :: SpinType
SpinPageForward :: SpinType
SpinPageBackward :: SpinType
SpinHome :: SpinType
SpinEnd :: SpinType
SpinUserDefined :: SpinType
-- | The <a>TargetFlags</a> enumeration is used to specify constraints on
-- an entry in a <a>TargetList</a>. These flags are only used for drag
-- and drop.
--
-- <ul>
-- <li>If the <a>TargetSameApp</a> flag is set, the target will only be
-- selected for drags within a single application.</li>
-- <li>If the <a>TargetSameWidget</a> flag is set, the target will only
-- be selected for drags within a single widget.</li>
-- </ul>
data TargetFlags
TargetSameApp :: TargetFlags
TargetSameWidget :: TargetFlags
TargetOtherApp :: TargetFlags
TargetOtherWidget :: TargetFlags
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection
-- | Specify the way the search function for <a>TextBuffer</a> works.
data TextSearchFlags
TextSearchVisibleOnly :: TextSearchFlags
TextSearchTextOnly :: TextSearchFlags
TextSearchCaseInsensitive :: TextSearchFlags
data TextWindowType
TextWindowPrivate :: TextWindowType
TextWindowWidget :: TextWindowType
TextWindowText :: TextWindowType
TextWindowLeft :: TextWindowType
TextWindowRight :: TextWindowType
TextWindowTop :: TextWindowType
TextWindowBottom :: TextWindowType
-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle
-- | Wether columns of a tree or list widget can be resized.
data TreeViewColumnSizing
TreeViewColumnGrowOnly :: TreeViewColumnSizing
TreeViewColumnAutosize :: TreeViewColumnSizing
TreeViewColumnFixed :: TreeViewColumnSizing
-- | Window position types
data WindowPosition
WinPosNone :: WindowPosition
WinPosCenter :: WindowPosition
WinPosMouse :: WindowPosition
WinPosCenterAlways :: WindowPosition
WinPosCenterOnParent :: WindowPosition
-- | Interaction of a window with window manager
data WindowType
WindowToplevel :: WindowType
WindowPopup :: WindowType
-- | Determine how lines are wrapped in a <a>TextView</a>.
data WrapMode
WrapNone :: WrapMode
WrapChar :: WrapMode
WrapWord :: WrapMode
WrapWordChar :: WrapMode
-- | Specifies the side of the entry at which an icon is placed.
data EntryIconPosition
EntryIconPrimary :: EntryIconPosition
EntryIconSecondary :: EntryIconPosition
data StackTransitionType
StackTransitionTypeNone :: StackTransitionType
StackTransitionTypeCrossfade :: StackTransitionType
StackTransitionTypeSlideRight :: StackTransitionType
StackTransitionTypeSlideLeft :: StackTransitionType
StackTransitionTypeSlideUp :: StackTransitionType
StackTransitionTypeSlideDown :: StackTransitionType
StackTransitionTypeSlideLeftRight :: StackTransitionType
StackTransitionTypeSlideUpDown :: StackTransitionType
StackTransitionTypeOverUp :: StackTransitionType
StackTransitionTypeOverDown :: StackTransitionType
StackTransitionTypeOverLeft :: StackTransitionType
StackTransitionTypeOverRight :: StackTransitionType
StackTransitionTypeUnderUp :: StackTransitionType
StackTransitionTypeUnderDown :: StackTransitionType
StackTransitionTypeUnderLeft :: StackTransitionType
StackTransitionTypeUnderRight :: StackTransitionType
StackTransitionTypeOverUpDown :: StackTransitionType
StackTransitionTypeOverDownUp :: StackTransitionType
StackTransitionTypeOverLeftRight :: StackTransitionType
StackTransitionTypeOverRightLeft :: StackTransitionType
-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode
-- | Used in <a>DragContext</a> to indicate the protocol according to which
-- DND is done.
data DragProtocol
DragProtoNone :: DragProtocol
DragProtoMotif :: DragProtocol
DragProtoXdnd :: DragProtocol
DragProtoRootwin :: DragProtocol
DragProtoWin32Dropfiles :: DragProtocol
DragProtoOle2 :: DragProtocol
DragProtoLocal :: DragProtocol
DragProtoWayland :: DragProtocol
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction
-- | Specify which events a widget will emit signals on.
data EventMask
ExposureMask :: EventMask
PointerMotionMask :: EventMask
PointerMotionHintMask :: EventMask
ButtonMotionMask :: EventMask
Button1MotionMask :: EventMask
Button2MotionMask :: EventMask
Button3MotionMask :: EventMask
ButtonPressMask :: EventMask
ButtonReleaseMask :: EventMask
KeyPressMask :: EventMask
KeyReleaseMask :: EventMask
EnterNotifyMask :: EventMask
LeaveNotifyMask :: EventMask
FocusChangeMask :: EventMask
StructureMask :: EventMask
PropertyChangeMask :: EventMask
VisibilityNotifyMask :: EventMask
ProximityInMask :: EventMask
ProximityOutMask :: EventMask
SubstructureMask :: EventMask
ScrollMask :: EventMask
TouchMask :: EventMask
SmoothScrollMask :: EventMask
TouchpadGestureMask :: EventMask
TabletPadMask :: EventMask
AllEventsMask :: EventMask
-- | Keyboard modifiers that are depressed when the user presses a key or a
-- mouse button.
--
-- <ul>
-- <li>This data type is used to build lists of modifers that were active
-- during an event.</li>
-- <li>The <a>Apple</a> key on Macintoshs is mapped to <a>Alt2</a> and
-- the <a>Meta</a> key (if available).</li>
-- <li>Since Gtk 2.10, there are also <a>Super</a>, <a>Hyper</a> and
-- <a>Meta</a> modifiers which are simply generated from <a>Alt</a> ..
-- <tt>Compose</tt> modifier keys, depending on the mapping used by the
-- windowing system. Due to one key being mapped to e.g. <a>Alt2</a> and
-- <a>Meta</a>, you shouldn't pattern match directly against a certain
-- key but check whether a key is in the list using the <a>elem</a>
-- function, say.</li>
-- </ul>
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier
data ModifierIntent
ModifierIntentPrimaryAccelerator :: ModifierIntent
ModifierIntentContextMenu :: ModifierIntent
ModifierIntentExtendSelection :: ModifierIntent
ModifierIntentModifySelection :: ModifierIntent
ModifierIntentNoTextInput :: ModifierIntent
ModifierIntentShiftGroup :: ModifierIntent
ModifierIntentDefaultModMask :: ModifierIntent
-- | Information on from what level of the widget hierarchy the mouse
-- cursor came.
--
-- <ul>
-- <li><i><a>NotifyAncestor</a></i> The window is entered from an
-- ancestor or left towards an ancestor.</li>
-- <li><i><a>NotifyVirtual</a></i> The pointer moves between an ancestor
-- and an inferior of the window.</li>
-- <li><i><a>NotifyInferior</a></i> The window is entered from an
-- inferior or left towards an inferior.</li>
-- <li><i><a>NotifyNonlinear</a></i> The window is entered from or left
-- towards a window which is neither an ancestor nor an inferior.</li>
-- <li><i><a>NotifyNonlinearVirtual</a></i> The pointer moves between two
-- windows which are not ancestors of each other and the window is part
-- of the ancestor chain between one of these windows and their least
-- common ancestor.</li>
-- <li><i><a>NotifyUnknown</a></i> The level change does not fit into any
-- of the other categories or could not be determined.</li>
-- </ul>
data NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType
-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection
-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState
-- | The state a <tt>DrawWindow</tt> is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState
-- | Determines a window edge or corner.
data WindowEdge
WindowEdgeNorthWest :: WindowEdge
WindowEdgeNorth :: WindowEdge
WindowEdgeNorthEast :: WindowEdge
WindowEdgeWest :: WindowEdge
WindowEdgeEast :: WindowEdge
WindowEdgeSouthWest :: WindowEdge
WindowEdgeSouth :: WindowEdge
WindowEdgeSouthEast :: WindowEdge
-- | These are hints for the window manager that indicate what type of
-- function the window has. The window manager can use this when
-- determining decoration and behaviour of the window. The hint must be
-- set before mapping the window.
--
-- See the extended window manager hints specification for more details
-- about window types.
data WindowTypeHint
WindowTypeHintNormal :: WindowTypeHint
WindowTypeHintDialog :: WindowTypeHint
WindowTypeHintMenu :: WindowTypeHint
WindowTypeHintToolbar :: WindowTypeHint
WindowTypeHintSplashscreen :: WindowTypeHint
WindowTypeHintUtility :: WindowTypeHint
WindowTypeHintDock :: WindowTypeHint
WindowTypeHintDesktop :: WindowTypeHint
WindowTypeHintDropdownMenu :: WindowTypeHint
WindowTypeHintPopupMenu :: WindowTypeHint
WindowTypeHintTooltip :: WindowTypeHint
WindowTypeHintNotification :: WindowTypeHint
WindowTypeHintCombo :: WindowTypeHint
WindowTypeHintDnd :: WindowTypeHint
data Gravity
GravityNorthWest :: Gravity
GravityNorth :: Gravity
GravityNorthEast :: Gravity
GravityWest :: Gravity
GravityCenter :: Gravity
GravityEast :: Gravity
GravitySouthWest :: Gravity
GravitySouth :: Gravity
GravitySouthEast :: Gravity
GravityStatic :: Gravity
data GrabStatus
GrabSuccess :: GrabStatus
GrabAlreadyGrabbed :: GrabStatus
GrabInvalidTime :: GrabStatus
GrabNotViewable :: GrabStatus
GrabFrozen :: GrabStatus
GrabFailed :: GrabStatus
data OwnerChange
OwnerChangeNewOwner :: OwnerChange
OwnerChangeDestroy :: OwnerChange
OwnerChangeClose :: OwnerChange
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.WrapMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WrapMode
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.WrapMode
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.Click
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.Click
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Click
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.Align
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Align
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.Align
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.Align
instance GHC.Show.Show Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.AccelFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.AttachOptions
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.DestDefaults
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.StateFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.TargetFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.TextSearchFlags
-- | A base class for menu objects
module Graphics.UI.Gtk.MenuComboToolbar.MenuShell
data MenuShell
class ContainerClass o => MenuShellClass o
castToMenuShell :: GObjectClass obj => obj -> MenuShell
gTypeMenuShell :: GType
toMenuShell :: MenuShellClass o => o -> MenuShell
-- | Adds a new <a>MenuItem</a> to the end of the menu shell's item list.
menuShellAppend :: (MenuShellClass self, MenuItemClass child) => self -> child -> IO ()
-- | Adds a new <a>MenuItem</a> to the beginning of the menu shell's item
-- list.
menuShellPrepend :: (MenuShellClass self, MenuItemClass child) => self -> child -> IO ()
-- | Adds a new <a>MenuItem</a> to the menu shell's item list at the
-- position indicated by <tt>position</tt>.
menuShellInsert :: (MenuShellClass self, MenuItemClass child) => self -> child -> Int -> IO ()
-- | Deactivates the menu shell. Typically this results in the menu shell
-- being erased from the screen.
menuShellDeactivate :: MenuShellClass self => self -> IO ()
-- | Activates the menu item within the menu shell. If the menu was
-- deactivated and <tt>forceDeactivate</tt> is set, the previously
-- deactivated menu is reactivated.
menuShellActivateItem :: (MenuShellClass self, MenuItemClass menuItem) => self -> menuItem -> Bool -> IO ()
-- | Selects the menu item from the menu shell.
menuShellSelectItem :: (MenuShellClass self, MenuItemClass menuItem) => self -> menuItem -> IO ()
-- | Deselects the currently selected item from the menu shell, if any.
menuShellDeselect :: MenuShellClass self => self -> IO ()
-- | Select the first visible or selectable child of the menu shell; don't
-- select tearoff items unless the only item is a tearoff item.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
menuShellSelectFirst :: MenuShellClass self => self -> Bool -> IO ()
-- | Cancels the selection within the menu shell.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
menuShellCancel :: MenuShellClass self => self -> IO ()
-- | If <tt>takeFocus</tt> is <tt>True</tt> (the default) the menu shell
-- will take the keyboard focus so that it will receive all keyboard
-- events which is needed to enable keyboard navigation in menus.
--
-- Setting <tt>takeFocus</tt> to <tt>False</tt> is useful only for
-- special applications like virtual keyboard implementations which
-- should not take keyboard focus.
--
-- The <tt>takeFocus</tt> state of a menu or menu bar is automatically
-- propagated to submenus whenever a submenu is popped up, so you don't
-- have to worry about recursively setting it for your entire menu
-- hierarchy. Only when programmatically picking a submenu and popping it
-- up manually, the <tt>takeFocus</tt> property of the submenu needs to
-- be set explicitely.
--
-- Note that setting it to <tt>False</tt> has side-effects:
--
-- If the focus is in some other app, it keeps the focus and keynav in
-- the menu doesn't work. Consequently, keynav on the menu will only work
-- if the focus is on some toplevel owned by the onscreen keyboard.
--
-- To avoid confusing the user, menus with <tt>takeFocus</tt> set to
-- <tt>False</tt> should not display mnemonics or accelerators, since it
-- cannot be guaranteed that they will work.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuShellSetTakeFocus :: MenuShellClass self => self -> Bool -> IO ()
-- | Returns <tt>True</tt> if the menu shell will take the keyboard focus
-- on popup.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuShellGetTakeFocus :: MenuShellClass self => self -> IO Bool
-- | A boolean that determines whether the menu and its submenus grab the
-- keyboard focus. See <a>menuShellSetTakeFocus</a> and
-- <a>menuShellGetTakeFocus</a>.
--
-- Default value: <tt>True</tt>
menuShellTakeFocus :: MenuShellClass self => Attr self Bool
-- | This signal is called if an item is activated. The boolean flag
-- <tt>hide</tt> is True whenever the menu will behidden after this
-- action.
onActivateCurrent :: MenuShellClass self => self -> (Bool -> IO ()) -> IO (ConnectId self)
-- | This signal is called if an item is activated. The boolean flag
-- <tt>hide</tt> is True whenever the menu will behidden after this
-- action.
afterActivateCurrent :: MenuShellClass self => self -> (Bool -> IO ()) -> IO (ConnectId self)
-- | This signal will be emitted when a selection is aborted and thus does
-- not lead to an activation. This is in contrast to the
-- <tt>selection</tt> done signal which is always emitted.
onCancel :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | This signal will be emitted when a selection is aborted and thus does
-- not lead to an activation. This is in contrast to the
-- <tt>selection</tt> done signal which is always emitted.
afterCancel :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is sent whenever the menu shell is deactivated (hidden).
onDeactivated :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is sent whenever the menu shell is deactivated (hidden).
afterDeactivated :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | From where was a menu item entered?
data MenuDirectionType
MenuDirParent :: MenuDirectionType
MenuDirChild :: MenuDirectionType
MenuDirNext :: MenuDirectionType
MenuDirPrev :: MenuDirectionType
-- | This signal is emitted for each move the cursor makes.
onMoveCurrent :: MenuShellClass self => self -> (MenuDirectionType -> IO ()) -> IO (ConnectId self)
-- | This signal is emitted for each move the cursor makes.
afterMoveCurrent :: MenuShellClass self => self -> (MenuDirectionType -> IO ()) -> IO (ConnectId self)
-- | This signal is emitted when the user finished using the menu. Note
-- that this signal is emitted even if no menu item was activated.
onSelectionDone :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is emitted when the user finished using the menu. Note
-- that this signal is emitted even if no menu item was activated.
afterSelectionDone :: MenuShellClass self => self -> IO () -> IO (ConnectId self)
-- | Maintains a list of all open GdkDisplays
--
-- <ul>
-- <li>Module available since Gdk version 2.2</li>
-- </ul>
module Graphics.UI.Gtk.Gdk.DisplayManager
data DisplayManager
class GObjectClass o => DisplayManagerClass o
castToDisplayManager :: GObjectClass obj => obj -> DisplayManager
toDisplayManager :: DisplayManagerClass o => o -> DisplayManager
-- | Returns the global <a>DisplayManager</a> singleton;
-- <tt>parsePargs</tt>, <a>init</a>, or <tt>initCheck</tt> must have been
-- called first.
displayManagerGet :: IO DisplayManager
-- | List all currently open displays.
displayManagerListDisplays :: DisplayManagerClass self => self -> IO [Display]
-- | The default display.
displayManagerDefaultDisplay :: DisplayManagerClass self => Attr self Display
-- | The <a>displayManagerOpened</a> signal is emitted when a display is
-- opened.
displayManagerOpened :: DisplayManagerClass self => Signal self (Display -> IO ())
-- | Cursors | Standard and pixmap cursors.
module Graphics.UI.Gtk.Gdk.Cursor
newtype Cursor
Cursor :: (ForeignPtr (Cursor)) -> Cursor
-- | Cursor types.
data CursorType
XCursor :: CursorType
Arrow :: CursorType
BasedArrowDown :: CursorType
BasedArrowUp :: CursorType
Boat :: CursorType
Bogosity :: CursorType
BottomLeftCorner :: CursorType
BottomRightCorner :: CursorType
BottomSide :: CursorType
BottomTee :: CursorType
BoxSpiral :: CursorType
CenterPtr :: CursorType
Circle :: CursorType
Clock :: CursorType
CoffeeMug :: CursorType
Cross :: CursorType
CrossReverse :: CursorType
Crosshair :: CursorType
DiamondCross :: CursorType
Dot :: CursorType
Dotbox :: CursorType
DoubleArrow :: CursorType
DraftLarge :: CursorType
DraftSmall :: CursorType
DrapedBox :: CursorType
Exchange :: CursorType
Fleur :: CursorType
Gobbler :: CursorType
Gumby :: CursorType
Hand1 :: CursorType
Hand2 :: CursorType
Heart :: CursorType
Icon :: CursorType
IronCross :: CursorType
LeftPtr :: CursorType
LeftSide :: CursorType
LeftTee :: CursorType
Leftbutton :: CursorType
LlAngle :: CursorType
LrAngle :: CursorType
Man :: CursorType
Middlebutton :: CursorType
Mouse :: CursorType
Pencil :: CursorType
Pirate :: CursorType
Plus :: CursorType
QuestionArrow :: CursorType
RightPtr :: CursorType
RightSide :: CursorType
RightTee :: CursorType
Rightbutton :: CursorType
RtlLogo :: CursorType
Sailboat :: CursorType
SbDownArrow :: CursorType
SbHDoubleArrow :: CursorType
SbLeftArrow :: CursorType
SbRightArrow :: CursorType
SbUpArrow :: CursorType
SbVDoubleArrow :: CursorType
Shuttle :: CursorType
Sizing :: CursorType
Spider :: CursorType
Spraycan :: CursorType
Star :: CursorType
Target :: CursorType
Tcross :: CursorType
TopLeftArrow :: CursorType
TopLeftCorner :: CursorType
TopRightCorner :: CursorType
TopSide :: CursorType
TopTee :: CursorType
Trek :: CursorType
UlAngle :: CursorType
Umbrella :: CursorType
UrAngle :: CursorType
Watch :: CursorType
Xterm :: CursorType
LastCursor :: CursorType
BlankCursor :: CursorType
CursorIsPixmap :: CursorType
-- | Creates a new cursor from the set of builtin cursors for the default
-- display. See <a>cursorNewForDisplay</a>. To make the cursor invisible,
-- use <a>BlankCursor</a>.
cursorNew :: CursorType -> IO Cursor
-- | Creates a new cursor from a pixbuf. Not all GDK backends support RGBA
-- cursors. If they are not supported, a monochrome approximation will be
-- displayed. The functions <tt>displaySupportsCursorAlpha</tt> and
-- <tt>displaySupportsCursorColor</tt> can be used to determine whether
-- RGBA cursors are supported; <tt>displayGetDefaultCursorSize</tt> and
-- <tt>displayGetMaximalCursorSize</tt> give information about cursor
-- sizes.
--
-- On the X backend, support for RGBA cursors requires a sufficently new
-- version of the X Render extension.
cursorNewFromPixbuf :: Display -> Pixbuf -> Int -> Int -> IO Cursor
-- | Creates a new cursor by looking up name in the current cursor theme.
cursorNewFromName :: GlibString string => Display -> string -> IO (Maybe Cursor)
-- | Creates a new cursor from the set of builtin cursors.
cursorNewForDisplay :: Display -> CursorType -> IO Cursor
-- | Returns the display on which the GdkCursor is defined.
cursorGetDisplay :: Cursor -> IO Display
-- | Returns a <a>Pixbuf</a> with the image used to display the cursor.
-- Note that depending on the capabilities of the windowing system and on
-- the cursor, GDK may not be able to obtain the image data. In this
-- case, <tt>Nothing</tt> is returned.
cursorGetImage :: Cursor -> IO (Maybe Pixbuf)
instance GHC.Show.Show Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Classes.Eq Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Enum.Bounded Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Enum.Enum Graphics.UI.Gtk.Gdk.Cursor.CursorType
-- | Text buffer for <a>Entry</a>
--
-- <ul>
-- <li>Module available since Gtk+ version 2.18</li>
-- </ul>
module Graphics.UI.Gtk.Entry.EntryBuffer
data EntryBuffer
class GObjectClass o => EntryBufferClass o
castToEntryBuffer :: GObjectClass obj => obj -> EntryBuffer
toEntryBuffer :: EntryBufferClass o => o -> EntryBuffer
-- | Create a new <a>EntryBuffer</a> object.
--
-- Optionally, specify initial text to set in the buffer.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferNew :: GlibString string => Maybe string -> IO EntryBuffer
-- | Retrieves the length in bytes of the buffer. See
-- <tt>entryBufferGetLength</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferGetBytes :: EntryBufferClass self => self -> IO Int
-- | Inserts <tt>chars</tt> into the contents of the buffer, at position
-- <tt>position</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferInsertText :: (EntryBufferClass self, GlibString string) => self -> Int -> string -> IO Int
-- | Deletes a sequence of characters from the buffer. <tt>nChars</tt>
-- characters are deleted starting at <tt>position</tt>. If
-- <tt>nChars</tt> is negative, then all characters until the end of the
-- text are deleted.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferDeleteText :: EntryBufferClass self => self -> Int -> Int -> IO Int
-- | Used when subclassing <a>EntryBuffer</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferEmitDeletedText :: EntryBufferClass self => self -> Int -> Int -> IO ()
-- | Used when subclassing <a>EntryBuffer</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferEmitInsertedText :: (EntryBufferClass self, GlibString string) => self -> Int -> string -> Int -> IO ()
-- | The contents of the buffer.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferText :: (EntryBufferClass self, GlibString string) => Attr self string
-- | The length of the text in buffer.
--
-- Allowed values: <= 65535
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferLength :: EntryBufferClass self => ReadAttr self Int
-- | The maximum length of the text in the buffer.
--
-- Allowed values: [0,65535]
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferMaxLength :: EntryBufferClass self => Attr self Int
-- | <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferInsertedText :: (EntryBufferClass self, GlibString string) => Signal self (Int -> string -> Int -> IO ())
-- | <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
entryBufferDeletedText :: EntryBufferClass self => Signal self (Int -> Int -> IO ())
-- | Interface for text-editing widgets
module Graphics.UI.Gtk.Entry.Editable
data Editable
class GObjectClass o => EditableClass o
castToEditable :: GObjectClass obj => obj -> Editable
gTypeEditable :: GType
toEditable :: EditableClass o => o -> Editable
-- | Selects a region of text. The characters that are selected are those
-- characters at positions from <tt>startPos</tt> up to, but not
-- including <tt>endPos</tt>. If <tt>endPos</tt> is negative, then the
-- the characters selected will be those characters from
-- <tt>startPos</tt> to the end of the text.
--
-- Calling this function with <tt>start</tt>=1 and <tt>end</tt>=4 it will
-- mark "ask" in the string "Haskell".
editableSelectRegion :: EditableClass self => self -> Int -> Int -> IO ()
-- | Gets the current selection bounds, if there is a selection.
editableGetSelectionBounds :: EditableClass self => self -> IO (Int, Int)
-- | Inserts text at a given position.
editableInsertText :: (EditableClass self, GlibString string) => self -> string -> Int -> IO Int
-- | Deletes a sequence of characters. The characters that are deleted are
-- those characters at positions from <tt>startPos</tt> up to, but not
-- including <tt>endPos</tt>. If <tt>endPos</tt> is negative, then the
-- the characters deleted will be those characters from <tt>startPos</tt>
-- to the end of the text.
editableDeleteText :: EditableClass self => self -> Int -> Int -> IO ()
-- | Retrieves a sequence of characters. The characters that are retrieved
-- are those characters at positions from <tt>startPos</tt> up to, but
-- not including <tt>endPos</tt>. If <tt>endPos</tt> is negative, then
-- the the characters retrieved will be those characters from
-- <tt>startPos</tt> to the end of the text.
editableGetChars :: (EditableClass self, GlibString string) => self -> Int -> Int -> IO string
-- | Causes the characters in the current selection to be copied to the
-- clipboard and then deleted from the widget.
editableCutClipboard :: EditableClass self => self -> IO ()
-- | Causes the characters in the current selection to be copied to the
-- clipboard.
editableCopyClipboard :: EditableClass self => self -> IO ()
-- | Causes the contents of the clipboard to be pasted into the given
-- widget at the current cursor position.
editablePasteClipboard :: EditableClass self => self -> IO ()
-- | Deletes the current contents of the widgets selection and disclaims
-- the selection.
editableDeleteSelection :: EditableClass self => self -> IO ()
-- | Determines if the user can edit the text in the editable widget or
-- not.
editableSetEditable :: EditableClass self => self -> Bool -> IO ()
-- | Retrieves whether the text is editable. See
-- <a>editableSetEditable</a>.
editableGetEditable :: EditableClass self => self -> IO Bool
-- | Sets the cursor position.
editableSetPosition :: EditableClass self => self -> Int -> IO ()
-- | Retrieves the current cursor position.
editableGetPosition :: EditableClass self => self -> IO Int
-- | 'position' property. See <a>editableGetPosition</a> and
-- <a>editableSetPosition</a>
editablePosition :: EditableClass self => Attr self Int
-- | 'editable' property. See <a>editableGetEditable</a> and
-- <a>editableSetEditable</a>
editableEditable :: EditableClass self => Attr self Bool
-- | The <a>editableChanged</a> signal is emitted at the end of a single
-- user-visible operation on the contents of the <a>Editable</a>.
--
-- <ul>
-- <li>For inctance, a paste operation that replaces the contents of the
-- selection will cause only one signal emission (even though it is
-- implemented by first deleting the selection, then inserting the new
-- content, and may cause multiple <tt>inserText</tt> signals to be
-- emitted).</li>
-- </ul>
editableChanged :: EditableClass ec => Signal ec (IO ())
-- | Emitted when a piece of text is deleted from the <a>Editable</a>
-- widget.
--
-- <ul>
-- <li>See <a>insertText</a> for information on how to use this
-- signal.</li>
-- </ul>
deleteText :: EditableClass self => Signal self (Int -> Int -> IO ())
-- | Emitted when a piece of text is inserted into the <a>Editable</a>
-- widget.
--
-- <ul>
-- <li>The connected signal receives the text that is inserted, together
-- with the position in the entry widget. The return value should be the
-- position in the entry widget that lies past the recently inserted text
-- (i.e. you should return the given position plus the length of the
-- string).</li>
-- <li>To modify the text that the user inserts, you need to connect to
-- this signal, modify the text the way you want and then call
-- <a>editableInsertText</a>. To avoid that this signal handler is called
-- recursively, you need to temporarily block it using
-- <a>signalBlock</a>. After the default signal handler has inserted your
-- modified text, it is important that you prevent the default handler
-- from being executed again when this signal handler returns. To stop
-- the current signal, use <a>stopInsertText</a>. The following code is
-- an example of how to turn all input into uppercase:</li>
-- </ul>
--
-- <pre>
-- idRef <- newIORef undefined
-- id <- entry `on` insertText $ \str pos -> do
-- id <- readIORef idRef
-- signalBlock id
-- pos' <- editableInsertText entry (map toUpper str) pos
-- signalUnblock id
-- stopInsertText id
-- return pos'
-- writeIORef idRef id
-- </pre>
--
-- Note that binding <a>insertText</a> using <a>after</a> is not very
-- useful, except to track editing actions.
insertText :: (EditableClass self, GlibString string) => Signal self (string -> Int -> IO Int)
-- | Stop the current signal that deletes text.
stopDeleteText :: EditableClass self => ConnectId self -> IO ()
-- | Stop the current signal that inserts text.
stopInsertText :: EditableClass self => ConnectId self -> IO ()
-- | Build an interface from an XML UI definition
--
-- All functions in this module are only available in Gtk 2.12 or higher.
module Graphics.UI.Gtk.Builder
data Builder
class GObjectClass o => BuilderClass o
castToBuilder :: GObjectClass obj => obj -> Builder
gTypeBuilder :: GType
toBuilder :: BuilderClass o => o -> Builder
data BuilderError
BuilderErrorInvalidTypeFunction :: BuilderError
BuilderErrorUnhandledTag :: BuilderError
BuilderErrorMissingAttribute :: BuilderError
BuilderErrorInvalidAttribute :: BuilderError
BuilderErrorInvalidTag :: BuilderError
BuilderErrorMissingPropertyValue :: BuilderError
BuilderErrorInvalidValue :: BuilderError
BuilderErrorVersionMismatch :: BuilderError
BuilderErrorDuplicateId :: BuilderError
BuilderErrorObjectTypeRefused :: BuilderError
BuilderErrorTemplateMismatch :: BuilderError
BuilderErrorInvalidProperty :: BuilderError
BuilderErrorInvalidSignal :: BuilderError
BuilderErrorInvalidId :: BuilderError
-- | Creates a new <a>Builder</a> object.
builderNew :: IO Builder
-- | Parses a file containing a GtkBuilder UI definition and merges it with
-- the current contents of the <a>Builder</a>.
--
-- <ul>
-- <li>If an error occurs, the computation will throw an exception that
-- can be caught using e.g. <a>catchGErrorJust</a> and one of the error
-- codes in <a>BuilderError</a>.</li>
-- </ul>
builderAddFromFile :: GlibFilePath fp => Builder -> fp -> IO ()
-- | Parses a string containing a GtkBuilder UI definition and merges it
-- with the current contents of the <a>Builder</a>.
--
-- <ul>
-- <li>If an error occurs, the computation will throw an exception that
-- can be caught using e.g. <a>catchGErrorJust</a> and one of the error
-- codes in <a>BuilderError</a>.</li>
-- </ul>
builderAddFromString :: GlibString string => Builder -> string -> IO ()
-- | Parses a file containing a GtkBuilder UI definition building only the
-- requested objects and merges them with the current contents of the
-- <a>Builder</a>.
--
-- <ul>
-- <li>If an error occurs, the computation will throw an exception that
-- can be caught using e.g. <a>catchGErrorJust</a> and one of the error
-- codes in <a>BuilderError</a>.</li>
-- </ul>
builderAddObjectsFromFile :: (GlibString string, GlibFilePath fp) => Builder -> fp -> [string] -> IO ()
-- | Parses a string containing a GtkBuilder UI definition building only
-- the requested objects and merges them with the current contents of the
-- <a>Builder</a>.
--
-- <ul>
-- <li>If an error occurs, the computation will throw an exception that
-- can be caught using e.g. <a>catchGErrorJust</a> and one of the error
-- codes in <a>BuilderError</a>.</li>
-- </ul>
builderAddObjectsFromString :: GlibString string => Builder -> string -> [string] -> IO ()
-- | Gets the object with the given name, with a conversion function. Note
-- that this computation does not increment the reference count of the
-- returned object.
--
-- If the object with the given ID is not of the requested type, an
-- exception will be thrown.
builderGetObject :: (GObjectClass cls, GlibString string) => Builder -> (GObject -> cls) -> string -> IO cls
-- | Gets all objects that have been constructed by builder. Note that this
-- computation does not increment the reference counts of the returned
-- objects.
builderGetObjects :: Builder -> IO [GObject]
-- | Gets the object with the given name. Note that this computation does
-- not increment the reference count of the returned object.
builderGetObjectRaw :: GlibString string => Builder -> string -> IO (Maybe GObject)
-- | Sets the translation domain of the <a>Builder</a>.
builderSetTranslationDomain :: GlibString string => Builder -> Maybe string -> IO ()
-- | Gets the translation domain of the <a>Builder</a>.
builderGetTranslationDomain :: GlibString string => Builder -> IO (Maybe string)
instance GHC.Classes.Eq Graphics.UI.Gtk.Builder.BuilderError
instance GHC.Show.Show Graphics.UI.Gtk.Builder.BuilderError
instance GHC.Enum.Enum Graphics.UI.Gtk.Builder.BuilderError
-- | An action of which represents a list of recently used files
--
-- <ul>
-- <li>Module available since Gtk+ version 2.12</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.RecentAction
data RecentAction
class ActionClass o => RecentActionClass o
castToRecentAction :: GObjectClass obj => obj -> RecentAction
toRecentAction :: RecentActionClass o => o -> RecentAction
-- | Creates a new <a>RecentAction</a> object. To add the action to a
-- <a>ActionGroup</a> and set the accelerator for the action, call
-- <tt>actionGroupAddActionWithAccel</tt>.
recentActionNew :: GlibString string => string -> Maybe string -> Maybe string -> Maybe string -> IO RecentAction
-- | Creates a new <a>RecentAction</a> object. To add the action to a
-- <a>ActionGroup</a> and set the accelerator for the action, call
-- <tt>actionGroupAddActionWithAccel</tt>.
recentActionNewForManager :: (RecentManagerClass manager, GlibString string) => string -> Maybe string -> Maybe string -> Maybe string -> Maybe manager -> IO RecentAction
-- | If recent items should be shown with numbers next to them.
recentActionShowNumbers :: RecentActionClass self => Attr self Bool
-- | Base class for <a>HSeparator</a> and <a>VSeparator</a>.
module Graphics.UI.Gtk.Abstract.Separator
data Separator
class WidgetClass o => SeparatorClass o
castToSeparator :: GObjectClass obj => obj -> Separator
gTypeSeparator :: GType
toSeparator :: SeparatorClass o => o -> Separator
-- | Base class for <a>HScrollbar</a> and <a>VScrollbar</a>
module Graphics.UI.Gtk.Abstract.Scrollbar
data Scrollbar
class RangeClass o => ScrollbarClass o
castToScrollbar :: GObjectClass obj => obj -> Scrollbar
gTypeScrollbar :: GType
toScrollbar :: ScrollbarClass o => o -> Scrollbar
-- | Base class for <a>HScale</a> and <a>VScale</a>
module Graphics.UI.Gtk.Abstract.Scale
data Scale
class RangeClass o => ScaleClass o
castToScale :: GObjectClass obj => obj -> Scale
gTypeScale :: GType
toScale :: ScaleClass o => o -> Scale
-- | Sets the number of decimal places that are displayed in the value.
-- Also causes the value of the adjustment to be rounded off to this
-- number of digits, so the retrieved value matches the value the user
-- saw.
scaleSetDigits :: ScaleClass self => self -> Int -> IO ()
-- | Gets the number of decimal places that are displayed in the value.
scaleGetDigits :: ScaleClass self => self -> IO Int
-- | Specifies whether the current value is displayed as a string next to
-- the slider.
scaleSetDrawValue :: ScaleClass self => self -> Bool -> IO ()
-- | Returns whether the current value is displayed as a string next to the
-- slider.
scaleGetDrawValue :: ScaleClass self => self -> IO Bool
-- | Position a scale's value is drawn relative to the trough
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType
-- | Sets the position in which the current value is displayed.
scaleSetValuePos :: ScaleClass self => self -> PositionType -> IO ()
-- | Gets the position in which the current value is displayed.
scaleGetValuePos :: ScaleClass self => self -> IO PositionType
-- | The number of decimal places that are displayed in the value.
--
-- Allowed values: [-1,64]
--
-- Default value: 1
scaleDigits :: ScaleClass self => Attr self Int
-- | Whether the current value is displayed as a string next to the slider.
--
-- Default value: <tt>True</tt>
scaleDrawValue :: ScaleClass self => Attr self Bool
-- | The position in which the current value is displayed.
--
-- Default value: <a>PosTop</a>
scaleValuePos :: ScaleClass self => Attr self PositionType
-- | The base class of the Gtk+ type hierarchy.
--
-- <ul>
-- <li>Each widget is a represented as a purely abstract data type. It
-- can only be accessed through and the special access functions that are
-- defined in each widget file.</li>
-- </ul>
module Graphics.UI.Gtk.Abstract.Object
makeNewObject :: GObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
type GWeakNotify = FunPtr (((Ptr ()) -> ((Ptr GObject) -> (IO ()))))
-- | Attach a callback that will be called after the destroy hooks have
-- been called
objectWeakref :: GObjectClass o => o -> IO () -> IO GWeakNotify
-- | Detach a weak destroy callback function
objectWeakunref :: GObjectClass o => o -> GWeakNotify -> IO ()
-- | Signals that all holders of a reference to the <tt>Object</tt> should
-- release the reference that they hold. May result in finalization of
-- the object if all references are released.
objectDestroy :: WidgetClass self => Signal self (IO ())
-- | Register a notify callback that is triggered when the given property
-- has been modified.
--
-- <ul>
-- <li>Note that this callback is triggered even if the actual value of
-- the property has not changed.</li>
-- <li>Not all attributes are properties. A warning will be generated at
-- runtime if the passed-in attribute is not a property of the class with
-- which it was registered.</li>
-- </ul>
notifyProperty :: GObjectClass self => ReadWriteAttr self a b -> Signal self (IO ())
-- | Constructing menus and toolbars from an XML description
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.UIManager
data UIManager
class GObjectClass o => UIManagerClass o
castToUIManager :: GObjectClass obj => obj -> UIManager
gTypeUIManager :: GType
toUIManager :: UIManagerClass o => o -> UIManager
-- | These enumeration values are used by <a>uiManagerAddUi</a> to
-- determine what UI element to create.
data UIManagerItemType
UiManagerAuto :: UIManagerItemType
UiManagerMenubar :: UIManagerItemType
UiManagerMenu :: UIManagerItemType
UiManagerToolbar :: UIManagerItemType
UiManagerPlaceholder :: UIManagerItemType
UiManagerPopup :: UIManagerItemType
UiManagerMenuitem :: UIManagerItemType
UiManagerToolitem :: UIManagerItemType
UiManagerSeparator :: UIManagerItemType
UiManagerAccelerator :: UIManagerItemType
UiManagerPopupWithAccels :: UIManagerItemType
data MergeId
-- | Creates a new ui manager object.
uiManagerNew :: IO UIManager
-- | Sets the "add_tearoffs" property, which controls whether menus
-- generated by this <a>UIManager</a> will have tearoff menu items.
--
-- Note that this only affects regular menus. Generated popup menus never
-- have tearoff menu items.
uiManagerSetAddTearoffs :: UIManager -> Bool -> IO ()
-- | Returns whether menus generated by this <a>UIManager</a> will have
-- tearoff menu items.
uiManagerGetAddTearoffs :: UIManager -> IO Bool
-- | Inserts an action group into the list of action groups associated with
-- <tt>self</tt>. Actions in earlier groups hide actions with the same
-- name in later groups.
uiManagerInsertActionGroup :: UIManager -> ActionGroup -> Int -> IO ()
-- | Removes an action group from the list of action groups associated with
-- <tt>self</tt>.
uiManagerRemoveActionGroup :: UIManager -> ActionGroup -> IO ()
-- | Returns the list of action groups associated with the UI manager.
uiManagerGetActionGroups :: UIManager -> IO [ActionGroup]
-- | Returns the <a>AccelGroup</a> associated with <tt>self</tt>.
uiManagerGetAccelGroup :: UIManager -> IO AccelGroup
-- | Looks up a widget by following a path. The path consists of the names
-- specified in the XML description of the UI. separated by '/'. Elements
-- which don't have a name or action attribute in the XML (e.g.
-- <popup>) can be addressed by their XML element name (e.g.
-- "popup"). The root element ("/ui") can be omitted in the path.
--
-- Note that the widget found by following a path that ends in a
-- <menu> element is the menuitem to which the menu is attached,
-- not the menu itself.
uiManagerGetWidget :: GlibString string => UIManager -> string -> IO (Maybe Widget)
-- | Obtains a list of all toplevel widgets of the requested types.
uiManagerGetToplevels :: UIManager -> [UIManagerItemType] -> IO [Widget]
-- | Looks up an action by following a path. See <a>uiManagerGetWidget</a>
-- for more information about paths.
uiManagerGetAction :: GlibString string => UIManager -> string -> IO (Maybe Action)
-- | Parses a string containing a UI definition and merges it with the
-- current contents of <tt>self</tt>. An enclosing <ui> element is
-- added if it is missing.
--
-- If a parse error occurres, an exception is thrown.
uiManagerAddUiFromString :: GlibString string => UIManager -> string -> IO MergeId
-- | Parses a file containing a UI definition and merges it with the
-- current contents of <tt>self</tt>.
--
-- If a parse or IO error occurres, an exception is thrown.
uiManagerAddUiFromFile :: GlibString string => UIManager -> string -> IO MergeId
-- | Returns an unused merge id, suitable for use with
-- <a>uiManagerAddUi</a>.
uiManagerNewMergeId :: UIManager -> IO MergeId
-- | Adds a UI element to the current contents of <tt>self</tt>.
--
-- If <tt>type</tt> is <a>UiManagerAuto</a>, Gtk+ inserts a menuitem,
-- toolitem or separator if such an element can be inserted at the place
-- determined by <tt>path</tt>. Otherwise <tt>type</tt> must indicate an
-- element that can be inserted at the place determined by <tt>path</tt>.
--
-- If <tt>path</tt> points to a menuitem or toolitem, the new element
-- will be inserted before or after this item, depending on <tt>top</tt>.
uiManagerAddUi :: GlibString string => UIManager -> MergeId -> string -> string -> Maybe string -> [UIManagerItemType] -> Bool -> IO ()
-- | Unmerges the part of the UI manager's content identified by
-- <tt>mergeId</tt>.
uiManagerRemoveUi :: UIManager -> MergeId -> IO ()
-- | Creates a UI definition of the merged UI.
uiManagerGetUi :: GlibString string => UIManager -> IO string
-- | Makes sure that all pending updates to the UI have been completed.
--
-- This may occasionally be necessary, since <a>UIManager</a> updates the
-- UI in an idle function. A typical example where this function is
-- useful is to enforce that the menubar and toolbar have been added to
-- the main window before showing it:
--
-- <pre>
-- do
-- containerAdd window vbox
-- onAddWidget merge (addWidget vbox)
-- uiManagerAddUiFromFile merge "my-menus"
-- uiManagerAddUiFromFile merge "my-toolbars"
-- uiManagerEnsureUpdate merge
-- widgetShow window
-- </pre>
uiManagerEnsureUpdate :: UIManager -> IO ()
-- | The "add-tearoffs" property controls whether generated menus have
-- tearoff menu items.
--
-- Note that this only affects regular menus. Generated popup menus never
-- have tearoff menu items.
--
-- Default value: <tt>False</tt>
uiManagerAddTearoffs :: Attr UIManager Bool
-- | An XML string describing the merged UI.
--
-- Default value: <tt>"<ui>\n</ui>\n"</tt>
uiManagerUi :: GlibString string => ReadAttr UIManager string
-- | The add_widget signal is emitted for each generated menubar and
-- toolbar. It is not emitted for generated popup menus, which can be
-- obtained by <a>uiManagerGetWidget</a>.
addWidget :: UIManagerClass self => Signal self (Widget -> IO ())
-- | The "actions-changed" signal is emitted whenever the set of actions
-- changes.
actionsChanged :: UIManagerClass self => Signal self (IO ())
instance GHC.Enum.Bounded Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType
instance GHC.Enum.Enum Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType
instance System.Glib.Flags.Flags Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType
-- | Create widgets with a discrete toggle button
module Graphics.UI.Gtk.Buttons.CheckButton
data CheckButton
class ToggleButtonClass o => CheckButtonClass o
castToCheckButton :: GObjectClass obj => obj -> CheckButton
gTypeCheckButton :: GType
toCheckButton :: CheckButtonClass o => o -> CheckButton
-- | Creates a new <a>CheckButton</a>.
checkButtonNew :: IO CheckButton
-- | Creates a new <a>CheckButton</a> with a <a>Label</a> to the right of
-- it.
checkButtonNewWithLabel :: GlibString string => string -> IO CheckButton
-- | Creates a new <a>CheckButton</a> containing a label. The label will be
-- created using <a>labelNewWithMnemonic</a>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the check button.
checkButtonNewWithMnemonic :: GlibString string => string -> IO CheckButton
-- | Create buttons bound to a URL
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Buttons.LinkButton
data LinkButton
class ButtonClass o => LinkButtonClass o
castToLinkButton :: GObjectClass obj => obj -> LinkButton
toLinkButton :: LinkButtonClass o => o -> LinkButton
-- | Creates a new <a>LinkButton</a> with the URI as its text.
linkButtonNew :: GlibString string => string -> IO LinkButton
-- | Creates a new <a>LinkButton</a> containing a label.
linkButtonNewWithLabel :: GlibString string => string -> string -> IO LinkButton
-- | The URI bound to this button.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
linkButtonURI :: (LinkButtonClass self, GlibString string) => Attr self string
-- | The <tt>visited</tt> state of this button. A visited link is drawn in
-- a different color.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
linkButtonVisited :: LinkButtonClass self => Attr self Bool
-- | A choice from multiple check buttons
module Graphics.UI.Gtk.Buttons.RadioButton
data RadioButton
class CheckButtonClass o => RadioButtonClass o
castToRadioButton :: GObjectClass obj => obj -> RadioButton
gTypeRadioButton :: GType
toRadioButton :: RadioButtonClass o => o -> RadioButton
-- | Creates a new <a>RadioButton</a> with a new group. To be of any
-- practical value, a widget should then be packed into the radio button.
radioButtonNew :: IO RadioButton
-- | Creates a new <a>RadioButton</a> with a text label.
radioButtonNewWithLabel :: GlibString string => string -> IO RadioButton
-- | Creates a new <a>RadioButton</a> containing a label. The label will be
-- created using <a>labelNewWithMnemonic</a>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the button.
radioButtonNewWithMnemonic :: GlibString string => string -> IO RadioButton
-- | Creates a new <a>RadioButton</a>, adding it to the same group as the
-- group to which <tt>groupMember</tt> belongs. As with
-- <a>radioButtonNew</a>, a widget should be packed into the radio
-- button.
radioButtonNewFromWidget :: RadioButton -> IO RadioButton
-- | Creates a new <a>RadioButton</a> with a text label, adding it to the
-- same group as the group to which <tt>groupMember</tt> belongs.
radioButtonNewWithLabelFromWidget :: GlibString string => RadioButton -> string -> IO RadioButton
-- | Creates a new <a>RadioButton</a> containing a label, adding it to the
-- same group as the group to which <tt>groupMember</tt> belongs. The
-- label will be created using <a>labelNewWithMnemonic</a>, so
-- underscores in <tt>label</tt> indicate the mnemonic for the button.
radioButtonNewWithMnemonicFromWidget :: GlibString string => RadioButton -> string -> IO RadioButton
-- | Alias for <a>radioButtonNewFromWidget</a>.
-- | <i>Deprecated: use radioButtonNewFromWidget instead</i>
radioButtonNewJoinGroup :: RadioButton -> IO RadioButton
-- | Alias for <a>radioButtonNewWithLabelFromWidget</a>.
-- | <i>Deprecated: use radioButtonNewWithLabelFromWidget instead</i>
radioButtonNewJoinGroupWithLabel :: GlibString string => RadioButton -> string -> IO RadioButton
-- | Alias for <a>radioButtonNewWithMnemonicFromWidget</a>.
-- | <i>Deprecated: use radioButtonNewWithMnemonicFromWidget instead</i>
radioButtonNewJoinGroupWithMnemonic :: GlibString string => RadioButton -> string -> IO RadioButton
-- | Sets a <a>RadioButton</a>s group. It should be noted that this does
-- not change the layout of your interface in any way, so if you are
-- changing the group, it is likely you will need to re-arrange the user
-- interface to reflect these changes.
radioButtonSetGroup :: RadioButton -> RadioButton -> IO ()
-- | Retrieves the group assigned to a radio button.
radioButtonGetGroup :: RadioButton -> IO [RadioButton]
-- | Sets a new group for a radio button.
radioButtonGroup :: ReadWriteAttr RadioButton [RadioButton] RadioButton
-- | Emitted when the group of radio buttons that a radio button belongs to
-- changes. This is emitted when a radio button switches from being alone
-- to being part of a group of 2 or more buttons, or vice-versa, and when
-- a buttton is moved from one group of 2 or more buttons to a different
-- one, but not when the composition of the group that a button belongs
-- to changes.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
groupChanged :: RadioButtonClass self => Signal self (IO ())
-- | Create buttons which retain their state
module Graphics.UI.Gtk.Buttons.ToggleButton
data ToggleButton
class ButtonClass o => ToggleButtonClass o
castToToggleButton :: GObjectClass obj => obj -> ToggleButton
gTypeToggleButton :: GType
toToggleButton :: ToggleButtonClass o => o -> ToggleButton
-- | Creates a new toggle button. A widget should be packed into the
-- button, as in <a>buttonNew</a>.
toggleButtonNew :: IO ToggleButton
-- | Creates a new toggle button with a text label.
toggleButtonNewWithLabel :: GlibString string => string -> IO ToggleButton
-- | Creates a new <a>ToggleButton</a> containing a label. The label will
-- be created using <a>labelNewWithMnemonic</a>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the button.
toggleButtonNewWithMnemonic :: GlibString string => string -> IO ToggleButton
-- | Sets whether the button is displayed as a separate indicator and
-- label. You can call this function on a <a>CheckButton</a> or a
-- <a>RadioButton</a> with <tt>False</tt> to make the button look like a
-- normal button.
--
-- This function only affects instances of classes like
-- <a>CheckButton</a> and <a>RadioButton</a> that derive from
-- <a>ToggleButton</a>, not instances of <a>ToggleButton</a> itself.
toggleButtonSetMode :: ToggleButtonClass self => self -> Bool -> IO ()
-- | Retrieves whether the button is displayed as a separate indicator and
-- label. See <a>toggleButtonSetMode</a>.
toggleButtonGetMode :: ToggleButtonClass self => self -> IO Bool
-- | Emits the toggled signal on the <a>ToggleButton</a>. There is no good
-- reason for an application ever to call this function.
toggleButtonToggled :: ToggleButtonClass self => self -> IO ()
-- | Queries a <a>ToggleButton</a> and returns its current state. Returns
-- <tt>True</tt> if the toggle button is pressed in and <tt>False</tt> if
-- it is raised.
toggleButtonGetActive :: ToggleButtonClass self => self -> IO Bool
-- | Sets the status of the toggle button. Set to <tt>True</tt> if you want
-- the <a>ToggleButton</a> to be 'pressed in', and <tt>False</tt> to
-- raise it. This action causes the toggled signal to be emitted.
toggleButtonSetActive :: ToggleButtonClass self => self -> Bool -> IO ()
-- | Gets the value set by <a>toggleButtonSetInconsistent</a>.
toggleButtonGetInconsistent :: ToggleButtonClass self => self -> IO Bool
-- | If the user has selected a range of elements (such as some text or
-- spreadsheet cells) that are affected by a toggle button, and the
-- current values in that range are inconsistent, you may want to display
-- the toggle in an "in between" state. This function turns on "in
-- between" display. Normally you would turn off the inconsistent state
-- again if the user toggles the toggle button. This has to be done
-- manually, <a>toggleButtonSetInconsistent</a> only affects visual
-- appearance, it doesn't affect the semantics of the button.
toggleButtonSetInconsistent :: ToggleButtonClass self => self -> Bool -> IO ()
-- | If the toggle button should be pressed in or not.
--
-- Default value: <tt>False</tt>
toggleButtonActive :: ToggleButtonClass self => Attr self Bool
-- | If the toggle button is in an "in between" state.
--
-- Default value: <tt>False</tt>
toggleButtonInconsistent :: ToggleButtonClass self => Attr self Bool
-- | If the toggle part of the button is displayed.
--
-- Default value: <tt>False</tt>
toggleButtonDrawIndicator :: ToggleButtonClass self => Attr self Bool
-- | 'mode' property. See <a>toggleButtonGetMode</a> and
-- <a>toggleButtonSetMode</a>
toggleButtonMode :: ToggleButtonClass self => Attr self Bool
-- | Should be connected if you wish to perform an action whenever the
-- <tt>ToggleButton'</tt>s state is changed.
toggled :: ToggleButtonClass self => Signal self (IO ())
-- | A button which pops up a volume control
--
-- <ul>
-- <li>Module available since Gtk+ version 2.12</li>
-- </ul>
module Graphics.UI.Gtk.Buttons.VolumeButton
data VolumeButton
class ScaleButtonClass o => VolumeButtonClass o
castToVolumeButton :: GObjectClass obj => obj -> VolumeButton
toVolumeButton :: VolumeButtonClass o => o -> VolumeButton
-- | Creates a <a>VolumeButton</a>, with a range between 0.0 and 1.0, with
-- a stepping of 0.02. Volume values can be obtained and modified using
-- the functions from <a>ScaleButton</a>.
volumeButtonNew :: IO VolumeButton
-- | A label which displays an accelerator key on the right of the text
module Graphics.UI.Gtk.Display.AccelLabel
data AccelLabel
class LabelClass o => AccelLabelClass o
castToAccelLabel :: GObjectClass obj => obj -> AccelLabel
gTypeAccelLabel :: GType
toAccelLabel :: AccelLabelClass o => o -> AccelLabel
-- | Creates a new <a>AccelLabel</a>.
accelLabelNew :: GlibString string => string -> IO AccelLabel
-- | Sets the widget to be monitored by this accelerator label.
accelLabelSetAccelWidget :: (AccelLabelClass self, WidgetClass accelWidget) => self -> accelWidget -> IO ()
-- | Fetches the widget monitored by this accelerator label. See
-- <a>accelLabelSetAccelWidget</a>.
accelLabelGetAccelWidget :: AccelLabelClass self => self -> IO (Maybe Widget)
-- | The widget to be monitored for accelerator changes.
accelLabelAccelWidget :: (AccelLabelClass self, WidgetClass accelWidget) => ReadWriteAttr self (Maybe Widget) accelWidget
-- | A widget that displays a small to medium amount of text
module Graphics.UI.Gtk.Display.Label
data Label
class MiscClass o => LabelClass o
castToLabel :: GObjectClass obj => obj -> Label
gTypeLabel :: GType
toLabel :: LabelClass o => o -> Label
-- | Creates a new label with the given text inside it. You can pass
-- <tt>Nothing</tt> to get an empty label widget.
labelNew :: GlibString string => Maybe string -> IO Label
-- | Creates a new <a>Label</a>, containing the text in <tt>str</tt>.
--
-- If characters in <tt>str</tt> are preceded by an underscore, they are
-- underlined. If you need a literal underscore character in a label, use
-- '__' (two underscores). The first underlined character represents a
-- keyboard accelerator called a mnemonic. The mnemonic key can be used
-- to activate another widget, chosen automatically, or explicitly using
-- <a>labelSetMnemonicWidget</a>.
--
-- If <a>labelSetMnemonicWidget</a> is not called, then the first
-- activatable ancestor of the <a>Label</a> will be chosen as the
-- mnemonic widget. For instance, if the label is inside a button or menu
-- item, the button or menu item will automatically become the mnemonic
-- widget and be activated by the mnemonic.
labelNewWithMnemonic :: GlibString string => string -> IO Label
-- | Sets the text within the <a>Label</a> widget. It overwrites any text
-- that was there before.
--
-- This will also clear any previously set mnemonic accelerators.
labelSetText :: (LabelClass self, GlibString string) => self -> string -> IO ()
-- | Sets the text of the label. The label is interpreted as including
-- embedded underlines and/or Pango markup depending on the markup and
-- underline properties.
labelSetLabel :: (LabelClass self, GlibString string) => self -> string -> IO ()
-- | Sets the label's text from the given string. If characters in the
-- string are preceded by an underscore, they are underlined indicating
-- that they represent a keyboard accelerator called a mnemonic. The
-- mnemonic key can be used to activate another widget, chosen
-- automatically, or explicitly using <a>labelSetMnemonicWidget</a>.
labelSetTextWithMnemonic :: (LabelClass self, GlibString string) => self -> string -> IO ()
-- | Parses <tt>str</tt> which is marked up with the Pango text markup
-- language, as defined in <a>Graphics.Rendering.Pango.Markup</a>,
-- setting the label's text and attribute list based on the parse
-- results. If the <tt>str</tt> is external data, you may need to escape
-- it.
labelSetMarkup :: (LabelClass self, GlibString markup) => self -> markup -> IO ()
-- | Parses <tt>str</tt> which is marked up with the Pango text markup
-- language, as defined in <a>Graphics.Rendering.Pango.Markup</a>,
-- setting the label's text and attribute list based on the parse
-- results. If characters in <tt>str</tt> are preceded by an underscore,
-- they are underlined indicating that they represent a keyboard
-- accelerator called a mnemonic.
--
-- The mnemonic key can be used to activate another widget, chosen
-- automatically, or explicitly using <a>labelSetMnemonicWidget</a>.
labelSetMarkupWithMnemonic :: (LabelClass self, GlibString markup) => self -> markup -> IO ()
-- | If the label has been set so that it has an mnemonic key (using i.e.
-- <a>labelSetMarkupWithMnemonic</a>, <a>labelSetTextWithMnemonic</a>,
-- <a>labelNewWithMnemonic</a> or the "use_underline" property) the label
-- can be associated with a widget that is the target of the mnemonic.
-- When the label is inside a widget (like a <a>Button</a> or a
-- <a>Notebook</a> tab) it is automatically associated with the correct
-- widget, but sometimes (i.e. when the target is a <a>Entry</a> next to
-- the label) you need to set it explicitly using this function.
--
-- The target widget will be accelerated by emitting "mnemonic_activate"
-- on it. The default handler for this signal will activate the widget if
-- there are no mnemonic collisions and toggle focus between the
-- colliding widgets otherwise.
labelSetMnemonicWidget :: (LabelClass self, WidgetClass widget) => self -> widget -> IO ()
-- | Retrieves the target of the mnemonic (keyboard shortcut) of this
-- label. See <a>labelSetMnemonicWidget</a>.
labelGetMnemonicWidget :: LabelClass self => self -> IO (Maybe Widget)
-- | Key values are the codes which are sent whenever a key is pressed or
-- released.
type KeyVal = Word32
-- | If the label has been set so that it has an mnemonic key this function
-- returns the keyval used for the mnemonic accelerator.
labelGetMnemonicKeyval :: LabelClass self => self -> IO KeyVal
-- | Sets whether the text of the label contains markup in Pango's text
-- markup language. See <a>labelSetMarkup</a>.
labelSetUseMarkup :: LabelClass self => self -> Bool -> IO ()
-- | Returns whether the label's text is interpreted as marked up with the
-- Pango text markup language. See <a>labelSetUseMarkup</a>.
labelGetUseMarkup :: LabelClass self => self -> IO Bool
-- | If <tt>True</tt>, an underline in the text indicates the next
-- character should be used for the mnemonic accelerator key.
labelSetUseUnderline :: LabelClass self => self -> Bool -> IO ()
-- | Returns whether an embedded underline in the label indicates a
-- mnemonic. See <a>labelSetUseUnderline</a>.
labelGetUseUnderline :: LabelClass self => self -> IO Bool
-- | Gets the text from a label widget, as displayed on the screen. This
-- does not include any embedded underlines indicating mnemonics or Pango
-- markup. (See <a>labelGetLabel</a>)
labelGetText :: (LabelClass self, GlibString string) => self -> IO string
-- | Gets the text from a label widget including any embedded underlines
-- indicating mnemonics and Pango markup. (See <a>labelGetText</a>).
labelGetLabel :: (LabelClass self, GlibString string) => self -> IO string
-- | Sets a PangoAttrList; the attributes in the list are applied to the
-- label text.
--
-- Note: The attributes set with this function will be applied and merged
-- with any other attributes previously effected by way of the
-- <a>labelUseUnderline</a> or <a>labelUseMarkup</a> properties. While it
-- is not recommended to mix markup strings with manually set attributes,
-- if you must; know that the attributes will be applied to the label
-- after the markup string is parsed.
labelSetAttributes :: LabelClass self => self -> [PangoAttribute] -> IO ()
-- | Gets the attribute list that was set on the label using
-- <a>labelSetAttributes</a>, if any. This function does not reflect
-- attributes that come from the labels markup (see
-- <a>labelSetMarkup</a>). If you want to get the effective attributes
-- for the label, use <a>layoutGetAttributes</a> (<a>labelGetLayout</a>
-- (label)).
labelGetAttributes :: LabelClass self => self -> IO [PangoAttribute]
-- | Underline parts of the text, odd indices of the list represent
-- underlined parts.
labelSetPattern :: LabelClass l => l -> [Int] -> IO ()
-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification
-- | Sets the alignment of the lines in the text of the label relative to
-- each other. <a>JustifyLeft</a> is the default value when the widget is
-- first created with <a>labelNew</a>. If you instead want to set the
-- alignment of the label as a whole, use <a>miscSetAlignment</a>
-- instead. <a>labelSetJustify</a> has no effect on labels containing
-- only a single line.
labelSetJustify :: LabelClass self => self -> Justification -> IO ()
-- | Returns the justification of the label. See <a>labelSetJustify</a>.
labelGetJustify :: LabelClass self => self -> IO Justification
-- | Gets the <a>PangoLayout</a> used to display the label. The layout is
-- useful to e.g. convert text positions to pixel positions, in
-- combination with <a>labelGetLayoutOffsets</a>.
labelGetLayout :: LabelClass self => self -> IO PangoLayout
-- | Toggles line wrapping within the <a>Label</a> widget. <tt>True</tt>
-- makes it break lines if text exceeds the widget's size. <tt>False</tt>
-- lets the text get cut off by the edge of the widget if it exceeds the
-- widget size.
labelSetLineWrap :: LabelClass self => self -> Bool -> IO ()
-- | Returns whether lines in the label are automatically wrapped. See
-- <a>labelSetLineWrap</a>.
labelGetLineWrap :: LabelClass self => self -> IO Bool
-- | If line wrapping is on (see <a>labelSetLineWrap</a>) this controls how
-- the line wrapping is done. The default is <a>WrapWholeWords</a> which
-- means wrap on word boundaries.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
labelSetLineWrapMode :: LabelClass self => self -> LayoutWrapMode -> IO ()
-- | Returns line wrap mode used by the label. See
-- <a>labelSetLineWrapMode</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
labelGetLineWrapMode :: LabelClass self => self -> IO LayoutWrapMode
-- | Selectable labels allow the user to select text from the label, for
-- copy-and-paste.
labelSetSelectable :: LabelClass self => self -> Bool -> IO ()
-- | Gets whether the text selectable.
labelGetSelectable :: LabelClass self => self -> IO Bool
-- | Selects a range of characters in the label, if the label is
-- selectable. See <a>labelSetSelectable</a>. If the label is not
-- selectable, this function has no effect. If <tt>startOffset</tt> or
-- <tt>endOffset</tt> are -1, then the end of the label will be
-- substituted.
labelSelectRegion :: LabelClass self => self -> Int -> Int -> IO ()
-- | Gets the selected range of characters in the label, if any. If there
-- is a range selected the result is the start and end of the selection
-- as character offsets.
labelGetSelectionBounds :: LabelClass self => self -> IO (Maybe (Int, Int))
-- | Obtains the coordinates where the label will draw the
-- <a>PangoLayout</a> representing the text in the label; useful to
-- convert mouse events into coordinates inside the <a>PangoLayout</a>,
-- e.g. to take some action if some part of the label is clicked. Of
-- course you will need to create a <a>EventBox</a> to receive the
-- events, and pack the label inside it, since labels are a 'NoWindow'
-- widget.
labelGetLayoutOffsets :: LabelClass self => self -> IO (Int, Int)
-- | Sets the mode used to ellipsize (add an ellipsis: "...") to the text
-- if there is not enough space to render the entire string.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelSetEllipsize :: LabelClass self => self -> EllipsizeMode -> IO ()
-- | Returns the ellipsizing position of the label. See
-- <a>labelSetEllipsize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelGetEllipsize :: LabelClass self => self -> IO EllipsizeMode
-- | Sets the desired width in characters of <tt>label</tt> to
-- <tt>nChars</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelSetWidthChars :: LabelClass self => self -> Int -> IO ()
-- | Retrieves the desired width of <tt>label</tt>, in characters. See
-- <a>labelSetWidthChars</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelGetWidthChars :: LabelClass self => self -> IO Int
-- | Sets the desired maximum width in characters of <tt>label</tt> to
-- <tt>nChars</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelSetMaxWidthChars :: LabelClass self => self -> Int -> IO ()
-- | Retrieves the desired maximum width of <tt>label</tt>, in characters.
-- See <a>labelSetWidthChars</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelGetMaxWidthChars :: LabelClass self => self -> IO Int
-- | Sets whether the label is in single line mode.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelSetSingleLineMode :: LabelClass self => self -> Bool -> IO ()
-- | Returns whether the label is in single line mode.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelGetSingleLineMode :: LabelClass self => self -> IO Bool
-- | Sets the angle of rotation for the label. An angle of 90 reads from
-- from bottom to top, an angle of 270, from top to bottom. The angle
-- setting for the label is ignored if the label is selectable, wrapped,
-- or ellipsized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelSetAngle :: LabelClass self => self -> Double -> IO ()
-- | Gets the angle of rotation for the label. See gtk_label_set_angle.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
labelGetAngle :: LabelClass self => self -> IO Double
-- | The text of the label.
labelLabel :: (LabelClass self, GlibString string) => Attr self string
-- | The text of the label includes XML markup. See pango_parse_markup().
--
-- Default value: <tt>False</tt>
labelUseMarkup :: LabelClass self => Attr self Bool
-- | If set, an underline in the text indicates the next character should
-- be used for the mnemonic accelerator key.
--
-- Default value: <tt>False</tt>
labelUseUnderline :: LabelClass self => Attr self Bool
-- | The alignment of the lines in the text of the label relative to each
-- other. This does NOT affect the alignment of the label within its
-- allocation.
--
-- Default value: <a>JustifyLeft</a>
labelJustify :: LabelClass self => Attr self Justification
-- | If set, wrap lines if the text becomes too wide.
--
-- Default value: <tt>False</tt>
labelWrap :: LabelClass self => Attr self Bool
-- | If line wrapping is on (see the <a>labelWrap</a> property) this
-- controls how the line wrapping is done. The default is
-- <a>WrapWholeWords</a>, which means wrap on word boundaries.
--
-- Default value: <a>WrapWholeWords</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
labelWrapMode :: LabelClass self => Attr self LayoutWrapMode
-- | Whether the label text can be selected with the mouse.
--
-- Default value: <tt>False</tt>
labelSelectable :: LabelClass self => Attr self Bool
-- | The widget to be activated when the label's mnemonic key is pressed.
labelMnemonicWidget :: (LabelClass self, WidgetClass widget) => ReadWriteAttr self (Maybe Widget) widget
-- | The mnemonic accelerator key for this label.
--
-- Default value: 16777215
labelMnemonicKeyval :: LabelClass self => ReadAttr self Int
-- | A string with _ characters in positions correspond to characters in
-- the text to underline.
--
-- Default value: "\"
labelPattern :: (LabelClass self, GlibString string) => WriteAttr self string
-- | The current position of the insertion cursor in chars.
--
-- Allowed values: >= 0
--
-- Default value: 0
labelCursorPosition :: LabelClass self => ReadAttr self Int
-- | The position of the opposite end of the selection from the cursor in
-- chars.
--
-- Allowed values: >= 0
--
-- Default value: 0
labelSelectionBound :: LabelClass self => ReadAttr self Int
-- | The preferred place to ellipsize the string, if the label does not
-- have enough room to display the entire string, specified as a
-- <a>EllipsizeMode</a>.
--
-- Note that setting this property to a value other than
-- <a>EllipsizeNone</a> has the side-effect that the label requests only
-- enough space to display the ellipsis "...". In particular, this means
-- that ellipsizing labels don't work well in notebook tabs, unless the
-- tab's tab-expand property is set to <tt>True</tt>. Other means to set
-- a label's width are <a>widgetSetSizeRequest</a> and
-- <a>labelSetWidthChars</a>.
--
-- Default value: <a>EllipsizeNone</a>
labelEllipsize :: LabelClass self => Attr self EllipsizeMode
-- | The desired width of the label, in characters. If this property is set
-- to -1, the width will be calculated automatically, otherwise the label
-- will request either 3 characters or the property value, whichever is
-- greater. If the width-chars property is set to a positive value, then
-- the max-width-chars property is ignored.
--
-- Allowed values: >= -1
--
-- Default value: -1
labelWidthChars :: LabelClass self => Attr self Int
-- | Whether the label is in single line mode. In single line mode, the
-- height of the label does not depend on the actual text, it is always
-- set to ascent + descent of the font. This can be an advantage in
-- situations where resizing the label because of text changes would be
-- distracting, e.g. in a statusbar.
--
-- Default value: <tt>False</tt>
labelSingleLineMode :: LabelClass self => Attr self Bool
-- | The angle that the baseline of the label makes with the horizontal, in
-- degrees, measured counterclockwise. An angle of 90 reads from from
-- bottom to top, an angle of 270, from top to bottom. Ignored if the
-- label is selectable, wrapped, or ellipsized.
--
-- Allowed values: [0,360]
--
-- Default value: 0
labelAngle :: LabelClass self => Attr self Double
-- | A list of style attributes to apply to the text of the label.
labelAttributes :: LabelClass self => Attr self [PangoAttribute]
-- | The desired maximum width of the label, in characters. If this
-- property is set to -1, the width will be calculated automatically,
-- otherwise the label will request space for no more than the requested
-- number of characters. If the width-chars property is set to a positive
-- value, then the max-width-chars property is ignored.
--
-- Allowed values: >= -1
--
-- Default value: -1
labelMaxWidthChars :: LabelClass self => Attr self Int
-- | 'lineWrap' property. See <a>labelGetLineWrap</a> and
-- <a>labelSetLineWrap</a>
labelLineWrap :: LabelClass self => Attr self Bool
-- | 'text' property. See <a>labelGetText</a> and <a>labelSetText</a>
labelText :: (LabelClass self, GlibString string) => Attr self string
-- | The <a>labelActiveCurrentLink</a> signal a keybinding signal which
-- gets emitted when the user activates a link in the label.
labelActiveCurrentLink :: LabelClass self => Signal self (IO ())
-- | The <a>labelActiveLink</a> signal is emitted when a URI is activated.
-- Default is to use showURI.
labelActiveLink :: (LabelClass self, GlibString string) => Signal self (string -> IO ())
-- | The <a>labelCopyClipboard</a> signal is a keybinding signal which gets
-- emitted to copy the selection to the clipboard.
labelCopyClipboard :: LabelClass self => Signal self (IO ())
-- | The <a>labelMoveCursor</a> signal is a keybinding signal which gets
-- emitted when the user initiates a cursor movement. If the cursor is
-- not visible in label, this signal causes the viewport to be moved
-- instead.
--
-- Applications should not connect to it, but may emit it with
-- <tt>signalEmitByName</tt> if they need to control the cursor
-- programmatically.
--
-- The default bindings for this signal come in two variants, the variant
-- with the Shift modifier extends the selection, the variant without the
-- Shift modifer does not. There are too many key combinations to list
-- them all here.
--
-- <ul>
-- <li>Arrow keys move by individual characters/lines</li>
-- <li>Ctrl-arrow key combinations move by words/paragraphs</li>
-- <li>Home/End keys move to the ends of the buffer</li>
-- </ul>
labelMoveCursor :: LabelClass self => Signal self (MovementStep -> Int -> Bool -> IO ())
-- | The <a>labelPopulatePopup</a> signal gets emitted before showing the
-- context menu of the label.
--
-- If you need to add items to the context menu, connect to this signal
-- and append your menuitems to the menu.
labelPopulatePopup :: LabelClass self => Signal self (Menu -> IO ())
-- | A widget which indicates progress visually
module Graphics.UI.Gtk.Display.LevelBar
data LevelBar
class WidgetClass o => LevelBarClass o
castToLevelBar :: GObjectClass obj => obj -> LevelBar
gTypeLevelBar :: GType
toLevelBar :: LevelBarClass o => o -> LevelBar
-- | Creates a new <a>LevelBar</a>.
levelBarNew :: IO LevelBar
-- | Sets the value of the "mode" property.
levelBarSetMode :: LevelBarClass self => self -> LevelBarMode -> IO ()
-- | Returns the value of the "mode" property.
levelBarGetMode :: LevelBarClass self => self -> IO LevelBarMode
-- | Add a new offset marker at the position specified by @value
levelBarAddOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> Double -> IO ()
-- | Add a new offset marker at the position specified by @value
levelBarRemoveOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> IO ()
-- | Returns the current fraction of the task that's been completed.
levelBarGetOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> IO Double
-- | Level bars normally grow from top to bottom or left to right. Inverted
-- level bars grow in the opposite direction.
--
-- Default value: (0)
--
-- Since 3.8
levelBarInverted :: LevelBarClass self => Attr self Bool
-- | The "max-value" property determaxes the maximum value of the interval
-- that can be displayed by the bar.
--
-- Allowed values: >= 0
--
-- Default value: 1
levelBarMaxValue :: LevelBarClass self => Attr self Double
-- | The "min-value" property determines the minimum value of the interval
-- that can be displayed by the bar.
--
-- Allowed values: >= 0
--
-- Default value: 0
levelBarMinValue :: LevelBarClass self => Attr self Double
-- | The "value" property determines the currently filled value of the
-- level bar.
--
-- Allowed values: >= 0
--
-- Default value: 0
levelBarValue :: LevelBarClass self => Attr self Double
-- | The "bar-mode" property determines the way LevelBar interprets the
-- value properties to draw the level fill area. Specifically, when the
-- value is LevelBarModeContinous, LevelBar will draw a single block
-- representing the current value in that area; when the value is
-- LevelBarModeDiscrete, the widget will draw a succession of separate
-- blocks filling the draw area, with the number of blocks being equal to
-- the units separating the integral roundings of "min-value" and
-- "max-value".
--
-- Default value: LevelBarModeContinuous
levelBarMode :: LevelBarClass self => Attr self LevelBarMode
-- | A widget which indicates progress visually
module Graphics.UI.Gtk.Display.ProgressBar
data ProgressBar
class WidgetClass o => ProgressBarClass o
castToProgressBar :: GObjectClass obj => obj -> ProgressBar
gTypeProgressBar :: GType
toProgressBar :: ProgressBarClass o => o -> ProgressBar
-- | Creates a new <a>ProgressBar</a>.
progressBarNew :: IO ProgressBar
-- | Indicates that some progress is made, but you don't know how much.
-- Causes the progress bar to enter "activity mode", where a block
-- bounces back and forth. Each call to <a>progressBarPulse</a> causes
-- the block to move by a little bit (the amount of movement per pulse is
-- determined by <a>progressBarSetPulseStep</a>).
progressBarPulse :: ProgressBarClass self => self -> IO ()
-- | Causes the given <tt>text</tt> to appear superimposed on the progress
-- bar.
progressBarSetText :: (ProgressBarClass self, GlibString string) => self -> string -> IO ()
-- | Causes the progress bar to "fill in" the given fraction of the bar.
-- The fraction should be between 0.0 and 1.0, inclusive.
progressBarSetFraction :: ProgressBarClass self => self -> Double -> IO ()
-- | Sets the fraction of total progress bar length to move the bouncing
-- block for each call to <a>progressBarPulse</a>.
progressBarSetPulseStep :: ProgressBarClass self => self -> Double -> IO ()
-- | Returns the current fraction of the task that's been completed.
progressBarGetFraction :: ProgressBarClass self => self -> IO Double
-- | Retrieves the pulse step set with <a>progressBarSetPulseStep</a>
progressBarGetPulseStep :: ProgressBarClass self => self -> IO Double
-- | Retrieves the text displayed superimposed on the progress bar, if any,
-- otherwise <tt>Nothing</tt>.
progressBarGetText :: (ProgressBarClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the mode used to ellipsize (add an ellipsis: "...") the text if
-- there is not enough space to render the entire string.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
progressBarSetEllipsize :: ProgressBarClass self => self -> EllipsizeMode -> IO ()
-- | Returns the ellipsizing position of the progressbar. See
-- <a>progressBarSetEllipsize</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
progressBarGetEllipsize :: ProgressBarClass self => self -> IO EllipsizeMode
-- | The number of discrete blocks in a progress bar (when shown in the
-- discrete style).
--
-- Allowed values: >= 2
--
-- Default value: 10
progressBarDiscreteBlocks :: ProgressBarClass self => Attr self Int
-- | The fraction of total work that has been completed.
--
-- Allowed values: [0,1]
--
-- Default value: 0
progressBarFraction :: ProgressBarClass self => Attr self Double
-- | The fraction of total progress to move the bouncing block when pulsed.
--
-- Allowed values: [0,1]
--
-- Default value: 0.1
progressBarPulseStep :: ProgressBarClass self => Attr self Double
-- | Text to be displayed in the progress bar.
--
-- Default value: "%P %%"
progressBarText :: (ProgressBarClass self, GlibString string) => ReadWriteAttr self (Maybe string) string
-- | The preferred place to ellipsize the string, if the progressbar does
-- not have enough room to display the entire string, specified as a
-- <a>EllipsizeMode</a>.
--
-- Note that setting this property to a value other than
-- <a>EllipsizeNone</a> has the side-effect that the progressbar requests
-- only enough space to display the ellipsis "...". Another means to set
-- a progressbar's width is <a>widgetSetSizeRequest</a>.
--
-- Default value: <a>EllipsizeNone</a>
progressBarEllipsize :: ProgressBarClass self => Attr self EllipsizeMode
-- | Report messages of minor importance to the user
module Graphics.UI.Gtk.Display.Spinner
data Spinner
class DrawingAreaClass o => SpinnerClass o
castToSpinner :: GObjectClass obj => obj -> Spinner
gTypeSpinner :: GType
toSpinner :: SpinnerClass o => o -> Spinner
-- | Returns a new spinner widget. Not yet started.
spinnerNew :: IO Spinner
-- | Starts the animation of the spinner.
spinnerStart :: SpinnerClass spinner => spinner -> IO ()
-- | Stops the animation of the spinner.
spinnerStop :: SpinnerClass spinner => spinner -> IO ()
-- | Whether the spinner is active.
--
-- Default value: <a>False</a>
spinnerActive :: SpinnerClass spinner => Attr spinner Bool
-- | Report messages of minor importance to the user
module Graphics.UI.Gtk.Display.Statusbar
data Statusbar
class HBoxClass o => StatusbarClass o
castToStatusbar :: GObjectClass obj => obj -> Statusbar
gTypeStatusbar :: GType
toStatusbar :: StatusbarClass o => o -> Statusbar
type ContextId = CUInt
data MessageId
-- | Creates a new <a>Statusbar</a> ready for messages.
statusbarNew :: IO Statusbar
-- | Returns a new context identifier, given a description of the actual
-- context. This id can be used to later remove entries form the
-- Statusbar.
statusbarGetContextId :: (StatusbarClass self, GlibString string) => self -> string -> IO ContextId
-- | Pushes a new message onto the Statusbar's stack. It will be displayed
-- as long as it is on top of the stack.
statusbarPush :: (StatusbarClass self, GlibString string) => self -> ContextId -> string -> IO MessageId
-- | Removes the topmost message that has the correct context.
statusbarPop :: StatusbarClass self => self -> ContextId -> IO ()
-- | Forces the removal of a message from a statusbar's stack. The exact
-- <tt>contextId</tt> and <tt>messageId</tt> must be specified.
statusbarRemove :: StatusbarClass self => self -> ContextId -> MessageId -> IO ()
-- | Retrieves the box containing the label widget.
statusbarGetMessageArea :: StatusbarClass self => self -> IO Box
-- | Forces the removal of all messages from a statusbar's stack with the
-- exact <tt>contextId</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
statusbarRemoveAll :: StatusbarClass self => self -> ContextId -> IO ()
-- | Is emitted whenever a new message is popped off a statusbar's stack.
textPopped :: (StatusbarClass self, GlibString string) => Signal self (ContextId -> string -> IO ())
-- | Is emitted whenever a new message gets pushed onto a statusbar's
-- stack.
textPushed :: (StatusbarClass self, GlibString string) => Signal self (ContextId -> string -> IO ())
-- | Completion functionality for <a>Entry</a>
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Entry.EntryCompletion
data EntryCompletion
class GObjectClass o => EntryCompletionClass o
castToEntryCompletion :: GObjectClass obj => obj -> EntryCompletion
gTypeEntryCompletion :: GType
toEntryCompletion :: EntryCompletionClass o => o -> EntryCompletion
-- | Creates a new <a>EntryCompletion</a> object.
entryCompletionNew :: IO EntryCompletion
-- | Gets the entry <tt>completion</tt> has been attached to.
entryCompletionGetEntry :: EntryCompletion -> IO (Maybe Entry)
-- | Sets the model for a <a>EntryCompletion</a>. If <tt>completion</tt>
-- already has a model set, it will remove it before setting the new
-- model. If model is <tt>Nothing</tt>, then it will unset the model.
entryCompletionSetModel :: TreeModelClass model => EntryCompletion -> Maybe model -> IO ()
-- | Returns the model the <a>EntryCompletion</a> is using as data source.
-- Returns <tt>Nothing</tt> if the model is unset.
entryCompletionGetModel :: EntryCompletion -> IO (Maybe TreeModel)
-- | Convenience function for setting up the most used case of this code: a
-- completion list with just strings. This function will set up
-- <tt>completion</tt> to have a list displaying all (and just) strings
-- in the completion list, and to get those strings from <tt>model</tt>.
-- This functions creates and adds a <a>CellRendererText</a> which
-- retrieves its content from the given model.
entryCompletionSetTextModel :: (TreeModelClass (model string), TypedTreeModelClass model, GlibString string) => EntryCompletion -> model string -> IO ()
-- | Sets the match function for <tt>completion</tt> to be <tt>func</tt>.
-- The match function is used to determine if a row should or should not
-- be in the completion list.
--
-- <ul>
-- <li>The passed-in function decides whether the row indicated by the
-- <a>TreeIter</a> matches a given key, and should be displayed as a
-- possible completion for key. Note that the key is normalized and
-- case-folded. Normalization will standardizing such issues as whether a
-- character with an accent is represented as a base character and
-- combining accent or as a single precomposed character. If this is not
-- appropriate you can extract the original text from the entry.</li>
-- </ul>
entryCompletionSetMatchFunc :: GlibString string => EntryCompletion -> (string -> TreeIter -> IO Bool) -> IO ()
-- | Requires the length of the search key for <tt>completion</tt> to be at
-- least <tt>length</tt>. This is useful for long lists, where completing
-- using a small key takes a lot of time and will come up with
-- meaningless results anyway (ie, a too large dataset).
entryCompletionSetMinimumKeyLength :: EntryCompletion -> Int -> IO ()
-- | Returns the minimum key length as set for <tt>completion</tt>.
entryCompletionGetMinimumKeyLength :: EntryCompletion -> IO Int
-- | Requests a completion operation, or in other words a refiltering of
-- the current list with completions, using the current key. The
-- completion list view will be updated accordingly.
entryCompletionComplete :: EntryCompletion -> IO ()
-- | Inserts an action in <tt>completion</tt>'s action item list at
-- position <tt>index</tt> with text <tt>text</tt>. If you want the
-- action item to have markup, use
-- <a>entryCompletionInsertActionMarkup</a>.
entryCompletionInsertActionText :: GlibString string => EntryCompletion -> Int -> string -> IO ()
-- | Inserts an action in <tt>completion</tt>'s action item list at
-- position <tt>index</tt> with markup <tt>markup</tt>.
entryCompletionInsertActionMarkup :: GlibString string => EntryCompletion -> Int -> string -> IO ()
-- | Deletes the action at <tt>index</tt> from <tt>completion</tt>'s action
-- list.
entryCompletionDeleteAction :: EntryCompletion -> Int -> IO ()
-- | Convenience function for setting up the most used case of this code: a
-- completion list with just strings. This function will set up
-- <tt>completion</tt> to have a list displaying all (and just) strings
-- in the completion list, and to get those strings from <tt>column</tt>
-- in the model of <tt>completion</tt>.
--
-- This functions creates and adds a <a>CellRendererText</a> for the
-- selected column.
entryCompletionSetTextColumn :: GlibString string => EntryCompletion -> ColumnId row string -> IO ()
-- | Requests a prefix insertion.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionInsertPrefix :: EntryCompletion -> IO ()
-- | Returns the column in the model of the completion to get strings from.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionGetTextColumn :: GlibString string => EntryCompletion -> IO (ColumnId row string)
-- | Sets whether the common prefix of the possible completions should be
-- automatically inserted in the entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionSetInlineCompletion :: EntryCompletion -> Bool -> IO ()
-- | Returns whether the common prefix of the possible completions should
-- be automatically inserted in the entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionGetInlineCompletion :: EntryCompletion -> IO Bool
-- | Sets whether the completions should be presented in a popup window.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionSetPopupCompletion :: EntryCompletion -> Bool -> IO ()
-- | Returns whether the completions should be presented in a popup window.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
entryCompletionGetPopupCompletion :: EntryCompletion -> IO Bool
-- | Sets whether the completion popup window will be resized to be the
-- same width as the entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
entryCompletionSetPopupSetWidth :: EntryCompletion -> Bool -> IO ()
-- | Returns whether the completion popup window will be resized to the
-- width of the entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
entryCompletionGetPopupSetWidth :: EntryCompletion -> IO Bool
-- | Sets whether the completion popup window will appear even if there is
-- only a single match. You may want to set this to <tt>False</tt> if you
-- are using inline completion.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
entryCompletionSetPopupSingleMatch :: EntryCompletion -> Bool -> IO ()
-- | Returns whether the completion popup window will appear even if there
-- is only a single match.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
entryCompletionGetPopupSingleMatch :: EntryCompletion -> IO Bool
-- | The model to find matches in.
entryCompletionModel :: TreeModelClass model => ReadWriteAttr EntryCompletion (Maybe TreeModel) (Maybe model)
-- | Minimum length of the search key in order to look up matches.
--
-- Allowed values: >= 0
--
-- Default value: 1
entryCompletionMinimumKeyLength :: Attr EntryCompletion Int
-- | The column of the model containing the strings.
--
-- Default value: <a>invalidColumnId</a>
entryCompletionTextColumn :: GlibString string => Attr EntryCompletion (ColumnId row string)
-- | Determines whether the common prefix of the possible completions
-- should be inserted automatically in the entry. Note that this requires
-- text-column to be set, even if you are using a custom match function.
--
-- Default value: <tt>False</tt>
entryCompletionInlineCompletion :: Attr EntryCompletion Bool
-- | Determines whether the possible completions should be shown in a popup
-- window.
--
-- Default value: <tt>True</tt>
entryCompletionPopupCompletion :: Attr EntryCompletion Bool
-- | Determines whether the completions popup window will be resized to the
-- width of the entry.
--
-- Default value: <tt>True</tt>
entryCompletionPopupSetWidth :: Attr EntryCompletion Bool
-- | Determines whether the completions popup window will shown for a
-- single possible completion. You probably want to set this to
-- <tt>False</tt> if you are using inline completion.
--
-- Default value: <tt>True</tt>
entryCompletionPopupSingleMatch :: Attr EntryCompletion Bool
-- | Gets emitted when the inline autocompletion is triggered. The default
-- behaviour is to make the entry display the whole prefix and select the
-- newly inserted part.
--
-- Applications may connect to this signal in order to insert only a
-- smaller part of the <tt>prefix</tt> into the entry - e.g. the entry
-- used in the <a>FileChooser</a> inserts only the part of the prefix up
-- to the next '/'.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
insertPrefix :: (EntryCompletionClass self, GlibString string) => Signal self (string -> IO Bool)
-- | Gets emitted when an action is activated.
completionActionActivated :: EntryCompletionClass self => Signal self (Int -> IO ())
-- | Gets emitted when a match from the list is selected. The default
-- behaviour is to replace the contents of the entry with the contents of
-- the text column in the row pointed to by <tt>iter</tt>.
matchSelected :: EntryCompletionClass self => Signal self (TreeModel -> TreeIter -> IO Bool)
-- | A horizontal slider widget for selecting a value from a range
module Graphics.UI.Gtk.Entry.HScale
data HScale
class ScaleClass o => HScaleClass o
castToHScale :: GObjectClass obj => obj -> HScale
gTypeHScale :: GType
toHScale :: HScaleClass o => o -> HScale
-- | Creates a new <a>HScale</a>.
hScaleNew :: Adjustment -> IO HScale
-- | Creates a new horizontal scale widget that lets the user input a
-- number between <tt>min</tt> and <tt>max</tt> (including <tt>min</tt>
-- and <tt>max</tt>) with the increment <tt>step</tt>. <tt>step</tt> must
-- be nonzero; it's the distance the slider moves when using the arrow
-- keys to adjust the scale value.
--
-- Note that the way in which the precision is derived works best if
-- <tt>step</tt> is a power of ten. If the resulting precision is not
-- suitable for your needs, use <a>scaleSetDigits</a> to correct it.
hScaleNewWithRange :: Double -> Double -> Double -> IO HScale
-- | A vertical slider widget for selecting a value from a range
module Graphics.UI.Gtk.Entry.VScale
data VScale
class ScaleClass o => VScaleClass o
castToVScale :: GObjectClass obj => obj -> VScale
gTypeVScale :: GType
toVScale :: VScaleClass o => o -> VScale
-- | Creates a new <a>VScale</a>.
vScaleNew :: Adjustment -> IO VScale
-- | Creates a new vertical scale widget that lets the user input a number
-- between <tt>min</tt> and <tt>max</tt> (including <tt>min</tt> and
-- <tt>max</tt>) with the increment <tt>step</tt>. <tt>step</tt> must be
-- nonzero; it's the distance the slider moves when using the arrow keys
-- to adjust the scale value.
--
-- Note that the way in which the precision is derived works best if
-- <tt>step</tt> is a power of ten. If the resulting precision is not
-- suitable for your needs, use <a>scaleSetDigits</a> to correct it.
vScaleNewWithRange :: Double -> Double -> Double -> IO VScale
-- | Base class for widgets which visualize an adjustment
module Graphics.UI.Gtk.Abstract.Range
data Range
class WidgetClass o => RangeClass o
castToRange :: GObjectClass obj => obj -> Range
gTypeRange :: GType
toRange :: RangeClass o => o -> Range
-- | Get the <a>Adjustment</a> which is the "model" object for
-- <a>Range</a>. See <a>rangeSetAdjustment</a> for details.
rangeGetAdjustment :: RangeClass self => self -> IO Adjustment
-- | Sets the adjustment to be used as the "model" object for this range
-- widget. The adjustment indicates the current range value, the minimum
-- and maximum range values, the step/page increments used for
-- keybindings and scrolling, and the page size. The page size is
-- normally 0 for <a>Scale</a> and nonzero for <a>Scrollbar</a>, and
-- indicates the size of the visible area of the widget being scrolled.
-- The page size affects the size of the scrollbar slider.
rangeSetAdjustment :: RangeClass self => self -> Adjustment -> IO ()
-- | Gets the value set by <a>rangeSetInverted</a>.
rangeGetInverted :: RangeClass self => self -> IO Bool
-- | Ranges normally move from lower to higher values as the slider moves
-- from top to bottom or left to right. Inverted ranges have higher
-- values at the top or on the right rather than on the bottom or left.
rangeSetInverted :: RangeClass self => self -> Bool -> IO ()
-- | Gets the current value of the range.
rangeGetValue :: RangeClass self => self -> IO Double
-- | Sets the current value of the range; if the value is outside the
-- minimum or maximum range values, it will be clamped to fit inside
-- them. The range emits the <a>valueChanged</a> signal if the value
-- changes.
rangeSetValue :: RangeClass self => self -> Double -> IO ()
-- | Sets the step and page sizes for the range. The step size is used when
-- the user clicks the <a>Scrollbar</a> arrows or moves <a>Scale</a> via
-- arrow keys. The page size is used for example when moving via Page Up
-- or Page Down keys.
rangeSetIncrements :: RangeClass self => self -> Double -> Double -> IO ()
-- | Sets the allowable values in the <a>Range</a>, and clamps the range
-- value to be between <tt>min</tt> and <tt>max</tt>. (If the range has a
-- non-zero page size, it is clamped between <tt>min</tt> and
-- <tt>max</tt> - page-size.)
rangeSetRange :: RangeClass self => self -> Double -> Double -> IO ()
-- | Scrolling type
data ScrollType
ScrollNone :: ScrollType
ScrollJump :: ScrollType
ScrollStepBackward :: ScrollType
ScrollStepForward :: ScrollType
ScrollPageBackward :: ScrollType
ScrollPageForward :: ScrollType
ScrollStepUp :: ScrollType
ScrollStepDown :: ScrollType
ScrollPageUp :: ScrollType
ScrollPageDown :: ScrollType
ScrollStepLeft :: ScrollType
ScrollStepRight :: ScrollType
ScrollPageLeft :: ScrollType
ScrollPageRight :: ScrollType
ScrollStart :: ScrollType
ScrollEnd :: ScrollType
-- | Determines how Gtk+ handles the sensitivity of stepper arrows at the
-- end of range widgets.
--
-- <ul>
-- <li><a>SensitivityAuto</a>: the arrow is made insensitive if the thumb
-- is at the end</li>
-- <li><a>SensitivityOn</a>: the arrow is alwasy sensitive</li>
-- <li><a>SensitivityOff</a>: the arrow is always insensitive</li>
-- </ul>
data SensitivityType
SensitivityAuto :: SensitivityType
SensitivityOn :: SensitivityType
SensitivityOff :: SensitivityType
-- | Sets the sensitivity policy for the stepper that points to the 'lower'
-- end of the <tt>Range'</tt>s adjustment.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
rangeSetLowerStepperSensitivity :: RangeClass self => self -> SensitivityType -> IO ()
-- | Gets the sensitivity policy for the stepper that points to the 'lower'
-- end of the <tt>Range'</tt>s adjustment.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
rangeGetLowerStepperSensitivity :: RangeClass self => self -> IO SensitivityType
-- | Sets the sensitivity policy for the stepper that points to the 'upper'
-- end of the <tt>Range'</tt>s adjustment.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
rangeSetUpperStepperSensitivity :: RangeClass self => self -> SensitivityType -> IO ()
-- | Gets the sensitivity policy for the stepper that points to the 'upper'
-- end of the <tt>Range'</tt>s adjustment.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
rangeGetUpperStepperSensitivity :: RangeClass self => self -> IO SensitivityType
-- | This function is useful mainly for <a>Range</a> subclasses.
--
-- See <a>rangeSetMinSliderSize</a>.
rangeGetMinSliderSize :: RangeClass self => self -> IO Int
-- | This function returns the area that contains the range's trough and
-- its steppers, in <a>DrawWindow</a> coordinates.
--
-- This function is useful mainly for <a>Range</a> subclasses.
rangeGetRangeRect :: RangeClass self => self -> IO Rectangle
-- | This function returns sliders range along the long dimension, in
-- <a>DrawWindow</a> coordinates.
--
-- This function is useful mainly for <a>Range</a> subclasses.
rangeGetSliderRange :: RangeClass self => self -> IO (Maybe (Int, Int))
-- | This function is useful mainly for <a>Range</a> subclasses.
--
-- See <a>rangeSetSliderSizeFixed</a>.
rangeGetSliderSizeFixed :: RangeClass self => self -> IO Bool
-- | Sets the minimum size of the range's slider.
--
-- This function is useful mainly for <a>Range</a> subclasses.
rangeSetMinSliderSize :: RangeClass self => self -> Bool -> IO ()
-- | Sets whether the range's slider has a fixed size, or a size that
-- depends on it's adjustment's page size.
--
-- This function is useful mainly for <a>Range</a> subclasses.
rangeSetSliderSizeFixed :: RangeClass self => self -> Bool -> IO ()
-- | The <a>Adjustment</a> that contains the current value of this range
-- object.
rangeAdjustment :: RangeClass self => Attr self Adjustment
-- | Invert direction slider moves to increase range value.
--
-- Default value: <tt>False</tt>
rangeInverted :: RangeClass self => Attr self Bool
-- | The sensitivity policy for the stepper that points to the adjustment's
-- lower side.
--
-- Default value: <a>SensitivityAuto</a>
rangeLowerStepperSensitivity :: RangeClass self => Attr self SensitivityType
-- | The sensitivity policy for the stepper that points to the adjustment's
-- upper side.
--
-- Default value: <a>SensitivityAuto</a>
rangeUpperStepperSensitivity :: RangeClass self => Attr self SensitivityType
-- | 'value' property. See <a>rangeGetValue</a> and <a>rangeSetValue</a>
rangeValue :: RangeClass self => Attr self Double
-- | Wheter range's slikder has a fixed size, or a size that depends on
-- it's adjustment's page size.
rangeSliderSizeFixed :: RangeClass self => Attr self Bool
-- | Get/Set sliders range along the long dimension, in <a>DrawWindow</a>
-- coordinates.
rangeMinSliderSize :: RangeClass self => ReadWriteAttr self Int Bool
adjustBounds :: RangeClass self => Signal self (Double -> IO ())
-- | Emitted when the range value changes.
valueChanged :: RangeClass self => Signal self (IO ())
-- | The <a>changeValue</a> signal is emitted when a scroll action is
-- performed on a range. It allows an application to determine the type
-- of scroll event that occurred and the resultant new value. The
-- application can handle the event itself and return <tt>True</tt> to
-- prevent further processing. Or, by returning <tt>False</tt>, it can
-- pass the event to other handlers until the default Gtk+ handler is
-- reached.
--
-- The value parameter is unrounded. An application that overrides the
-- <a>changeValue</a> signal is responsible for clamping the value to the
-- desired number of decimal digits.
--
-- It is not possible to use delayed update policies in an overridden
-- <a>changeValue</a> handler.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
changeValue :: RangeClass self => Signal self (ScrollType -> Double -> IO Bool)
instance GHC.Show.Show Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Classes.Eq Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Enum.Bounded Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Enum.Enum Graphics.UI.Gtk.Abstract.Range.SensitivityType
-- | A button which pops up a scale
--
-- <ul>
-- <li>Module available since Gtk+ version 2.12</li>
-- </ul>
module Graphics.UI.Gtk.Buttons.ScaleButton
data ScaleButton
class ButtonClass o => ScaleButtonClass o
castToScaleButton :: GObjectClass obj => obj -> ScaleButton
toScaleButton :: ScaleButtonClass o => o -> ScaleButton
-- | Creates a <a>ScaleButton</a>, with a range between <tt>min</tt> and
-- <tt>max</tt>, with a stepping of <tt>step</tt>.
scaleButtonNew :: GlibString string => IconSize -> Double -> Double -> Double -> [string] -> IO ScaleButton
-- | Sets the icons to be used by the scale button. For details, see the
-- "icons" property.
scaleButtonSetIcons :: (ScaleButtonClass self, GlibString string) => self -> [string] -> IO ()
-- | Retrieves the popup of the <a>ScaleButton</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
scaleButtonGetPopup :: ScaleButtonClass self => self -> IO Widget
-- | Retrieves the plus button of the <a>ScaleButton</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
scaleButtonGetPlusButton :: ScaleButtonClass self => self -> IO Widget
-- | Retrieves the minus button of the <a>ScaleButton</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
scaleButtonGetMinusButton :: ScaleButtonClass self => self -> IO Widget
-- | The value of the scale.
--
-- Default value: 0
scaleButtonValue :: ScaleButtonClass self => Attr self Double
-- | The icon size.
--
-- Default value: '<tt>IconSizeSmallToolbar'</tt>
scaleButtonSize :: ScaleButtonClass self => Attr self IconSize
-- | The <a>Adjustment</a> that contains the current value of this scale
-- button object.
scaleButtonAdjustment :: ScaleButtonClass self => Attr self Adjustment
-- | The names of the icons to be used by the scale button. The first item
-- in the array will be used in the button when the current value is the
-- lowest value, the second item for the highest value. All the
-- subsequent icons will be used for all the other values, spread evenly
-- over the range of values.
--
-- If there's only one icon name in the icons array, it will be used for
-- all the values. If only two icon names are in the icons array, the
-- first one will be used for the bottom 50% of the scale, and the second
-- one for the top 50%.
--
-- It is recommended to use at least 3 icons so that the
-- <a>ScaleButton</a> reflects the current value of the scale better for
-- the users.
--
-- Since 2.12
scaleButtonIcons :: (ScaleButtonClass self, GlibString string) => ReadWriteAttr self [string] (Maybe [string])
-- | The <tt>popdown</tt> signal is a keybinding signal which gets emitted
-- to popdown the scale widget.
--
-- The default binding for this signal is Escape.
scaleButtonPopdown :: ScaleButtonClass self => Signal self (IO ())
-- | The <tt>popup</tt> signal is a keybinding signal which gets emitted to
-- popup the scale widget.
--
-- The default bindings for this signal are Space, Enter and Return.
scaleButtonPopup :: ScaleButtonClass self => Signal self (IO ())
-- | The <a>scaleButtonValueChanged</a> signal is emitted when the value
-- field has changed.
scaleButtonValueChanged :: ScaleButtonClass self => Signal self (Double -> IO ())
-- | Gtk specific functions to for rendering with Cairo.
--
-- Cairo is a graphics library that supports vector graphics and image
-- compositing that can be used with Gdk. The Cairo API is an addition to
-- Gdk/Gtk (rather than a replacement). Cairo rendering can be performed
-- on any <a>Drawable</a> by calling <tt>renderWithDrawable</tt>. The
-- functions in this module provide ways of drawing Gtk specific
-- elements, such as <a>Pixbuf</a>s or text laid out with Pango.
--
-- All functions in this module are only available in Gtk 2.8 or higher.
module Graphics.UI.Gtk.Cairo
-- | Retrieve the default <a>FontMap</a> that contains a list of available
-- fonts.
--
-- <ul>
-- <li>One purpose of creating an explicit <a>FontMap</a> is to set a
-- different scaling factor between font sizes (in points, pt) and Cairo
-- units (in pixels). The default is 96dpi (dots per inch) which
-- corresponds to an average screen as output medium. A 10pt font will
-- therefore scale to <tt>10pt * (1/72 pt/inch) * (96 pixel/inch) = 13.3
-- pixel</tt>.</li>
-- </ul>
cairoFontMapGetDefault :: IO FontMap
-- | Set the scaling factor between font size and Cairo units.
--
-- <ul>
-- <li>Value is in dots per inch (dpi). See
-- <a>cairoFontMapGetDefault</a>.</li>
-- </ul>
cairoFontMapSetResolution :: FontMap -> Double -> IO ()
-- | Ask for the scaling factor between font size and Cairo units.
--
-- <ul>
-- <li>Value is in dots per inch (dpi). See
-- <a>cairoFontMapGetDefault</a>.</li>
-- </ul>
cairoFontMapGetResolution :: FontMap -> IO Double
-- | Create a <a>PangoContext</a>.
--
-- <ul>
-- <li>If no <a>FontMap</a> is specified, it uses the default
-- <a>FontMap</a> that has a scaling factor of 96 dpi. See
-- <a>cairoFontMapGetDefault</a>.</li>
-- </ul>
cairoCreateContext :: Maybe FontMap -> IO PangoContext
-- | Set the scaling factor of the <a>PangoContext</a>.
--
-- <ul>
-- <li>Supplying zero or a negative value will result in the resolution
-- value of the underlying <a>FontMap</a> to be used. See also
-- <a>cairoFontMapGetDefault</a>.</li>
-- </ul>
cairoContextSetResolution :: PangoContext -> Double -> IO ()
-- | Ask for the scaling factor of the <a>PangoContext</a>.
--
-- <ul>
-- <li>A negative value will be returned if no resolution has been set.
-- See <a>cairoContextSetResolution</a>.</li>
-- </ul>
cairoContextGetResolution :: PangoContext -> IO Double
-- | Set Cairo font options.
--
-- <ul>
-- <li>Apply the given font options to the context. Values set through
-- this functions override those that are set by
-- <a>updateContext</a>.</li>
-- </ul>
cairoContextSetFontOptions :: PangoContext -> FontOptions -> IO ()
-- | Retrieve Cairo font options.
cairoContextGetFontOptions :: PangoContext -> IO FontOptions
-- | Compute a bounding box in user coordinates covering the area inside
-- the current clip. It rounds the bounding box to integer coordinates.
-- Returns <a>Nothing</a> indicating if a clip area doesn't exist.
getClipRectangle :: Render (Maybe Rectangle)
-- | Creates a Cairo context for drawing to a <a>DrawWindow</a>.
renderWithDrawWindow :: DrawWindowClass drawWindow => drawWindow -> Render a -> IO a
-- | Adds the given region to the current path of the <a>Render</a>
-- context.
region :: Region -> Render ()
-- | Sets the specified <a>Color</a> as the source color of the
-- <a>Render</a> context.
setSourceColor :: Color -> Render ()
-- | Sets the given pixbuf as the source pattern for the Cairo context. The
-- pattern has an extend mode of <a>ExtendNone</a> and is aligned so that
-- the origin of pixbuf is <tt>(x, y)</tt>.
setSourcePixbuf :: Pixbuf -> Double -> Double -> Render ()
-- | Adds the given region to the current path of the <a>Render</a>
-- context.
rectangle :: Rectangle -> Render ()
-- | Update a <a>PangoContext</a> with respect to changes in a
-- <a>Render</a> environment.
--
-- <ul>
-- <li>The <a>PangoContext</a> must have been created with
-- <a>cairoCreateContext</a>. Any <a>PangoLayout</a>s that have been
-- previously created with this context have to be update using
-- <a>layoutContextChanged</a>.</li>
-- </ul>
updateContext :: PangoContext -> Render ()
-- | Create a <a>PangoLayout</a> within a <a>Render</a> context.
--
-- <ul>
-- <li>This is a convenience function that creates a new
-- <a>PangoContext</a> within this <a>Render</a> context and creates a
-- new <a>PangoLayout</a>. If the transformation or target surface of the
-- <a>Render</a> context change, <a>updateLayout</a> has to be called on
-- this layout.</li>
-- </ul>
createLayout :: GlibString string => string -> Render PangoLayout
-- | Propagate changed to the <a>Render</a> context to a
-- <a>PangoLayout</a>.
--
-- <ul>
-- <li>This is a convenience function that calls <a>updateContext</a> on
-- the (private) <a>PangoContext</a> of the given layout to propagate
-- changes from the <a>Render</a> context to the <a>PangoContext</a> and
-- then calls <a>layoutContextChanged</a> on the layout. This function is
-- necessary for <a>createLayout</a> since a private <a>PangoContext</a>
-- is created that is not visible to the user.</li>
-- </ul>
updateLayout :: PangoLayout -> Render ()
-- | Draw a glyph string.
--
-- <ul>
-- <li>The origin of the glyphs (the left edge of the baseline) will be
-- drawn at the current point of the cairo context.</li>
-- </ul>
showGlyphString :: GlyphItem -> Render ()
-- | Draw a <a>LayoutLine</a>.
--
-- <ul>
-- <li>The origin of the glyphs (the left edge of the baseline) will be
-- drawn at the current point of the cairo context.</li>
-- </ul>
showLayoutLine :: LayoutLine -> Render ()
-- | Draw a <a>PangoLayout</a>.
--
-- <ul>
-- <li>The top-left corner of the <a>PangoLayout</a> will be drawn at the
-- current point of the cairo context.</li>
-- </ul>
showLayout :: PangoLayout -> Render ()
-- | Add the extent of a glyph string to the current path.
--
-- <ul>
-- <li>The origin of the glyphs (the left edge of the line) will be at
-- the current point of the cairo context.</li>
-- </ul>
glyphStringPath :: GlyphItem -> Render ()
-- | Add the extent of a layout line to the current path.
--
-- <ul>
-- <li>The origin of the glyphs (the left edge of the line) will be at
-- the current point of the cairo context.</li>
-- </ul>
layoutLinePath :: LayoutLine -> Render ()
-- | Add the layout to the current path.
--
-- <ul>
-- <li>Adds the top-left corner of the text to the current path.
-- Afterwards, the path position is at the bottom-right corner of the
-- <a>PangoLayout</a>.</li>
-- </ul>
layoutPath :: PangoLayout -> Render ()
-- | Toplevel for embedding into other processes
module Graphics.UI.Gtk.Embedding.Plug
data Plug
class WindowClass o => PlugClass o
castToPlug :: GObjectClass obj => obj -> Plug
gTypePlug :: GType
toPlug :: PlugClass o => o -> Plug
-- | The identifer of a window of the underlying windowing system.
data NativeWindowId
-- | Creates a new plug widget inside the <a>Socket</a> identified by
-- <tt>socketId</tt>. If <tt>socketId</tt> is <tt>Nothing</tt>, the plug
-- is left "unplugged" and can later be plugged into a <a>Socket</a> by
-- <a>socketAddId</a>.
--
-- If a NativeWindowId is supplied the foreign application window will
-- immediatly appear in this <a>Plug</a> once it is shown. If
-- <tt>Nothing</tt> is passed then a <a>NativeWindowId</a> can be
-- extracted from this <a>Plug</a> using <a>plugGetId</a> and be passed
-- to the application which is to be embedded.
plugNew :: Maybe NativeWindowId -> IO Plug
-- | Create a new plug widget inside the <a>Socket</a> identified by
-- socket_id.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
plugNewForDisplay :: Display -> Maybe NativeWindowId -> IO Plug
-- | Gets the window ID of a <a>Plug</a> widget, which can then be used to
-- embed this window inside another window, for instance with
-- <a>socketAddId</a>.
plugGetId :: PlugClass self => self -> IO NativeWindowId
-- | Determines whether the plug is embedded in a socket.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
plugGetEmbedded :: PlugClass self => self -> IO Bool
-- | Retrieves the socket the plug is embedded in.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
plugGetSocketWindow :: PlugClass self => self -> IO (Maybe DrawWindow)
-- | <tt>True</tt> if the plug is embedded in a socket.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
plugAttrEmbedded :: PlugClass self => ReadAttr self Bool
-- | The window of the socket the plug is embedded in.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
plugAttrSocketWindow :: PlugClass self => ReadAttr self (Maybe DrawWindow)
-- | Gets emitted when the plug becomes embedded in a socket and when the
-- embedding ends.
plugEmbedded :: PlugClass self => Signal self (IO ())
-- | Container for widgets from other processes
module Graphics.UI.Gtk.Embedding.Socket
data Socket
class ContainerClass o => SocketClass o
castToSocket :: GObjectClass obj => obj -> Socket
gTypeSocket :: GType
toSocket :: SocketClass o => o -> Socket
-- | The identifer of a window of the underlying windowing system.
data NativeWindowId
-- | Create a new empty <a>Socket</a>.
--
-- <a>Socket</a> is a <a>Container</a> for foreign applications that
-- support the XEMBED protocol. To connect two applications the
-- <a>NativeWindowId</a> has to be passed either from this socket to the
-- other application's <a>Plug</a> or vice versa.
socketNew :: IO Socket
socketHasPlug :: SocketClass s => s -> IO Bool
-- | Adds an XEMBED client, such as a <a>Plug</a>, to the <a>Socket</a>.
-- The client may be in the same process or in a different process.
--
-- To embed a <a>Plug</a> in a <a>Socket</a>, you can either create the
-- <a>Plug</a> with <tt>Graphics.UI.Gtk.Embedding.Plug.plugNew
-- Nothing</tt>, call <a>plugGetId</a> to get the window ID of the plug,
-- and then pass that to the <a>socketAddId</a>, or you can call
-- <a>socketGetId</a> to get the window ID for the socket, and call
-- <a>plugNew</a> passing in that ID.
--
-- The <a>Socket</a> must have already be added into a toplevel window
-- before you can make this call.
socketAddId :: SocketClass self => self -> NativeWindowId -> IO ()
-- | Gets the window ID of a <a>Socket</a> widget, which can then be used
-- to create a client embedded inside the socket, for instance with
-- <a>plugNew</a>.
--
-- The <a>Socket</a> must have already be added into a toplevel window
-- before you can make this call.
socketGetId :: SocketClass self => self -> IO NativeWindowId
-- | Retrieves the window of the plug. Use this to check if the plug has
-- been created inside of the socket.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
socketGetPlugWindow :: SocketClass self => self -> IO (Maybe DrawWindow)
-- | This signal is emitted when a client is successfully added to the
-- socket.
socketPlugAdded :: SocketClass self => Signal self (IO ())
-- | This signal is emitted when a client is removed from the socket. The
-- default action is to destroy the <a>Socket</a> widget, so if you want
-- to reuse it you must add a signal handler that returns <tt>True</tt>.
socketPlugRemoved :: SocketClass self => Signal self (IO Bool)
-- | Retrieve an integer or floating-point number from the user
module Graphics.UI.Gtk.Entry.SpinButton
data SpinButton
class EntryClass o => SpinButtonClass o
castToSpinButton :: GObjectClass obj => obj -> SpinButton
gTypeSpinButton :: GType
toSpinButton :: SpinButtonClass o => o -> SpinButton
-- | Creates a new <a>SpinButton</a>.
spinButtonNew :: Adjustment -> Double -> Int -> IO SpinButton
-- | This is a convenience constructor that allows creation of a numeric
-- <a>SpinButton</a> without manually creating an adjustment. The value
-- is initially set to the minimum value and a page increment of 10 *
-- <tt>step</tt> is the default. The precision of the spin button is
-- equivalent to the precision of <tt>step</tt>.
--
-- Note that the way in which the precision is derived works best if
-- <tt>step</tt> is a power of ten. If the resulting precision is not
-- suitable for your needs, use <a>spinButtonSetDigits</a> to correct it.
spinButtonNewWithRange :: Double -> Double -> Double -> IO SpinButton
-- | Changes the properties of an existing spin button. The adjustment,
-- climb rate, and number of decimal places are all changed accordingly,
-- after this function call.
spinButtonConfigure :: SpinButtonClass self => self -> Adjustment -> Double -> Int -> IO ()
-- | Replaces the <a>Adjustment</a> associated with the spin button.
spinButtonSetAdjustment :: SpinButtonClass self => self -> Adjustment -> IO ()
-- | Get the adjustment associated with a <a>SpinButton</a>
spinButtonGetAdjustment :: SpinButtonClass self => self -> IO Adjustment
-- | Set the precision to be displayed by <tt>spinButton</tt>. Up to 20
-- digit precision is allowed.
spinButtonSetDigits :: SpinButtonClass self => self -> Int -> IO ()
-- | Fetches the precision of <tt>spinButton</tt>. See
-- <a>spinButtonSetDigits</a>.
spinButtonGetDigits :: SpinButtonClass self => self -> IO Int
-- | Sets the step and page increments for the spin button. This affects
-- how quickly the value changes when the spin button's arrows are
-- activated.
spinButtonSetIncrements :: SpinButtonClass self => self -> Double -> Double -> IO ()
-- | Gets the current step and page the increments used by the spin button.
-- See <a>spinButtonSetIncrements</a>.
spinButtonGetIncrements :: SpinButtonClass self => self -> IO (Double, Double)
-- | Sets the minimum and maximum allowable values for the spin button
spinButtonSetRange :: SpinButtonClass self => self -> Double -> Double -> IO ()
-- | Gets the range allowed for the spin button. See
-- <a>spinButtonSetRange</a>.
spinButtonGetRange :: SpinButtonClass self => self -> IO (Double, Double)
-- | Get the value of the spin button as a floating point value.
spinButtonGetValue :: SpinButtonClass self => self -> IO Double
-- | Get the value of the spin button as an integral value.
spinButtonGetValueAsInt :: SpinButtonClass self => self -> IO Int
-- | Set the value of the spin button.
spinButtonSetValue :: SpinButtonClass self => self -> Double -> IO ()
-- | Whether to clamp or ignore illegal values.
data SpinButtonUpdatePolicy
UpdateAlways :: SpinButtonUpdatePolicy
UpdateIfValid :: SpinButtonUpdatePolicy
-- | Sets the update behavior of a spin button. This determines whether the
-- spin button is always updated or only when a valid value is set.
spinButtonSetUpdatePolicy :: SpinButtonClass self => self -> SpinButtonUpdatePolicy -> IO ()
-- | Gets the update behavior of a spin button. See
-- <a>spinButtonSetUpdatePolicy</a>.
spinButtonGetUpdatePolicy :: SpinButtonClass self => self -> IO SpinButtonUpdatePolicy
-- | Sets the flag that determines if non-numeric text can be typed into
-- the spin button.
spinButtonSetNumeric :: SpinButtonClass self => self -> Bool -> IO ()
-- | Returns whether non-numeric text can be typed into the spin button.
-- See <a>spinButtonSetNumeric</a>.
spinButtonGetNumeric :: SpinButtonClass self => self -> IO Bool
-- | Spin a SpinButton with the following method.
data SpinType
SpinStepForward :: SpinType
SpinStepBackward :: SpinType
SpinPageForward :: SpinType
SpinPageBackward :: SpinType
SpinHome :: SpinType
SpinEnd :: SpinType
SpinUserDefined :: SpinType
-- | Increment or decrement a spin button's value in a specified direction
-- by a specified amount.
spinButtonSpin :: SpinButtonClass self => self -> SpinType -> Double -> IO ()
-- | Sets the flag that determines if a spin button value wraps around to
-- the opposite limit when the upper or lower limit of the range is
-- exceeded.
spinButtonSetWrap :: SpinButtonClass self => self -> Bool -> IO ()
-- | Returns whether the spin button's value wraps around to the opposite
-- limit when the upper or lower limit of the range is exceeded. See
-- <a>spinButtonSetWrap</a>.
spinButtonGetWrap :: SpinButtonClass self => self -> IO Bool
-- | Sets the policy as to whether values are corrected to the nearest step
-- increment when a spin button is activated after providing an invalid
-- value.
spinButtonSetSnapToTicks :: SpinButtonClass self => self -> Bool -> IO ()
-- | Returns whether the values are corrected to the nearest step. See
-- <a>spinButtonSetSnapToTicks</a>.
spinButtonGetSnapToTicks :: SpinButtonClass self => self -> IO Bool
-- | Manually force an update of the spin button.
spinButtonUpdate :: SpinButtonClass self => self -> IO ()
-- | The adjustment that holds the value of the spinbutton.
spinButtonAdjustment :: SpinButtonClass self => Attr self Adjustment
-- | The acceleration rate when you hold down a button.
--
-- Allowed values: >= 0
--
-- Default value: 0
spinButtonClimbRate :: SpinButtonClass self => Attr self Double
-- | The number of decimal places to display.
--
-- Allowed values: <= 20
--
-- Default value: 0
spinButtonDigits :: SpinButtonClass self => Attr self Int
-- | Whether erroneous values are automatically changed to a spin button's
-- nearest step increment.
--
-- Default value: <tt>False</tt>
spinButtonSnapToTicks :: SpinButtonClass self => Attr self Bool
-- | Whether non-numeric characters should be ignored.
--
-- Default value: <tt>False</tt>
spinButtonNumeric :: SpinButtonClass self => Attr self Bool
-- | Whether a spin button should wrap upon reaching its limits.
--
-- Default value: <tt>False</tt>
spinButtonWrap :: SpinButtonClass self => Attr self Bool
-- | Whether the spin button should update always, or only when the value
-- is legal.
--
-- Default value: <a>UpdateAlways</a>
spinButtonUpdatePolicy :: SpinButtonClass self => Attr self SpinButtonUpdatePolicy
-- | Reads the current value, or sets a new value.
--
-- Default value: 0
spinButtonValue :: SpinButtonClass self => Attr self Double
-- | Install a custom input handler.
--
-- <ul>
-- <li>This signal is called upon each time the value of the SpinButton
-- is set by spinButtonSetValue. The function can return Nothing if the
-- value is no good.</li>
-- </ul>
onInput :: SpinButtonClass sb => sb -> (IO (Maybe Double)) -> IO (ConnectId sb)
-- | Install a custom input handler.
--
-- <ul>
-- <li>This signal is called upon each time the value of the SpinButton
-- is set by spinButtonSetValue. The function can return Nothing if the
-- value is no good.</li>
-- </ul>
afterInput :: SpinButtonClass sb => sb -> (IO (Maybe Double)) -> IO (ConnectId sb)
-- | Install a custom output handler.
--
-- <ul>
-- <li>This handler makes it possible to query the current value and to
-- render something completely different to the screen using
-- entrySetText. The return value must be False in order to let the
-- default output routine run after this signal returns.</li>
-- </ul>
onOutput :: SpinButtonClass sb => sb -> IO Bool -> IO (ConnectId sb)
-- | Install a custom output handler.
--
-- <ul>
-- <li>This handler makes it possible to query the current value and to
-- render something completely different to the screen using
-- entrySetText. The return value must be False in order to let the
-- default output routine run after this signal returns.</li>
-- </ul>
afterOutput :: SpinButtonClass sb => sb -> IO Bool -> IO (ConnectId sb)
-- | The value of the spin button has changed.
onValueSpinned :: SpinButtonClass sb => sb -> IO () -> IO (ConnectId sb)
-- | The value of the spin button has changed.
afterValueSpinned :: SpinButtonClass sb => sb -> IO () -> IO (ConnectId sb)
instance Graphics.UI.Gtk.Types.EditableClass Graphics.UI.Gtk.Types.SpinButton
-- | A <a>DrawWindow</a> is a rectangular region on the screen.
module Graphics.UI.Gtk.Gdk.DrawWindow
data DrawWindow
class GObjectClass o => DrawWindowClass o
castToDrawWindow :: GObjectClass obj => obj -> DrawWindow
gTypeDrawWindow :: GType
-- | The state a <tt>DrawWindow</tt> is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState
-- | The identifer of a window of the underlying windowing system.
data NativeWindowId
toNativeWindowId :: Integral a => a -> NativeWindowId
fromNativeWindowId :: Integral a => NativeWindowId -> a
-- | Gets the bitwise OR of the currently active drawWindow state flags,
-- from the <a>WindowState</a> enumeration.
drawWindowGetState :: DrawWindowClass self => self -> IO [WindowState]
-- | Scroll the contents of <tt>DrawWindow</tt>.
--
-- <ul>
-- <li>Scroll both, pixels and children, by the given amount.
-- <tt>DrawWindow</tt> itself does not move. Portions of the window that
-- the scroll operation brings inm from offscreen areas are invalidated.
-- The invalidated region may be bigger than what would strictly be
-- necessary. (For X11, a minimum area will be invalidated if the window
-- has no subwindows, or if the edges of the window's parent do not
-- extend beyond the edges of the drawWindow. In other cases, a
-- multi-step process is used to scroll the window which may produce
-- temporary visual artifacts and unnecessary invalidations.)</li>
-- </ul>
drawWindowScroll :: DrawWindowClass self => self -> Int -> Int -> IO ()
-- | Raises <tt>DrawWindow</tt> to the top of the Z-order (stacking order),
-- so that other drawWindows with the same parent drawWindow appear below
-- <tt>DrawWindow</tt>. This is true whether or not the drawWindows are
-- visible.
--
-- If <tt>DrawWindow</tt> is a toplevel, the window manager may choose to
-- deny the request to move the drawWindow in the Z-order,
-- <a>drawWindowRaise</a> only requests the restack, does not guarantee
-- it.
drawWindowRaise :: DrawWindowClass self => self -> IO ()
-- | Lowers <tt>DrawWindow</tt> to the bottom of the Z-order (stacking
-- order), so that other windows with the same parent window appear above
-- <tt>DrawWindow</tt>. This is true whether or not the other windows are
-- visible.
--
-- If <tt>DrawWindow</tt> is a toplevel, the window manager may choose to
-- deny the request to move the drawWindow in the Z-order,
-- <a>drawWindowLower</a> only requests the restack, does not guarantee
-- it.
--
-- Note that a widget is raised automatically when it is mapped, thus you
-- need to call <a>drawWindowLower</a> after <a>widgetShow</a> if the
-- window should not appear above other windows.
drawWindowLower :: DrawWindowClass self => self -> IO ()
-- | Registers a drawWindow as a potential drop destination.
drawWindowRegisterDnd :: DrawWindowClass self => self -> IO ()
-- | A convenience wrapper around <tt>drawWindowBeginPaintRegion</tt> which
-- creates a rectangular region for you.
--
-- <ul>
-- <li>See <tt>drawWindowBeginPaintRegion</tt> for details.</li>
-- </ul>
drawWindowBeginPaintRect :: DrawWindowClass self => self -> Rectangle -> IO ()
-- | Signal that drawing has finished.
--
-- <ul>
-- <li>Indicates that the backing store created by the most recent call
-- to <tt>drawWindowBeginPaintRegion</tt> should be copied onscreen and
-- deleted, leaving the next-most-recent backing store or no backing
-- store at all as the active paint region. See
-- <tt>drawWindowBeginPaintRegion</tt> for full details. It is an error
-- to call this function without a matching
-- <tt>drawWindowBeginPaintRegion</tt> first.</li>
-- </ul>
drawWindowEndPaint :: DrawWindowClass self => self -> IO ()
-- | A convenience wrapper around <tt>drawWindowInvalidateRegion</tt> which
-- invalidates a rectangular region. See
-- <tt>drawWindowInvalidateRegion</tt> for details.
drawWindowInvalidateRect :: DrawWindowClass self => self -> Rectangle -> Bool -> IO ()
-- | Temporarily freezes a drawWindow such that it won't receive expose
-- events. * The drawWindow will begin receiving expose events again when
-- <a>drawWindowThawUpdates</a> is called. If
-- <a>drawWindowFreezeUpdates</a> has been called more than once,
-- <a>drawWindowThawUpdates</a> must be called an equal number of times
-- to begin processing exposes.
drawWindowFreezeUpdates :: DrawWindowClass self => self -> IO ()
-- | Thaws a drawWindow frozen with <a>drawWindowFreezeUpdates</a>.
drawWindowThawUpdates :: DrawWindowClass self => self -> IO ()
-- | Sends one or more expose events to <tt>DrawWindow</tt>.
--
-- <ul>
-- <li>The areas in each expose event will cover the entire update area
-- for the window (see <tt>drawWindowInvalidateRegion</tt> for details).
-- Normally Gtk calls <a>drawWindowProcessUpdates</a> on your behalf, so
-- there's no need to call this function unless you want to force expose
-- events to be delivered immediately and synchronously (vs. the usual
-- case, where Gtk delivers them in an idle handler). Occasionally this
-- is useful to produce nicer scrolling behavior, for example.</li>
-- </ul>
drawWindowProcessUpdates :: DrawWindowClass self => self -> Bool -> IO ()
-- | Setting <tt>acceptFocus</tt> to <tt>False</tt> hints the desktop
-- environment that the window doesn't want to receive input focus.
--
-- On X, it is the responsibility of the drawWindow manager to interpret
-- this hint. ICCCM-compliant drawWindow manager usually respect it.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
drawWindowSetAcceptFocus :: DrawWindowClass self => self -> Bool -> IO ()
-- | Sets the shape mask of <tt>DrawWindow</tt> to the union of shape masks
-- for all children of <tt>DrawWindow</tt>, ignoring the shape mask of
-- <tt>DrawWindow</tt> itself. Contrast with
-- <a>drawWindowMergeChildShapes</a> which includes the shape mask of
-- <tt>DrawWindow</tt> in the masks to be merged.
drawWindowSetChildShapes :: DrawWindowClass self => self -> IO ()
-- | Merges the shape masks for any child drawWindows into the shape mask
-- for <tt>DrawWindow</tt>. i.e. the union of all masks for
-- <tt>DrawWindow</tt> and its children will become the new mask for
-- <tt>DrawWindow</tt>. See <tt>drawWindowShapeCombineMask</tt>.
--
-- This function is distinct from <a>drawWindowSetChildShapes</a> because
-- it includes <tt>DrawWindow</tt>'s shape mask in the set of shapes to
-- be merged.
drawWindowMergeChildShapes :: DrawWindowClass self => self -> IO ()
drawWindowGetPointer :: DrawWindowClass self => self -> IO (Maybe (Bool, Int, Int, [Modifier]))
-- | Obtains the current pointer position and modifier state.
--
-- <ul>
-- <li>The position is given in coordinates relative to the given
-- window.</li>
-- <li>The return value is <tt>(Just win, x, y, mod)</tt> where
-- <tt>win</tt> is the window over which the mouse currently resides and
-- <tt>mod</tt> denotes the keyboard modifiers currently being
-- depressed.</li>
-- <li>The return value is <tt>Nothing</tt> for the window if the mouse
-- cursor is not over a known window.</li>
-- </ul>
drawWindowGetPointerPos :: DrawWindowClass self => self -> IO (Maybe DrawWindow, Int, Int, [Modifier])
-- | Obtains the position of a window in screen coordinates.
--
-- You can use this to help convert a position between screen coordinates
-- and local <a>DrawWindow</a> relative coordinates.
drawWindowGetOrigin :: DrawWindow -> IO (Int, Int)
-- | Sets the mouse pointer for a <a>DrawWindow</a>.
--
-- Use <a>cursorNewForDisplay</a> or <tt>cursorNewFromPixmap</tt> to
-- create the cursor. To make the cursor invisible, use
-- <a>BlankCursor</a>. Passing <tt>Nothing</tt> means that the
-- <tt>DrawWindow</tt> will use the cursor of its parent
-- <tt>DrawWindow</tt>. Most <tt>DrawWindow</tt> should use this default.
drawWindowSetCursor :: DrawWindow -> Maybe Cursor -> IO ()
-- | Obtains the root window (parent all other windows are inside) for the
-- default display and screen.
drawWindowGetDefaultRootWindow :: IO DrawWindow
-- | Returns the width of the window.
--
-- On the X11 platform the returned size is the size reported in the
-- most-recently-processed configure event, rather than the current size
-- on the X server.
drawWindowGetWidth :: DrawWindow -> IO Int
-- | Returns the height of the window.
--
-- On the X11 platform the returned size is the size reported in the
-- most-recently-processed configure event, rather than the current size
-- on the X server.
drawWindowGetHeight :: DrawWindow -> IO Int
-- | Types and accessors to examine information in events.
module Graphics.UI.Gtk.Gdk.EventM
class HasCoordinates a
class HasRootCoordinates a
class HasModifier a
class HasTime a
-- | A monad providing access to data in an event.
type EventM t = ReaderT (Ptr t) IO
-- | A tag for events that do not carry any event-specific information.
data EAny
-- | A tag for <i>key</i> events.
data EKey
-- | A tag for <i>Button</i> events.
data EButton
-- | A tag for <i>Scroll</i> events.
data EScroll
-- | A tag for <i>Motion</i> events.
data EMotion
-- | A tag for <i>Expose</i> events.
data EExpose
-- | A tag for <i>Visibility</i> events.
data EVisibility
-- | A tag for <i>Crossing</i> events.
data ECrossing
-- | A tag for <i>Focus</i> events.
data EFocus
-- | A tag for <i>Configure</i> events.
data EConfigure
-- | A tag for <i>Property</i> events.
data EProperty
-- | A tag for <i>Proximity</i> events.
data EProximity
-- | A tag for <i>WindowState</i> event.
data EWindowState
-- | A tag for <i>OwnerChange</i> events.
data EOwnerChange
-- | A tag for <i>GrabBroken</i> events.
data EGrabBroken
-- | Retrieve the <a>DrawWindow</a> that this event relates to.
eventWindow :: EventM any DrawWindow
-- | Query if this event was sent sent explicitly by the application
-- (rather than being generated by human interaction).
eventSent :: EventM any Bool
-- | Retrieve the <tt>(x,y)</tt> coordinates of the mouse.
eventCoordinates :: HasCoordinates t => EventM t (Double, Double)
-- | Retrieve the <tt>(x,y)</tt> coordinates of the mouse relative to the
-- root (origin) of the screen.
eventRootCoordinates :: HasRootCoordinates t => EventM t (Double, Double)
-- | Query the modifier keys that were depressed when the event happened.
-- Sticky modifiers such as CapsLock are omitted in the return value. Use
-- <a>eventModifierAll</a> your application requires all modifiers. Use
-- <a>eventModifierMouse</a> if you just need the mouse buttons.
eventModifier :: HasModifier t => EventM t [Modifier]
-- | Query the modifier keys that were depressed when the event happened.
-- The result includes sticky modifiers such as CapsLock. Normally,
-- <a>eventModifier</a> is more appropriate in applications.
eventModifierAll :: HasModifier t => EventM t [Modifier]
-- | Query the mouse buttons that were depressed when the event happened.
eventModifierMouse :: HasModifier t => EventM t [Modifier]
-- | Query the time when the event occurred.
eventTime :: HasTime t => EventM t TimeStamp
-- | The key value. See <a>KeyVal</a>.
eventKeyVal :: EventM EKey KeyVal
-- | The key value as a string. See <a>KeyVal</a>.
eventKeyName :: EventM EKey DefaultGlibString
-- | The hardware key code.
eventHardwareKeycode :: EventM EKey KeyCode
-- | The keyboard group.
eventKeyboardGroup :: EventM EKey Word8
-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton
-- | Query the mouse buttons.
eventButton :: EventM EButton MouseButton
-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click
eventClick :: EventM EButton Click
-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection
-- | Query the direction of scrolling.
eventScrollDirection :: EventM EScroll ScrollDirection
-- | Check if the motion event is only a hint rather than the full mouse
-- movement information.
eventIsHint :: EventM EMotion Bool
-- | Request more motion notifies if this event is a motion notify hint
-- event.
--
-- This action should be used instead of <tt>drawWindowGetPointer</tt> to
-- request further motion notifies, because it also works for extension
-- events where motion notifies are provided for devices other than the
-- core pointer.
--
-- Coordinate extraction, processing and requesting more motion events
-- from a <tt>motionNotifyEvent</tt> usually works like this:
--
-- <pre>
-- on widget motionNotifyEvent $ do
-- (x, y) <- eventCoordinates
-- -- handle the x,y motion:
-- ...
-- -- finally, notify that we are ready to get more motion events:
-- eventRequestMotions
-- </pre>
eventRequestMotions :: EventM EMotion ()
-- | Query a bounding box of the region that needs to be updated.
eventArea :: EventM EExpose Rectangle
-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState
-- | Get the visibility status of a window.
eventVisibilityState :: EventM EVisibility VisibilityState
-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode
-- | Get the mode of the mouse cursor crossing a window.
eventCrossingMode :: EventM ECrossing CrossingMode
-- | Information on from what level of the widget hierarchy the mouse
-- cursor came.
--
-- <ul>
-- <li><i><a>NotifyAncestor</a></i> The window is entered from an
-- ancestor or left towards an ancestor.</li>
-- <li><i><a>NotifyVirtual</a></i> The pointer moves between an ancestor
-- and an inferior of the window.</li>
-- <li><i><a>NotifyInferior</a></i> The window is entered from an
-- inferior or left towards an inferior.</li>
-- <li><i><a>NotifyNonlinear</a></i> The window is entered from or left
-- towards a window which is neither an ancestor nor an inferior.</li>
-- <li><i><a>NotifyNonlinearVirtual</a></i> The pointer moves between two
-- windows which are not ancestors of each other and the window is part
-- of the ancestor chain between one of these windows and their least
-- common ancestor.</li>
-- <li><i><a>NotifyUnknown</a></i> The level change does not fit into any
-- of the other categories or could not be determined.</li>
-- </ul>
data NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType
-- | Get the notify type of the mouse cursor crossing a window.
eventNotifyType :: EventM ECrossing NotifyType
-- | Query if the window has the focus or is an inferior window.
eventCrossingFocus :: EventM ECrossing Bool
-- | Query if a window gained focus (<tt>True</tt>) or lost the focus
-- (<tt>False</tt>).
eventFocusIn :: EventM EFocus Bool
-- | Get the <tt>(x,y)</tt> position of the window within the parent
-- window.
eventPosition :: EventM EConfigure (Int, Int)
-- | Get the new size of the window as <tt>(width,height)</tt>.
eventSize :: EventM EConfigure (Int, Int)
eventProperty :: EventM EProperty Atom
-- | The state a <tt>DrawWindow</tt> is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState
-- | Query which window state bits have changed.
eventWindowStateChanged :: EventM EWindowState [WindowState]
-- | Query the new window state.
eventWindowState :: EventM EWindowState [WindowState]
data OwnerChange
OwnerChangeNewOwner :: OwnerChange
OwnerChangeDestroy :: OwnerChange
OwnerChangeClose :: OwnerChange
-- | Query why a seleciton changed its owner.
eventChangeReason :: EventM EOwnerChange OwnerChange
-- | Query what selection changed its owner.
eventSelection :: EventM EOwnerChange SelectionTag
-- | Query the time when the selection was taken over.
eventSelectionTime :: EventM EOwnerChange TimeStamp
-- | Check if a keyboard (<tt>True</tt>) or a mouse pointer grap
-- (<tt>False</tt>) was broken.
eventKeyboardGrab :: EventM EGrabBroken Bool
-- | Check if a grab was broken implicitly.
eventImplicit :: EventM EGrabBroken Bool
-- | Get the new window that owns the grab or <tt>Nothing</tt> if the
-- window is not part of this application.
eventGrabWindow :: EventM EGrabBroken (Maybe DrawWindow)
-- | Keyboard modifiers that are depressed when the user presses a key or a
-- mouse button.
--
-- <ul>
-- <li>This data type is used to build lists of modifers that were active
-- during an event.</li>
-- <li>The <a>Apple</a> key on Macintoshs is mapped to <a>Alt2</a> and
-- the <a>Meta</a> key (if available).</li>
-- <li>Since Gtk 2.10, there are also <a>Super</a>, <a>Hyper</a> and
-- <a>Meta</a> modifiers which are simply generated from <a>Alt</a> ..
-- <tt>Compose</tt> modifier keys, depending on the mapping used by the
-- windowing system. Due to one key being mapped to e.g. <a>Alt2</a> and
-- <a>Meta</a>, you shouldn't pattern match directly against a certain
-- key but check whether a key is in the list using the <a>elem</a>
-- function, say.</li>
-- </ul>
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier
-- | The time (in milliseconds) when an event happened. This is used mostly
-- for ordering events and responses to events.
type TimeStamp = Word32
-- | Represents the current time, and can be used anywhere a time is
-- expected.
currentTime :: TimeStamp
-- | Execute an event handler and assume it handled the event unless it
-- threw a pattern match exception or calls mzero (e.g. via guard).
tryEvent :: EventM any () -> EventM any Bool
-- | Explicitly stop the handling of an event. This function should only be
-- called inside a handler that is wrapped with <a>tryEvent</a>. (It
-- merely throws a bogus pattern matching error which <a>tryEvent</a>
-- interprets as if the handler does not handle the event.)
stopEvent :: EventM any ()
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EKey
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EKey
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EProperty
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EProximity
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EOwnerChange
-- | A single line text entry field
module Graphics.UI.Gtk.Entry.Entry
data Entry
class WidgetClass o => EntryClass o
castToEntry :: GObjectClass obj => obj -> Entry
gTypeEntry :: GType
toEntry :: EntryClass o => o -> Entry
-- | Creates a new <a>Entry</a> widget.
entryNew :: IO Entry
-- | Creates a new <a>Entry</a> widget backed by a particular
-- <a>EntryBuffer</a>. One buffer can be shared among many widgets.
entryNewWithBuffer :: EntryBufferClass buffer => buffer -> IO Entry
-- | Sets the text in the widget to the given value, replacing the current
-- contents.
entrySetText :: (EntryClass self, GlibString string) => self -> string -> IO ()
-- | Retrieves the contents of the entry widget. See also
-- <a>editableGetChars</a>.
entryGetText :: (EntryClass self, GlibString string) => self -> IO string
-- | Sets whether the contents of the entry are visible or not. When
-- visibility is set to <tt>False</tt>, characters are displayed as the
-- invisible char, and will also appear that way when the text in the
-- entry widget is copied elsewhere.
--
-- The default invisible char is the asterisk '*', but it can be changed
-- with <a>entrySetInvisibleChar</a>.
entrySetVisibility :: EntryClass self => self -> Bool -> IO ()
-- | Retrieves whether the text in <tt>entry</tt> is visible. See
-- <a>entrySetVisibility</a>.
entryGetVisibility :: EntryClass self => self -> IO Bool
-- | Sets the character to use in place of the actual text when
-- <a>entrySetVisibility</a> has been called to set text visibility to
-- <tt>False</tt>. i.e. this is the character used in "password mode" to
-- show the user how many characters have been typed. The default
-- invisible char is an asterisk ('*'). If you set the invisible char to
-- <tt>'\0'</tt>, then the user will get no feedback at all; there will
-- be no text on the screen as they type.
entrySetInvisibleChar :: EntryClass self => self -> Char -> IO ()
-- | Retrieves the character displayed in place of the real characters for
-- entries with visisbility set to false. See
-- <a>entrySetInvisibleChar</a>.
entryGetInvisibleChar :: EntryClass self => self -> IO Char
-- | Sets the maximum allowed length of the contents of the widget. If the
-- current contents are longer than the given length, then they will be
-- truncated to fit.
entrySetMaxLength :: EntryClass self => self -> Int -> IO ()
-- | Retrieves the maximum allowed length of the text in <tt>entry</tt>.
-- See <a>entrySetMaxLength</a>.
entryGetMaxLength :: EntryClass self => self -> IO Int
-- | Query whether pressing return will activate the default widget.
entryGetActivatesDefault :: EntryClass self => self -> IO Bool
-- | If <tt>setting</tt> is <tt>True</tt>, pressing Enter in the
-- <tt>entry</tt> will activate the default widget for the window
-- containing the entry. This usually means that the dialog box
-- containing the entry will be closed, since the default widget is
-- usually one of the dialog buttons.
--
-- (For experts: if <tt>setting</tt> is <tt>True</tt>, the entry calls
-- <a>windowActivateDefault</a> on the window containing the entry, in
-- the default handler for the "activate" signal.)
--
-- This setting is useful in <a>Dialog</a> boxes where enter should press
-- the default button.
entrySetActivatesDefault :: EntryClass self => self -> Bool -> IO ()
-- | Query if the text <a>Entry</a> is displayed with a frame around it.
entryGetHasFrame :: EntryClass self => self -> IO Bool
-- | Sets whether the entry has a beveled frame around it.
entrySetHasFrame :: EntryClass self => self -> Bool -> IO ()
-- | Gets the value set by <a>entrySetWidthChars</a>.
entryGetWidthChars :: EntryClass self => self -> IO Int
-- | Changes the size request of the entry to be about the right size for
-- <tt>nChars</tt> characters. Note that it changes the size
-- <i>request</i>, the size can still be affected by how you pack the
-- widget into containers. If <tt>nChars</tt> is -1, the size reverts to
-- the default entry size.
--
-- This setting is only considered when the widget formulates its size
-- request. Make sure that it is not mapped (shown) before you change
-- this value.
entrySetWidthChars :: EntryClass self => self -> Int -> IO ()
-- | Sets text to be displayed in entry when it is empty and unfocused.
-- This can be used to give a visual hint of the expected contents of the
-- <a>Entry</a>.
--
-- Note that since the placeholder text gets removed when the entry
-- received focus, using this feature is a bit problematic if the entry
-- is given the initial focus in a window. Sometimes this can be worked
-- around by delaying the initial focus setting until the first key event
-- arrives.
--
-- <ul>
-- <li>Available since Gtk version 3.2</li>
-- </ul>
entrySetPlaceholderText :: (EntryClass self, GlibString text) => self -> Maybe text -> IO ()
-- | Retrieves the text that will be displayed when entry is empty and
-- unfocused.
--
-- <ul>
-- <li>Available since Gtk version 3.2</li>
-- </ul>
entryGetPlaceholderText :: (EntryClass self, GlibString text) => self -> IO (Maybe text)
-- | Sets the alignment for the contents of the entry. This controls the
-- horizontal positioning of the contents when the displayed text is
-- shorter than the width of the entry.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
entrySetAlignment :: EntryClass self => self -> Float -> IO ()
-- | Gets the value set by <a>entrySetAlignment</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
entryGetAlignment :: EntryClass self => self -> IO Float
-- | Sets the auxiliary completion object to use with the entry. All
-- further configuration of the completion mechanism is done on
-- completion using the <a>EntryCompletion</a> API.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
entrySetCompletion :: EntryClass self => self -> EntryCompletion -> IO ()
-- | Returns the auxiliary completion object currently in use by the entry.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
entryGetCompletion :: EntryClass self => self -> IO EntryCompletion
-- | Get the <a>EntryBuffer</a> object which holds the text for this
-- widget.
entryGetBuffer :: EntryClass self => self -> IO EntryBuffer
-- | Set the <a>EntryBuffer</a> object which holds the text for this
-- widget.
entrySetBuffer :: (EntryClass self, EntryBufferClass buffer) => self -> buffer -> IO ()
-- | Allow the <a>Entry</a> input method to internally handle key press and
-- release events. If this function returns <a>True</a>, then no further
-- processing should be done for this key event. See
-- <tt>imContextFilterKeypress</tt>.
--
-- Note that you are expected to call this function from your handler
-- when overriding key event handling. This is needed in the case when
-- you need to insert your own key handling between the input method and
-- the default key event handling of the <a>Entry</a>. See
-- <tt>textViewResetImContext</tt> for an example of use.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
entryImContextFilterKeypress :: EntryClass self => self -> EventM EKey Bool
-- | Reset the input method context of the entry if needed.
--
-- This can be necessary in the case where modifying the buffer would
-- confuse on-going input method behavior.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
entryResetImContext :: EntryClass self => self -> IO ()
-- | The current position of the insertion cursor in chars.
--
-- Allowed values: [0,65535]
--
-- Default value: 0
entryCursorPosition :: EntryClass self => ReadAttr self Int
-- | The position of the opposite end of the selection from the cursor in
-- chars.
--
-- Allowed values: [0,65535]
--
-- Default value: 0
entrySelectionBound :: EntryClass self => ReadAttr self Int
-- | Whether the entry contents can be edited.
--
-- Default value: <tt>True</tt>
entryEditable :: EntryClass self => Attr self Bool
-- | Maximum number of characters for this entry. Zero if no maximum.
--
-- Allowed values: [0,65535]
--
-- Default value: 0
entryMaxLength :: EntryClass self => Attr self Int
-- | <tt>False</tt> displays the "invisible char" instead of the actual
-- text (password mode).
--
-- Default value: <tt>True</tt>
entryVisibility :: EntryClass self => Attr self Bool
-- | <tt>False</tt> removes outside bevel from entry.
--
-- Default value: <tt>True</tt>
entryHasFrame :: EntryClass self => Attr self Bool
-- | The character to use when masking entry contents (in "password mode").
--
-- Default value: '*'
entryInvisibleChar :: EntryClass self => Attr self Char
-- | Whether to activate the default widget (such as the default button in
-- a dialog) when Enter is pressed.
--
-- Default value: <tt>False</tt>
entryActivatesDefault :: EntryClass self => Attr self Bool
-- | Number of characters to leave space for in the entry.
--
-- Allowed values: >= -1
--
-- Default value: -1
entryWidthChars :: EntryClass self => Attr self Int
-- | Number of pixels of the entry scrolled off the screen to the left.
--
-- Allowed values: >= 0
--
-- Default value: 0
entryScrollOffset :: EntryClass self => ReadAttr self Int
-- | The contents of the entry.
--
-- Default value: ""
entryText :: (EntryClass self, GlibString string) => Attr self string
-- | The text that will be displayed in the <a>Entry</a> when it is empty
-- and unfocused.
--
-- Default value: Nothing
entryPlaceholderText :: (EntryClass self, GlibString text) => Attr self (Maybe text)
-- | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL
-- layouts.
--
-- Allowed values: [0,1]
--
-- Default value: 0
entryXalign :: EntryClass self => Attr self Float
-- | 'alignment' property. See <a>entryGetAlignment</a> and
-- <a>entrySetAlignment</a>
entryAlignment :: EntryClass self => Attr self Float
-- | 'completion' property. See <a>entryGetCompletion</a> and
-- <a>entrySetCompletion</a>
entryCompletion :: EntryClass self => Attr self EntryCompletion
-- | The buffer being displayed.
entryBuffer :: (EntryClass self, EntryBufferClass buffer) => ReadWriteAttr self EntryBuffer buffer
-- | A keybinding signal which gets emitted when the user activates the
-- entry.
--
-- Applications should not connect to it, but may emit it with
-- <tt>signalEmitByName</tt> if they need to control activation
-- programmatically.
entryActivated :: EntryClass ec => Signal ec (IO ())
-- | Deprecated. See <a>entryActivated</a>.
entryActivate :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryBackspace</a> signal is a keybinding signal which gets
-- emitted when the user asks for it.
--
-- The default bindings for this signal are Backspace and
-- Shift-Backspace.
entryBackspace :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryCopyClipboard</a> signal is a keybinding signal which gets
-- emitted to copy the selection to the clipboard.
--
-- The default bindings for this signal are Ctrl-c and Ctrl-Insert.
entryCopyClipboard :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryCutClipboard</a> signal is a keybinding signal which gets
-- emitted to cut the selection to the clipboard.
--
-- The default bindings for this signal are Ctrl-x and Shift-Delete.
entryCutClipboard :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryPasteClipboard</a> signal is a keybinding signal which
-- gets emitted to paste the contents of the clipboard into the text
-- view.
--
-- The default bindings for this signal are Ctrl-v and Shift-Insert.
entryPasteClipboard :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryDeleteFromCursor</a> signal is a keybinding signal which
-- gets emitted when the user initiates a text deletion.
--
-- If the type is <a>DeleteChars</a>, GTK+ deletes the selection if there
-- is one, otherwise it deletes the requested number of characters.
--
-- The default bindings for this signal are Delete for deleting a
-- character and Ctrl-Delete for deleting a word.
entryDeleteFromCursor :: EntryClass ec => Signal ec (DeleteType -> Int -> IO ())
-- | The <a>entryInsertAtCursor</a> signal is a keybinding signal which
-- gets emitted when the user initiates the insertion of a fixed string
-- at the cursor.
entryInsertAtCursor :: (EntryClass ec, GlibString string) => Signal ec (string -> IO ())
-- | The <a>entryMoveCursor</a> signal is a keybinding signal which gets
-- emitted when the user initiates a cursor movement. If the cursor is
-- not visible in entry, this signal causes the viewport to be moved
-- instead.
--
-- Applications should not connect to it, but may emit it with
-- <tt>signalEmitByName</tt> if they need to control the cursor
-- programmatically.
--
-- The default bindings for this signal come in two variants, the variant
-- with the Shift modifier extends the selection, the variant without the
-- Shift modifer does not. There are too many key combinations to list
-- them all here.
--
-- <ul>
-- <li>Arrow keys move by individual characters/lines</li>
-- <li>Ctrl-arrow key combinations move by words/paragraphs</li>
-- <li>Home/End keys move to the ends of the buffer</li>
-- </ul>
entryMoveCursor :: EntryClass ec => Signal ec (MovementStep -> Int -> Bool -> IO ())
-- | The <a>entryPopulatePopup</a> signal gets emitted before showing the
-- context menu of the entry.
--
-- If you need to add items to the context menu, connect to this signal
-- and append your menuitems to the menu.
entryPopulatePopup :: EntryClass ec => Signal ec (Menu -> IO ())
-- | <i>Deprecated: Use entryToggleOverwrite</i>
entryToggleOverwirte :: EntryClass ec => Signal ec (IO ())
-- | The <a>entryToggleOverwrite</a> signal is a keybinding signal which
-- gets emitted to toggle the overwrite mode of the entry. The default
-- bindings for this signal is Insert.
entryToggleOverwrite :: EntryClass ec => Signal ec (IO ())
-- | If an input method is used, the typed text will not immediately be
-- committed to the buffer. So if you are interested in the text, connect
-- to this signal.
entryPreeditChanged :: (EntryClass ec, GlibString string) => Signal ec (string -> IO ())
-- | The <tt>iconPress</tt> signal is emitted when an activatable icon is
-- clicked.
entryIconPress :: EntryClass ec => Signal ec (EntryIconPosition -> EventM EButton ())
-- | The <tt>iconRelease</tt> signal is emitted on the button release from
-- a mouse click over an activatable icon.
entryIconRelease :: EntryClass ec => Signal ec (EntryIconPosition -> EventM EButton ())
instance Graphics.UI.Gtk.Types.EditableClass Graphics.UI.Gtk.Types.Entry
module Graphics.UI.Gtk.Gdk.AppLaunchContext
data AppLaunchContext
class GObjectClass o => AppLaunchContextClass o
castToAppLaunchContext :: GObjectClass obj => obj -> AppLaunchContext
gTypeAppLaunchContext :: GType
toAppLaunchContext :: AppLaunchContextClass o => o -> AppLaunchContext
-- | Creates a new <a>AppLaunchContext</a>.
appLaunchContextNew :: IO AppLaunchContext
-- | Sets the display on which applications will be launched when using
-- this context. See also <a>appLaunchContextSetScreen</a>.
appLaunchContextSetDisplay :: AppLaunchContext -> Display -> IO ()
-- | Sets the screen on which applications will be launched when using this
-- context. See also <a>appLaunchContextSetDisplay</a>.
--
-- If both screen and display are set, the screen takes priority. If
-- neither screen or display are set, the default screen and display are
-- used.
appLaunchContextSetScreen :: AppLaunchContext -> Screen -> IO ()
-- | Sets the workspace on which applications will be launched when using
-- this context when running under a window manager that supports
-- multiple workspaces, as described in the Extended Window Manager
-- Hints.
--
-- When the workspace is not specified or desktop is set to -1, it is up
-- to the window manager to pick one, typically it will be the current
-- workspace.
appLaunchContextSetDesktop :: AppLaunchContext -> Int -> IO ()
-- | Sets the timestamp of context. The timestamp should ideally be taken
-- from the event that triggered the launch.
--
-- Window managers can use this information to avoid moving the focus to
-- the newly launched application when the user is busy typing in another
-- window. This is also known as 'focus stealing prevention'.
appLaunchContextSetTimestamp :: AppLaunchContext -> TimeStamp -> IO ()
-- | Sets the icon for applications that are launched with this context.
-- The <tt>iconName</tt> will be interpreted in the same way as the Icon
-- field in desktop files. See also <a>appLaunchContextSetIcon</a>.
--
-- If both icon and <tt>iconName</tt> are set, the <tt>iconName</tt>
-- takes priority. If neither icon or <tt>iconName</tt> is set, the icon
-- is taken from either the file that is passed to launched application
-- or from the GAppInfo for the launched application itself.
appLaunchContextSetIconName :: GlibString string => AppLaunchContext -> string -> IO ()
-- | Sets the icon for applications that are launched with this context.
--
-- Window Managers can use this information when displaying startup
-- notification.
appLaunchContextSetIcon :: IconClass icon => AppLaunchContext -> icon -> IO ()
-- | Controls the keyboard/mouse/monitors combination.
--
-- <ul>
-- <li>Module available since Gdk version 2.2</li>
-- </ul>
module Graphics.UI.Gtk.Gdk.Display
data Display
class GObjectClass o => DisplayClass o
castToDisplay :: GObjectClass obj => obj -> Display
gTypeDisplay :: GType
toDisplay :: DisplayClass o => o -> Display
-- | Opens a display.
displayOpen :: GlibString string => string -> IO (Maybe Display)
-- | Gets the default <a>Display</a>. This is a convenience function for
-- <tt>displayManagerGetDefaultDisplay displayManagerGet</tt>.
displayGetDefault :: IO (Maybe Display)
-- | Gets the name of the display.
displayGetName :: GlibString string => Display -> IO string
-- | Gets the number of screen managed by the <tt>display</tt>.
displayGetNScreens :: Display -> IO Int
-- | Returns a screen object for one of the screens of the display.
displayGetScreen :: Display -> Int -> IO Screen
-- | Get the default <a>Screen</a> for <tt>display</tt>.
displayGetDefaultScreen :: Display -> IO Screen
-- | Release any pointer grab.
displayPointerUngrab :: Display -> TimeStamp -> IO ()
-- | Release any keyboard grab
displayKeyboardUngrab :: Display -> TimeStamp -> IO ()
-- | Test if the pointer is grabbed.
displayPointerIsGrabbed :: Display -> IO Bool
-- | Emits a short beep on <tt>display</tt>
displayBeep :: Display -> IO ()
-- | Flushes any requests queued for the windowing system and waits until
-- all requests have been handled. This is often used for making sure
-- that the display is synchronized with the current state of the
-- program. Calling <a>displaySync</a> before <tt>errorTrapPop</tt> makes
-- sure that any errors generated from earlier requests are handled
-- before the error trap is removed.
--
-- This is most useful for X11. On windowing systems where requests are
-- handled synchronously, this function will do nothing.
displaySync :: Display -> IO ()
-- | Flushes any requests queued for the windowing system; this happens
-- automatically when the main loop blocks waiting for new events, but if
-- your application is drawing without returning control to the main
-- loop, you may need to call this function explicitely. A common case
-- where this function needs to be called is when an application is
-- executing drawing commands from a thread other than the thread where
-- the main loop is running.
--
-- This is most useful for X11. On windowing systems where requests are
-- handled synchronously, this function will do nothing.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displayFlush :: Display -> IO ()
-- | Closes the connection to the windowing system for the given display,
-- and cleans up associated resources.
displayClose :: Display -> IO ()
-- | Returns the list of available input devices attached to
-- <tt>display</tt>.
displayListDevices :: Display -> IO [Device]
-- | Sets the double click time (two clicks within this time interval count
-- as a double click and result in an <a>eventButton</a> where
-- <a>eventClick</a> is <a>DoubleClick</a>). Applications should
-- <i>not</i> set this, it is a global user-configured setting.
displaySetDoubleClickTime :: Display -> Int -> IO ()
-- | Sets the double click distance (two clicks within this distance count
-- as a double click and result in an <a>eventButton</a> where
-- <a>eventClick</a> is <a>DoubleClick</a>). See also
-- <a>displaySetDoubleClickTime</a>. Applications should <i>not</i> set
-- this, it is a global user-configured setting.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displaySetDoubleClickDistance :: Display -> Int -> IO ()
-- | Gets the current location of the pointer and the current modifier mask
-- for a given display.
displayGetPointer :: Display -> IO (Screen, [Modifier], Int, Int)
-- | Obtains the window underneath the mouse pointer, returning the
-- location of the pointer in that window in <tt>winX</tt>, <tt>winY</tt>
-- for <tt>screen</tt>. Returns <tt>Nothing</tt> if the window under the
-- mouse pointer is not known to GDK (for example, belongs to another
-- application).
displayGetWindowAtPointer :: Display -> IO (Maybe (DrawWindow, Int, Int))
-- | Moves the pointer of <tt>display</tt> to the point
-- <tt>x</tt>,<tt>y</tt> on the screen <tt>screen</tt>, unless the
-- pointer is confined to a window by a grab, in which case it will be
-- moved as far as allowed by the grab. Warping the pointer creates
-- events as if the user had moved the mouse instantaneously to the
-- destination.
--
-- Note that the pointer should normally be under the control of the
-- user. This function was added to cover some rare use cases like
-- keyboard navigation support for the color picker in the
-- <a>ColorSelectionDialog</a>.
--
-- <ul>
-- <li>Available since Gdk version 2.8</li>
-- </ul>
displayWarpPointer :: Display -> Screen -> Int -> Int -> IO ()
-- | Returns <tt>True</tt> if multicolored cursors are supported on
-- <tt>display</tt>. Otherwise, cursors have only a forground and a
-- background color.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displaySupportsCursorColor :: Display -> IO Bool
-- | Returns <tt>True</tt> if cursors can use an 8bit alpha channel on
-- <tt>display</tt>. Otherwise, cursors are restricted to bilevel alpha
-- (i.e. a mask).
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displaySupportsCursorAlpha :: Display -> IO Bool
-- | Returns the default size to use for cursors on <tt>display</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displayGetDefaultCursorSize :: Display -> IO Int
-- | Gets the maximal size to use for cursors on <tt>display</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displayGetMaximalCursorSize :: Display -> IO (Int, Int)
-- | Returns the default group leader window for all toplevel windows on
-- <tt>display</tt>. This window is implicitly created by GDK. See
-- <tt>windowSetGroup</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.4</li>
-- </ul>
displayGetDefaultGroup :: Display -> IO DrawWindow
-- | Returns whether <a>EOwnerChange</a> events will be sent when the owner
-- of a selection changes.
--
-- <ul>
-- <li>Available since Gdk version 2.6</li>
-- </ul>
displaySupportsSelectionNotification :: Display -> IO Bool
-- | Request <a>EOwnerChange</a> events for ownership changes of the
-- selection named by the given atom.
--
-- <ul>
-- <li>Available since Gdk version 2.6</li>
-- </ul>
displayRequestSelectionNotification :: Display -> SelectionTag -> IO Bool
-- | Returns whether the speicifed display supports clipboard persistance;
-- i.e. if it's possible to store the clipboard data after an application
-- has quit. On X11 this checks if a clipboard daemon is running.
--
-- <ul>
-- <li>Available since Gdk version 2.6</li>
-- </ul>
displaySupportsClipboardPersistence :: Display -> IO Bool
-- | Issues a request to the clipboard manager to store the clipboard data.
-- On X11, this is a special program that works according to the
-- freedesktop clipboard specification, available at
-- http://www.freedesktop.org/Standards/clipboard-manager-spec.
--
-- <ul>
-- <li>Available since Gdk version 2.6</li>
-- </ul>
displayStoreClipboard :: Display -> DrawWindow -> Word32 -> (Maybe [TargetTag]) -> IO ()
-- | Returns <tt>True</tt> if <tt>windowShapeCombineMask</tt> can be used
-- to create shaped windows on <tt>display</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
displaySupportsShapes :: Display -> IO Bool
-- | Returns <tt>True</tt> if <tt>windowInputShapeCombineMask</tt> can be
-- used to modify the input shape of windows on <tt>display</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
displaySupportsInputShapes :: Display -> IO Bool
-- | Returns <tt>True</tt> if <tt>windowSetComposited</tt> can be used to
-- redirect drawing on the window using compositing.
--
-- Currently this only works on X11 with XComposite and XDamage
-- extensions available.
--
-- <ul>
-- <li>Available since Gdk version 2.12</li>
-- </ul>
displaySupportsComposite :: Display -> IO Bool
-- | The <a>displayClosed</a> signal is emitted when the connection to the
-- windowing system for <tt>display</tt> is closed.
displayClosed :: DisplayClass self => Signal self (Bool -> IO ())
-- | library initialization, main event loop, and events
module Graphics.UI.Gtk.General.General
-- | Initialize the GUI.
--
-- This must be called before any other function in the Gtk2Hs library.
--
-- This function initializes the GUI toolkit and parses all Gtk specific
-- arguments. The remaining arguments are returned. If the initialization
-- of the toolkit fails for whatever reason, an exception is thrown.
--
-- <ul>
-- <li>Throws: <tt>error "Cannot initialize GUI."</tt></li>
-- <li>If you want to use Gtk2Hs and in a multi-threaded application then
-- it is your obligation to ensure that all calls to Gtk+ happen in a
-- single OS thread. If you want to make calls to Gtk2Hs functions from a
-- Haskell thread other than the one that calls this functions and
-- <a>mainGUI</a> then you will have to 'post' your GUI actions to the
-- main GUI thread. You can do this using <a>postGUISync</a> or
-- <a>postGUIAsync</a>. See also <a>threadsEnter</a>.</li>
-- </ul>
initGUI :: IO [String]
unsafeInitGUIForThreadedRTS :: IO [String]
-- | Post an action to be run in the main GUI thread.
--
-- The current thread blocks until the action completes and the result is
-- returned.
postGUISync :: IO a -> IO a
-- | Post an action to be run in the main GUI thread.
--
-- The current thread continues and does not wait for the result of the
-- action.
postGUIAsync :: IO () -> IO ()
-- | Acquire the global Gtk lock.
--
-- <ul>
-- <li>During normal operation, this lock is held by the thread from
-- which all interaction with Gtk is performed. When calling
-- <a>mainGUI</a>, the thread will release this global lock before it
-- waits for user interaction. During this time it is, in principle,
-- possible to use a different OS thread (any other Haskell thread that
-- is bound to the Gtk OS thread will be blocked anyway) to interact with
-- Gtk by explicitly acquiring the lock, calling Gtk functions and
-- releasing the lock. However, the Gtk functions that are called from
-- this different thread may not trigger any calls to the OS since this
-- will lead to a crash on Windows (the Win32 API can only be used from a
-- single thread). Since it is very hard to tell which function only
-- interacts on Gtk data structures and which function call actual OS
-- functions, it is best not to use this feature at all. A better way to
-- perform updates in the background is to spawn a Haskell thread and to
-- perform the update to Gtk widgets using <a>postGUIAsync</a> or
-- <a>postGUISync</a>. These will execute their arguments from the main
-- loop, that is, from the OS thread of Gtk, thereby ensuring that any
-- Gtk and OS function can be called.</li>
-- </ul>
threadsEnter :: IO ()
-- | Release the global Gtk lock.
--
-- <ul>
-- <li>The use of this function is not recommended. See
-- <a>threadsEnter</a>.</li>
-- </ul>
threadsLeave :: IO ()
-- | Run the Gtk+ main event loop.
mainGUI :: IO ()
-- | Exit the main event loop.
mainQuit :: IO ()
-- | Inquire the number of events pending on the event queue
eventsPending :: IO Int
-- | Inquire the main loop level.
--
-- <ul>
-- <li>Callbacks that take more time to process can call
-- <a>mainIteration</a> to keep the GUI responsive. Each time the main
-- loop is restarted this way, the main loop counter is increased. This
-- function returns this counter.</li>
-- </ul>
mainLevel :: IO Int
-- | Process an event, block if necessary.
--
-- <ul>
-- <li>Returns <tt>True</tt> if <a>mainQuit</a> was called while
-- processing the event.</li>
-- </ul>
mainIteration :: IO Bool
-- | Process a single event.
--
-- <ul>
-- <li>Called with <tt>True</tt>, this function behaves as
-- <a>mainIteration</a> in that it waits until an event is available for
-- processing. It will return immediately, if passed <tt>False</tt>.</li>
-- <li>Returns <tt>True</tt> if the <a>mainQuit</a> was called while
-- processing the event.</li>
-- </ul>
mainIterationDo :: Bool -> IO Bool
-- | Processes a single GDK event. This is public only to allow filtering
-- of events between GDK and GTK+. You will not usually need to call this
-- function directly.
--
-- While you should not call this function directly, you might want to
-- know how exactly events are handled. So here is what this function
-- does with the event:
--
-- <ol>
-- <li>Compress enter/leave notify events. If the event passed build an
-- enter/leave pair together with the next event (peeked from GDK) both
-- events are thrown away. This is to avoid a backlog of
-- (de-)highlighting widgets crossed by the pointer.</li>
-- <li>Find the widget which got the event. If the widget can't be
-- determined the event is thrown away unless it belongs to a INCR
-- transaction. In that case it is passed to
-- <tt>selectionIncrEvent</tt>.</li>
-- <li>Then the event is passed on a stack so you can query the currently
-- handled event with <tt>getCurrentEvent</tt>.</li>
-- <li>The event is sent to a widget. If a grab is active all events for
-- widgets that are not in the contained in the grab widget are sent to
-- the latter with a few exceptions:</li>
-- </ol>
--
-- <ul>
-- <li>Deletion and destruction events are still sent to the event widget
-- for obvious reasons.</li>
-- <li>Events which directly relate to the visual representation of the
-- event widget.</li>
-- <li>Leave events are delivered to the event widget if there was an
-- enter event delivered to it before without the paired leave
-- event.</li>
-- <li>Drag events are not redirected because it is unclear what the
-- semantics of that would be.</li>
-- </ul>
--
-- Another point of interest might be that all key events are first
-- passed through the key snooper functions if there are any. Read the
-- description of <tt>keySnooperInstall</tt> if you need this feature.
--
-- <ol>
-- <li>After finishing the delivery the event is popped from the event
-- stack.</li>
-- </ol>
mainDoEvent :: EventM t ()
-- | add a grab widget
grabAdd :: WidgetClass wd => wd -> IO ()
-- | inquire current grab widget
grabGetCurrent :: IO (Maybe Widget)
-- | remove a grab widget
grabRemove :: WidgetClass w => w -> IO ()
-- | Priorities for installing callbacks.
type Priority = Int
priorityLow :: Int
priorityDefaultIdle :: Int
priorityHighIdle :: Int
priorityDefault :: Int
priorityHigh :: Int
-- | Sets a function to be called at regular intervals, with the default
-- priority <a>priorityDefault</a>. The function is called repeatedly
-- until it returns <tt>False</tt>, after which point the timeout
-- function will not be called again. The first call to the function will
-- be at the end of the first interval.
--
-- Note that timeout functions may be delayed, due to the processing of
-- other event sources. Thus they should not be relied on for precise
-- timing. After each call to the timeout function, the time of the next
-- timeout is recalculated based on the current time and the given
-- interval (it does not try to 'catch up' time lost in delays).
--
-- This function differs from <a>timeoutAdd</a> in that the action will
-- be executed within the global Gtk+ lock. It is therefore possible to
-- call Gtk+ functions from the action.
timeoutAdd :: IO Bool -> Int -> IO HandlerId
-- | Sets a function to be called at regular intervals, with the given
-- priority. The function is called repeatedly until it returns
-- <tt>False</tt>, after which point the timeout function will not be
-- called again. The first call to the function will be at the end of the
-- first interval.
--
-- Note that timeout functions may be delayed, due to the processing of
-- other event sources. Thus they should not be relied on for precise
-- timing. After each call to the timeout function, the time of the next
-- timeout is recalculated based on the current time and the given
-- interval (it does not try to 'catch up' time lost in delays).
--
-- This function differs from <a>timeoutAddFull</a> in that the action
-- will be executed within the global Gtk+ lock. It is therefore possible
-- to call Gtk+ functions from the action.
timeoutAddFull :: IO Bool -> Priority -> Int -> IO HandlerId
-- | Remove a previously added timeout handler by its <a>HandlerId</a>.
timeoutRemove :: HandlerId -> IO ()
-- | Add a callback that is called whenever the system is idle.
--
-- <ul>
-- <li>A priority can be specified via an integer. This should usually be
-- <a>priorityDefaultIdle</a>.</li>
-- <li>If the function returns <tt>False</tt> it will be removed.</li>
-- </ul>
--
-- This function differs from <a>idleAdd</a> in that the action will be
-- executed within the global Gtk+ lock. It is therefore possible to call
-- Gtk+ functions from the action.
idleAdd :: IO Bool -> Priority -> IO HandlerId
-- | Remove a previously added idle handler by its <a>HandlerId</a>.
idleRemove :: HandlerId -> IO ()
-- | Adds the file descriptor into the main event loop with the given
-- priority.
--
-- This function differs from <a>inputAdd</a> in that the action will be
-- executed within the global Gtk+ lock. It is therefore possible to call
-- Gtk+ functions from the action.
inputAdd :: FD -> [IOCondition] -> Priority -> IO Bool -> IO HandlerId
inputRemove :: HandlerId -> IO ()
-- | Flags representing a condition to watch for on a file descriptor.
--
-- <ul>
-- <li><i><tt>IOIn</tt></i> There is data to read.</li>
-- <li><i><tt>IOOut</tt></i> Data can be written (without blocking).</li>
-- <li><i><tt>IOPri</tt></i> There is urgent data to read.</li>
-- <li><i><tt>IOErr</tt></i> Error condition.</li>
-- <li><i><tt>IOHup</tt></i> Hung up (the connection has been broken,
-- usually for pipes and sockets).</li>
-- <li><i><tt>IOInvalid</tt></i> Invalid request. The file descriptor is
-- not open.</li>
-- </ul>
data IOCondition :: *
IOIn :: IOCondition
IOOut :: IOCondition
IOPri :: IOCondition
IOErr :: IOCondition
IOHup :: IOCondition
IOInvalid :: IOCondition
type HandlerId = CUInt
type FD = Int
-- | Interface for widgets which can are used for editing cells
module Graphics.UI.Gtk.ModelView.CellEditable
data CellEditable
class GObjectClass o => CellEditableClass o
castToCellEditable :: GObjectClass obj => obj -> CellEditable
toCellEditable :: CellEditableClass o => o -> CellEditable
-- | Begins editing on a <tt>cellEditable</tt>. <tt>event</tt> is the
-- <tt>Event</tt> that began the editing process.
cellEditableStartEditing :: CellEditableClass self => self -> EventM EAny ()
-- | Emits the <a>cellEditableEditingDone</a> signal.
cellEditableEmitEditingDone :: CellEditableClass self => self -> IO ()
-- | Emits the <a>cellEditableRemoveWidget</a> signal.
cellEditableEmitRemoveWidget :: CellEditableClass self => self -> IO ()
-- | Indicates whether editing on the cell has been canceled.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
cellEditableEditingCanceled :: CellEditableClass self => Attr self Bool
-- | This signal is a sign for the cell renderer to update its value from
-- the <tt>cellEditable</tt>.
--
-- Implementations of <a>CellEditable</a> are responsible for emitting
-- this signal when they are done editing, e.g. <a>Entry</a> is emitting
-- it when the user presses Enter.
--
-- <a>cellEditableEmitEditingDone</a> is a convenience method for
-- emitting ::editing-done.
cellEditableEditingDone :: CellEditableClass self => Signal self (IO ())
-- | This signal is meant to indicate that the cell is finished editing,
-- and the widget may now be destroyed.
--
-- Implementations of <a>CellEditable</a> are responsible for emitting
-- this signal when they are done editing. It must be emitted after the
-- <a>cellEditableEditingDone</a> signal, to give the cell renderer a
-- chance to update the cell's value before the widget is removed.
--
-- <a>cellEditableEmitRemoveWidget</a> is a convenience method for
-- emitting ::remove-widget.
cellEditableRemoveWidget :: CellEditableClass self => Signal self (IO ())
-- | Definiton of a record that contains event information. Deprecated in
-- favor of <a>EventM</a> and not exported by Gtk.hs.
module Graphics.UI.Gtk.Gdk.Events
-- | Keyboard modifiers that are depressed when the user presses a key or a
-- mouse button.
--
-- <ul>
-- <li>This data type is used to build lists of modifers that were active
-- during an event.</li>
-- <li>The <a>Apple</a> key on Macintoshs is mapped to <a>Alt2</a> and
-- the <a>Meta</a> key (if available).</li>
-- <li>Since Gtk 2.10, there are also <a>Super</a>, <a>Hyper</a> and
-- <a>Meta</a> modifiers which are simply generated from <a>Alt</a> ..
-- <tt>Compose</tt> modifier keys, depending on the mapping used by the
-- windowing system. Due to one key being mapped to e.g. <a>Alt2</a> and
-- <a>Meta</a>, you shouldn't pattern match directly against a certain
-- key but check whether a key is in the list using the <a>elem</a>
-- function, say.</li>
-- </ul>
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier
-- | The time (in milliseconds) when an event happened. This is used mostly
-- for ordering events and responses to events.
type TimeStamp = Word32
-- | Represents the current time, and can be used anywhere a time is
-- expected.
currentTime :: TimeStamp
-- | Events that are delivered to a widget.
--
-- <ul>
-- <li>Any given signal only emits one of these variants as described in
-- <a>Widget</a>. Many events share common attributes:</li>
-- <li>The <a>eventSent</a> attribute is <tt>True</tt> if the event was
-- not created by the user but by another application.</li>
-- <li>The <a>eventTime</a> attribute contains a time in milliseconds
-- when the event happened.</li>
-- <li>The <a>eventX</a> and <a>eventY</a> attributes contain the
-- coordinates relative to the <a>DrawWindow</a> associated with this
-- widget. The values can contain sub-pixel information if the input
-- device is a graphics tablet or the like.</li>
-- <li>The <a>eventModifier</a> attribute denotes what modifier key was
-- pressed during the event.</li>
-- </ul>
data Event
-- | An event that is not in one of the more specific categories below.
-- This includes delete, destroy, map and unmap events. These events have
-- no extra information associated with them.
Event :: Bool -> Event
[eventSent] :: Event -> Bool
-- | The expose event.
--
-- <ul>
-- <li>A region of widget that receives this event needs to be redrawn.
-- This event is the result of revealing part or all of a window or by
-- the application calling functions like
-- <a>widgetQueueDrawArea</a>.</li>
-- </ul>
Expose :: Bool -> Rectangle -> Int -> Event
[eventSent] :: Event -> Bool
-- | A bounding box denoting what needs to be updated. For a more detailed
-- information on the area that needs redrawing, use the next field.
[eventArea] :: Event -> Rectangle
-- | The number of contiguous <a>Expose</a> events following this one. The
-- only use for this is "exposure compression", i.e. handling all
-- contiguous <a>Expose</a> events in one go, though Gdk performs some
-- exposure compression so this is not normally needed.
[eventCount] :: Event -> Int
-- | Mouse motion.
--
-- <ul>
-- <li>Captures the movement of the mouse cursor while it is within the
-- area of the widget.</li>
-- </ul>
Motion :: Bool -> TimeStamp -> Double -> [Modifier] -> Bool -> Double -> Event
[eventSent] :: Event -> Bool
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX, eventY] :: Event -> Double
[eventModifier] :: Event -> [Modifier]
-- | Indicate if this event is only a hint of the motion.
--
-- <ul>
-- <li>If the <a>PointerMotionHintMask</a> is set with
-- <a>widgetAddEvents</a> then mouse positions are only generated each
-- time <a>drawWindowGetPointer</a> is called. In this case
-- <a>eventIsHint</a> is set to <tt>True</tt>.</li>
-- </ul>
[eventIsHint] :: Event -> Bool
-- | The coordinates of the click relative to the screen origin.
-- | The coordinates of the click relative to the screen origin.
[eventXRoot, eventYRoot] :: Event -> Double
-- | A mouse button was pressed or released.
--
-- <ul>
-- <li>This event is triggered if the mouse button was pressed or
-- released while the mouse cursor was within the region of the
-- widget.</li>
-- </ul>
Button :: Bool -> Click -> TimeStamp -> Double -> [Modifier] -> MouseButton -> Double -> Event
[eventSent] :: Event -> Bool
-- | The kind of button press, see <a>Click</a>. Note that double clicks
-- will trigger this event with <a>eventClick</a> set to
-- <a>SingleClick</a>, <a>ReleaseClick</a>, <a>SingleClick</a>,
-- <a>DoubleClick</a>, <a>ReleaseClick</a>. Triple clicks will produce
-- this sequence followed by <a>SingleClick</a>, <a>DoubleClick</a>,
-- <a>TripleClick</a>, <a>ReleaseClick</a>.
[eventClick] :: Event -> Click
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX, eventY] :: Event -> Double
[eventModifier] :: Event -> [Modifier]
-- | The button that was pressed.
[eventButton] :: Event -> MouseButton
-- | The coordinates of the click relative to the screen origin.
-- | The coordinates of the click relative to the screen origin.
[eventXRoot, eventYRoot] :: Event -> Double
-- | A key was pressed while the widget had the input focus.
--
-- <ul>
-- <li>If the widget has the current input focus (see
-- <a>widgetSetCanFocus</a>) it will receive key pressed events. Certain
-- key combinations are of no interest to a normal widget like Alt-F to
-- access the file menu. For all these keys, the handler must return
-- <tt>False</tt> to indicate that the key stroke should be propagated to
-- the parent widget. At the top-level widget, keyboard shortcuts like
-- Alt-F are turned into the corresponding signals.</li>
-- </ul>
Key :: Bool -> Bool -> TimeStamp -> [Modifier] -> Bool -> Bool -> Bool -> KeyVal -> DefaultGlibString -> Maybe Char -> Event
-- | This flag is set if the key was released. This flag makes it possible
-- to connect the same handler to <a>onKeyPress</a> and
-- <a>onKeyRelease</a>.
[eventRelease] :: Event -> Bool
[eventSent] :: Event -> Bool
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventModifier] :: Event -> [Modifier]
-- | This flag is <tt>True</tt> if Caps Lock is on while this key was
-- pressed.
[eventWithCapsLock] :: Event -> Bool
-- | This flag is <tt>True</tt> if Number Lock is on while this key was
-- pressed.
[eventWithNumLock] :: Event -> Bool
-- | This flag is <tt>True</tt> if Scroll Lock is on while this key was
-- pressed.
[eventWithScrollLock] :: Event -> Bool
-- | A number representing the key that was pressed or released. A more
-- convenient interface is provided by the next two fields.
[eventKeyVal] :: Event -> KeyVal
-- | A string representing the key that was pressed or released.
--
-- <ul>
-- <li>This string contains a description of the key rather than what
-- should appear on screen. For example, pressing "1" on the keypad
-- results in <a>KP_1</a>. Of particular interest are <a>F1</a> till
-- <a>F12</a>, for a complete list refer to "<a>gdk/gdkkeysyms.h</a>"
-- where all possible values are defined. The corresponding strings are
-- the constants without the GDK_ prefix.</li>
-- </ul>
[eventKeyName] :: Event -> DefaultGlibString
-- | A character matching the key that was pressed.
--
-- <ul>
-- <li>This entry can be used to build up a whole input string. The
-- character is <tt>Nothing</tt> if the key does not correspond to a
-- simple unicode character.</li>
-- </ul>
[eventKeyChar] :: Event -> Maybe Char
-- | Mouse cursor crossing event.
--
-- <ul>
-- <li>This event indicates that the mouse cursor is hovering over this
-- widget. It is used to set a widget into the pre-focus state where some
-- GUI elements like buttons on a toolbar change their appearance.</li>
-- </ul>
Crossing :: Bool -> TimeStamp -> Double -> Double -> Bool -> CrossingMode -> NotifyType -> [Modifier] -> Event
[eventSent] :: Event -> Bool
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX, eventY] :: Event -> Double
-- | The coordinates of the click relative to the screen origin.
-- | The coordinates of the click relative to the screen origin.
[eventXRoot, eventYRoot] :: Event -> Double
-- | This flag is false if the widget was entered, it is true when the
-- widget the mouse cursor left the widget.
[eventLeaves] :: Event -> Bool
-- | Kind of enter/leave event.
--
-- <ul>
-- <li>The mouse cursor might enter this widget because it grabs the
-- mouse cursor for e.g. a modal dialog box.</li>
-- </ul>
[eventCrossingMode] :: Event -> CrossingMode
-- | Information on from what level of the widget hierarchy the mouse
-- cursor came.
--
-- <ul>
-- <li>See <a>NotifyType</a>.</li>
-- </ul>
[eventNotifyType] :: Event -> NotifyType
[eventModifier] :: Event -> [Modifier]
-- | Gaining or loosing input focus.
Focus :: Bool -> Bool -> Event
[eventSent] :: Event -> Bool
-- | This flag is <tt>True</tt> if the widget receives the focus and
-- <tt>False</tt> if it just lost the input focus.
[eventInFocus] :: Event -> Bool
-- | The widget's size has changed.
--
-- <ul>
-- <li>In response to this event the application can allocate resources
-- that are specific to the size of the widget. It is emitted when the
-- widget is shown the first time and on every resize.</li>
-- </ul>
Configure :: Bool -> Int -> Int -> Int -> Int -> Event
[eventSent] :: Event -> Bool
-- | Position within the parent window.
[eventXParent] :: Event -> Int
-- | Position within the parent window.
[eventYParent] :: Event -> Int
[eventWidth] :: Event -> Int
[eventHeight] :: Event -> Int
-- | Change of visibility of a widget.
Visibility :: Bool -> VisibilityState -> Event
[eventSent] :: Event -> Bool
-- | Denote what portions of the widget is visible.
[eventVisible] :: Event -> VisibilityState
-- | Wheel movement of the mouse.
--
-- <ul>
-- <li>This action denotes that the content of the widget should be
-- scrolled. The event is triggered by the movement of the mouse wheel.
-- Surrounding scroll bars are independant of this signal. Most mice do
-- not have buttons for horizontal scrolling, hence <a>eventDirection</a>
-- will usually not contain <a>ScrollLeft</a> and <a>ScrollRight</a>.
-- Mice with additional buttons may not work on X since only five buttons
-- are supported (the three main buttons and two for the wheel).</li>
-- <li>The handler of this signal should update the scroll bars that
-- surround this widget which in turn tell this widget to update.</li>
-- </ul>
Scroll :: Bool -> TimeStamp -> Double -> ScrollDirection -> Double -> Event
[eventSent] :: Event -> Bool
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX, eventY] :: Event -> Double
[eventDirection] :: Event -> ScrollDirection
-- | The coordinates of the click relative to the screen origin.
-- | The coordinates of the click relative to the screen origin.
[eventXRoot, eventYRoot] :: Event -> Double
-- | Indicate how the appearance of this window has changed.
WindowState :: Bool -> [WindowState] -> [WindowState] -> Event
[eventSent] :: Event -> Bool
-- | The mask indicates which flags have changed.
[eventWindowMask] :: Event -> [WindowState]
-- | The state indicates the current state of the window.
[eventWindowState] :: Event -> [WindowState]
-- | The state of the pen of a graphics tablet pen or touchscreen device.
Proximity :: Bool -> TimeStamp -> Bool -> Event
[eventSent] :: Event -> Bool
-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
-- | Whether the stylus has moved in or out of contact with the tablet.
[eventInContact] :: Event -> Bool
-- | An event that contains information on a button press.
type EventButton = Event
-- | An event that contains information on scrolling.
type EventScroll = Event
-- | An event that contains information on the movement of the mouse
-- pointer.
type EventMotion = Event
-- | An area of the <tt>DrawWindow</tt> needs redrawing.
type EventExpose = Event
-- | An event that contains information about a key press.
type EventKey = Event
-- | An event that contains the new size of a window.
type EventConfigure = Event
-- | Generated when the pointer enters or leaves a window.
type EventCrossing = Event
-- | An event that informs about a change of the input focus.
type EventFocus = Event
-- | An event that indicates a property of the window changed.
type EventProperty = Event
-- | An event that indicates that the pen of a graphics table is touching
-- or not touching the tablet.
type EventProximity = Event
-- | Parts of the window have been exposed or obscured.
type EventVisibility = Event
-- | The window state has changed.
type EventWindowState = Event
-- | A grab has been broken by unusual means.
type EventGrabBroken = Event
marshExposeRect :: Ptr Event -> IO Rectangle
marshalEvent :: Ptr Event -> IO Event
-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState
-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode
-- | Information on from what level of the widget hierarchy the mouse
-- cursor came.
--
-- <ul>
-- <li><i><a>NotifyAncestor</a></i> The window is entered from an
-- ancestor or left towards an ancestor.</li>
-- <li><i><a>NotifyVirtual</a></i> The pointer moves between an ancestor
-- and an inferior of the window.</li>
-- <li><i><a>NotifyInferior</a></i> The window is entered from an
-- inferior or left towards an inferior.</li>
-- <li><i><a>NotifyNonlinear</a></i> The window is entered from or left
-- towards a window which is neither an ancestor nor an inferior.</li>
-- <li><i><a>NotifyNonlinearVirtual</a></i> The pointer moves between two
-- windows which are not ancestors of each other and the window is part
-- of the ancestor chain between one of these windows and their least
-- common ancestor.</li>
-- <li><i><a>NotifyUnknown</a></i> The level change does not fit into any
-- of the other categories or could not be determined.</li>
-- </ul>
data NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType
-- | The state a <tt>DrawWindow</tt> is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState
-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection
-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton
-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click
-- | Rectangle
--
-- <ul>
-- <li>Specifies x, y, width and height</li>
-- </ul>
data Rectangle :: *
Rectangle :: Int -> Int -> Int -> Int -> Rectangle
instance GHC.Show.Show Graphics.UI.Gtk.Gdk.Events.Event
-- | A StockItem is a resource that is know throughout Gtk.
--
-- <ul>
-- <li>Defining you own <a>IconSet</a>s as <a>StockItem</a>s will make it
-- possible for Gtk to choose the most appropriate sizes and enables
-- themes to override your built in icons. A couple of constants are
-- defined here as well. They are useful in accessing Gtk's predefined
-- items.</li>
-- </ul>
module Graphics.UI.Gtk.General.StockItems
-- | The description of a stock item.
data StockItem
StockItem :: StockId -> DefaultGlibString -> [Modifier] -> KeyVal -> DefaultGlibString -> StockItem
[siStockId] :: StockItem -> StockId
[siLabel] :: StockItem -> DefaultGlibString
[siModifier] :: StockItem -> [Modifier]
[siKeyval] :: StockItem -> KeyVal
[siTransDom] :: StockItem -> DefaultGlibString
-- | A synonym for a standard button or icon.
type StockId = DefaultGlibString
-- | Add new stock items to Gtk.
stockAddItem :: [StockItem] -> IO ()
-- | Lookup an item in stock.
stockLookupItem :: StockId -> IO (Maybe StockItem)
-- | Produce a list of all known stock identifiers.
--
-- <ul>
-- <li>Retrieve a list of all known stock identifiers. These can either
-- be added by <a>stockAddItem</a> or by adding items to a
-- <a>IconFactory</a>.</li>
-- <li>The list is sorted alphabetically (sorting is not Unicode
-- aware).</li>
-- </ul>
stockListIds :: IO [StockId]
stockAbout :: StockId
stockAdd :: StockId
stockApply :: StockId
stockBold :: StockId
stockCancel :: StockId
stockCapsLockWarning :: StockId
stockCDROM :: StockId
stockClear :: StockId
stockClose :: StockId
stockColorPicker :: StockId
stockConvert :: StockId
stockConnect :: StockId
stockCopy :: StockId
stockCut :: StockId
stockDelete :: StockId
stockDialogAuthentication :: StockId
stockDialogError :: StockId
stockDialogInfo :: StockId
stockDialogQuestion :: StockId
stockDialogWarning :: StockId
stockDirectory :: StockId
stockDiscard :: StockId
stockDisconnect :: StockId
stockDnd :: StockId
stockDndMultiple :: StockId
stockEdit :: StockId
stockExecute :: StockId
stockFile :: StockId
stockFind :: StockId
stockFindAndRelpace :: StockId
stockFloppy :: StockId
stockFullscreen :: StockId
stockGotoBottom :: StockId
stockGotoFirst :: StockId
stockGotoLast :: StockId
stockGotoTop :: StockId
stockGoBack :: StockId
stockGoDown :: StockId
stockGoForward :: StockId
stockGoUp :: StockId
stockHarddisk :: StockId
stockHelp :: StockId
stockHome :: StockId
stockIndent :: StockId
stockIndex :: StockId
stockInfo :: StockId
stockItalic :: StockId
stockJumpTo :: StockId
stockJustifyCenter :: StockId
stockJustifyFill :: StockId
stockJustifyLeft :: StockId
stockJustifyRight :: StockId
stockLeaveFullscreen :: StockId
stockMediaForward :: StockId
stockMediaNext :: StockId
stockMediaPause :: StockId
stockMediaPlay :: StockId
stockMediaPrevious :: StockId
stockMediaRecord :: StockId
stockMediaRewind :: StockId
stockMediaStop :: StockId
stockMissingImage :: StockId
stockNetwork :: StockId
stockNew :: StockId
stockNo :: StockId
stockOk :: StockId
stockOpen :: StockId
stockOrientationLandscape :: StockId
stockOrientationReverseLandscape :: StockId
stockOrientationPortrait :: StockId
stockOrientationReversePortrait :: StockId
stockPageSetup :: StockId
stockPaste :: StockId
stockPreferences :: StockId
stockPrint :: StockId
stockPrintError :: StockId
stockPrintPaused :: StockId
stockPrintReport :: StockId
stockPrintWarning :: StockId
stockPrintPreview :: StockId
stockProperties :: StockId
stockQuit :: StockId
stockRedo :: StockId
stockRefresh :: StockId
stockRemove :: StockId
stockRevertToSaved :: StockId
stockSave :: StockId
stockSaveAs :: StockId
stockSelectAll :: StockId
stockSelectColor :: StockId
stockSelectFont :: StockId
stockSortAscending :: StockId
stockSortDescending :: StockId
stockSpellCheck :: StockId
stockStop :: StockId
stockStrikethrough :: StockId
stockUndelete :: StockId
stockUnderline :: StockId
stockUndo :: StockId
stockUnindent :: StockId
stockYes :: StockId
stockZoom100 :: StockId
stockZoomFit :: StockId
stockZoomIn :: StockId
stockZoomOut :: StockId
instance Foreign.Storable.Storable Graphics.UI.Gtk.General.StockItems.StockItem
-- | The base class for all widgets.
module Graphics.UI.Gtk.Abstract.Widget
data Widget
class GObjectClass o => WidgetClass o
castToWidget :: GObjectClass obj => obj -> Widget
gTypeWidget :: GType
toWidget :: WidgetClass o => o -> Widget
-- | Specify which events a widget will emit signals on.
data EventMask
ExposureMask :: EventMask
PointerMotionMask :: EventMask
PointerMotionHintMask :: EventMask
ButtonMotionMask :: EventMask
Button1MotionMask :: EventMask
Button2MotionMask :: EventMask
Button3MotionMask :: EventMask
ButtonPressMask :: EventMask
ButtonReleaseMask :: EventMask
KeyPressMask :: EventMask
KeyReleaseMask :: EventMask
EnterNotifyMask :: EventMask
LeaveNotifyMask :: EventMask
FocusChangeMask :: EventMask
StructureMask :: EventMask
PropertyChangeMask :: EventMask
VisibilityNotifyMask :: EventMask
ProximityInMask :: EventMask
ProximityOutMask :: EventMask
SubstructureMask :: EventMask
ScrollMask :: EventMask
TouchMask :: EventMask
SmoothScrollMask :: EventMask
TouchpadGestureMask :: EventMask
TabletPadMask :: EventMask
AllEventsMask :: EventMask
type GType = CULong
-- | Key values are the codes which are sent whenever a key is pressed or
-- released.
type KeyVal = Word32
-- | Requisition
--
-- <ul>
-- <li>For <a>widgetSizeRequest</a>. The values represent the desired
-- width and height of the widget.</li>
-- </ul>
data Requisition
Requisition :: Int -> Int -> Requisition
-- | Rectangle
--
-- <ul>
-- <li>Specifies x, y, width and height</li>
-- </ul>
data Rectangle :: *
Rectangle :: Int -> Int -> Int -> Int -> Rectangle
-- | Color
--
-- <ul>
-- <li>Specifies a color with three integer values for red, green and
-- blue. All values range from 0 (least intense) to 65535 (highest
-- intensity).</li>
-- </ul>
data Color :: *
-- | The size of an icon in pixels.
--
-- <ul>
-- <li>This enumeration contains one case that is not exported and which
-- is used when new sizes are registered using
-- <a>iconSizeRegister</a>.</li>
-- <li>Applying <a>show</a> to this type will reveal the name of the size
-- that is registered with Gtk+.</li>
-- </ul>
data IconSize
-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize
-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize
-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize
-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize
-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize
-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize
-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize
-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection
-- | State of an accelerator
data AccelFlags
AccelVisible :: AccelFlags
AccelLocked :: AccelFlags
AccelMask :: AccelFlags
-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType
-- | A synonym for a standard button or icon.
type StockId = DefaultGlibString
-- | Specify what kind of help the user wants.
data WidgetHelpType
WidgetHelpTooltip :: WidgetHelpType
WidgetHelpWhatsThis :: WidgetHelpType
-- | Allocation
--
-- <ul>
-- <li>For Widget's <a>sizeAllocate</a> signal. The <tt>x</tt> and
-- <tt>y</tt> values of the rectangle refer to the widgets position
-- relative to its parent window.</li>
-- </ul>
type Allocation = Rectangle
-- | Flags a widget to be displayed. Any widget that isn't shown will not
-- appear on the screen. If you want to show all the widgets in a
-- container, it's easier to call <a>widgetShowAll</a> on the container,
-- instead of individually showing the widgets.
--
-- Remember that you have to show the containers containing a widget, in
-- addition to the widget itself, before it will appear onscreen.
--
-- When a toplevel container is shown, it is immediately realized and
-- mapped; other shown widgets are realized and mapped when their
-- toplevel container is realized and mapped.
widgetShow :: WidgetClass self => self -> IO ()
-- | Shows a widget. If the widget is an unmapped toplevel widget (i.e. a
-- <a>Window</a> that has not yet been shown), enter the main loop and
-- wait for the window to actually be mapped. Be careful; because the
-- main loop is running, anything can happen during this function.
widgetShowNow :: WidgetClass self => self -> IO ()
-- | Reverses the effects of <a>widgetShow</a>, causing the widget to be
-- hidden (invisible to the user).
widgetHide :: WidgetClass self => self -> IO ()
-- | Recursively shows a widget, and any child widgets (if the widget is a
-- container).
widgetShowAll :: WidgetClass self => self -> IO ()
-- | Destroys a widget. Equivalent to <a>objectDestroy</a>.
--
-- When a widget is destroyed it will be removed from the screen and
-- unrealized. When a widget is destroyed, it will break any references
-- it holds to other objects.If the widget is inside a container, the
-- widget will be removed from the container. The widget will be garbage
-- collected (finalized) time after your last reference to the widget
-- dissapears.
--
-- In most cases, only toplevel widgets (windows) require explicit
-- destruction, because when you destroy a toplevel its children will be
-- destroyed as well.
widgetDestroy :: WidgetClass self => self -> IO ()
-- | Draws widget to <tt>cr</tt>. The top left corner of the widget will be
-- drawn to the currently set origin point of <tt>cr</tt>.
--
-- You should pass a cairo context as cr argument that is in an original
-- state. Otherwise the resulting drawing is undefined. For example
-- changing the operator using <a>setOperator</a> or the line width using
-- <a>setLineWidth</a> might have unwanted side effects. You may however
-- change the context’s transform matrix - like with <a>scale</a>,
-- <a>translate</a> or <a>setMatrix</a> and clip region with <a>clip</a>
-- prior to calling this function. Also, it is fine to modify the context
-- with <a>save</a> and 'Graphics.Rendering.Cairo.pushGroup prior to
-- calling this function.
--
-- Note that special-purpose widgets may contain special code for
-- rendering to the screen and might appear differently on screen and
-- when rendered using <a>widgetDraw</a>.
widgetDraw :: WidgetClass self => self -> Cairo -> IO ()
-- | Send a redraw request to a widget. Equivalent to calling
-- <a>widgetQueueDrawArea</a> for the entire area of a widget.
widgetQueueDraw :: WidgetClass self => self -> IO ()
-- | This function is only for use in widget implementations. Flags a
-- widget to have its size renegotiated; should be called when a widget
-- for some reason has a new size request. For example, when you change
-- the text in a <a>Label</a>, <a>Label</a> queues a resize to ensure
-- there's enough space for the new text.
widgetQueueResize :: WidgetClass self => self -> IO ()
-- | This function works like <a>widgetQueueResize</a>, except that the
-- widget is not invalidated.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetQueueResizeNoRedraw :: WidgetClass self => self -> IO ()
-- | Obtains the frame clock for a widget. The frame clock is a global
-- “ticker” that can be used to drive animations and repaints. The most
-- common reason to get the frame clock is to call
-- <tt>frameClockGetFrameTime</tt>, in order to get a time to use for
-- animating. For example you might record the start of the animation
-- with an initial value from <tt>frameClockGetFrameTime</tt>, and then
-- update the animation by calling <tt>frameClockGetFrameTime</tt> again
-- during each repaint.
--
-- <tt>frameClockRequestPhase</tt> will result in a new frame on the
-- clock, but won’t necessarily repaint any widgets. To repaint a widget,
-- you have to use <a>widgetQueueDraw</a> which invalidates the widget
-- (thus scheduling it to receive a draw on the next frame).
-- <a>widgetQueueDraw</a> will also end up requesting a frame on the
-- appropriate frame clock.
--
-- A widget’s frame clock will not change while the widget is mapped.
-- Reparenting a widget (which implies a temporary unmap) can change the
-- widget’s frame clock.
--
-- Unrealized widgets do not have a frame clock.
widgetGetFrameClock :: WidgetClass self => self -> IO FrameClock
-- | Retrieves the internal scale factor that maps from window coordinates
-- to the actual device pixels. On traditional systems this is 1, on high
-- density outputs, it can be a higher value (typically 2).
--
-- See <tt>drawWindowGetScaleFactor</tt>.
widgetGetScaleFactor :: WidgetClass self => self -> IO Int
-- | This function is typically used when implementing a <a>Container</a>
-- subclass. Obtains the preferred size of a widget. The container uses
-- this information to arrange its child widgets and decide what size
-- allocations to give them with <a>widgetSizeAllocate</a>.
--
-- You can also call this function from an application, with some
-- caveats. Most notably, getting a size request requires the widget to
-- be associated with a screen, because font information may be needed.
-- Multihead-aware applications should keep this in mind.
--
-- Also remember that the size request is not necessarily the size a
-- widget will actually be allocated.
widgetSizeRequest :: WidgetClass self => self -> IO Requisition
-- | This function is only for use in widget implementations. Obtains the
-- chached requisition information in the widget, unless someone has
-- forced a particular geometry on the widget (e.g. with
-- <tt>widgetSetUsize</tt>), in which case it returns that geometry
-- instead of the widget's requisition.
--
-- This function differs from <a>widgetSizeRequest</a> in that it
-- retrieves the last size request value stored in the widget, while
-- <a>widgetSizeRequest</a> actually emits the <a>sizeRequest</a> signal
-- on the widget to compute the size request (which updates the widget's
-- requisition information).
--
-- Since this function does not emit the <a>sizeRequest</a> signal, it
-- can only be used when you know that the widget's requisition is
-- up-to-date, that is, <a>widgetSizeRequest</a> has been called since
-- the last time a resize was queued. In general, only container
-- implementations have this information; applications should use
-- <a>widgetSizeRequest</a>.
widgetGetChildRequisition :: WidgetClass self => self -> IO Requisition
-- | This function is only used by <a>Container</a> subclasses, to assign a
-- size and position to their child widgets.
widgetSizeAllocate :: WidgetClass self => self -> Allocation -> IO ()
-- | This function is only used by <a>Container</a> subclasses, to assign a
-- size, position and (optionally) baseline to their child widgets.
--
-- In this function, the allocation and baseline may be adjusted. It will
-- be forced to a 1x1 minimum size, and the adjust_size_allocation
-- virtual and adjust_baseline_allocation methods on the child will be
-- used to adjust the allocation and baseline. Standard adjustments
-- include removing the widget's margins, and applying the widget’s
-- <tt>widgetHAlign</tt> and <tt>widgetVAlign</tt> properties.
--
-- If the child widget does not have a valign of AlignBaseline the
-- baseline argument is ignored and -1 is used instead.
widgetSizeAllocateWithBaseline :: WidgetClass self => self -> Allocation -> Int -> IO ()
-- | Installs an accelerator for this <tt>widget</tt> in
-- <tt>accelGroup</tt> that causes <tt>accelSignal</tt> to be emitted if
-- the accelerator is activated. The <tt>accelGroup</tt> needs to be
-- added to the widget's toplevel via <tt>windowAddAccelGroup</tt>, and
-- the signal must be of type <tt>G_RUN_ACTION</tt>. Accelerators added
-- through this function are not user changeable during runtime. If you
-- want to support accelerators that can be changed by the user, use
-- <tt>accelMapAddEntry</tt> and <a>widgetSetAccelPath</a> or
-- <tt>menuItemSetAccelPath</tt> instead.
widgetAddAccelerator :: (WidgetClass self, GlibString string) => self -> string -> AccelGroup -> KeyVal -> [Modifier] -> [AccelFlags] -> IO ()
-- | Removes an accelerator from <tt>widget</tt>, previously installed with
-- <a>widgetAddAccelerator</a>.
widgetRemoveAccelerator :: WidgetClass self => self -> AccelGroup -> KeyVal -> [Modifier] -> IO Bool
-- | Given an accelerator group, <tt>accelGroup</tt>, and an accelerator
-- path, <tt>accelPath</tt>, sets up an accelerator in
-- <tt>accelGroup</tt> so whenever the key binding that is defined for
-- <tt>accelPath</tt> is pressed, <tt>widget</tt> will be activated. This
-- removes any accelerators (for any accelerator group) installed by
-- previous calls to <a>widgetSetAccelPath</a>. Associating accelerators
-- with paths allows them to be modified by the user and the
-- modifications to be saved for future use. (See <tt>accelMapSave</tt>.)
--
-- This function is a low level function that would most likely be used
-- by a menu creation system like <tt>ItemFactory</tt>. If you use
-- <tt>ItemFactory</tt>, setting up accelerator paths will be done
-- automatically.
--
-- Even when you you aren't using <tt>ItemFactory</tt>, if you only want
-- to set up accelerators on menu items <tt>menuItemSetAccelPath</tt>
-- provides a somewhat more convenient interface.
widgetSetAccelPath :: (WidgetClass self, GlibString string) => self -> string -> AccelGroup -> IO ()
-- | Determines whether an accelerator that activates the signal identified
-- by <tt>signalId</tt> can currently be activated. This is done by
-- emitting the <tt>canActivateAccel</tt> signal on the widget the signal
-- is attached to; if the signal isn't overridden by a handler or in a
-- derived widget, then the default check is that the widget must be
-- sensitive, and the widget and all its ancestors mapped.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetCanActivateAccel :: WidgetClass self => (ConnectId self) -> IO Bool
-- | For widgets that can be "activated" (buttons, menu items, etc.) this
-- function activates them. Activation is what happens when you press
-- Enter on a widget during key navigation. If <tt>widget</tt> isn't
-- activatable, the function returns <tt>False</tt>.
widgetActivate :: WidgetClass self => self -> IO Bool
-- | Computes the intersection of a widget's area and <tt>area</tt>,
-- returning the intersection, and returns <tt>Nothing</tt> if there was
-- no intersection.
widgetIntersect :: WidgetClass self => self -> Rectangle -> IO (Maybe Rectangle)
-- | Check if the widget intersects with a given area.
widgetHasIntersection :: WidgetClass self => self -> Rectangle -> IO Bool
-- | Determines if the widget is the focus widget within its toplevel.
-- (This does not mean that the <a>widgetHasFocus</a> attribute is
-- necessarily set; <a>widgetHasFocus</a> will only be set if the
-- toplevel widget additionally has the global input focus.)
widgetGetIsFocus :: WidgetClass self => self -> IO Bool
-- | Causes <tt>widget</tt> to have the keyboard focus for the
-- <a>Window</a> it's inside. <tt>widget</tt> must be a focusable widget,
-- such as a <a>Entry</a>; something like <a>Frame</a> won't work. (More
-- precisely, it must have the <a>widgetCanFocus</a> flag set.)
widgetGrabFocus :: WidgetClass self => self -> IO ()
-- | Causes <tt>widget</tt> to become the default widget. <tt>widget</tt>
-- must have the <tt>canDefault</tt> flag set. The default widget is
-- activated when the user presses Enter in a window. Default widgets
-- must be activatable, that is, <a>widgetActivate</a> should affect
-- them.
widgetGrabDefault :: WidgetClass self => self -> IO ()
-- | Widgets can be named, which allows you to refer to them from a gtkrc
-- file. You can apply a style to widgets with a particular name in the
-- gtkrc file. See the documentation for gtkrc files.
--
-- Note that widget names are separated by periods in paths (see
-- <a>widgetPath</a>), so names with embedded periods may cause
-- confusion.
widgetSetName :: (WidgetClass self, GlibString string) => self -> string -> IO ()
-- | Retrieves the name of a widget. See <a>widgetSetName</a> for the
-- significance of widget names.
widgetGetName :: (WidgetClass self, GlibString string) => self -> IO string
-- | Sets the sensitivity of a widget. A widget is sensitive if the user
-- can interact with it. Insensitive widgets are "grayed out" and the
-- user can't interact with them. Insensitive widgets are known as
-- "inactive", "disabled", or "ghosted" in some other toolkits.
widgetSetSensitive :: WidgetClass self => self -> Bool -> IO ()
widgetSetSensitivity :: WidgetClass self => self -> Bool -> IO ()
-- | Gets the widget's parent window.
widgetGetParentWindow :: WidgetClass self => self -> IO DrawWindow
-- | Disable event signals.
--
-- <ul>
-- <li>Remove events from the <a>EventMask</a> of this widget. The event
-- mask determines which events a widget will receive. Events are signals
-- that return an <tt>Event</tt> data type. On connecting to a such a
-- signal, the event mask is automatically adjusted so that he signal is
-- emitted. This function is useful to disable the reception of the
-- signal. It should be called whenever all signals receiving an
-- <tt>Event</tt> have been disconnected.</li>
-- </ul>
widgetDelEvents :: WidgetClass self => self -> [EventMask] -> IO ()
-- | Enable event signals.
--
-- <ul>
-- <li>See <a>widgetDelEvents</a>.</li>
-- </ul>
widgetAddEvents :: WidgetClass self => self -> [EventMask] -> IO ()
-- | Get enabled event signals.
--
-- <ul>
-- <li>See <a>widgetDelEvents</a>.</li>
-- </ul>
widgetGetEvents :: WidgetClass self => self -> IO [EventMask]
-- | Sets the event mask (see <a>EventMask</a>) for a widget. The event
-- mask determines which events a widget will receive. Keep in mind that
-- different widgets have different default event masks, and by changing
-- the event mask you may disrupt a widget's functionality, so be
-- careful. This function must be called while a widget is unrealized.
-- Consider <a>widgetAddEvents</a> for widgets that are already realized,
-- or if you want to preserve the existing event mask. This function
-- can't be used with <tt>NoWindow</tt> widgets; to get events on those
-- widgets, place them inside a <a>EventBox</a> and receive events on the
-- event box.
widgetSetEvents :: WidgetClass self => self -> [EventMask] -> IO ()
-- | This function returns the topmost widget in the container hierarchy
-- <tt>widget</tt> is a part of. If <tt>widget</tt> has no parent
-- widgets, it will be returned as the topmost widget.
widgetGetToplevel :: WidgetClass self => self -> IO Widget
-- | Gets the first ancestor of <tt>widget</tt> with type
-- <tt>widgetType</tt>. For example, <tt>widgetGetAncestor widget
-- gTypeBox</tt> gets the first <a>Box</a> that's an ancestor of
-- <tt>widget</tt>. See note about checking for a toplevel <a>Window</a>
-- in the docs for <a>widgetGetToplevel</a>.
--
-- Note that unlike <a>widgetIsAncestor</a>, <a>widgetGetAncestor</a>
-- considers <tt>widget</tt> to be an ancestor of itself.
widgetGetAncestor :: WidgetClass self => self -> GType -> IO (Maybe Widget)
-- | Obtains the location of the mouse pointer in widget coordinates.
-- Widget coordinates are a bit odd; for historical reasons, they are
-- defined as <a>widgetGetParentWindow</a> coordinates for widgets that
-- are not <tt>NoWindow</tt> widgets, and are relative to the widget's
-- allocation's (x,y) for widgets that are <tt>NoWindow</tt> widgets.
widgetGetPointer :: WidgetClass self => self -> IO (Int, Int)
-- | Determines whether <tt>widget</tt> is somewhere inside
-- <tt>ancestor</tt>, possibly with intermediate containers.
widgetIsAncestor :: (WidgetClass self, WidgetClass ancestor) => self -> ancestor -> IO Bool
-- | Translate coordinates relative to <tt>srcWidget</tt>'s allocation to
-- coordinates relative to <tt>destWidget</tt>'s allocations. In order to
-- perform this operation, both widgets must be realized, and must share
-- a common toplevel.
widgetTranslateCoordinates :: (WidgetClass self, WidgetClass destWidget) => self -> destWidget -> Int -> Int -> IO (Maybe (Int, Int))
-- | Sets the <a>Style</a> for a widget. You probably don't want to use
-- this function; it interacts badly with themes, because themes work by
-- replacing the <a>Style</a>. Instead, use <a>widgetModifyStyle</a>.
widgetSetStyle :: WidgetClass self => self -> Maybe Style -> IO ()
-- | Retrieve the <a>Style</a> associated with the widget.
widgetGetStyle :: WidgetClass widget => widget -> IO Style
-- | Returns the default style used by all widgets initially.
widgetGetDefaultStyle :: IO Style
-- | Sets the reading direction on a particular widget. This direction
-- controls the primary direction for widgets containing text, and also
-- the direction in which the children of a container are packed. The
-- ability to set the direction is present in order so that correct
-- localization into languages with right-to-left reading directions can
-- be done. Generally, applications will let the default reading
-- direction present, except for containers where the containers are
-- arranged in an order that is explicitely visual rather than logical
-- (such as buttons for text justification).
--
-- If the direction is set to <a>TextDirNone</a>, then the value set by
-- <a>widgetSetDefaultDirection</a> will be used.
widgetSetDirection :: WidgetClass self => self -> TextDirection -> IO ()
-- | Gets the reading direction for a particular widget. See
-- <a>widgetSetDirection</a>.
widgetGetDirection :: WidgetClass self => self -> IO TextDirection
-- | Sets the default reading direction for widgets where the direction has
-- not been explicitly set by <a>widgetSetDirection</a>.
widgetSetDefaultDirection :: TextDirection -> IO ()
-- | Obtains the current default reading direction. See
-- <a>widgetSetDefaultDirection</a>.
widgetGetDefaultDirection :: IO TextDirection
-- | Sets a shape for this widget’s GDK window. This allows for transparent
-- windows etc., see <tt>drawWindowShapeCombineRegion</tt> for more
-- information.
widgetShapeCombineRegion :: WidgetClass self => self -> Maybe Region -> IO ()
-- | Sets an input shape for this widget’s GDK window. This allows for
-- windows which react to mouse click in a nonrectangular region, see
-- <tt>drawWindowInputShapeCombineRegion</tt> for more information.
widgetInputShapeCombineRegion :: WidgetClass self => self -> Maybe Region -> IO ()
-- | Obtains the full path to <tt>widget</tt>. The path is simply the name
-- of a widget and all its parents in the container hierarchy, separated
-- by periods. The name of a widget comes from <a>widgetGetName</a>.
-- Paths are used to apply styles to a widget in gtkrc configuration
-- files. Widget names are the type of the widget by default (e.g.
-- "GtkButton") or can be set to an application-specific value with
-- <a>widgetSetName</a>. By setting the name of a widget, you allow users
-- or theme authors to apply styles to that specific widget in their
-- gtkrc file. Also returns the path in reverse order, i.e. starting with
-- the widget's name instead of starting with the name of the widget's
-- outermost ancestor.
widgetPath :: (WidgetClass self, GlibString string) => self -> IO (Int, string, string)
-- | Same as <a>widgetPath</a>, but always uses the name of a widget's
-- type, never uses a custom name set with <a>widgetSetName</a>.
widgetClassPath :: (WidgetClass self, GlibString string) => self -> IO (Int, string, string)
-- | Obtains the composite name of a widget.
widgetGetCompositeName :: (WidgetClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the background color to use for a widget.
--
-- All other style values are left untouched. See
-- <a>widgetOverrideColor</a>.
widgetOverrideBackgroundColor :: WidgetClass self => self -> StateType -> Maybe Color -> IO ()
-- | Sets the color to use for a widget.
--
-- All other style values are left untouched.
--
-- This function does not act recursively. Setting the color of a
-- container does not affect its children. Note that some widgets that
-- you may not think of as containers, for instance <a>Button</a>s, are
-- actually containers.
--
-- This API is mostly meant as a quick way for applications to change a
-- widget appearance. If you are developing a widgets library and intend
-- this change to be themeable, it is better done by setting meaningful
-- CSS classes and regions in your widget/container implementation
-- through <tt>styleContextAddClass</tt> and
-- <tt>styleContextAddRegion</tt>.
--
-- This way, your widget library can install a <a>CssProvider</a> with
-- the 1 priority in order to provide a default styling for those widgets
-- that need so, and this theming may fully overridden by the user’s
-- theme.
--
-- Note that for complex widgets this may bring in undesired results
-- (such as uniform background color everywhere), in these cases it is
-- better to fully style such widgets through a CssProvider with the 600
-- priority.
widgetOverrideColor :: WidgetClass self => self -> StateType -> Maybe Color -> IO ()
-- | Sets the font to use for a widget. All other style values are left
-- untouched. See <a>widgetOverrideColor</a>.
widgetOverrideFont :: WidgetClass self => self -> Maybe FontDescription -> IO ()
-- | Sets the symbolic color to use for a widget.
--
-- All other style values are left untouched. See
-- <a>widgetOverrideColor</a>.
widgetOverrideSymbolicColor :: (WidgetClass self, GlibString string) => self -> string -> Maybe Color -> IO ()
-- | Sets the cursor color to use in a widget, overriding the cursor-color
-- and secondary-cursor-color style properties. All other style values
-- are left untouched. See also <a>widgetModifyStyle</a>.
--
-- Note that the alpha values will be ignored.
widgetOverrideCursor :: WidgetClass self => self -> Maybe Color -> Maybe Color -> IO ()
-- | Modifies style values on the widget. Modifications made using this
-- technique take precedence over style values set via an RC file,
-- however, they will be overriden if a style is explicitely set on the
-- widget using <a>widgetSetStyle</a>. The <a>RcStyle</a> structure is
-- designed so each field can either be set or unset, so it is possible,
-- using this function, to modify some style values and leave the others
-- unchanged.
--
-- Note that modifications made with this function are not cumulative
-- with previous calls to <a>widgetModifyStyle</a> or with such functions
-- as <a>widgetModifyFg</a>. If you wish to retain previous values, you
-- must first call <a>widgetGetModifierStyle</a>, make your modifications
-- to the returned style, then call <a>widgetModifyStyle</a> with that
-- style. On the other hand, if you first call <a>widgetModifyStyle</a>,
-- subsequent calls to such functions <a>widgetModifyFg</a> will have a
-- cumulative effect with the initial modifications.
widgetModifyStyle :: (WidgetClass self, RcStyleClass style) => self -> style -> IO ()
-- | Returns the current modifier style for the widget. (As set by
-- <a>widgetModifyStyle</a>.) If no style has previously set, a new
-- <a>RcStyle</a> will be created with all values unset, and set as the
-- modifier style for the widget. If you make changes to this rc style,
-- you must call <a>widgetModifyStyle</a>, passing in the returned rc
-- style, to make sure that your changes take effect.
--
-- Caution: passing the style back to <a>widgetModifyStyle</a> will
-- normally end up destroying it, because <a>widgetModifyStyle</a> copies
-- the passed-in style and sets the copy as the new modifier style, thus
-- dropping any reference to the old modifier styl e. Add a reference to
-- the modifier style if you want to keep it alive.
widgetGetModifierStyle :: WidgetClass self => self -> IO RcStyle
-- | Sets the foreground color for a widget in a particular state. All
-- other style values are left untouched. See also
-- <a>widgetModifyStyle</a>.
widgetModifyFg :: WidgetClass self => self -> StateType -> Color -> IO ()
-- | Sets the background color for a widget in a particular state. All
-- other style values are left untouched. See also
-- <a>widgetModifyStyle</a>.
--
-- Note that "no window" widgets (which have the <tt>NoWindow</tt> flag
-- set) draw on their parent container's window and thus may not draw any
-- background themselves. This is the case for e.g. <a>Label</a>. To
-- modify the background of such widgets, you have to set the background
-- color on their parent; if you want to set the background of a
-- rectangular area around a label, try placing the label in a
-- <a>EventBox</a> widget and setting the background color on that.
widgetModifyBg :: WidgetClass self => self -> StateType -> Color -> IO ()
-- | Sets the text color for a widget in a particular state. All other
-- style values are left untouched. The text color is the foreground
-- color used along with the base color (see <a>widgetModifyBase</a>) for
-- widgets such as <a>Entry</a> and <a>TextView</a>. See also
-- <a>widgetModifyStyle</a>.
widgetModifyText :: WidgetClass self => self -> StateType -> Color -> IO ()
-- | Sets the base color for a widget in a particular state. All other
-- style values are left untouched. The base color is the background
-- color used along with the text color (see <a>widgetModifyText</a>) for
-- widgets such as <a>Entry</a> and <a>TextView</a>. See also
-- <a>widgetModifyStyle</a>.
--
-- Note that "no window" widgets (which have the <tt>NoWindow</tt> flag
-- set) draw on their parent container's window and thus may not draw any
-- background themselves. This is the case for e.g. <a>Label</a>. To
-- modify the background of such widgets, you have to set the base color
-- on their parent; if you want to set the background of a rectangular
-- area around a label, try placing the label in a <a>EventBox</a> widget
-- and setting the base color on that.
widgetModifyBase :: WidgetClass self => self -> StateType -> Color -> IO ()
-- | Sets the font to use for a widget. All other style values are left
-- untouched. See also <a>widgetModifyStyle</a>.
widgetModifyFont :: WidgetClass self => self -> Maybe FontDescription -> IO ()
-- | Restores the foreground color for a widget in a particular state. This
-- undoes the effects of previous calls to <a>widgetModifyFg</a>.
widgetRestoreFg :: WidgetClass self => self -> StateType -> IO ()
-- | Restores the background color for a widget in a particular state. This
-- undoes the effects of previous calls to <a>widgetModifyBg</a>.
widgetRestoreBg :: WidgetClass self => self -> StateType -> IO ()
-- | Restores the text color for a widget in a particular state. This
-- undoes the effects of previous calls to <a>widgetModifyText</a>.
widgetRestoreText :: WidgetClass self => self -> StateType -> IO ()
-- | Restores the base color for a widget in a particular state. This
-- undoes the effects of previous calls to widgetModifyBase.
widgetRestoreBase :: WidgetClass self => self -> StateType -> IO ()
-- | Creates a new <a>PangoContext</a> with the appropriate colormap, font
-- description, and base direction for drawing text for this widget. See
-- also <a>widgetGetPangoContext</a>.
widgetCreatePangoContext :: WidgetClass self => self -> IO PangoContext
-- | Gets a <a>PangoContext</a> with the appropriate font description and
-- base direction for this widget. Unlike the context returned by
-- <a>widgetCreatePangoContext</a>, this context is owned by the widget
-- (it can be used until the screen for the widget changes or the widget
-- is removed from its toplevel), and will be updated to match any
-- changes to the widget's attributes.
--
-- If you create and keep a <a>PangoLayout</a> using this context, you
-- must deal with changes to the context by calling
-- <tt>layoutContextChanged</tt> on the layout in response to the
-- <tt>onStyleChanged</tt> and <tt>onDirectionChanged</tt> signals for
-- the widget.
widgetGetPangoContext :: WidgetClass self => self -> IO PangoContext
-- | Prepare text for display.
--
-- The <a>PangoLayout</a> represents the rendered text. It can be shown
-- on screen by calling <tt>drawLayout</tt>.
--
-- The returned <a>PangoLayout</a> shares the same font information
-- (<a>PangoContext</a>) as this widget. If this information changes, the
-- <a>PangoLayout</a> should change. The following code ensures that the
-- displayed text always reflects the widget's settings:
--
-- <pre>
-- l <- widgetCreateLayout w "My Text."
-- let update = do
-- layoutContextChanged l
-- -- update the Drawables which show this layout
-- w `onDirectionChanged` update
-- w `onStyleChanged` update
-- </pre>
widgetCreateLayout :: (WidgetClass self, GlibString string) => self -> string -> IO PangoLayout
-- | A convenience function that uses the theme engine and RC file settings
-- for <tt>widget</tt> to look up the stock icon and render it to a
-- <a>Pixbuf</a>. The icon should be one of the stock id constants such
-- as <a>stockOpen</a>. <tt>size</tt> should be a size such as
-- <a>IconSizeMenu</a>. <tt>detail</tt> should be a string that
-- identifies the widget or code doing the rendering, so that theme
-- engines can special-case rendering for that widget or code.
--
-- The pixels in the returned <a>Pixbuf</a> are shared with the rest of
-- the application and should not be modified.
widgetRenderIcon :: (WidgetClass self, GlibString string) => self -> string -> IconSize -> string -> IO (Maybe Pixbuf)
-- | Invalidates the rectangular area of <tt>widget</tt> defined by
-- <tt>x</tt>, <tt>y</tt>, <tt>width</tt> and <tt>height</tt> by calling
-- <a>drawWindowInvalidateRect</a> on the widget's <a>DrawWindow</a> and
-- all its child windows. Once the main loop becomes idle (after the
-- current batch of events has been processed, roughly), the window will
-- receive expose events for the union of all regions that have been
-- invalidated.
--
-- Normally you would only use this function in widget implementations.
-- In particular, you might use it, or <a>drawWindowInvalidateRect</a>
-- directly, to schedule a redraw of a <a>DrawingArea</a> or some portion
-- thereof.
--
-- Frequently you can just call <a>windowInvalidateRect</a> or
-- <a>windowInvalidateRegion</a> instead of this function. Those
-- functions will invalidate only a single window, instead of the widget
-- and all its children.
--
-- The advantage of adding to the invalidated region compared to simply
-- drawing immediately is efficiency; using an invalid region ensures
-- that you only have to redraw one time.
widgetQueueDrawArea :: WidgetClass self => self -> Int -> Int -> Int -> Int -> IO ()
-- | Invalidates the area of widget defined by <tt>region</tt> by calling
-- <tt>drawWindowInvalidateRegion</tt> on the widget’s window and all its
-- child windows. Once the main loop becomes idle (after the current
-- batch of events has been processed, roughly), the window will receive
-- expose events for the union of all regions that have been invalidated.
--
-- Normally you would only use this function in widget implementations.
-- You might also use it to schedule a redraw of a DrawingArea or some
-- portion thereof.
widgetQueueDrawRegion :: WidgetClass self => self -> Region -> IO ()
-- | Sets whether the application intends to draw on the widget in response
-- to an <tt>onExpose</tt> signal.
--
-- <ul>
-- <li>This is a hint to the widget and does not affect the behavior of
-- the GTK+ core; many widgets ignore this flag entirely. For widgets
-- that do pay attention to the flag, such as <a>EventBox</a> and
-- <a>Window</a>, the effect is to suppress default themed drawing of the
-- widget's background. (Children of the widget will still be drawn.) The
-- application is then entirely responsible for drawing the widget
-- background.</li>
-- </ul>
widgetSetAppPaintable :: WidgetClass self => self -> Bool -> IO ()
-- | Widgets are double buffered by default; you can use this function to
-- turn off the buffering. "Double buffered" simply means that
-- <a>drawWindowBeginPaintRegion</a> and <a>drawWindowEndPaint</a> are
-- called automatically around expose events sent to the widget.
-- <a>drawWindowBeginPaintRegion</a> diverts all drawing to a widget's
-- window to an offscreen buffer, and <a>drawWindowEndPaint</a> draws the
-- buffer to the screen. The result is that users see the window update
-- in one smooth step, and don't see individual graphics primitives being
-- rendered.
--
-- In very simple terms, double buffered widgets don't flicker, so you
-- would only use this function to turn off double buffering if you had
-- special needs and really knew what you were doing.
--
-- Note: if you turn off double-buffering, you have to handle expose
-- events, since even the clearing to the background color or pixmap will
-- not happen automatically (as it is done in
-- <a>drawWindowBeginPaint</a>).
widgetSetDoubleBuffered :: WidgetClass self => self -> Bool -> IO ()
-- | Sets whether the entire widget is queued for drawing when its size
-- allocation changes. By default, this setting is <tt>True</tt> and the
-- entire widget is redrawn on every size change. If your widget leaves
-- the upper left unchanged when made bigger, turning this setting on
-- will improve performance.
--
-- Note that for "no window" widgets setting this flag to <tt>False</tt>
-- turns off all allocation on resizing: the widget will not even redraw
-- if its position changes; this is to allow containers that don't draw
-- anything to avoid excess invalidations. If you set this flag on a "no
-- window" widget that <i>does</i> draw its window, you are responsible
-- for invalidating both the old and new allocation of the widget when
-- the widget is moved and responsible for invalidating regions newly
-- when the widget increases size.
widgetSetRedrawOnAllocate :: WidgetClass self => self -> Bool -> IO ()
-- | Sets a widgets composite name. A child widget of a container is
-- composite if it serves as an internal widget and, thus, is not added
-- by the user.
widgetSetCompositeName :: (WidgetClass self, GlibString string) => self -> string -> IO ()
-- | Emits the “mnemonic-activate” signal.
--
-- The default handler for this signal activates the widget if
-- groupCycling is <tt>False</tt>, and just grabs the focus if
-- <tt>groupCycling</tt> is <tt>True</tt>.
widgetMnemonicActivate :: WidgetClass self => self -> Bool -> IO Bool
-- | Returns the accessible object that describes the widget to an
-- assistive technology.
--
-- If no accessibility library is loaded (i.e. no ATK implementation
-- library is loaded via GTK_MODULES or via another application library,
-- such as libgnome), then this <tt>Object</tt> instance may be a no-op.
-- Likewise, if no class-specific <tt>Object</tt> implementation is
-- available for the widget instance in question, it will inherit an
-- <tt>Object</tt> implementation from the first ancestor class for which
-- such an implementation is defined.
--
-- The documentation of the ATK library contains more information about
-- accessible objects and their uses.
--
-- Returns a GObject in Gtk3.
widgetGetAccessible :: WidgetClass self => self -> IO GObject
-- | This function is used by custom widget implementations; if you're
-- writing an app, you'd use <a>widgetGrabFocus</a> to move the focus to
-- a particular widget, and <tt>containerSetFocusChain</tt> to change the
-- focus tab order. So you may want to investigate those functions
-- instead.
--
-- The "focus" default handler for a widget should return <tt>True</tt>
-- if moving in <tt>direction</tt> left the focus on a focusable location
-- inside that widget, and <tt>False</tt> if moving in <tt>direction</tt>
-- moved the focus outside the widget. If returning <tt>True</tt>,
-- widgets normally call <a>widgetGrabFocus</a> to place the focus
-- accordingly; if returning <tt>False</tt>, they don't modify the
-- current focus location.
widgetChildFocus :: WidgetClass self => self -> DirectionType -> IO Bool
-- | Gets the value set with <a>widgetSetChildVisible</a>. If you feel a
-- need to use this function, your code probably needs reorganization.
--
-- This function is only useful for container implementations and never
-- should be called by an application.
widgetGetChildVisible :: WidgetClass self => self -> IO Bool
-- | Returns the parent container of <tt>widget</tt>.
--
-- <ul>
-- <li>Returns the parent container of <tt>widget</tt> if it has
-- one.</li>
-- </ul>
widgetGetParent :: WidgetClass self => self -> IO (Maybe Widget)
-- | Gets the settings object holding the settings (global property
-- settings, RC file information, etc) used for this widget.
--
-- Note that this function can only be called when the <a>Widget</a> is
-- attached to a toplevel, since the settings object is specific to a
-- particular <a>Screen</a>.
widgetGetSettings :: WidgetClass self => self -> IO Settings
-- | Returns the clipboard object for the given selection to be used with
-- widget. widget must have a <a>Display</a> associated with it, so must
-- be attached to a toplevel window.
widgetGetClipboard :: WidgetClass self => self -> SelectionTag -> IO Clipboard
-- | Get the <a>Display</a> for the toplevel window associated with this
-- widget. This function can only be called after the widget has been
-- added to a widget hierarchy with a <a>Window</a> at the top.
--
-- In general, you should only create display specific resources when a
-- widget has been realized, and you should free those resources when the
-- widget is unrealized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
widgetGetDisplay :: WidgetClass self => self -> IO Display
-- | Get the root window where this widget is located. This function can
-- only be called after the widget has been added to a widget heirarchy
-- with <a>Window</a> at the top.
--
-- The root window is useful for such purposes as creating a popup
-- <a>DrawWindow</a> associated with the window. In general, you should
-- only create display specific resources when a widget has been
-- realized, and you should free those resources when the widget is
-- unrealized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
widgetGetRootWindow :: WidgetClass self => self -> IO DrawWindow
-- | Get the <a>Screen</a> from the toplevel window associated with this
-- widget. This function can only be called after the widget has been
-- added to a widget hierarchy with a <a>Window</a> at the top.
--
-- In general, you should only create screen specific resources when a
-- widget has been realized, and you should free those resources when the
-- widget is unrealized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
widgetGetScreen :: WidgetClass self => self -> IO Screen
-- | Checks whether there is a <a>Screen</a> is associated with this
-- widget. All toplevel widgets have an associated screen, and all
-- widgets added into a heirarchy with a toplevel window at the top.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
widgetHasScreen :: WidgetClass self => self -> IO Bool
-- | Gets the size request that was explicitly set for the widget using
-- <a>widgetSetSizeRequest</a>. A value of -1 for <tt>width</tt> or
-- <tt>height</tt> indicates that that dimension has not been set
-- explicitly and the natural requisition of the widget will be used
-- intead. See <a>widgetSetSizeRequest</a>. To get the size a widget will
-- actually use, call <a>widgetSizeRequest</a> instead of this function.
widgetGetSizeRequest :: WidgetClass self => self -> IO (Int, Int)
-- | Sets whether <tt>widget</tt> should be mapped along with its when its
-- parent is mapped and <tt>widget</tt> has been shown with
-- <a>widgetShow</a>.
--
-- The child visibility can be set for widget before it is added to a
-- container with <tt>widgetSetParent</tt>, to avoid mapping children
-- unnecessary before immediately unmapping them. However it will be
-- reset to its default state of <tt>True</tt> when the widget is removed
-- from a container.
--
-- Note that changing the child visibility of a widget does not queue a
-- resize on the widget. Most of the time, the size of a widget is
-- computed from all visible children, whether or not they are mapped. If
-- this is not the case, the container can queue a resize itself.
--
-- This function is only useful for container implementations and never
-- should be called by an application.
widgetSetChildVisible :: WidgetClass self => self -> Bool -> IO ()
-- | Sets the minimum size of a widget; that is, the widget's size request
-- will be <tt>width</tt> by <tt>height</tt>. You can use this function
-- to force a widget to be either larger or smaller than it normally
-- would be.
--
-- In most cases, <a>windowSetDefaultSize</a> is a better choice for
-- toplevel windows than this function; setting the default size will
-- still allow users to shrink the window. Setting the size request will
-- force them to leave the window at least as large as the size request.
-- When dealing with window sizes, <a>windowSetGeometryHints</a> can be a
-- useful function as well.
--
-- Note the inherent danger of setting any fixed size - themes,
-- translations into other languages, different fonts, and user action
-- can all change the appropriate size for a given widget. So, it's
-- basically impossible to hardcode a size that will always be correct.
--
-- The size request of a widget is the smallest size a widget can accept
-- while still functioning well and drawing itself correctly. However in
-- some strange cases a widget may be allocated less than its requested
-- size, and in many cases a widget may be allocated more space than it
-- requested.
--
-- If the size request in a given direction is -1 (unset), then the
-- "natural" size request of the widget will be used instead.
--
-- Widgets can't actually be allocated a size less than 1 by 1, but you
-- can pass 0,0 to this function to mean "as small as possible."
widgetSetSizeRequest :: WidgetClass self => self -> Int -> Int -> IO ()
-- | Sets the <tt>noShowAll</tt> property, which determines whether calls
-- to <a>widgetShowAll</a> and <tt>widgetHideAll</tt> will affect this
-- widget.
--
-- This is mostly for use in constructing widget hierarchies with
-- externally controlled visibility, see <a>UIManager</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetSetNoShowAll :: WidgetClass self => self -> Bool -> IO ()
-- | Returns the current value of the <tt>noShowAll</tt> property, which
-- determines whether calls to <a>widgetShowAll</a> and
-- <tt>widgetHideAll</tt> will affect this widget.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetGetNoShowAll :: WidgetClass self => self -> IO Bool
-- | Returns a list of the widgets, normally labels, for which this widget
-- is a the target of a mnemonic (see for example,
-- <tt>labelSetMnemonicWidget</tt>).
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetListMnemonicLabels :: WidgetClass self => self -> IO [Widget]
-- | Adds a widget to the list of mnemonic labels for this widget. (See
-- <a>widgetListMnemonicLabels</a>). Note the list of mnemonic labels for
-- the widget is cleared when the widget is destroyed, so the caller must
-- make sure to update its internal state at this point as well, by using
-- a connection to the <tt>destroy</tt> signal or a weak notifier.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetAddMnemonicLabel :: (WidgetClass self, WidgetClass label) => self -> label -> IO ()
-- | Removes a widget from the list of mnemonic labels for this widget.
-- (See <a>widgetListMnemonicLabels</a>). The widget must have previously
-- been added to the list with <a>widgetAddMnemonicLabel</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
widgetRemoveMnemonicLabel :: (WidgetClass self, WidgetClass label) => self -> label -> IO ()
-- | Whether <tt>widget</tt> can rely on having its alpha channel drawn
-- correctly. On X11 this function returns whether a compositing manager
-- is running for <tt>widget</tt>'s screen
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
widgetIsComposited :: WidgetClass self => self -> IO Bool
-- | Notifies the user about an input-related error on this widget. If the
-- "gtk-error-bell" setting is <tt>True</tt>, it calls
-- <tt>drawWindowBeep</tt>, otherwise it does nothing.
--
-- Note that the effect of <tt>drawWindow_beep</tt> can be configured in
-- many ways, depending on the windowing backend and the desktop
-- environment or window manager that is used.
widgetErrorBell :: WidgetClass self => self -> IO ()
-- | This function should be called whenever keyboard navigation within a
-- single widget hits a boundary. The function emits the "keynav-failed"
-- signal on the widget and its return value should be interpreted in a
-- way similar to the return value of <a>widgetChildFocus</a>:
--
-- When <tt>True</tt> is returned, stay in the widget, the failed
-- keyboard navigation is Ok and<i>or there is nowhere we can</i>should
-- move the focus to.
--
-- When <tt>False</tt> is returned, the caller should continue with
-- keyboard navigation outside the widget, e.g. by calling
-- <a>widgetChildFocus</a> on the widget’s toplevel.
--
-- The default ::keynav-failed handler returns <tt>True</tt> for
-- <a>DirTabForward</a> and <a>DirTabBackward</a>. For the other values
-- of <a>DirectionType</a> it returns <tt>False</tt>.
--
-- Whenever the default handler returns <tt>True</tt>, it also calls
-- <a>widgetErrorBell</a> to notify the user of the failed keyboard
-- navigation.
--
-- A use case for providing an own implementation of ::keynav-failed
-- (either by connecting to it or by overriding it) would be a row of
-- <a>Entry</a> widgets where the user should be able to navigate the
-- entire row with the cursor keys, as e.g. known from user interfaces
-- that require entering license keys.
widgetKeynavFailed :: WidgetClass self => self -> DirectionType -> IO Bool
-- | Gets the contents of the tooltip for widget.
widgetGetTooltipMarkup :: (WidgetClass self, GlibString markup) => self -> IO (Maybe markup)
-- | Sets <tt>markup</tt> as the contents of the tooltip, which is marked
-- up with the Pango text markup language.
--
-- This function will take care of setting "has-tooltip" to True and of
-- the default handler for the "query-tooltip" signal.
--
-- See also the "tooltip-markup" property and <tt>tooltipSetMarkup</tt>.
widgetSetTooltipMarkup :: (WidgetClass self, GlibString markup) => self -> Maybe markup -> IO ()
-- | Gets the contents of the tooltip for widget.
widgetGetTooltipText :: (WidgetClass self, GlibString text) => self -> IO (Maybe text)
-- | Sets <tt>text</tt> as the contents of the tooltip. This function will
-- take care of setting "has-tooltip" to <tt>True</tt> and of the default
-- handler for the "query-tooltip" signal.
--
-- See also the "tooltip-text" property and <tt>tooltipSetText</tt>.
widgetSetTooltipText :: (WidgetClass widget, GlibString text) => widget -> Maybe text -> IO ()
-- | Returns the <a>Window</a> of the current tooltip. This can be the
-- <a>Window</a> created by default, or the custom tooltip window set
-- using <a>widgetSetTooltipWindow</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetGetTooltipWindow :: WidgetClass self => self -> IO Window
-- | Replaces the default, usually yellow, window used for displaying
-- tooltips with <tt>customWindow</tt>. GTK+ will take care of showing
-- and hiding <tt>customWindow</tt> at the right moment, to behave
-- likewise as the default tooltip window. If <tt>customWindow</tt> is
-- <a>Nothing</a>, the default tooltip window will be used.
--
-- If the custom window should have the default theming it needs to have
-- the name 'gtk-tooltip', see <a>widgetSetName</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetSetTooltipWindow :: (WidgetClass self, WindowClass customWindow) => self -> Maybe customWindow -> IO ()
-- | Returns the current value of the has-tooltip property. See
-- <a>widgetHasTooltip</a> for more information.
widgetGetHasTooltip :: WidgetClass widget => widget -> IO Bool
-- | Sets the has-tooltip property on <tt>widget</tt> to
-- <tt>hasTooltip</tt>. See <a>widgetHasTooltip</a> for more information.
widgetSetHasTooltip :: WidgetClass widget => widget -> Bool -> IO ()
-- | Triggers a tooltip query on the display where the toplevel of
-- <tt>widget</tt> is located. See <tt>tooltipTriggerTooltipQuery</tt>
-- for more information.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetTriggerTooltipQuery :: WidgetClass self => self -> IO ()
-- | Returns the widget's window if it is realized, Nothing otherwise
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
widgetGetWindow :: WidgetClass self => self -> IO (Maybe DrawWindow)
-- | Registers a <a>DrawWindow</a> with the widget and sets it up so that
-- the widget receives events for it. Call <a>widgetUnregisterWindow</a>
-- when destroying the window.
widgetRegisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()
-- | Unregisters a <a>DrawWindow</a> from the widget that was previously
-- set up with <a>widgetRegisterWindow</a>. You need to call this when
-- the window is no longer used by the widget, such as when you destroy
-- it.
widgetUnregisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()
-- | This function is supposed to be called in "draw" implementations for
-- widgets that support multiple windows. <tt>cr</tt> must be
-- untransformed from invoking of the draw function. This function will
-- return <tt>True</tt> if the contents of the given <tt>window</tt> are
-- supposed to be drawn and <tt>False</tt> otherwise. Note that when the
-- drawing was not initiated by the windowing system this function will
-- return <tt>True</tt> for all windows, so you need to draw the
-- bottommost window first. Also, do not use “else if” statements to
-- check which window should be drawn.
cairoShouldDrawWindow :: DrawWindowClass window => Cairo -> window -> IO Bool
-- | Transforms the given cairo context <tt>cr</tt> that from
-- <tt>widget</tt>-relative coordinates to <tt>window</tt>-relative
-- coordinates. If the <tt>widget</tt>’s window is not an ancestor of
-- <tt>window</tt>, no modification will be applied.
--
-- This is the inverse to the transformation GTK applies when preparing
-- an expose event to be emitted with the “draw” signal. It is intended
-- to help porting multiwindow widgets from GTK+ 2 to the rendering
-- architecture of GTK+ 3.
cairoTransformToWindow :: (WidgetClass widget, DrawWindowClass window) => Cairo -> widget -> window -> IO ()
-- | Moves a widget from one <a>Container</a> to another.
widgetReparent :: (WidgetClass self, WidgetClass newParent) => self -> newParent -> IO ()
-- | Check if this widget can receive keyboard input.
widgetGetCanFocus :: WidgetClass self => self -> IO Bool
-- | Set if this widget can receive keyboard input.
--
-- <ul>
-- <li>To use the <tt>keyPress</tt> event, the widget must be allowed to
-- get the input focus. Once it has the input focus all keyboard input is
-- directed to this widget.</li>
-- </ul>
widgetSetCanFocus :: WidgetClass self => self -> Bool -> IO ()
-- | Retrieves the widget's allocation.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
widgetGetAllocation :: WidgetClass self => self -> IO Allocation
-- | Returns the width that has currently been allocated to widget. This
-- function is intended | to be used when implementing handlers for the
-- "draw" function.
widgetGetAllocatedWidth :: WidgetClass self => self -> IO Int
-- | Returns the height that has currently been allocated to widget. This
-- function is intended | to be used when implementing handlers for the
-- "draw" function.
widgetGetAllocatedHeight :: WidgetClass self => self -> IO Int
-- | Returns the baseline that has currently been allocated to widget .
-- This function is intended to be used when implementing handlers for
-- the “draw” function, and when allocating child widgets in
-- “size_allocate”.
widgetGetAllocatedBaseline :: WidgetClass self => self -> IO Int
-- | Retrieves the widget’s clip area.
--
-- The clip area is the area in which all of widget's drawing will
-- happen. Other toolkits call it the bounding box.
--
-- Historically, in GTK+ the clip area has been equal to the allocation
-- retrieved via widgetGetAllocation.
widgetGetClip :: WidgetClass self => self -> IO Allocation
-- | Sets the widget’s clip. This must not be used directly, but from
-- within a widget’s <a>sizeAllocate</a> method.
--
-- The clip set should be the area that widget draws on. If widget is a
-- GtkContainer, the area must contain all children's clips.
--
-- If this function is not called by widget during a <a>sizeAllocate</a>
-- handler, it is assumed to be equal to the allocation. However, if the
-- function is not called, certain features that might extend a widget's
-- allocation will not be available:
--
-- <ul>
-- <li>The “draw” signal will be clipped to the widget's allocation to
-- avoid overdraw.</li>
-- <li>Calling gtk_render_background() will not draw outset shadows.</li>
-- </ul>
--
-- It is therefore suggested that you always call widgetSetClip during a
-- <a>sizeAllocate</a> handler.
widgetSetClip :: WidgetClass self => self -> Allocation -> IO ()
-- | Determines whether the application intends to draw on the widget in an
-- "draw" handler. See <a>widgetSetAppPaintable</a>.
widgetGetAppPaintable :: WidgetClass widget => widget -> IO Bool
-- | Determines whether <tt>widget</tt> can be a default widget. See
-- <a>widgetSetCanDefault</a>.
widgetGetCanDefault :: WidgetClass widget => widget -> IO Bool
-- | Specifies whether <tt>widget</tt> can be a default widget. See
-- <a>widgetGrabDefault</a> for details about the meaning of "default".
widgetSetCanDefault :: WidgetClass widget => widget -> Bool -> IO ()
-- | Determines whether <tt>widget</tt> has a <a>DrawWindow</a> of its own.
-- See <a>widgetSetHasWindow</a>.
widgetGetHasWindow :: WidgetClass widget => widget -> IO Bool
-- | Specifies whether <tt>widget</tt> has a <a>DrawWindow</a> of its own.
-- Note that all realized widgets have a non-NULL "window" pointer
-- (<a>widgetGetWindow</a> never returns a NULL window when a widget is
-- realized), but for many of them it's actually the <a>DrawWindow</a> of
-- one of its parent widgets. Widgets that do not create a window for
-- themselves in "realize" must announce this by calling this function
-- with <tt>hasWindow</tt> = <tt>False</tt>.
--
-- This function should only be called by widget implementations, and
-- they should call it in their <tt>init()</tt> function.
widgetSetHasWindow :: WidgetClass widget => widget -> Bool -> IO ()
-- | Returns the <tt>widget</tt>’s sensitivity (in the sense of returning
-- the value that has been set using <a>widgetSetSensitive</a>).
--
-- The effective sensitivity of a widget is however determined by both
-- its own and its parent widget’s sensitivity. See
-- <a>widgetIsSensitive</a>.
widgetGetSensitive :: WidgetClass widget => widget -> IO Bool
-- | Returns the widget’s effective sensitivity, which means it is
-- sensitive itself and also its parent widget is sensitive.
widgetIsSensitive :: WidgetClass widget => widget -> IO Bool
-- | Retrieve the current state of the widget.
--
-- <ul>
-- <li>The state refers to different modes of user interaction, see
-- <a>StateType</a> for more information.</li>
-- </ul>
widgetGetState :: WidgetClass self => self -> IO StateType
-- | Determines whether the widget is visible. If you want to take into
-- account whether the widget’s parent is also marked as visible, use
-- <a>widgetIsVisible</a> instead.
--
-- This function does not check if the widget is obscured in any way. See
-- <tt>widgetSetVisible</tt>.
widgetGetVisible :: WidgetClass widget => widget -> IO Bool
-- | Determines whether the widget and all its parents are marked as
-- visible.
--
-- This function does not check if the widget is obscured in any way.
--
-- See also <a>widgetGetVisible</a> and <tt>widgetSetVisible</tt>
widgetIsVisible :: WidgetClass widget => widget -> IO Bool
-- | This function is for use in widget implementations. Turns on flag
-- values in the current widget state (insensitive, prelighted, etc.).
--
-- This function accepts the values <a>StateFlagDirLtr</a> and
-- <a>StateFlagDirRtl</a> but ignores them. If you want to set the
-- widget's direction, use <a>widgetSetDirection</a>.
--
-- It is worth mentioning that any other state than
-- StateFlagInsensitive', will be propagated down to all non-internal
-- children if <tt>widget</tt> is a <a>Container</a>, while
-- <a>StateFlagInsensitive</a> itself will be propagated down to all
-- <a>Container</a> children by different means than turning on the state
-- flag down the hierarchy, both <a>widgetGetStateFlags</a> and
-- <a>widgetIsSensitive</a> will make use of these.
widgetSetStateFlags :: WidgetClass widget => widget -> [StateFlags] -> Bool -> IO ()
-- | This function is for use in widget implementations. Turns off flag
-- values for the current widget state (insensitive, prelighted, etc.).
-- See <a>widgetSetStateFlags</a>.
widgetUnsetStateFlags :: WidgetClass widget => widget -> [StateFlags] -> IO ()
-- | Returns the widget state as a flag set. It is worth mentioning that
-- the effective StateFlagInsensitive state will be returned, that is,
-- also based on parent insensitivity, even if <tt>widget</tt> itself is
-- sensitive.
widgetGetStateFlags :: WidgetClass widget => widget -> IO [StateFlags]
-- | Determines whether <tt>widget</tt> is the current default widget
-- within its toplevel. See <a>widgetSetCanDefault</a>.
widgetGetHasDefault :: WidgetClass widget => widget -> IO Bool
-- | Determines if the <tt>widget</tt> has the global input focus. See
-- <a>widgetIsFocus</a> for the difference between having the global
-- input focus, and only having the focus within a toplevel.
widgetGetHasFocus :: WidgetClass widget => widget -> IO Bool
-- | Determines if the widget should show a visible indication that it has
-- the global input focus. This is a convenience function for use in
-- ::draw handlers that takes into account whether focus indication
-- should currently be shown in the toplevel window of <tt>widget</tt>.
-- See <tt>windowGetFocusVisible</tt> for more information about focus
-- indication.
--
-- To find out if the widget has the global input focus, use
-- <a>widgetHasFocus</a>.
widgetHasVisibleFocus :: WidgetClass widget => widget -> IO Bool
-- | Determines whether the widget is currently grabbing events, so it is
-- the only widget receiving input events (keyboard and mouse).
--
-- See also <tt>grabAdd</tt>.
widgetHasGrab :: WidgetClass widget => widget -> IO Bool
-- | Determines whether <tt>widget</tt> can be drawn to. A widget can be
-- drawn to if it is mapped and visible.
widgetIsDrawable :: WidgetClass widget => widget -> IO Bool
-- | Determines whether <tt>widget</tt> is a toplevel widget.
--
-- Currently only <a>Window</a> and <a>Invisible</a> (and out-of-process
-- <tt>Plugs</tt>) are toplevel widgets. Toplevel widgets have no parent
-- widget.
widgetIsToplevel :: WidgetClass widget => widget -> IO Bool
-- | Sets a widget’s window. This function should only be used in a
-- widget’s “realize” implementation. The window passed is usually either
-- new window created with <tt>drawWindowNew</tt>, or the window of its
-- parent widget as returned by <a>widgetGetParentWindow</a>.
--
-- Widgets must indicate whether they will create their own
-- <a>DrawWindow</a> by calling <a>widgetSetHasWindow</a>. This is
-- usually done in the widget’s init() function.
--
-- Note that this function does not add any reference to window.
widgetSetWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()
-- | Specifies whether <tt>widget</tt> will be treated as the default
-- widget within its toplevel when it has the focus, even if another
-- widget is the default.
--
-- See <a>widgetGrabDefault</a> for details about the meaning of
-- “default”.
widgetSetReceivesDefault :: WidgetClass widget => widget -> Bool -> IO ()
-- | Determines whether <tt>widget</tt> is always treated as the default
-- widget within its toplevel when it has the focus, even if another
-- widget is the default.
--
-- See <a>widgetSetReceivesDefault</a>.
widgetGetReceivesDefault :: WidgetClass widget => widget -> IO Bool
-- | Returns <tt>True</tt> if device has been shadowed by a GTK+ device
-- grab on another widget, so it would stop sending events to widget.
-- This may be used in the “grab-notify” signal to check for specific
-- devices. See <tt>deviceGrabAdd</tt>.
widgetDeviceIsShadowed :: (WidgetClass widget, DeviceClass device) => widget -> device -> IO Bool
-- | Returns the modifier mask the <tt>widget</tt>’s windowing system
-- backend uses for a particular purpose.
--
-- See <tt>keymapGetModifierMask</tt>.
widgetGetModifierMask :: WidgetClass widget => widget -> ModifierIntent -> IO [Modifier]
-- | Enables or disables multiple pointer awareness. If this setting is
-- <tt>True</tt>, widget will start receiving multiple, per device
-- enter/leave events. Note that if custom <tt>DrawWindows</tt> are
-- created in “realize”, <tt>windowSetSupportMultidevice</tt> will have
-- to be called manually on them.
widgetSetSupportMultidevice :: WidgetClass widget => widget -> Bool -> IO ()
-- | Returns <tt>True</tt> if <tt>widget</tt> is multiple pointer aware.
-- See <a>widgetSetSupportMultidevice</a> for more information.
widgetGetSupportMultidevice :: WidgetClass widget => widget -> IO Bool
-- | This function is for use in widget implementations. Sets the state of
-- a widget (insensitive, prelighted, etc.) Usually you should set the
-- state using wrapper functions such as <a>widgetSetSensitive</a>.
widgetSetState :: WidgetClass self => self -> StateType -> IO ()
-- | Rarely-used function. This function is used to emit the event signals
-- on a widget (those signals should never be emitted without using this
-- function to do so). If you want to synthesize an event though, don't
-- use this function; instead, use <tt>mainDoEvent</tt> so the event will
-- behave as if it were in the event queue. Don't synthesize expose
-- events; instead, use <tt>windowInvalidateRect</tt> to invalidate a
-- region of the window.
widgetEvent :: WidgetClass self => self -> EventM t Bool
-- | Gets the value of the <tt>widgetHAlign</tt> property.
--
-- For backwards compatibility reasons this method will never return
-- AlignBaseline, but instead it will convert it to AlignFill. Baselines
-- are not supported for horizontal alignment.
widgetGetHAlign :: WidgetClass self => self -> IO Align
-- | Sets the horizontal alignment of widget. See the <tt>widgetHAlign</tt>
-- property.
widgetSetHAlign :: WidgetClass self => self -> Align -> IO ()
-- | Gets the value of the <tt>widgetVAlign</tt> property.
--
-- For backwards compatibility reasons this method will never return
-- AlignBaseline, but instead it will convert it to AlignFill. If your
-- widget want to support baseline aligned children it must use
-- <a>widgetGetVAlignWithBaseline</a>, or <tt>widgetVAlign</tt>, which
-- will also report the true value.
widgetGetVAlign :: WidgetClass self => self -> IO Align
-- | Gets the value of the <tt>widgetVAlign</tt> property, including
-- AlignBaseline.
widgetGetVAlignWithBaseline :: WidgetClass self => self -> IO Align
-- | Sets the vertical alignment of widget . See the <tt>widgetVAlign</tt>
-- property.
widgetSetVAlign :: WidgetClass self => self -> Align -> IO ()
-- | The name of the widget.
--
-- Default value: <tt>Nothing</tt>
widgetName :: (WidgetClass self, GlibString string) => Attr self (Maybe string)
-- | The parent widget of this widget. Must be a Container widget.
widgetParent :: (WidgetClass self, ContainerClass container) => ReadWriteAttr self (Maybe Container) (Maybe container)
-- | Override for width request of the widget, or -1 if natural request
-- should be used.
--
-- Allowed values: >= -1
--
-- Default value: -1
widgetWidthRequest :: WidgetClass self => Attr self Int
-- | Override for height request of the widget, or -1 if natural request
-- should be used.
--
-- Allowed values: >= -1
--
-- Default value: -1
widgetHeightRequest :: WidgetClass self => Attr self Int
widgetMarginLeft :: WidgetClass self => Attr self Int
widgetMarginRight :: WidgetClass self => Attr self Int
widgetMarginStart :: WidgetClass self => Attr self Int
widgetMarginEnd :: WidgetClass self => Attr self Int
widgetMarginTop :: WidgetClass self => Attr self Int
widgetMarginBottom :: WidgetClass self => Attr self Int
-- | Whether the widget is visible.
--
-- Default value: <tt>False</tt>
widgetVisible :: WidgetClass self => Attr self Bool
-- | The opacity of the widget
--
-- Default value: <tt>1.0</tt>
widgetOpacity :: WidgetClass self => Attr self Double
-- | Whether the widget responds to input.
--
-- Default value: <tt>True</tt>
widgetSensitive :: WidgetClass self => Attr self Bool
-- | Whether the application will paint directly on the widget.
--
-- Default value: <tt>False</tt>
widgetAppPaintable :: WidgetClass self => Attr self Bool
-- | Whether the widget can accept the input focus.
--
-- Default value: <tt>False</tt>
widgetCanFocus :: WidgetClass self => Attr self Bool
-- | Whether the widget has the input focus.
--
-- Default value: <tt>False</tt>
widgetHasFocus :: WidgetClass self => Attr self Bool
-- | Whether the widget is the focus widget within the toplevel.
--
-- Default value: <tt>False</tt>
widgetIsFocus :: WidgetClass self => Attr self Bool
-- | Whether the widget can be the default widget.
--
-- Default value: <tt>False</tt>
widgetCanDefault :: WidgetClass self => Attr self Bool
-- | Whether the widget is the default widget.
--
-- Default value: <tt>False</tt>
widgetHasDefault :: WidgetClass self => Attr self Bool
-- | If <tt>True</tt>, the widget will receive the default action when it
-- is focused.
--
-- Default value: <tt>False</tt>
widgetReceivesDefault :: WidgetClass self => Attr self Bool
-- | Whether the widget is part of a composite widget.
--
-- Default value: <tt>False</tt>
widgetCompositeChild :: WidgetClass self => ReadAttr self Bool
-- | The style of the widget, which contains information about how it will
-- look (colors etc).
widgetStyle :: WidgetClass self => Attr self Style
-- | The current visual user interaction state of the widget (insensitive,
-- prelighted, selected etc). See <a>StateType</a> for more information.
widgetState :: WidgetClass self => Attr self StateType
-- | The event mask that decides what kind of GdkEvents this widget gets.
--
-- Default value: <a>StructureMask</a>
widgetEvents :: WidgetClass self => Attr self [EventMask]
-- | Whether to expand in both directions. Setting this sets both
-- <a>widgetHExpand</a> and <a>widgetVExpand</a>
--
-- Default value: <tt>False</tt>
widgetExpand :: WidgetClass self => Attr self Bool
-- | Whether to expand horizontally. See <tt>widgetSetHExpand</tt>
--
-- Default value: <tt>False</tt>
widgetHExpand :: WidgetClass self => Attr self Bool
-- | Whether to use the “hexpand” property. See
-- <tt>widgetGetHExpandSet</tt>.
--
-- Default value: <tt>False</tt>
widgetHExpandSet :: WidgetClass self => Attr self Bool
-- | Whether to expand vertically. See <tt>widgetSetVExpand</tt>.
--
-- Default value: <tt>False</tt>
widgetVExpand :: WidgetClass self => Attr self Bool
-- | Whether to use the “vexpand” property. See
-- <tt>widgetGetVExpandSet</tt>.
--
-- Default value: <tt>False</tt>
widgetVExpandSet :: WidgetClass self => Attr self Bool
-- | Whether <a>widgetShowAll</a> should not affect this widget.
--
-- Default value: <tt>False</tt>
widgetNoShowAll :: WidgetClass self => Attr self Bool
-- | 'childVisible' property. See <a>widgetGetChildVisible</a> and
-- <a>widgetSetChildVisible</a>
widgetChildVisible :: WidgetClass self => Attr self Bool
-- | 'compositeName' property. See <a>widgetGetCompositeName</a> and
-- <a>widgetSetCompositeName</a>
widgetCompositeName :: (WidgetClass self, GlibString string) => ReadWriteAttr self (Maybe string) string
-- | 'direction' property. See <a>widgetGetDirection</a> and
-- <a>widgetSetDirection</a>
widgetDirection :: WidgetClass self => Attr self TextDirection
-- | Sets the text of tooltip to be the given string, which is marked up
-- with the Pango text markup language. Also see
-- <tt>tooltipSetMarkup</tt>.
--
-- This is a convenience property which will take care of getting the
-- tooltip shown if the given string is not "": <tt>hasTooltip</tt> will
-- automatically be set to <a>True</a> and there will be taken care of
-- <a>queryTooltip</a> in the default signal handler.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetTooltipMarkup :: (WidgetClass self, GlibString markup) => Attr self (Maybe markup)
-- | Sets the text of tooltip to be the given string.
--
-- Also see <tt>tooltipSetText</tt>.
--
-- This is a convenience property which will take care of getting the
-- tooltip shown if the given string is not "": <tt>hasTooltip</tt> will
-- automatically be set to <a>True</a> and there will be taken care of
-- <a>queryTooltip</a> in the default signal handler.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetTooltipText :: (WidgetClass self, GlibString string) => Attr self (Maybe string)
-- | Enables or disables the emission of <a>queryTooltip</a> on widget. A
-- value of <a>True</a> indicates that widget can have a tooltip, in this
-- case the widget will be queried using <a>queryTooltip</a> to determine
-- whether it will provide a tooltip or not.
--
-- Note that setting this property to <a>True</a> for the first time will
-- change the event masks of the <tt>Windows</tt> of this widget to
-- include leave-notify and motion-notify events. This cannot and will
-- not be undone when the property is set to <a>False</a> again.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
widgetHasTooltip :: WidgetClass self => Attr self Bool
-- | Determines if the widget style has been looked up through the rc
-- mechanism.
widgetHasRcStyle :: WidgetClass self => self -> IO Bool
-- | Determines whether widget is realized.
widgetGetRealized :: WidgetClass self => self -> IO Bool
-- | Whether the widget is mapped.
widgetGetMapped :: WidgetClass self => self -> IO Bool
-- | Marks the <tt>widget</tt> as being realized. This function must only
-- be called after all <tt>DrawWindows</tt> for the widget have been
-- created and registered.
--
-- This function should only ever be called in a derived widget's
-- “realize” or “unrealize” implementation.
widgetSetRealized :: WidgetClass widget => widget -> Bool -> IO ()
-- | Marks the <tt>widget</tt> as being realized.
--
-- This function should only ever be called in a derived widget's “map”
-- or “unmap” implementation.
widgetSetMapped :: WidgetClass widget => widget -> Bool -> IO ()
-- | Returns the style context associated to <tt>widget</tt>.
widgetGetStyleContext :: WidgetClass widget => widget -> IO StyleContext
-- | The widget should allocate any resources needed, in particular, the
-- widget's <a>DrawWindow</a> is created. If you connect to this signal
-- and you rely on some of these resources to be present, you have to use
-- <a>after</a>.
realize :: WidgetClass self => Signal self (IO ())
-- | The widget should deallocate any resources. This signal is emitted
-- before the widget is destroyed.
unrealize :: WidgetClass self => Signal self (IO ())
-- | The widget appears on screen.
mapSignal :: WidgetClass self => Signal self (IO ())
-- | The widget disappears from the screen.
unmapSignal :: WidgetClass self => Signal self (IO ())
-- | Query the widget for the size it likes to have.
--
-- <ul>
-- <li>A parent container emits this signal to its child to query the
-- needed height and width of the child. There is not guarantee that the
-- widget will actually get this area.</li>
-- </ul>
sizeRequest :: WidgetClass self => Signal self (IO Requisition)
-- | Inform widget about the size it has.
--
-- <ul>
-- <li>After querying a widget for the size it wants to have (through
-- emitting the <tt>"sizeRequest"</tt> signal) a container will emit this
-- signal to inform the widget about the real size it should occupy.</li>
-- </ul>
sizeAllocate :: WidgetClass self => Signal self (Allocation -> IO ())
-- | The widget is shown.
showSignal :: WidgetClass self => Signal self (IO ())
-- | The widget is hidden.
hideSignal :: WidgetClass self => Signal self (IO ())
-- | The widget gains focus via the given user action.
focus :: WidgetClass self => Signal self (DirectionType -> IO Bool)
-- | The state of the widget (input focus, insensitive, etc.) has changed.
stateChanged :: WidgetClass self => Signal self (StateType -> IO ())
-- | The state of the widget (input focus, insensitive, etc.) has changed.
stateFlagsChanged :: WidgetClass self => Signal self ([StateFlags] -> IO ())
-- | The <a>parentSet</a> signal is emitted when a new parent has been set
-- on a widget. The parameter is the new parent.
parentSet :: WidgetClass self => Signal self (Maybe Widget -> IO ())
-- | Emitted when there is a change in the hierarchy to which a widget
-- belong. More precisely, a widget is anchored when its toplevel
-- ancestor is a <a>Window</a>. This signal is emitted when a widget
-- changes from un-anchored to anchored or vice-versa.
hierarchyChanged :: WidgetClass self => Signal self (Maybe Widget -> IO ())
-- | The <a>styleSet</a> signal is emitted when a new style has been set on
-- a widget. Note that style-modifying functions like
-- <a>widgetModifyBase</a> also cause this signal to be emitted.
styleSet :: WidgetClass self => Signal self (Style -> IO ())
-- | The default direction of text writing has changed.
directionChanged :: WidgetClass self => Signal self (TextDirection -> IO ())
-- | The <a>grabNotify</a> signal is emitted when a widget becomes shadowed
-- by a Gtk+ grab (not a pointer or keyboard grab) on another widget, or
-- when it becomes unshadowed due to a grab being removed.
--
-- A widget is shadowed by a <tt>grabAdd</tt> when the topmost grab
-- widget in the grab stack of its window group is not its ancestor.
grabNotify :: WidgetClass self => Signal self (Bool -> IO ())
-- | This signal gets emitted whenever a widget should pop up a
-- context-sensitive menu. This usually happens through the standard key
-- binding mechanism; by pressing a certain key while a widget is
-- focused, the user can cause the widget to pop up a menu. For example,
-- the <a>Entry</a> widget creates a menu with clipboard commands.
popupMenuSignal :: WidgetClass self => Signal self (IO Bool)
-- | Tell the widget to show an explanatory help text. Should return
-- <tt>True</tt> if help has been shown.
showHelp :: WidgetClass self => Signal self (WidgetHelpType -> IO Bool)
-- | The set of keyboard accelerators has changed.
accelClosuresChanged :: WidgetClass self => Signal self (IO ())
-- | The widget moved to a new screen.
screenChanged :: WidgetClass self => Signal self (Screen -> IO ())
-- | Emitted when <tt>hasTooltip</tt> is <a>True</a> and the
-- <tt>gtkTooltipTimeout</tt> has expired with the cursor hovering
-- "above" widget; or emitted when widget got focus in keyboard mode.
--
-- Using the given coordinates, the signal handler should determine
-- whether a tooltip should be shown for widget. If this is the case
-- <a>True</a> should be returned, <a>False</a> otherwise. Note if widget
-- got focus in keyboard mode, <a>Point</a> is <a>Nothing</a>.
--
-- The signal handler is free to manipulate tooltip with the therefore
-- destined function calls.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
queryTooltip :: WidgetClass self => Signal self (Widget -> Maybe Point -> Tooltip -> IO Bool)
draw :: WidgetClass self => Signal self (Render ())
-- | A mouse button has been depressed while the mouse pointer was within
-- the widget area. Sets the widget's <a>ButtonPressMask</a> flag.
buttonPressEvent :: WidgetClass self => Signal self (EventM EButton Bool)
-- | A mouse button has been released. Sets the widget's
-- <a>ButtonReleaseMask</a> flag.
buttonReleaseEvent :: WidgetClass self => Signal self (EventM EButton Bool)
-- | The size of the window has changed.
configureEvent :: WidgetClass self => Signal self (EventM EConfigure Bool)
-- | The <a>deleteEvent</a> signal is emitted if a user requests that a
-- toplevel window is closed. The default handler for this signal
-- destroys the window. Calling <a>widgetHide</a> and returning
-- <tt>True</tt> on reception of this signal will cause the window to be
-- hidden instead, so that it can later be shown again without
-- reconstructing it.
deleteEvent :: WidgetClass self => Signal self (EventM EAny Bool)
-- | The <a>destroyEvent</a> signal is emitted when a <a>DrawWindow</a> is
-- destroyed. You rarely get this signal, because most widgets disconnect
-- themselves from their window before they destroy it, so no widget owns
-- the window at destroy time. However, you might want to connect to the
-- <tt>objectDestroy</tt> signal of <tt>Object</tt>.
destroyEvent :: WidgetClass self => Signal self (EventM EAny Bool)
-- | The mouse pointer has entered the widget. Sets the widget's
-- <a>EnterNotifyMask</a> flag.
enterNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)
-- | Instructs the widget to redraw.
--
-- <ul>
-- <li>The <a>DrawWindow</a> that needs to be redrawn is available via
-- <tt>eventWindow</tt>.</li>
-- <li>The part that needs to be redrawn is available via
-- <tt>eventArea</tt> and <tt>eventRegion</tt>. The options are, in order
-- of efficiency: (a) redraw the entire window, (b) ask for the
-- <tt>eventArea</tt> and redraw that rectangle, (c) ask for the
-- <tt>eventRegion</tt> and redraw each of those rectangles.</li>
-- </ul>
--
-- Only the exposed region will be updated; see also
-- <tt>drawWindowBeginPaintRegion</tt>.
exposeEvent :: WidgetClass self => Signal self (EventM EExpose Bool)
-- | The widget gets the input focus. Sets the widget's
-- <a>FocusChangeMask</a> flag.
focusInEvent :: WidgetClass self => Signal self (EventM EFocus Bool)
-- | The widget lost the input focus. Sets the widget's
-- <a>FocusChangeMask</a> flag.
focusOutEvent :: WidgetClass self => Signal self (EventM EFocus Bool)
-- | Emitted when a pointer or keyboard grab on a window belonging to
-- <tt>widget</tt> gets broken.
--
-- On X11, this happens when the grab window becomes unviewable (i.e. it
-- or one of its ancestors is unmapped), or if the same application grabs
-- the pointer or keyboard again.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
grabBrokenEvent :: WidgetClass self => Signal self (EventM EGrabBroken Bool)
-- | A key has been depressed. Sets the widget's <a>KeyPressMask</a> flag.
keyPressEvent :: WidgetClass self => Signal self (EventM EKey Bool)
-- | A key has been released. Sets the widget's <a>KeyReleaseMask</a> flag.
keyReleaseEvent :: WidgetClass self => Signal self (EventM EKey Bool)
-- | The mouse pointer has left the widget. Sets the widget's
-- <a>LeaveNotifyMask</a> flag.
leaveNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)
-- | The window is put onto the screen.
mapEvent :: WidgetClass self => Signal self (EventM EAny Bool)
-- | The mouse pointer has moved. Since receiving all mouse movements is
-- expensive, it is necessary to specify exactly what mouse motions are
-- required by calling <a>widgetAddEvents</a> on this widget with one or
-- more of the following flags:
--
-- <ul>
-- <li><a>PointerMotionMask</a>: Track all movements.</li>
-- <li><a>ButtonMotionMask</a>: Only track movements if a button is
-- depressed.</li>
-- <li><a>Button1MotionMask</a>: Only track movements if the left button
-- is depressed.</li>
-- <li><a>Button2MotionMask</a>: Only track movements if the middle
-- button is depressed.</li>
-- <li><a>Button3MotionMask</a>: Only track movements if the right button
-- is depressed. <a>PointerMotionHintMask</a> is a special flag which can
-- be used in combination with any of the above and is used to reduce the
-- number of <a>motionNotifyEvent</a>s received. Normally a
-- <a>motionNotifyEvent</a> event is received each time the mouse moves.
-- However, if the application spends a lot of time processing the event
-- (updating the display, for example), it can lag behind the position of
-- the mouse. When using <a>PointerMotionHintMask</a>, fewer
-- <a>motionNotifyEvent</a>s will be sent, some of which are marked as a
-- hint. To receive more motion events after a motion hint event, the
-- application needs to asks for more, by calling
-- <a>eventRequestMotions</a>. This effectively limits the rate at which
-- new motion events are received. (Note that you don't need to check if
-- the hint is set as <a>eventRequestMotions</a> does so
-- automatically.)</li>
-- </ul>
motionNotifyEvent :: WidgetClass self => Signal self (EventM EMotion Bool)
-- | Generated when the area of a <tt>Drawable</tt> being copied using,
-- e.g. <a>drawDrawable</a>, is completely available.
noExposeEvent :: WidgetClass self => Signal self (EventM EAny Bool)
-- | The pen of a graphics tablet was put down. Sets the widget's
-- <a>ProximityInMask</a> flag.
proximityInEvent :: WidgetClass self => Signal self (EventM EProximity Bool)
-- | The pen of a graphics tablet was lifted off the tablet. Sets the
-- widget's <a>ProximityOutMask</a> flag.
proximityOutEvent :: WidgetClass self => Signal self (EventM EProximity Bool)
-- | The scroll wheel of the mouse has been used. Sets the widget's
-- <a>ScrollMask</a> flag.
scrollEvent :: WidgetClass self => Signal self (EventM EScroll Bool)
-- | The window is taken off the screen.
unmapEvent :: WidgetClass self => Signal self (EventM EAny Bool)
-- | Emitted when the window visibility status has changed. Sets the
-- widget's <a>VisibilityNotifyMask</a> flag.
visibilityNotifyEvent :: WidgetClass self => Signal self (EventM EVisibility Bool)
-- | Emitted when the state of the window changes, i.e. when it is
-- minimized, moved to the top, etc.
windowStateEvent :: WidgetClass self => Signal self (EventM EWindowState Bool)
instance GHC.Show.Show Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType
instance GHC.Classes.Eq Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType
instance GHC.Enum.Enum Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType
-- | An action which can be triggered by a menu or toolbar item
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.Action
data Action
class GObjectClass o => ActionClass o
castToAction :: GObjectClass obj => obj -> Action
gTypeAction :: GType
toAction :: ActionClass o => o -> Action
-- | Creates a new <a>Action</a> object. To add the action to a
-- <a>ActionGroup</a> and set the accelerator for the action, call
-- <a>actionGroupAddActionWithAccel</a>. See
-- <a>Graphics.UI.Gtk.ActionMenuToolbar.UIManager#XML-UI</a> for
-- information on allowed action names.
actionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> IO Action
-- | Returns the name of the action.
actionGetName :: (ActionClass self, GlibString string) => self -> IO string
-- | Returns whether the action is effectively sensitive.
actionIsSensitive :: ActionClass self => self -> IO Bool
-- | Returns whether the action itself is sensitive. Note that this doesn't
-- necessarily mean effective sensitivity. See <a>actionIsSensitive</a>
-- for that.
actionGetSensitive :: ActionClass self => self -> IO Bool
-- | Sets the sensitive property of the action to <tt>sensitive</tt>. Note
-- that this doesn't necessarily mean effective sensitivity. See
-- <a>actionIsSensitive</a> for that.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionSetSensitive :: ActionClass self => self -> Bool -> IO ()
-- | Returns whether the action is effectively visible.
actionIsVisible :: ActionClass self => self -> IO Bool
-- | Returns whether the action itself is visible. Note that this doesn't
-- necessarily mean effective visibility. See <a>actionIsSensitive</a>
-- for that.
actionGetVisible :: ActionClass self => self -> IO Bool
-- | Sets the visible property of the action to <tt>visible</tt>. Note that
-- this doesn't necessarily mean effective visibility. See
-- <a>actionIsVisible</a> for that.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionSetVisible :: ActionClass self => self -> Bool -> IO ()
-- | Emits the "activate" signal on the specified action, if it isn't
-- insensitive. This gets called by the proxy widgets when they get
-- activated.
--
-- It can also be used to manually activate an action.
actionActivate :: ActionClass self => self -> IO ()
-- | Creates a menu item widget that proxies for the given action.
actionCreateMenuItem :: ActionClass self => self -> IO Widget
-- | Creates a toolbar item widget that proxies for the given action.
actionCreateToolItem :: ActionClass self => self -> IO Widget
-- | Returns the proxy widgets for an action.
actionGetProxies :: ActionClass self => self -> IO [Widget]
-- | Installs the accelerator for <tt>action</tt> if <tt>action</tt> has an
-- accel path and group. See <a>actionSetAccelPath</a> and
-- <a>actionSetAccelGroup</a>
--
-- Since multiple proxies may independently trigger the installation of
-- the accelerator, the <tt>action</tt> counts the number of times this
-- function has been called and doesn't remove the accelerator until
-- <a>actionDisconnectAccelerator</a> has been called as many times.
actionConnectAccelerator :: ActionClass self => self -> IO ()
-- | Undoes the effect of one call to <a>actionConnectAccelerator</a>.
actionDisconnectAccelerator :: ActionClass self => self -> IO ()
-- | Returns the accel path for this action.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionGetAccelPath :: (ActionClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the accel path for this action. All proxy widgets associated with
-- the action will have this accel path, so that their accelerators are
-- consistent.
actionSetAccelPath :: (ActionClass self, GlibString string) => self -> string -> IO ()
-- | Sets the <a>AccelGroup</a> in which the accelerator for this action
-- will be installed.
actionSetAccelGroup :: ActionClass self => self -> AccelGroup -> IO ()
-- | A unique name for the action.
--
-- Default value: ""
actionName :: GlibString string => ActionClass self => Attr self string
-- | The label used for menu items and buttons that activate this action.
--
-- Default value: ""
actionLabel :: GlibString string => ActionClass self => Attr self string
-- | A shorter label that may be used on toolbar buttons.
--
-- Default value: ""
actionShortLabel :: GlibString string => ActionClass self => Attr self string
-- | A tooltip for this action.
--
-- Default value: <tt>Nothing</tt>
actionTooltip :: GlibString string => ActionClass self => Attr self (Maybe string)
-- | The stock icon displayed in widgets representing this action.
--
-- Default value: <tt>Nothing</tt>
actionStockId :: GlibString string => ActionClass self => Attr self (Maybe string)
-- | Whether the toolbar item is visible when the toolbar is in a
-- horizontal orientation.
--
-- Default value: <tt>True</tt>
actionVisibleHorizontal :: ActionClass self => Attr self Bool
-- | When <tt>True</tt>, toolitem proxies for this action are represented
-- in the toolbar overflow menu.
--
-- Default value: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionVisibleOverflown :: ActionClass self => Attr self Bool
-- | Whether the toolbar item is visible when the toolbar is in a vertical
-- orientation.
--
-- Default value: <tt>True</tt>
actionVisibleVertical :: ActionClass self => Attr self Bool
-- | Whether the action is considered important. When <tt>True</tt>,
-- toolitem proxies for this action show text in <a>ToolbarBothHoriz</a>
-- mode.
--
-- Default value: <tt>False</tt>
actionIsImportant :: ActionClass self => Attr self Bool
-- | When <tt>True</tt>, empty menu proxies for this action are hidden.
--
-- Default value: <tt>True</tt>
actionHideIfEmpty :: ActionClass self => Attr self Bool
-- | Whether the action is enabled.
--
-- Default value: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionSensitive :: ActionClass self => Attr self Bool
-- | Whether the action is visible.
--
-- Default value: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionVisible :: ActionClass self => Attr self Bool
-- | 'accelPath' property. See <a>actionGetAccelPath</a> and
-- <a>actionSetAccelPath</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionAccelPath :: GlibString string => ActionClass self => ReadWriteAttr self (Maybe string) string
-- | If <a>True</a>, the action's menu item proxies will ignore the
-- <tt>menuImages</tt> setting and always show their image, if available.
--
-- Use this property if the menu item would be useless or hard to use
-- without their image.
--
-- Default value: <a>False</a>
--
-- Since 2.20
actionAlwaysShowImage :: ActionClass self => Attr self Bool
-- | The "activate" signal is emitted when the action is activated.
actionActivated :: ActionClass self => Signal self (IO ())
-- | An action of which only one in a group can be active
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.RadioAction
data RadioAction
class ToggleActionClass o => RadioActionClass o
castToRadioAction :: GObjectClass obj => obj -> RadioAction
gTypeRadioAction :: GType
toRadioAction :: RadioActionClass o => o -> RadioAction
-- | Creates a new <a>RadioAction</a> object. To add the action to a
-- <a>ActionGroup</a> and set the accelerator for the action, call
-- <a>actionGroupAddActionWithAccel</a>.
radioActionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> Int -> IO RadioAction
-- | Returns the list representing the radio group for this object
radioActionGetGroup :: RadioActionClass self => self -> IO [RadioAction]
-- | Sets the radio group for the radio action object.
radioActionSetGroup :: (RadioActionClass self, RadioActionClass groupMember) => self -> groupMember -> IO ()
-- | Obtains the value property of the currently active member of the group
-- to which the action belongs.
radioActionGetCurrentValue :: RadioActionClass self => self -> IO Int
-- | The value is an arbitrary integer which can be used as a convenient
-- way to determine which action in the group is currently active in an
-- ::activate or ::changed signal handler. See
-- <a>radioActionGetCurrentValue</a> and <tt>RadioActionEntry</tt> for
-- convenient ways to get and set this property.
--
-- Default value: 0
radioActionValueAttr :: RadioActionClass self => Attr self Int
-- | Sets a new group for a radio action.
radioActionGroup :: RadioActionClass self => ReadWriteAttr self [RadioAction] RadioAction
-- | The value property of the currently active member of the group to
-- which this action belongs.
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
radioActionCurrentValue :: RadioActionClass self => Attr self Int
-- | The <a>radioActionChanged</a> signal is emitted on every member of a
-- radio group when the active member is changed. The signal gets emitted
-- after the <tt>actionActivated</tt> signals for the previous and
-- current active members.
radioActionChanged :: RadioActionClass self => Signal self (RadioAction -> IO ())
-- | An action which can be toggled between two states
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction
data ToggleAction
class ActionClass o => ToggleActionClass o
castToToggleAction :: GObjectClass obj => obj -> ToggleAction
gTypeToggleAction :: GType
toToggleAction :: ToggleActionClass o => o -> ToggleAction
-- | Creates a new <a>ToggleAction</a> object. To add the action to a
-- <a>ActionGroup</a> and set the accelerator for the action, call
-- <a>actionGroupAddActionWithAccel</a>.
toggleActionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> IO ToggleAction
-- | Emits the "toggled" signal on the toggle action.
toggleActionToggled :: ToggleActionClass self => self -> IO ()
-- | Sets the checked state on the toggle action.
toggleActionSetActive :: ToggleActionClass self => self -> Bool -> IO ()
-- | Returns the checked state of the toggle action.
toggleActionGetActive :: ToggleActionClass self => self -> IO Bool
-- | Sets whether the action should have proxies like a radio action.
toggleActionSetDrawAsRadio :: ToggleActionClass self => self -> Bool -> IO ()
-- | Returns whether the action should have proxies like a radio action.
toggleActionGetDrawAsRadio :: ToggleActionClass self => self -> IO Bool
-- | Whether the proxies for this action look like radio action proxies.
--
-- Default value: <tt>False</tt>
toggleActionDrawAsRadio :: ToggleActionClass self => Attr self Bool
-- | If the toggle action should be active in or not.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
toggleActionActive :: ToggleActionClass self => Attr self Bool
actionToggled :: ToggleActionClass self => Signal self (IO ())
-- | A group of actions
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup
data ActionGroup
class GObjectClass o => ActionGroupClass o
castToActionGroup :: GObjectClass obj => obj -> ActionGroup
gTypeActionGroup :: GType
toActionGroup :: ActionGroupClass o => o -> ActionGroup
-- | A description of an action.
data ActionEntry
ActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> IO () -> ActionEntry
[actionEntryName] :: ActionEntry -> DefaultGlibString
[actionEntryLabel] :: ActionEntry -> DefaultGlibString
[actionEntryStockId] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryAccelerator] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryTooltip] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryCallback] :: ActionEntry -> IO ()
-- | A description of an action for an entry that can be toggled.
data ToggleActionEntry
ToggleActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> IO () -> Bool -> ToggleActionEntry
[toggleActionName] :: ToggleActionEntry -> DefaultGlibString
[toggleActionLabel] :: ToggleActionEntry -> DefaultGlibString
[toggleActionStockId] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionAccelerator] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionTooltip] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionCallback] :: ToggleActionEntry -> IO ()
[toggleActionIsActive] :: ToggleActionEntry -> Bool
-- | A description of an action for an entry that provides a multiple
-- choice.
data RadioActionEntry
RadioActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Int -> RadioActionEntry
[radioActionName] :: RadioActionEntry -> DefaultGlibString
[radioActionLabel] :: RadioActionEntry -> DefaultGlibString
[radioActionStockId] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionAccelerator] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionTooltip] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionValue] :: RadioActionEntry -> Int
-- | Creates a new <a>ActionGroup</a> object. The name of the action group
-- is used when associating keybindings with the actions.
actionGroupNew :: GlibString string => string -> IO ActionGroup
-- | Gets the name of the action group.
actionGroupGetName :: GlibString string => ActionGroup -> IO string
-- | Returns <tt>True</tt> if the group is sensitive. The constituent
-- actions can only be logically sensitive (see <a>actionIsSensitive</a>)
-- if they are sensitive (see <a>actionGetSensitive</a>) and their group
-- is sensitive.
actionGroupGetSensitive :: ActionGroup -> IO Bool
-- | Changes the sensitivity of <tt>actionGroup</tt>
actionGroupSetSensitive :: ActionGroup -> Bool -> IO ()
-- | Returns <tt>True</tt> if the group is visible. The constituent actions
-- can only be logically visible (see <a>actionIsVisible</a>) if they are
-- visible (see <a>actionGetVisible</a>) and their group is visible.
actionGroupGetVisible :: ActionGroup -> IO Bool
-- | Changes the visible of <tt>actionGroup</tt>.
actionGroupSetVisible :: ActionGroup -> Bool -> IO ()
-- | Looks up an action in the action group by name.
actionGroupGetAction :: GlibString string => ActionGroup -> string -> IO (Maybe Action)
-- | Lists the actions in the action group.
actionGroupListActions :: ActionGroup -> IO [Action]
-- | Adds an action object to the action group. Note that this function
-- does not set up the accel path of the action, which can lead to
-- problems if a user tries to modify the accelerator of a menuitem
-- associated with the action. Therefore you must either set the accel
-- path yourself with <a>actionSetAccelPath</a>, or use
-- <tt><a>actionGroupAddActionWithAccel</a> ... Nothing</tt>.
actionGroupAddAction :: ActionClass action => ActionGroup -> action -> IO ()
-- | Adds an action object to the action group and sets up the accelerator.
--
-- If <tt>accelerator</tt> is <tt>Nothing</tt>, attempts to use the
-- accelerator associated with the stock id of the action.
--
-- Accel paths are set to
-- <tt><Actions>/group-name/action-name</tt>.
actionGroupAddActionWithAccel :: (ActionClass action, GlibString string) => ActionGroup -> action -> Maybe string -> IO ()
-- | Removes an action object from the action group.
actionGroupRemoveAction :: ActionClass action => ActionGroup -> action -> IO ()
-- | This is a convenience function to create a number of actions and add
-- them to the action group.
--
-- The <a>actionActivated</a> signals of the actions are connected to the
-- callbacks and their accel paths are set to
-- <tt><Actions>/group-name/action-name</tt>.
actionGroupAddActions :: ActionGroup -> [ActionEntry] -> IO ()
-- | This is a convenience function to create a number of toggle actions
-- and add them to the action group.
--
-- The <a>actionActivated</a> signals of the actions are connected to the
-- callbacks and their accel paths are set to
-- <tt><Actions>/group-name/action-name</tt>.
actionGroupAddToggleActions :: ActionGroup -> [ToggleActionEntry] -> IO ()
-- | This is a convenience routine to create a group of radio actions and
-- add them to the action group.
--
-- The <a>radioActionChanged</a> signal of the first radio action is
-- connected to the <tt>onChange</tt> callback and the accel paths of the
-- actions are set to <tt><Actions>/group-name/action-name</tt>.
actionGroupAddRadioActions :: ActionGroup -> [RadioActionEntry] -> Int -> (RadioAction -> IO ()) -> IO ()
-- | Sets a function to be used for translating the <tt>label</tt> and
-- <tt>tooltip</tt> of <a>ActionEntry</a>s added by
-- <a>actionGroupAddActions</a>.
--
-- If you're using 'gettext', it is enough to set the translation domain
-- with <a>actionGroupSetTranslationDomain</a>.
actionGroupSetTranslateFunc :: GlibString string => ActionGroup -> (string -> IO string) -> IO ()
-- | Sets the translation domain and uses 'dgettext' for translating the
-- <tt>label</tt> and <tt>tooltip</tt> of <a>ActionEntry</a>s added by
-- <a>actionGroupAddActions</a>.
--
-- If you're not using 'gettext' for localization, see
-- <a>actionGroupSetTranslateFunc</a>.
actionGroupSetTranslationDomain :: GlibString string => ActionGroup -> string -> IO ()
-- | Translates a string.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
actionGroupTranslateString :: GlibString string => ActionGroup -> string -> IO string
-- | A name for the action group.
--
-- Default value: ""
actionGroupName :: GlibString string => Attr ActionGroup string
-- | Whether the action group is enabled.
--
-- Default value: <tt>True</tt>
actionGroupSensitive :: Attr ActionGroup Bool
-- | Whether the action group is visible.
--
-- Default value: <tt>True</tt>
actionGroupVisible :: Attr ActionGroup Bool
-- | A widget that creates a signal when clicked on
module Graphics.UI.Gtk.Buttons.Button
data Button
class BinClass o => ButtonClass o
castToButton :: GObjectClass obj => obj -> Button
gTypeButton :: GType
toButton :: ButtonClass o => o -> Button
-- | Creates a new <a>Button</a> widget. To add a child widget to the
-- button, use <a>containerAdd</a>.
buttonNew :: IO Button
-- | Creates a <a>Button</a> widget with a <a>Label</a> child containing
-- the given text.
buttonNewWithLabel :: GlibString string => string -> IO Button
-- | Creates a new <a>Button</a> containing a label. If characters in
-- <tt>label</tt> are preceded by an underscore, they are underlined. If
-- you need a literal underscore character in a label, use '__' (two
-- underscores). The first underlined character represents a keyboard
-- accelerator called a mnemonic. Pressing Alt and that key activates the
-- button.
buttonNewWithMnemonic :: GlibString string => string -> IO Button
-- | Creates a new <a>Button</a> containing the image and text from a stock
-- item.
--
-- If <tt>stockId</tt> is unknown, then it will be treated as a mnemonic
-- label (as for <a>buttonNewWithMnemonic</a>).
buttonNewFromStock :: StockId -> IO Button
-- | Emits the button pressed signal for the given <a>Button</a>.
buttonPressed :: ButtonClass self => self -> IO ()
-- | Emits the button released signal for the given <a>Button</a>.
buttonReleased :: ButtonClass self => self -> IO ()
-- | Emits the button clicked signal for the given <a>Button</a>.
--
-- This is similar to calling <a>buttonPressed</a> and
-- <a>buttonReleased</a> in sequence.
buttonClicked :: ButtonClass self => self -> IO ()
-- | Emit the cursor enters signal to the button.
buttonEnter :: ButtonClass self => self -> IO ()
-- | Emit the cursor leaves signal to the button.
buttonLeave :: ButtonClass self => self -> IO ()
-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle
-- | Sets the relief style of the edges of the given <a>Button</a> widget.
-- Three styles exist, <a>ReliefNormal</a>, <a>ReliefHalf</a>,
-- <a>ReliefNone</a>. The default style is, as one can guess,
-- <a>ReliefNormal</a>.
buttonSetRelief :: ButtonClass self => self -> ReliefStyle -> IO ()
-- | Returns the current relief style of the given <a>Button</a>.
buttonGetRelief :: ButtonClass self => self -> IO ReliefStyle
-- | Sets the text of the label of the button. This text is also used to
-- select the stock item if <a>buttonSetUseStock</a> is used.
--
-- This will also clear any previously set labels.
buttonSetLabel :: (ButtonClass self, GlibString string) => self -> string -> IO ()
-- | Gets the text from the label of the button, as set by
-- <a>buttonSetLabel</a>. If the label text has not been set the return
-- value will be <tt>""</tt>. This will be the case if you create an
-- empty button with <a>buttonNew</a> to use as a container.
buttonGetLabel :: (ButtonClass self, GlibString string) => self -> IO string
-- | If true, the label set on the button is used as a stock id to select
-- the stock item for the button.
--
-- Setting this property to <tt>True</tt> will make the button lookup its
-- label in the table of stock items. If there is a match, the button
-- will use the stock item instead of the label. You need to set this
-- flag before you change the label.
buttonSetUseStock :: ButtonClass self => self -> Bool -> IO ()
-- | Returns whether the button label is a stock item.
buttonGetUseStock :: ButtonClass self => self -> IO Bool
-- | If true, an underline in the text of the button label indicates the
-- next character should be used for the mnemonic accelerator key.
--
-- Setting this property will make the button join any underline
-- character into the following letter and inserting this letter as a
-- keyboard shortcut. You need to set this flag before you change the
-- label.
buttonSetUseUnderline :: ButtonClass self => self -> Bool -> IO ()
-- | Returns whether an embedded underline in the button label indicates a
-- mnemonic. See <a>buttonSetUseUnderline</a>.
buttonGetUseUnderline :: ButtonClass self => self -> IO Bool
-- | Sets whether the button will grab focus when it is clicked with the
-- mouse. Making mouse clicks not grab focus is useful in places like
-- toolbars where you don't want the keyboard focus removed from the main
-- area of the application.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
buttonSetFocusOnClick :: ButtonClass self => self -> Bool -> IO ()
-- | Returns whether the button grabs focus when it is clicked with the
-- mouse. See <a>buttonSetFocusOnClick</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
buttonGetFocusOnClick :: ButtonClass self => self -> IO Bool
-- | Sets the alignment of the child. This has no effect unless the child
-- derives from <a>Misc</a> or <a>Alignment</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
buttonSetAlignment :: ButtonClass self => self -> (Float, Float) -> IO ()
-- | Gets the alignment of the child in the button.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
buttonGetAlignment :: ButtonClass self => self -> IO (Float, Float)
-- | Gets the widget that is currenty set as the image of the button. This
-- may have been explicitly set by <a>buttonSetImage</a> or constructed
-- by <a>buttonNewFromStock</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
buttonGetImage :: ButtonClass self => self -> IO (Maybe Widget)
-- | Set the image of the button to the given widget. Note that it depends
-- on the "gtk-button-images" setting whether the image will be displayed
-- or not.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
buttonSetImage :: (ButtonClass self, WidgetClass image) => self -> image -> IO ()
-- | Position a scale's value is drawn relative to the trough
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType
-- | Sets the position of the image relative to the text inside the button.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
buttonSetImagePosition :: ButtonClass self => self -> PositionType -> IO ()
-- | Gets the position of the image relative to the text inside the button.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
buttonGetImagePosition :: ButtonClass self => self -> IO PositionType
-- | Returns the button's event window if it is realized, <a>Nothing</a>
-- otherwise.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
buttonGetEventWindow :: ButtonClass self => self -> IO (Maybe DrawWindow)
-- | Text of the label widget inside the button, if the button contains a
-- label widget.
--
-- Default value: <tt>""</tt>
buttonLabel :: (ButtonClass self, GlibString string) => Attr self string
-- | If set, an underline in the text indicates the next character should
-- be used for the mnemonic accelerator key.
--
-- Default value: <tt>False</tt>
buttonUseUnderline :: ButtonClass self => Attr self Bool
-- | If set, the label is used to pick a stock item instead of being
-- displayed.
--
-- Default value: <tt>False</tt>
buttonUseStock :: ButtonClass self => Attr self Bool
-- | Whether the button grabs focus when it is clicked with the mouse.
--
-- Default value: <tt>True</tt>
buttonFocusOnClick :: ButtonClass self => Attr self Bool
-- | The border relief style.
--
-- Default value: <a>ReliefNormal</a>
buttonRelief :: ButtonClass self => Attr self ReliefStyle
-- | If the child of the button is a <a>Misc</a> or <a>Alignment</a>, this
-- property can be used to control it's horizontal alignment. 0.0 is left
-- aligned, 1.0 is right aligned.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
buttonXalign :: ButtonClass self => Attr self Float
-- | If the child of the button is a <a>Misc</a> or <a>Alignment</a>, this
-- property can be used to control it's vertical alignment. 0.0 is top
-- aligned, 1.0 is bottom aligned.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
buttonYalign :: ButtonClass self => Attr self Float
-- | Child widget to appear next to the button text.
--
-- <ul>
-- <li>Available since Gtk version 2.6</li>
-- </ul>
buttonImage :: (ButtonClass self, WidgetClass image) => ReadWriteAttr self (Maybe Widget) image
-- | The position of the image relative to the text inside the button.
--
-- Default value: <a>PosLeft</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
buttonImagePosition :: ButtonClass self => Attr self PositionType
-- | Emitted when the button has been activated (pressed and released).
buttonActivated :: ButtonClass self => Signal self (IO ())
-- | A widget displaying an image
module Graphics.UI.Gtk.Display.Image
data Image
class MiscClass o => ImageClass o
castToImage :: GObjectClass obj => obj -> Image
gTypeImage :: GType
toImage :: ImageClass o => o -> Image
-- | Describes the image data representation used by a <a>Image</a>. If you
-- want to get the image from the widget, you can only get the
-- currently-stored representation. e.g. if the <a>imageStorageType</a>
-- is <a>ImagePixbuf</a>, then you can call <a>imageGetPixbuf</a> but not
-- <tt>imageGetStock</tt>. For empty images, you can request any storage
-- type (call any of the "get" functions), but they will all return
-- <tt>Nothing</tt>.
data ImageType
ImageEmpty :: ImageType
ImagePixbuf :: ImageType
ImageStock :: ImageType
ImageIconSet :: ImageType
ImageAnimation :: ImageType
ImageIconName :: ImageType
ImageGicon :: ImageType
ImageSurface :: ImageType
-- | Creates a new <a>Image</a> displaying the file <tt>filename</tt>. If
-- the file isn't found or can't be loaded, the resulting <a>Image</a>
-- will display a "broken image" icon.
--
-- If the file contains an animation, the image will contain an
-- animation.
--
-- If you need to detect failures to load the file, use
-- <a>pixbufNewFromFile</a> to load the file yourself, then create the
-- <a>Image</a> from the pixbuf. (Or for animations, use
-- <a>pixbufAnimationNewFromFile</a>).
--
-- The storage type (<tt>imageGetStorageType</tt>) of the returned image
-- is not defined, it will be whatever is appropriate for displaying the
-- file.
imageNewFromFile :: GlibFilePath fp => fp -> IO Image
-- | Creates a new <a>Image</a> displaying a <a>Pixbuf</a>.
--
-- Note that this function just creates an <a>Image</a> from the pixbuf.
-- The <a>Image</a> created will not react to state changes. Should you
-- want that, you should use <tt>imageNewFromIconSet</tt>.
imageNewFromPixbuf :: Pixbuf -> IO Image
imageNewFromAnimation :: (PixbufAnimationClass animation) => animation -> IO Image
-- | Creates a <a>Image</a> displaying a stock icon. If the stock icon name
-- isn't known, the image will be empty.
imageNewFromStock :: StockId -> IconSize -> IO Image
-- | Creates a new empty <a>Image</a> widget.
imageNew :: IO Image
-- | Creates a <a>Image</a> displaying an icon from the current icon theme.
-- If the icon name isn't known, a "broken image" icon will be displayed
-- instead. If the current icon theme is changed, the icon will be
-- updated appropriately.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
imageNewFromIconName :: GlibString string => string -> IconSize -> IO Image
-- | Gets the <a>Pixbuf</a> being displayed by the <a>Image</a>. The
-- storage type of the image must be <a>ImageEmpty</a> or
-- <a>ImagePixbuf</a> (see <tt>imageGetStorageType</tt>).
imageGetPixbuf :: Image -> IO Pixbuf
-- | Overwrite the current content of the <a>Image</a> with a new
-- <a>Pixbuf</a>.
imageSetFromPixbuf :: Image -> Pixbuf -> IO ()
imageSetFromAnimation :: (PixbufAnimationClass animation) => Image -> animation -> IO ()
-- | See <a>imageNewFromFile</a> for details.
imageSetFromFile :: GlibFilePath fp => Image -> fp -> IO ()
-- | See <a>imageNewFromStock</a> for details.
imageSetFromStock :: Image -> StockId -> IconSize -> IO ()
-- | See <a>imageNewFromIconName</a> for details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
imageSetFromIconName :: GlibString string => Image -> string -> IconSize -> IO ()
-- | Sets the pixel size to use for named icons. If the pixel size is set
-- to a <tt>value /= -1</tt>, it is used instead of the icon size set by
-- <a>imageSetFromIconName</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
imageSetPixelSize :: Image -> Int -> IO ()
-- | Gets the pixel size used for named icons.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
imageGetPixelSize :: Image -> IO Int
-- | Resets the image to be empty.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
imageClear :: Image -> IO ()
-- | The size of an icon in pixels.
--
-- <ul>
-- <li>This enumeration contains one case that is not exported and which
-- is used when new sizes are registered using
-- <a>iconSizeRegister</a>.</li>
-- <li>Applying <a>show</a> to this type will reveal the name of the size
-- that is registered with Gtk+.</li>
-- </ul>
data IconSize
-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize
-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize
-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize
-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize
-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize
-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize
-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize
-- | A <a>Pixbuf</a> to display.
imagePixbuf :: PixbufClass pixbuf => ReadWriteAttr Image Pixbuf pixbuf
imageAnimation :: (PixbufClass pixbuf, PixbufAnimationClass animation) => ReadWriteAttr Image animation pixbuf
-- | A <a>Image</a> to display.
imageImage :: ImageClass image => ReadWriteAttr Image Image image
-- | Filename to load and display.
--
-- Default value: ""
imageFile :: GlibString string => Attr Image string
-- | Stock ID for a stock image to display.
--
-- Default value: ""
imageStock :: GlibString string => Attr Image string
-- | Symbolic size to use for stock icon, icon set or named icon.
--
-- Allowed values: >= 0
--
-- Default value: 4
imageIconSize :: Attr Image Int
-- | The pixel-size property can be used to specify a fixed size overriding
-- the icon-size property for images of type <a>ImageIconName</a>.
--
-- Allowed values: >= -1
--
-- Default value: -1
imagePixelSize :: Attr Image Int
-- | The name of the icon in the icon theme. If the icon theme is changed,
-- the image will be updated automatically.
--
-- Default value: ""
imageIconName :: GlibString string => Attr Image string
-- | The representation being used for image data.
--
-- Default value: <a>ImageEmpty</a>
imageStorageType :: ReadAttr Image ImageType
instance GHC.Classes.Eq Graphics.UI.Gtk.Display.Image.ImageType
instance GHC.Show.Show Graphics.UI.Gtk.Display.Image.ImageType
instance GHC.Enum.Enum Graphics.UI.Gtk.Display.Image.ImageType
-- | Display an icon in the system tray
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Display.StatusIcon
data StatusIcon
class TooltipClass o => StatusIconClass o
castToStatusIcon :: GObjectClass obj => obj -> StatusIcon
gTypeStatusIcon :: GType
toStatusIcon :: StatusIconClass o => o -> StatusIcon
-- | Creates an empty status icon object.
statusIconNew :: IO StatusIcon
-- | Creates a status icon displaying <tt>pixbuf</tt>.
--
-- The image will be scaled down to fit in the available space in the
-- notification area, if necessary.
statusIconNewFromPixbuf :: Pixbuf -> IO StatusIcon
-- | Creates a status icon displaying the file <tt>filename</tt>.
--
-- The image will be scaled down to fit in the available space in the
-- notification area, if necessary.
statusIconNewFromFile :: GlibString string => string -> IO StatusIcon
statusIconNewFromStock :: StockId -> IO StatusIcon
-- | Creates a status icon displaying an icon from the current icon theme.
-- If the current icon theme is changed, the icon will be updated
-- appropriately.
statusIconNewFromIconName :: GlibString string => string -> IO StatusIcon
-- | Makes <tt>statusIcon</tt> display <tt>pixbuf</tt>. See
-- <a>statusIconNewFromPixbuf</a> for details.
statusIconSetFromPixbuf :: StatusIconClass self => self -> Pixbuf -> IO ()
-- | Makes <tt>statusIcon</tt> display the file <tt>filename</tt>. See
-- <a>statusIconNewFromFile</a> for details.
statusIconSetFromFile :: (StatusIconClass self, GlibString string) => self -> string -> IO ()
-- | Makes <tt>statusIcon</tt> display the stock icon with the id
-- <tt>stockId</tt>. See <a>statusIconNewFromStock</a> for details.
statusIconSetFromStock :: StatusIconClass self => self -> StockId -> IO ()
-- | Makes <tt>statusIcon</tt> display the icon named <tt>iconName</tt>
-- from the current icon theme. See <a>statusIconNewFromIconName</a> for
-- details.
statusIconSetFromIconName :: (StatusIconClass self, GlibString string) => self -> string -> IO ()
-- | Gets the type of representation being used by the <a>StatusIcon</a> to
-- store image data. If the <a>StatusIcon</a> has no image data, the
-- return value will be <a>ImageEmpty</a>.
statusIconGetStorageType :: StatusIconClass self => self -> IO ImageType
statusIconGetPixbuf :: StatusIconClass self => self -> IO (Maybe Pixbuf)
statusIconGetStock :: StatusIconClass self => self -> IO (Maybe StockId)
statusIconGetIconName :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)
-- | Gets the size in pixels that is available for the image. Stock icons
-- and named icons adapt their size automatically if the size of the
-- notification area changes. For other storage types, the
-- <tt>sizeChanged</tt> signal can be used to react to size changes.
statusIconGetSize :: StatusIconClass self => self -> IO Int
-- | Shows or hides a status icon.
statusIconSetVisible :: StatusIconClass self => self -> Bool -> IO ()
-- | Returns whether the status icon is visible or not. Note that being
-- visible does not guarantee that the user can actually see the icon,
-- see also <a>statusIconIsEmbedded</a>.
statusIconGetVisible :: StatusIconClass self => self -> IO Bool
-- | Returns whether the status icon is embedded in a notification area.
statusIconIsEmbedded :: StatusIconClass self => self -> IO Bool
-- | Menu positioning function to use with <tt>menuPopup</tt> to position
-- <tt>menu</tt> aligned to the status icon <tt>userData</tt>.
statusIconPositionMenu :: (MenuClass menu, StatusIconClass self) => menu -> self -> IO (Int, Int, Bool)
-- | Obtains information about the location of the status icon on screen.
-- This information can be used to e.g. position popups like notification
-- bubbles.
--
-- Note that some platforms do not allow Gtk+ to provide this
-- information, and even on platforms that do allow it, the information
-- is not reliable unless the status icon is embedded in a notification
-- area, see <a>statusIconIsEmbedded</a>.
statusIconGetGeometry :: StatusIconClass self => self -> IO (Maybe (Rectangle, Orientation))
-- | Sets the <a>Screen</a> where status icon is displayed; if the icon is
-- already mapped, it will be unmapped, and then remapped on the new
-- screen.
statusIconSetScreen :: (StatusIconClass self, ScreenClass screen) => self -> Maybe screen -> IO ()
-- | Returns the <a>Screen</a> associated with the status icon.
statusIconGetScreen :: StatusIconClass self => self -> IO (Maybe Screen)
-- | Sets text as the contents of the tooltip.
--
-- This function will take care of setting "has-tooltip" to <a>True</a>
-- and of the default handler for the "query-tooltip" signal.
--
-- See also the "tooltip-text" property and <tt>tooltipSetText</tt>.
statusIconSetTooltipText :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()
-- | Gets the contents of the tooltip for status icon.
statusIconGetTooltipText :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets markup as the contents of the tooltip, which is marked up with
-- the Pango text markup language.
--
-- This function will take care of setting <a>statusIconHasTooltip</a> to
-- <a>True</a> and of the default handler for the <tt>queryTooltip</tt>
-- signal.
--
-- See also the <tt>tooltipMarkup</tt> property and
-- <tt>tooltipSetMarkup</tt>.
statusIconSetTooltipMarkup :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()
-- | Gets the contents of the tooltip for status icon.
statusIconGetTooltipMarkup :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the has-tooltip property on the status icon to
-- <tt>hasTooltip</tt>. See <a>statusIconHasTooltip</a> for more
-- information.
statusIconSetHasTooltip :: StatusIconClass self => self -> Bool -> IO ()
-- | Returns the current value of the has-tooltip property. See
-- <a>statusIconHasTooltip</a> for more information.
statusIconGetHasTooltip :: StatusIconClass self => self -> IO Bool
-- | Sets the title of this tray icon. This should be a short,
-- human-readable, localized string describing the tray icon. It may be
-- used by tools like screen readers to render the tray icon.
statusIconSetTitle :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()
-- | Gets the title of this tray icon. See <a>statusIconSetTitle</a>.
statusIconGetTitle :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the name of this tray icon. This should be a string identifying
-- this icon. It is may be used for sorting the icons in the tray and
-- will not be shown to the user.
statusIconSetName :: (StatusIconClass self, GlibString string) => self -> string -> IO ()
-- | A <a>Pixbuf</a> to display.
statusIconPixbuf :: StatusIconClass self => Attr self Pixbuf
-- | Filename to load and display.
--
-- Default value: <tt>Nothing</tt>
statusIconFile :: (StatusIconClass self, GlibString string) => WriteAttr self (Maybe string)
-- | Stock ID for a stock image to display.
--
-- Default value: <tt>Nothing</tt>
statusIconStock :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)
-- | The name of the icon from the icon theme.
--
-- Default value: <tt>Nothing</tt>
statusIconIconName :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)
-- | The representation being used for image data.
--
-- Default value: <a>ImageEmpty</a>
statusIconStorageType :: StatusIconClass self => ReadAttr self ImageType
-- | The size of the icon.
--
-- Allowed values: >= 0
--
-- Default value: 0
statusIconSize :: StatusIconClass self => ReadAttr self Int
-- | Whether or not the status icon is visible.
--
-- Default value: <tt>True</tt>
statusIconVisible :: StatusIconClass self => Attr self Bool
-- | The screen where this status icon will be displayed.
statusIconScreen :: StatusIconClass self => Attr self Screen
-- | Sets the text of tooltip to be the given string.
--
-- Also see <tt>tooltipSetText</tt>.
--
-- This is a convenience property which will take care of getting the
-- tooltip shown if the given value is not <a>Nothing</a>. "has-tooltip"
-- will automatically be set to <a>True</a> and the default handler for
-- the "query-tooltip" signal will take care of displaying the tooltip.
--
-- Note that some platforms have limitations on the length of tooltips
-- that they allow on status icons, e.g. Windows only shows the first 64
-- characters.
--
-- Default value: <a>Nothing</a>
statusIconTooltipText :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)
-- | Sets the text of tooltip to be the given string, which is marked up
-- with the Pango text markup language. Also see
-- <tt>tooltipSetMarkup</tt>.
--
-- This is a convenience property which will take care of getting the
-- tooltip shown if the given value is not <a>Nothing</a>. "has-tooltip"
-- will automatically be set to <a>True</a> and the default handler for
-- the "query-tooltip" signal will take care of displaying the tooltip.
--
-- On some platforms, embedded markup will be ignored.
--
-- Default value: <a>Nothing</a>
statusIconTooltipMarkup :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)
-- | Enables or disables the emission of "query-tooltip" on status_icon. A
-- value of <a>True</a> indicates that status_icon can have a tooltip, in
-- this case the status icon will be queried using "query-tooltip" to
-- determine whether it will provide a tooltip or not.
--
-- Note that setting this property to <a>True</a> for the first time will
-- change the event masks of the windows of this status icon to include
-- leave-notify and motion-notify events. This will not be undone when
-- the property is set to <a>False</a> again.
--
-- Whether this property is respected is platform dependent. For plain
-- text tooltips, use "tooltip-text" in preference.
--
-- Default value: <a>False</a>
statusIconHasTooltip :: StatusIconClass self => Attr self Bool
-- | The title of this tray icon. This should be a short, human-readable,
-- localized string describing the tray icon. It may be used by tools
-- like screen readers to render the tray icon.
--
-- Default value: <a>Nothing</a>
statusIconTitle :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)
-- | Gets emitted when the size available for the image changes, e.g.
-- because the notification area got resized.
statusIconSizeChanged :: StatusIconClass self => Signal self (Int -> IO Bool)
-- | Gets emitted when the user activates the status icon. If and how
-- status icons can activated is platform-dependent.
statusIconActivated :: StatusIconClass self => Signal self (IO ())
-- | Deprecated. See <a>statusIconActivated</a>.
statusIconActivate :: StatusIconClass self => Signal self (IO ())
-- | Gets emitted when the user brings up the context menu of the status
-- icon. Whether status icons can have context menus and how these are
-- activated is platform-dependent.
--
-- The <a>MouseButton</a> and <a>TimeStamp</a> parameters should be
-- passed as the last to arguments to <a>menuPopup</a>.
statusIconPopupMenu :: StatusIconClass self => Signal self (Maybe MouseButton -> TimeStamp -> IO ())
-- | OpenGL context
module Graphics.UI.Gtk.Gdk.GLContext
data GLContext
class GObjectClass o => GLContextClass o
castToGLContext :: GObjectClass obj => obj -> GLContext
gTypeGLContext :: GType
-- | Retrieves the <a>Display</a> the context is created for.
glContextGetDisplay :: GLContextClass self => self -> IO (Maybe Display)
-- | Retrieves the <a>DrawWindow</a> used by the context.
glContextGetWindow :: GLContextClass self => self -> IO (Maybe DrawWindow)
-- | Retrieves the <a>GLContext</a> that this context share data with.
glContextGetSharedContext :: GLContextClass self => self -> IO (Maybe GLContext)
-- | Retrieves the OpenGL version of the context.
--
-- The context must be realized prior to calling this function.
glContextGetVersion :: GLContextClass self => self -> IO (Int, Int)
-- | Sets the major and minor version of OpenGL to request.
--
-- Setting major and minor to zero will use the default values.
--
-- The <a>GLContext</a> must not be realized or made current prior to
-- calling this function.
glContextSetRequiredVersion :: GLContextClass self => self -> Int -> Int -> IO ()
-- | Retrieves the major and minor version requested by calling
-- <a>glContextSetRequiredVersion</a>.
glContextGetRequiredVersion :: GLContextClass self => self -> IO (Int, Int)
-- | Sets whether the <a>GLContext</a> should perform extra validations and
-- run time checking. This is useful during development, but has
-- additional overhead.
--
-- The <a>GLContext</a> must not be realized or made current prior to
-- calling this function.
glContextSetDebugEnabled :: GLContextClass self => self -> Bool -> IO ()
-- | Retrieves the value set using glContextSetDebugEnabled.
glContextGetDebugEnabled :: GLContextClass self => self -> IO Bool
-- | Sets whether the <a>GLContext</a> should be forward compatible.
--
-- Forward compatibile contexts must not support OpenGL functionality
-- that has been marked as deprecated in the requested version;
-- non-forward compatible contexts, on the other hand, must support both
-- deprecated and non deprecated functionality.
--
-- The <a>GLContext</a> must not be realized or made current prior to
-- calling this function.
glContextSetForwardCompatible :: GLContextClass self => self -> Bool -> IO ()
-- | Retrieves the value set using glContextSetForwardCompatible.
glContextGetForwardCompatible :: GLContextClass self => self -> IO Bool
-- | Realizes the given <a>GLContext</a>.
--
-- It is safe to call this function on a realized <a>GLContext</a>.
glContextRealize :: GLContextClass self => self -> IO Bool
-- | Whether the <a>GLContext</a> is in legacy mode or not.
--
-- The <a>GLContext</a> must be realized before calling this function.
--
-- When realizing a GL context, GDK will try to use the OpenGL 3.2 core
-- profile; this profile removes all the OpenGL API that was deprecated
-- prior to the 3.2 version of the specification. If the realization is
-- successful, this function will return False.
--
-- If the underlying OpenGL implementation does not support core
-- profiles, GDK will fall back to a pre-3.2 compatibility profile, and
-- this function will return True.
--
-- You can use the value returned by this function to decide which kind
-- of OpenGL API to use, or whether to do extension discovery, or what
-- kind of shader programs to load.
glContextIsLegacy :: GLContextClass self => self -> IO Bool
-- | Makes the context the current one.
glContextMakeCurrent :: GLContextClass self => self -> IO ()
-- | Retrieves the current <a>GLContext</a>.
glContextGetCurrent :: IO (Maybe GLContext)
-- | Clears the current <a>GLContext</a>.
--
-- Any OpenGL call after this function returns will be ignored until
-- glContextMakeCurrent is called.
glContextClearCurrent :: IO ()
-- | Gdk general functions.
module Graphics.UI.Gtk.Gdk.Gdk
-- | Flushes the X output buffer and waits until all requests have been
-- processed by the server. This is rarely needed by applications.
flush :: IO ()
-- | Returns the width of the default screen in pixels.
screenWidth :: IO Int
-- | Returns the height of the default screen in pixels.
screenHeight :: IO Int
-- | Returns the width of the default screen in millimeters. Note that on
-- many X servers this value will not be correct.
screenWidthMM :: IO Int
-- | Returns the height of the default screen in millimeters. Note that on
-- many X servers this value will not be correct.
screenHeightMM :: IO Int
data GrabStatus
GrabSuccess :: GrabStatus
GrabAlreadyGrabbed :: GrabStatus
GrabInvalidTime :: GrabStatus
GrabNotViewable :: GrabStatus
GrabFrozen :: GrabStatus
GrabFailed :: GrabStatus
-- | Grabs the pointer (usually a mouse) so that all events are passed to
-- this application until the pointer is ungrabbed with
-- <a>pointerUngrab</a>, or the grab window becomes unviewable. This
-- overrides any previous pointer grab by this client.
--
-- Pointer grabs are used for operations which need complete control over
-- mouse events, even if the mouse leaves the application. For example in
-- GTK+ it is used for Drag and Drop, for dragging the handle in the
-- GtkHPaned and GtkVPaned widgets, and for resizing columns in GtkCList
-- widgets.
--
-- Note that if the event mask of an X window has selected both button
-- press and button release events, then a button press event will cause
-- an automatic pointer grab until the button is released. X does this
-- automatically since most applications expect to receive button press
-- and release events in pairs. It is equivalent to a pointer grab on the
-- window with <tt>owner_events</tt> set to <tt>True</tt>.
--
-- If you set up anything at the time you take the grab that needs to be
-- cleaned up when the grab ends, you should handle the
-- GdkEventGrabBroken events that are emitted when the grab ends
-- unvoluntarily.
pointerGrab :: (DrawWindowClass window, DrawWindowClass confine_to) => window -> Bool -> [EventMask] -> Maybe confine_to -> Maybe Cursor -> TimeStamp -> IO GrabStatus
-- | Ungrabs the pointer on the default display, if it is grabbed by this
-- application.
pointerUngrab :: TimeStamp -> IO ()
-- | Returns <tt>True</tt> if the pointer on the default display is
-- currently grabbed by this application.
--
-- Note that this does not take the inmplicit pointer grab on button
-- presses into account.
pointerIsGrabbed :: IO Bool
-- | Grabs the keyboard so that all events are passed to this application
-- until the keyboard is ungrabbed with <a>keyboardUngrab</a>. This
-- overrides any previous keyboard grab by this client.
--
-- If you set up anything at the time you take the grab that needs to be
-- cleaned up when the grab ends, you should handle the
-- GdkEventGrabBroken events that are emitted when the grab ends
-- unvoluntarily.
keyboardGrab :: (DrawWindowClass window) => window -> Bool -> TimeStamp -> IO GrabStatus
-- | Ungrabs the keyboard on the default display, if it is grabbed by this
-- application.
keyboardUngrab :: TimeStamp -> IO ()
-- | Emits a short beep.
beep :: IO ()
data RGBA
RGBA :: Double -> Double -> Double -> Double -> RGBA
-- | Functions for manipulating keyboard codes
module Graphics.UI.Gtk.Gdk.Keymap
data Keymap
class GObjectClass o => KeymapClass o
castToKeymap :: GObjectClass obj => obj -> Keymap
toKeymap :: KeymapClass o => o -> Keymap
-- | A <a>KeymapKey</a> is a hardware key that can be mapped to a keyval.
data KeymapKey
-- | Returns the <a>Keymap</a> attached to the default display.
keymapGetDefault :: IO Keymap
-- | Returns the <a>Keymap</a> attached to <tt>display</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.2</li>
-- </ul>
keymapGetForDisplay :: Display -> IO Keymap
-- | Looks up the keyval mapped to a keycode/group/level triplet. If no
-- keyval is bound to <tt>key</tt>, returns 0. For normal user input, you
-- want to use <a>keymapTranslateKeyboardState</a> instead of this
-- function, since the effective group/level may not be the same as the
-- current keyboard state.
keymapLookupKey :: KeymapClass self => (Maybe self) -> KeymapKey -> IO Int
-- | Translates the contents of a <tt>EventKey</tt> into a keyval,
-- effective group, and level. Modifiers that affected the translation
-- and are thus unavailable for application use are returned in
-- <tt>consumedModifiers</tt>. See <tt>keyvalGetKeys</tt> for an
-- explanation of groups and levels. The <tt>effectiveGroup</tt> is the
-- group that was actually used for the translation; some keys such as
-- Enter are not affected by the active keyboard group. The
-- <tt>level</tt> is derived from <tt>state</tt>. For convenience,
-- <tt>EventKey</tt> already contains the translated keyval, so this
-- function isn't as useful as you might think.
keymapTranslateKeyboardState :: KeymapClass self => self -> Int -> Modifier -> Int -> IO (Maybe (Int, Int, Int, Modifier))
-- | Obtains a list of keycode/group/level combinations that will generate
-- <tt>keyval</tt>. Groups and levels are two kinds of keyboard mode; in
-- general, the level determines whether the top or bottom symbol on a
-- key is used, and the group determines whether the left or right symbol
-- is used. On US keyboards, the shift key changes the keyboard level,
-- and there are no groups. A group switch key might convert a keyboard
-- between Hebrew to English modes, for example. <tt>EventKey</tt>
-- contains a <tt>group</tt> field that indicates the active keyboard
-- group. The level is computed from the modifier mask.
keymapGetEntriesForKeyval :: KeymapClass self => self -> KeyVal -> IO (Maybe [KeymapKey])
-- | Returns the keyvals bound to <tt>hardwareKeycode</tt>. The Nth
-- <a>KeymapKey</a> in <tt>keys</tt> is bound to the Nth keyval in
-- <tt>keyvals</tt>. When a keycode is pressed by the user, the keyval
-- from this list of entries is selected by considering the effective
-- keyboard group and level. See <a>keymapTranslateKeyboardState</a>.
keymapGetEntriesForKeycode :: KeymapClass self => self -> Int -> IO (Maybe ([KeymapKey], [KeyVal]))
-- | Returns the direction of effective layout of the keymap.
--
-- Returns the direction of the keymap.
keymapGetDirection :: KeymapClass self => self -> IO PangoDirection
-- | Determines if keyboard layouts for both right-to-left and
-- left-to-right languages are in use.
--
-- <ul>
-- <li>Available since Gdk version 2.12</li>
-- </ul>
keymapHaveBidiLayouts :: KeymapClass self => self -> IO Bool
-- | Returns whether the Caps Lock modifer is locked.
--
-- <ul>
-- <li>Available since Gdk version 2.16</li>
-- </ul>
keymapGetCapsLockState :: KeymapClass self => self -> IO Bool
-- | The <a>keymapDirectionChanged</a> signal gets emitted when the
-- direction of the keymap changes.
--
-- <ul>
-- <li>Available since Gdk version 2.0</li>
-- </ul>
keymapDirectionChanged :: KeymapClass self => Signal self (IO ())
-- | The <a>keymapKeysChanged</a> signal is emitted when the mapping
-- represented by <tt>keymap</tt> changes.
--
-- <ul>
-- <li>Available since Gdk version 2.2</li>
-- </ul>
keymapKeysChanged :: KeymapClass self => Signal self (IO ())
-- | The <a>keymapStateChanged</a> signal is emitted when the state of the
-- keyboard changes, e.g when Caps Lock is turned on or off. See
-- <a>keymapGetCapsLockState</a>.
--
-- <ul>
-- <li>Available since Gdk version 2.16</li>
-- </ul>
keymapStateChanged :: KeymapClass self => Signal self (IO ())
-- | Object representing a physical screen
--
-- <ul>
-- <li>Module available since Gdk version 2.2</li>
-- </ul>
module Graphics.UI.Gtk.Gdk.Screen
data Screen
class GObjectClass o => ScreenClass o
castToScreen :: GObjectClass obj => obj -> Screen
gTypeScreen :: GType
toScreen :: ScreenClass o => o -> Screen
-- | Gets the default screen for the default display. (See
-- <tt>displayGetDefault</tt>).
screenGetDefault :: IO (Maybe Screen)
-- | Get the system's default visual for <tt>screen</tt>. This is the
-- visual for the root window of the display.
screenGetSystemVisual :: Screen -> IO Visual
-- | Returns whether windows with an RGBA visual can reasonably be expected
-- to have their alpha channel drawn correctly on the screen.
--
-- On X11 this function returns whether a compositing manager is
-- compositing <tt>screen</tt>.
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
screenIsComposited :: Screen -> IO Bool
-- | Gets the root window of <tt>screen</tt>.
screenGetRootWindow :: Screen -> IO DrawWindow
-- | Gets the display to which the <tt>screen</tt> belongs.
screenGetDisplay :: Screen -> IO Display
-- | Gets the index of <tt>screen</tt> among the screens in the display to
-- which it belongs. (See <a>screenGetDisplay</a>)
screenGetNumber :: Screen -> IO Int
-- | Gets the width of <tt>screen</tt> in pixels
screenGetWidth :: Screen -> IO Int
-- | Gets the height of <tt>screen</tt> in pixels
screenGetHeight :: Screen -> IO Int
screenGetWidthMm :: Screen -> IO Int
screenGetHeightMm :: Screen -> IO Int
-- | Gets the width of <tt>screen</tt> in millimeters. Note that on some X
-- servers this value will not be correct.
screenGetWidthMM :: Screen -> IO Int
-- | Returns the height of <tt>screen</tt> in millimeters. Note that on
-- some X servers this value will not be correct.
screenGetHeightMM :: Screen -> IO Int
-- | Lists the available visuals for the specified <tt>screen</tt>. A
-- visual describes a hardware image data format. For example, a visual
-- might support 24-bit color, or 8-bit color, and might expect pixels to
-- be in a certain format.
screenListVisuals :: Screen -> IO [Visual]
-- | Obtains a list of all toplevel windows known to GDK on the screen
-- <tt>screen</tt>. A toplevel window is a child of the root window (see
-- <tt>getDefaultRootWindow</tt>).
screenGetToplevelWindows :: Screen -> IO [DrawWindow]
-- | Determines the name to pass to <tt>displayOpen</tt> to get a
-- <a>Display</a> with this screen as the default screen.
screenMakeDisplayName :: GlibString string => Screen -> IO string
-- | Returns the number of monitors which <tt>screen</tt> consists of.
screenGetNMonitors :: Screen -> IO Int
-- | Retrieves the <a>Rectangle</a> representing the size and position of
-- the individual monitor within the entire screen area.
--
-- Note that the size of the entire screen area can be retrieved via
-- <a>screenGetWidth</a> and <a>screenGetHeight</a>.
screenGetMonitorGeometry :: Screen -> Int -> IO Rectangle
-- | Returns the monitor number in which the point (<tt>x</tt>,<tt>y</tt>)
-- is located.
screenGetMonitorAtPoint :: Screen -> Int -> Int -> IO Int
-- | Returns the number of the monitor in which the largest area of the
-- bounding rectangle of <tt>window</tt> resides.
screenGetMonitorAtWindow :: Screen -> DrawWindow -> IO Int
-- | Gets the height in millimeters of the specified monitor.
--
-- <ul>
-- <li>Available since Gdk version 2.14</li>
-- </ul>
screenGetMonitorHeightMm :: Screen -> Int -> IO Int
-- | Gets the width in millimeters of the specified monitor, if available.
--
-- <ul>
-- <li>Available since Gdk version 2.14</li>
-- </ul>
screenGetMonitorWidthMm :: Screen -> Int -> IO Int
-- | Returns the output name of the specified monitor. Usually something
-- like VGA, DVI, or TV, not the actual product name of the display
-- device.
--
-- <ul>
-- <li>Available since Gdk version 2.14</li>
-- </ul>
screenGetMonitorPlugName :: GlibString string => Screen -> Int -> IO (Maybe string)
-- | Returns the currently active window of this screen.
--
-- On X11, this is done by inspecting the _NET_ACTIVE_WINDOW property on
-- the root window, as described in the Extended Window Manager Hints. If
-- there is no currently currently active window, or the window manager
-- does not support the _NET_ACTIVE_WINDOW hint, this function returns
-- <tt>Nothing</tt>.
--
-- On other platforms, this function may return <tt>Nothing</tt>,
-- depending on whether it is implementable on that platform.
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
screenGetActiveWindow :: Screen -> IO (Maybe DrawWindow)
-- | Returns a list of <a>DrawWindow</a>s representing the current window
-- stack.
--
-- On X11, this is done by inspecting the _NET_CLIENT_LIST_STACKING
-- property on the root window, as described in the Extended Window
-- Manager Hints. If the window manager does not support the
-- _NET_CLIENT_LIST_STACKING hint, this function returns
-- <tt>Nothing</tt>.
--
-- On other platforms, this function may return <tt>Nothing</tt>,
-- depending on whether it is implementable on that platform.
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
screenGetWindowStack :: Screen -> IO (Maybe [DrawWindow])
-- | The default font options for the screen.
screenFontOptions :: Attr Screen (Maybe FontOptions)
-- | The resolution for fonts on the screen.
--
-- Default value: -1
screenResolution :: Attr Screen Double
-- | The ::size_changed signal is emitted when the pixel width or height of
-- a screen changes.
screenSizeChanged :: ScreenClass self => Signal self (IO ())
-- | The <a>screenCompositedChanged</a> signal is emitted when the
-- composited status of the screen changes
--
-- <ul>
-- <li>Available since Gdk version 2.10</li>
-- </ul>
screenCompositedChanged :: ScreenClass self => Signal self (IO ())
-- | The <a>screenMonitorsChanged</a> signal is emitted when the number,
-- size or position of the monitors attached to the screen change.
--
-- Only for X for now. Future implementations for Win32 and OS X may be a
-- possibility.
--
-- <ul>
-- <li>Available since Gdk version 2.14</li>
-- </ul>
screenMonitorsChanged :: ScreenClass self => Signal self (IO ())
-- | Drag-and-Drop functionality.
--
-- GTK+ has a rich set of functions for doing inter-process communication
-- via the drag-and-drop metaphor. GTK+ can do drag-and-drop (DND) via
-- multiple protocols. The currently supported protocols are the Xdnd and
-- Motif protocols. As well as the functions listed here, applications
-- may need to use some facilities provided for <tt>Selection</tt>s.
-- Also, the Drag and Drop API makes use of signals in the <a>Widget</a>
-- class.
module Graphics.UI.Gtk.General.Drag
data DragContext
class GObjectClass o => DragContextClass o
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction
-- | The <a>DestDefaults</a> enumeration specifies the various types of
-- action that will be taken on behalf of the user for a drag destination
-- site.
--
-- <ul>
-- <li><a>DestDefaultMotion</a>: If set for a widget, GTK+, during a drag
-- over this widget will check if the drag matches this widget's list of
-- possible targets and actions. GTK+ will then call <a>dragStatus</a> as
-- appropriate.</li>
-- <li><a>DestDefaultHighlight</a>: If set for a widget, GTK+ will draw a
-- highlight on this widget as long as a drag is over this widget and the
-- widget drag format and action are acceptable.</li>
-- <li><a>DestDefaultDrop</a>: If set for a widget, when a drop occurs,
-- GTK+ will will check if the drag matches this widget's list of
-- possible targets and actions. If so, GTK+ will call <a>dragGetData</a>
-- on behalf of the widget. Whether or not the drop is successful, GTK+
-- will call <a>dragFinish</a>. If the action was a move, then if the
-- drag was successful, then <tt>True</tt> will be passed for the delete
-- parameter to <a>dragFinish</a></li>
-- <li><a>DestDefaultAll</a>: If set, specifies that all default actions
-- should be taken.</li>
-- </ul>
data DestDefaults
DestDefaultMotion :: DestDefaults
DestDefaultHighlight :: DestDefaults
DestDefaultDrop :: DestDefaults
DestDefaultAll :: DestDefaults
-- | Used in <a>DragContext</a> to indicate the protocol according to which
-- DND is done.
data DragProtocol
DragProtoNone :: DragProtocol
DragProtoMotif :: DragProtocol
DragProtoXdnd :: DragProtocol
DragProtoRootwin :: DragProtocol
DragProtoWin32Dropfiles :: DragProtocol
DragProtoOle2 :: DragProtocol
DragProtoLocal :: DragProtocol
DragProtoWayland :: DragProtocol
data DragResult
DragResultSuccess :: DragResult
DragResultNoTarget :: DragResult
DragResultUserCancelled :: DragResult
DragResultTimeoutExpired :: DragResult
DragResultGrabBroken :: DragResult
DragResultError :: DragResult
castToDragContext :: GObjectClass obj => obj -> DragContext
gTypeDragContext :: GType
toDragContext :: DragContextClass o => o -> DragContext
-- | Sets a widget as a potential drop destination.
--
-- <ul>
-- <li>The <a>DestDefaults</a> flags specify what actions Gtk should take
-- on behalf of a widget for drops onto that widget. The given actions
-- and any targets set through <a>dragDestSetTargetList</a> only are used
-- if <a>DestDefaultMotion</a> or <a>DestDefaultDrop</a> are given.</li>
-- <li>Things become more complicated when you try to preview the dragged
-- data, as described in the documentation for <a>dragMotion</a>. The
-- default behaviors described by flags make some assumptions, that can
-- conflict with your own signal handlers. For instance
-- <a>DestDefaultDrop</a> causes invocations of <a>dragStatus</a> in the
-- handler of <a>dragMotion</a>, and invocations of <a>dragFinish</a> in
-- <a>dragDataReceived</a>. Especially the latter is dramatic, when your
-- own <a>dragMotion</a> handler calls <a>dragGetData</a> to inspect the
-- dragged data.</li>
-- </ul>
dragDestSet :: WidgetClass widget => widget -> [DestDefaults] -> [DragAction] -> IO ()
-- | Sets this widget as a proxy for drops to another window.
dragDestSetProxy :: WidgetClass widget => widget -> DrawWindow -> DragProtocol -> Bool -> IO ()
-- | Clears information about a drop destination set with
-- <a>dragDestSet</a>. The widget will no longer receive notification of
-- drags.
dragDestUnset :: WidgetClass widget => widget -> IO ()
-- | Looks for a match between the targets mentioned in the context and the
-- <a>TargetList</a>, returning the first matching target, otherwise
-- returning <tt>Nothing</tt>. If <tt>Nothing</tt> is given as target
-- list, use the value from <tt>destGetTargetList</tt>. Some widgets may
-- have different valid targets for different parts of the widget; in
-- that case, they will have to implement a <a>dragMotion</a> handler
-- that passes the correct target list to this function.
dragDestFindTarget :: (WidgetClass widget, DragContextClass context) => widget -> context -> Maybe TargetList -> IO (Maybe TargetTag)
-- | Returns the list of targets this widget can accept for drag-and-drop.
dragDestGetTargetList :: WidgetClass widget => widget -> IO (Maybe TargetList)
-- | Sets the target types that this widget can accept from drag-and-drop.
-- The widget must first be made into a drag destination with
-- <a>dragDestSet</a>.
dragDestSetTargetList :: WidgetClass widget => widget -> TargetList -> IO ()
-- | Add the text targets supported by the selection mechanism to the
-- target list of the drag source. The targets are added with an
-- <a>InfoId</a> of 0. If you need another value, use
-- <a>targetListAddTextTargets</a> and <a>dragSourceSetTargetList</a>.
dragDestAddTextTargets :: WidgetClass widget => widget -> IO ()
-- | Add image targets supported by the selection mechanism to the target
-- list of the drag source. The targets are added with an <a>InfoId</a>
-- of 0. If you need another value, use <a>targetListAddTextTargets</a>
-- and <a>dragSourceSetTargetList</a>.
dragDestAddImageTargets :: WidgetClass widget => widget -> IO ()
-- | Add URI targets supported by the selection mechanism to the target
-- list of the drag source. The targets are added with an <a>InfoId</a>
-- of 0. If you need another value, use <a>targetListAddTextTargets</a>
-- and <a>dragSourceSetTargetList</a>.
dragDestAddURITargets :: WidgetClass widget => widget -> IO ()
-- | Visualises the actions offered by the drag source.
--
-- <ul>
-- <li>This function is called by the drag destination in response to
-- <a>dragMotion</a> called by the drag source. The passed-in action is
-- indicated where <tt>Nothing</tt> will show that the drop is not
-- allowed.</li>
-- </ul>
dragStatus :: DragContext -> Maybe DragAction -> TimeStamp -> IO ()
-- | Informs the drag source that the drop is finished, and that the data
-- of the drag will no longer be required.
dragFinish :: DragContextClass context => context -> Bool -> Bool -> TimeStamp -> IO ()
-- | Gets the data associated with a drag. When the data is received or the
-- retrieval fails, GTK+ will emit a <a>dragDataReceived</a> signal.
-- Failure of the retrieval is indicated by passing <tt>Nothing</tt> in
-- the <tt>selectionData</tt> signal. However, when <a>dragGetData</a> is
-- called implicitely because the <a>DestDefaultDrop</a> was set, then
-- the widget will not receive notification of failed drops.
dragGetData :: (WidgetClass widget, DragContextClass context) => widget -> context -> TargetTag -> TimeStamp -> IO ()
-- | Queries he source widget for a drag.
--
-- <ul>
-- <li>If the drag is occurring within a single application, a pointer to
-- the source widget is returned. Otherwise the return value is
-- <tt>Nothing</tt>.</li>
-- </ul>
dragGetSourceWidget :: DragContextClass context => context -> IO (Maybe Widget)
-- | Draws a highlight around a widget. This will attach handlers to the
-- expose handlers, so the highlight will continue to be displayed until
-- <a>dragUnhighlight</a> is called.
dragHighlight :: WidgetClass widget => widget -> IO ()
-- | Removes a highlight set by <a>dragHighlight</a> from a widget.
dragUnhighlight :: WidgetClass widget => widget -> IO ()
-- | Changes the icon for a drag to a given widget. GTK+ will not destroy
-- the widget, so if you don't want it to persist, you should connect to
-- the <a>dragEnd</a> signal and destroy it yourself.
--
-- <ul>
-- <li>The function must be called with the context of the source
-- side.</li>
-- </ul>
dragSetIconWidget :: (DragContextClass context, WidgetClass widget) => context -> widget -> Int -> Int -> IO ()
-- | Set the given <a>Pixbuf</a> as the icon for the given drag.
dragSetIconPixbuf :: DragContextClass context => context -> Pixbuf -> Int -> Int -> IO ()
-- | Sets the icon for a given drag from a stock ID.
dragSetIconStock :: DragContextClass context => context -> StockId -> Int -> Int -> IO ()
-- | Sets the icon for a given drag from a named themed icon. See the docs
-- for <a>IconTheme</a> for more details. Note that the size of the icon
-- depends on the icon theme (the icon is loaded at the DND size), thus x
-- and y hot-spots have to be used with care. Since Gtk 2.8.
dragSetIconName :: (DragContextClass context, GlibString string) => context -> string -> Int -> Int -> IO ()
-- | Sets the icon for a particular drag to the default icon. This function
-- must be called with a context for the source side of a drag
dragSetIconDefault :: DragContextClass context => context -> IO ()
-- | Checks to see if a mouse drag starting at <tt>(startX, startY)</tt>
-- and ending at <tt>(currentX, currenty)</tt> has passed the GTK+ drag
-- threshold, and thus should trigger the beginning of a drag-and-drop
-- operation.
dragCheckThreshold :: WidgetClass widget => widget -> Int -> Int -> Int -> Int -> IO Bool
-- | Sets up a widget so that GTK+ will start a drag operation when the
-- user clicks and drags on the widget. The widget must have a window.
-- Note that a set of possible targets have to be set for a drag to be
-- successful.
dragSourceSet :: WidgetClass widget => widget -> [Modifier] -> [DragAction] -> IO ()
-- | Sets the icon that will be used for drags from a particular widget
-- from a <a>Pixbuf</a>.
dragSourceSetIconPixbuf :: WidgetClass widget => widget -> Pixbuf -> IO ()
-- | Sets the icon that will be used for drags from a particular source to
-- a stock icon.
dragSourceSetIconStock :: WidgetClass widget => widget -> StockId -> IO ()
-- | Sets the icon that will be used for drags from a particular source to
-- a themed icon. See the docs for <a>IconTheme</a> for more details.
dragSourceSetIconName :: (WidgetClass widget, GlibString string) => widget -> string -> IO ()
-- | Undoes the effects of <a>dragSourceSet</a>.
dragSourceUnset :: WidgetClass widget => widget -> IO ()
-- | Changes the target types that this widget offers for drag-and-drop.
-- The widget must first be made into a drag source with
-- <a>dragSourceSet</a>.
--
-- <ul>
-- <li>Since Gtk 2.4.</li>
-- </ul>
dragSourceSetTargetList :: WidgetClass widget => widget -> TargetList -> IO ()
-- | Gets the list of targets this widget can provide for drag-and-drop.
--
-- <ul>
-- <li>Since Gtk 2.4.</li>
-- </ul>
dragSourceGetTargetList :: WidgetClass widget => widget -> IO (Maybe TargetList)
-- | Add the text targets supported by <a>Selection</a> to the target list
-- of the drag source. The targets are added with <tt>info = 0</tt>. If
-- you need another value, use <a>targetListAddTextTargets</a> and
-- <a>dragSourceSetTargetList</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
dragSourceAddTextTargets :: WidgetClass widget => widget -> IO ()
-- | Add the image targets supported by <tt>Selection</tt> to the target
-- list of the drag source. The targets are added with <tt>info = 0</tt>.
-- If you need another value, use <a>targetListAddTextTargets</a> and
-- <a>dragSourceSetTargetList</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
dragSourceAddImageTargets :: WidgetClass widget => widget -> IO ()
-- | Add the URI targets supported by <tt>Selection</tt> to the target list
-- of the drag source. The targets are added with <tt>info = 0</tt>. If
-- you need another value, use <a>targetListAddTextTargets</a> and
-- <a>dragSourceSetTargetList</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
dragSourceAddURITargets :: WidgetClass widget => widget -> IO ()
-- | The <a>dragBegin</a> signal is emitted on the drag source when a drag
-- is started. A typical reason to connect to this signal is to set up a
-- custom drag icon with <tt>dragSourceSetIcon</tt>.
dragBegin :: WidgetClass self => Signal self (DragContext -> IO ())
-- | The <a>dragDataDelete</a> signal is emitted on the drag source when a
-- drag with the action <a>ActionMove</a> is successfully completed. The
-- signal handler is responsible for deleting the data that has been
-- dropped. What "delete" means, depends on the context of the drag
-- operation.
dragDataDelete :: WidgetClass self => Signal self (DragContext -> IO ())
-- | The <a>dragDataGet</a> signal is emitted on the drag source when the
-- drop site requests the data which is dragged. It is the responsibility
-- of the signal handler to set the selection data in the format which is
-- indicated by <a>InfoId</a>. See <a>selectionDataSet</a> and
-- <a>selectionDataSetText</a>.
dragDataGet :: WidgetClass self => Signal self (DragContext -> InfoId -> TimeStamp -> SelectionDataM ())
-- | The <a>dragDataReceived</a> signal is emitted on the drop site when
-- the dragged data has been received. If the data was received in order
-- to determine whether the drop will be accepted, the handler is
-- expected to call <a>dragStatus</a> and <i>not</i> finish the drag. If
-- the data was received in response to a <a>dragDrop</a> signal (and
-- this is the last target to be received), the handler for this signal
-- is expected to process the received data and then call
-- <a>dragFinish</a>, setting the <tt>success</tt> parameter depending on
-- whether the data was processed successfully.
--
-- The handler may inspect and modify <tt>dragContextAction</tt> before
-- calling <a>dragFinish</a>, e.g. to implement <a>ActionAsk</a> as shown
-- in the following example:
dragDataReceived :: WidgetClass self => Signal self (DragContext -> Point -> InfoId -> TimeStamp -> SelectionDataM ())
-- | The <a>dragDrop</a> signal is emitted on the drop site when the user
-- drops the data onto the widget. The signal handler must determine
-- whether the cursor position is in a drop zone or not. If it is not in
-- a drop zone, it returns <tt>False</tt> and no further processing is
-- necessary. Otherwise, the handler returns <tt>True</tt>. In this case,
-- the handler must ensure that <a>dragFinish</a> is called to let the
-- source know that the drop is done. The call to <a>dragFinish</a> can
-- be done either directly or in a <a>dragDataReceived</a> handler which
-- gets triggered by calling <tt>dropGetData</tt> to receive the data for
-- one or more of the supported targets.
dragDrop :: WidgetClass self => Signal self (DragContext -> Point -> TimeStamp -> IO Bool)
-- | The <a>dragEnd</a> signal is emitted on the drag source when a drag is
-- finished. A typical reason to connect to this signal is to undo things
-- done in <a>dragBegin</a>.
dragEnd :: WidgetClass self => Signal self (DragContext -> IO ())
-- | The <a>dragFailed</a> signal is emitted on the drag source when a drag
-- has failed. The signal handler may hook custom code to handle a failed
-- DND operation based on the type of error, it returns <tt>True</tt> is
-- the failure has been already handled (not showing the default "drag
-- operation failed" animation), otherwise it returns <tt>False</tt>.
--
-- <ul>
-- <li>Available since Gtk+ 2.12.0.</li>
-- </ul>
dragFailed :: WidgetClass self => Signal self (DragContext -> DragResult -> IO Bool)
-- | The <a>dragLeave</a> signal is emitted on the drop site when the
-- cursor leaves the widget. A typical reason to connect to this signal
-- is to undo things done in <a>dragMotion</a>, e.g. undo highlighting
-- with <a>dragUnhighlight</a>
dragLeave :: WidgetClass self => Signal self (DragContext -> TimeStamp -> IO ())
-- | The <a>dragMotion</a> signal is emitted on the drop site when the user
-- moves the cursor over the widget during a drag. The signal handler
-- must determine whether the cursor position is in a drop zone or not.
-- If it is not in a drop zone, it returns <tt>False</tt> and no further
-- processing is necessary. Otherwise, the handler returns <tt>True</tt>.
-- In this case, the handler is responsible for providing the necessary
-- information for displaying feedback to the user, by calling
-- <a>dragStatus</a>. If the decision whether the drop will be accepted
-- or rejected can't be made based solely on the cursor position and the
-- type of the data, the handler may inspect the dragged data by calling
-- <a>dragGetData</a> and defer the <a>dragStatus</a> call to the
-- <a>dragDataReceived</a> handler.
--
-- Note that there is no <tt>dragEnter</tt> signal. The drag receiver has
-- to keep track of whether he has received any <a>dragMotion</a> signals
-- since the last <a>dragLeave</a> and if not, treat the
-- <a>dragMotion</a> signal as an "enter" signal. Upon an "enter", the
-- handler will typically highlight the drop site with
-- <a>dragHighlight</a>.
dragMotion :: WidgetClass self => Signal self (DragContext -> Point -> TimeStamp -> IO Bool)
-- | Manipulating stock icons
module Graphics.UI.Gtk.General.IconFactory
data IconFactory
class GObjectClass o => IconFactoryClass o
castToIconFactory :: GObjectClass obj => obj -> IconFactory
gTypeIconFactory :: GType
toIconFactory :: IconFactoryClass o => o -> IconFactory
-- | Create a new IconFactory.
--
-- <ul>
-- <li>An application should create a new <a>IconFactory</a> and add all
-- needed icons. By calling <a>iconFactoryAddDefault</a> these icons
-- become available as stock objects and can easily be displayed by
-- <a>Image</a>. Furthermore, a theme can override the icons defined by
-- the application.</li>
-- </ul>
iconFactoryNew :: IO IconFactory
-- | Add an IconSet to an IconFactory.
--
-- In order to use the new stock object, the factory as to be added to
-- the default factories by <a>iconFactoryAddDefault</a>.
iconFactoryAdd :: IconFactory -> StockId -> IconSet -> IO ()
-- | Add all entries of the IconFactory to the applications stock object
-- database.
iconFactoryAddDefault :: IconFactory -> IO ()
-- | Looks up the stock id in the icon factory, returning an icon set if
-- found, otherwise Nothing.
--
-- For display to the user, you should use <a>styleLookupIconSet</a> on
-- the <a>Style</a> for the widget that will display the icon, instead of
-- using this function directly, so that themes are taken into account.
iconFactoryLookup :: IconFactory -> StockId -> IO (Maybe IconSet)
-- | Looks for an icon in the list of default icon factories.
--
-- For display to the user, you should use <a>styleLookupIconSet</a> on
-- the <a>Style</a> for the widget that will display the icon, instead of
-- using this function directly, so that themes are taken into account.
iconFactoryLookupDefault :: StockId -> IO (Maybe IconSet)
-- | Remove an IconFactory from the application's stock database.
iconFactoryRemoveDefault :: IconFactory -> IO ()
data IconSet
-- | Create a new IconSet.
--
-- <ul>
-- <li>Each icon in an application is contained in an <a>IconSet</a>. The
-- <a>IconSet</a> contains several variants (<a>IconSource</a>s) to
-- accomodate for different sizes and states.</li>
-- </ul>
iconSetNew :: IO IconSet
-- | Creates a new <a>IconSet</a> with the given pixbuf as the
-- default/fallback source image. If you don't add any additional
-- <a>IconSource</a> to the icon set, all variants of the icon will be
-- created from the pixbuf, using scaling, pixelation, etc. as required
-- to adjust the icon size or make the icon look insensitive/prelighted.
iconSetNewFromPixbuf :: Pixbuf -> IO IconSet
-- | Add an <a>IconSource</a> (an Icon with attributes) to an
-- <a>IconSet</a>.
--
-- <ul>
-- <li>If an icon is looked up in the IconSet <tt>set</tt> the best
-- matching IconSource will be taken. It is therefore advisable to add a
-- default (wildcarded) icon, than can be used if no exact match is
-- found.</li>
-- </ul>
iconSetAddSource :: IconSet -> IconSource -> IO ()
iconSetRenderIcon :: WidgetClass widget => IconSet -> TextDirection -> StateType -> IconSize -> widget -> IO Pixbuf
-- | Obtains a list of icon sizes this icon set can render.
iconSetGetSizes :: IconSet -> IO [IconSize]
data IconSource
-- | Create a new IconSource.
--
-- <ul>
-- <li>An IconSource is a single image that is usually added to an
-- IconSet. Next to the image it contains information about which state,
-- text direction and size it should apply.</li>
-- </ul>
iconSourceNew :: IO IconSource
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection
-- | Retrieve the <a>TextDirection</a> of this IconSource.
--
-- <ul>
-- <li><tt>Nothing</tt> is returned if no explicit direction was
-- set.</li>
-- </ul>
iconSourceGetDirection :: IconSource -> IO (Maybe TextDirection)
-- | Mark this <a>IconSource</a> that it should only apply to the specified
-- <a>TextDirection</a>.
iconSourceSetDirection :: IconSource -> TextDirection -> IO ()
-- | Reset the specific <a>TextDirection</a> set with
-- <a>iconSourceSetDirection</a>.
iconSourceResetDirection :: IconSource -> IO ()
-- | Retrieve the filename this IconSource was based on.
--
-- <ul>
-- <li>Returns <tt>Nothing</tt> if the IconSource was generated by a
-- Pixbuf.</li>
-- </ul>
iconSourceGetFilename :: GlibString string => IconSource -> IO (Maybe string)
-- | Load an icon picture from this filename.
iconSourceSetFilename :: GlibFilePath fp => IconSource -> fp -> IO ()
-- | Retrieves the source pixbuf, or Nothing if none is set.
iconSourceGetPixbuf :: IconSource -> IO (Maybe Pixbuf)
-- | Sets a pixbuf to use as a base image when creating icon variants for
-- <a>IconSet</a>.
iconSourceSetPixbuf :: IconSource -> Pixbuf -> IO ()
-- | Retrieve the <a>IconSize</a> of this IconSource.
--
-- <ul>
-- <li><tt>Nothing</tt> is returned if no explicit size was set (i.e.
-- this <a>IconSource</a> matches all sizes).</li>
-- </ul>
iconSourceGetSize :: IconSource -> IO (Maybe IconSize)
-- | Set this <a>IconSource</a> to a specific size.
iconSourceSetSize :: IconSource -> IconSize -> IO ()
-- | Reset the <a>IconSize</a> of this <a>IconSource</a> so that is matches
-- anything.
iconSourceResetSize :: IconSource -> IO ()
-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType
-- | Retrieve the <a>StateType</a> of this <a>IconSource</a>.
--
-- <ul>
-- <li><tt>Nothing</tt> is returned if the <a>IconSource</a> matches all
-- states.</li>
-- </ul>
iconSourceGetState :: IconSource -> IO (Maybe StateType)
-- | Mark this icon to be used only with this specific state.
iconSourceSetState :: IconSource -> StateType -> IO ()
-- | Reset the <a>StateType</a> of this <a>IconSource</a> so that is
-- matches anything.
iconSourceResetState :: IconSource -> IO ()
-- | The size of an icon in pixels.
--
-- <ul>
-- <li>This enumeration contains one case that is not exported and which
-- is used when new sizes are registered using
-- <a>iconSizeRegister</a>.</li>
-- <li>Applying <a>show</a> to this type will reveal the name of the size
-- that is registered with Gtk+.</li>
-- </ul>
data IconSize
-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize
-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize
-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize
-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize
-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize
-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize
-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize
-- | Check if a given IconSize is registered.
--
-- <ul>
-- <li>Useful if your application expects a theme to install a set with a
-- specific size. You can test if this actually happend and use another
-- size if not.</li>
-- </ul>
iconSizeCheck :: IconSize -> IO Bool
-- | Register a new IconSize.
iconSizeRegister :: GlibString string => string -> Int -> Int -> IO IconSize
-- | Register an additional alias for a name.
iconSizeRegisterAlias :: GlibString string => IconSize -> string -> IO ()
-- | Lookup an IconSize by name.
--
-- <ul>
-- <li>This fixed value <tt>iconSizeInvalid</tt> is returned if the name
-- was not found.</li>
-- </ul>
iconSizeFromName :: GlibString string => string -> IO IconSize
-- | Lookup the name of an IconSize.
--
-- <ul>
-- <li>Returns <tt>Nothing</tt> if the name was not found.</li>
-- </ul>
iconSizeGetName :: GlibString string => IconSize -> IO (Maybe string)
instance GHC.Show.Show Graphics.UI.Gtk.General.Structs.IconSize
-- | Looking up icons by name
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.General.IconTheme
data IconTheme
class GObjectClass o => IconThemeClass o
castToIconTheme :: GObjectClass obj => obj -> IconTheme
toIconTheme :: IconThemeClass o => o -> IconTheme
data IconInfo
data IconLookupFlags
IconLookupNoSvg :: IconLookupFlags
IconLookupForceSvg :: IconLookupFlags
IconLookupUseBuiltin :: IconLookupFlags
IconLookupGenericFallback :: IconLookupFlags
IconLookupForceSize :: IconLookupFlags
IconLookupForceRegular :: IconLookupFlags
IconLookupForceSymbolic :: IconLookupFlags
IconLookupDirLtr :: IconLookupFlags
IconLookupDirRtl :: IconLookupFlags
data IconThemeError
IconThemeNotFound :: IconThemeError
IconThemeFailed :: IconThemeError
iconThemeNew :: IO IconTheme
iconInfoNewForPixbuf :: IconThemeClass iconTheme => iconTheme -> Pixbuf -> IO IconInfo
-- | Gets the icon theme for the default screen. See
-- <a>iconThemeGetForScreen</a>.
iconThemeGetDefault :: IO IconTheme
-- | Gets the icon theme object associated with <tt>screen</tt>; if this
-- function has not previously been called for the given screen, a new
-- icon theme object will be created and associated with the screen. Icon
-- theme objects are fairly expensive to create, so using this function
-- is usually a better choice than calling than <a>iconThemeNew</a> and
-- setting the screen yourself; by using this function a single icon
-- theme object will be shared between users.
iconThemeGetForScreen :: Screen -> IO IconTheme
-- | Sets the screen for an icon theme; the screen is used to track the
-- user's currently configured icon theme, which might be different for
-- different screens.
iconThemeSetScreen :: IconThemeClass self => self -> Screen -> IO ()
-- | Sets the search path for the icon theme object. When looking for an
-- icon theme, Gtk+ will search for a subdirectory of one or more of the
-- directories in <tt>path</tt> with the same name as the icon theme.
-- (Themes from multiple of the path elements are combined to allow
-- themes to be extended by adding icons in the user's home directory.)
--
-- In addition if an icon found isn't found either in the current icon
-- theme or the default icon theme, and an image file with the right name
-- is found directly in one of the elements of <tt>path</tt>, then that
-- image will be used for the icon name. (This is legacy feature, and new
-- icons should be put into the default icon theme, which is called
-- DEFAULT_THEME_NAME, rather than directly on the icon path.)
iconThemeSetSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> [fp] -> Int -> IO ()
-- | Gets the current search path. See <a>iconThemeSetSearchPath</a>.
iconThemeGetSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> IO ([fp], Int)
-- | Appends a directory to the search path. See
-- <a>iconThemeSetSearchPath</a>.
iconThemeAppendSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> fp -> IO ()
-- | Prepends a directory to the search path. See
-- <a>iconThemeSetSearchPath</a>.
iconThemePrependSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> fp -> IO ()
-- | Sets the name of the icon theme that the <a>IconTheme</a> object uses
-- overriding system configuration. This function cannot be called on the
-- icon theme objects returned from <a>iconThemeGetDefault</a> and
-- <a>iconThemeGetForScreen</a>.
iconThemeSetCustomTheme :: (IconThemeClass self, GlibString string) => self -> (Maybe string) -> IO ()
-- | Checks whether an icon theme includes an icon for a particular name.
iconThemeHasIcon :: (IconThemeClass self, GlibString string) => self -> string -> IO Bool
-- | Looks up a named icon and returns a structure containing information
-- such as the filename of the icon. The icon can then be rendered into a
-- pixbuf using <a>iconInfoLoadIcon</a>. (<a>iconThemeLoadIcon</a>
-- combines these two steps if all you need is the pixbuf.)
iconThemeLookupIcon :: (IconThemeClass self, GlibString string) => self -> string -> Int -> IconLookupFlags -> IO (Maybe IconInfo)
-- | Looks up a named icon and returns a structure containing information
-- such as the filename of the icon. The icon can then be rendered into a
-- pixbuf using <a>iconInfoLoadIcon</a>. (<a>iconThemeLoadIcon</a>
-- combines these two steps if all you need is the pixbuf.)
--
-- If <tt>iconNames</tt> contains more than one name, this function tries
-- them all in the given order before falling back to inherited icon
-- themes.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
iconThemeChooseIcon :: (IconThemeClass self, GlibString string) => self -> [string] -> Int -> IconLookupFlags -> IO (Maybe IconInfo)
-- | Looks up an icon and returns a structure containing information such
-- as the filename of the icon. The icon can then be rendered into a
-- pixbuf using <a>iconInfoLoadIcon</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
iconThemeLookupByGIcon :: (IconThemeClass self, IconClass icon) => self -> icon -> Int -> IconLookupFlags -> IO (Maybe IconInfo)
-- | Looks up an icon in an icon theme, scales it to the given size and
-- renders it into a pixbuf. This is a convenience function; if more
-- details about the icon are needed, use <a>iconThemeLookupIcon</a>
-- followed by <a>iconInfoLoadIcon</a>.
--
-- Note that you probably want to listen for icon theme changes and
-- update the icon. This is usually done by connecting to the
-- <a>Widget</a>::style-set signal. If for some reason you do not want to
-- update the icon when the icon theme changes, you should consider using
-- <tt>pixbufCopy</tt> to make a private copy of the pixbuf returned by
-- this function. Otherwise Gtk+ may need to keep the old icon theme
-- loaded, which would be a waste of memory.
iconThemeLoadIcon :: (IconThemeClass self, GlibString string) => self -> string -> Int -> IconLookupFlags -> IO (Maybe Pixbuf)
-- | Gets the list of contexts available within the current hierarchy of
-- icon themes
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
iconThemeListContexts :: (IconThemeClass self, GlibString string) => self -> IO [string]
-- | Lists the icons in the current icon theme. Only a subset of the icons
-- can be listed by providing a context string. The set of values for the
-- context string is system dependent, but will typically include such
-- values as "Applications" and "MimeTypes".
iconThemeListIcons :: (IconThemeClass self, GlibString string) => self -> (Maybe string) -> IO [string]
-- | Returns an list of integers describing the sizes at which the icon is
-- available without scaling. A size of -1 means that the icon is
-- available in a scalable format. The list is zero-terminated.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
iconThemeGetIconSizes :: (IconThemeClass self, GlibString string) => self -> string -> IO [Int]
-- | Gets the name of an icon that is representative of the current theme
-- (for instance, to use when presenting a list of themes to the user.)
iconThemeGetExampleIconName :: (IconThemeClass self, GlibString string) => self -> IO (Maybe string)
-- | Checks to see if the icon theme has changed; if it has, any currently
-- cached information is discarded and will be reloaded next time
-- <tt>iconTheme</tt> is accessed.
iconThemeRescanIfNeeded :: IconThemeClass self => self -> IO Bool
-- | Registers a built-in icon for icon theme lookups. The idea of built-in
-- icons is to allow an application or library that uses themed icons to
-- function requiring files to be present in the file system. For
-- instance, the default images for all of Gtk+'s stock icons are
-- registered as built-icons.
--
-- In general, if you use <a>iconThemeAddBuiltinIcon</a> you should also
-- install the icon in the icon theme, so that the icon is generally
-- available.
--
-- This function will generally be used with pixbufs loaded via
-- <tt>pixbufNewFromInline</tt>.
iconThemeAddBuiltinIcon :: GlibString string => string -> Int -> Pixbuf -> IO ()
iconThemeErrorQuark :: IO Quark
iconInfoCopy :: IconInfo -> IO IconInfo
-- | Fetches the set of attach points for an icon. An attach point is a
-- location in the icon that can be used as anchor points for attaching
-- emblems or overlays to the icon.
iconInfoGetAttachPoints :: IconInfo -> IO (Maybe [Point])
-- | Gets the base size for the icon. The base size is a size for the icon
-- that was specified by the icon theme creator. This may be different
-- than the actual size of image; an example of this is small emblem
-- icons that can be attached to a larger icon. These icons will be given
-- the same base size as the larger icons to which they are attached.
iconInfoGetBaseSize :: IconInfo -> IO Int
-- | Gets the built-in image for this icon, if any. To allow GTK+ to use
-- built in icon images, you must pass the
-- '<tt>IconLookupUseBuiltin'</tt> to <a>iconThemeLookupIcon</a>.
iconInfoGetBuiltinPixbuf :: IconInfo -> IO (Maybe Pixbuf)
-- | Gets the display name for an icon. A display name is a string to be
-- used in place of the icon name in a user visible context like a list
-- of icons.
iconInfoGetDisplayName :: GlibString string => IconInfo -> IO (Maybe string)
-- | Gets the coordinates of a rectangle within the icon that can be used
-- for display of information such as a preview of the contents of a text
-- file. See <a>iconInfoSetRawCoordinates</a> for further information
-- about the coordinate system.
iconInfoGetEmbeddedRect :: IconInfo -> IO (Maybe Rectangle)
-- | Gets the filename for the icon. If the '<tt>IconLookupUseBuiltin'</tt>
-- flag was passed to <a>iconThemeLookupIcon</a>, there may be no
-- filename if a builtin icon is returned; in this case, you should use
-- <a>iconInfoGetBuiltinPixbuf</a>.
iconInfoGetFilename :: GlibString string => IconInfo -> IO (Maybe string)
-- | Looks up an icon in an icon theme, scales it to the given size and
-- renders it into a pixbuf. This is a convenience function; if more
-- details about the icon are needed, use <a>iconThemeLookupIcon</a>
-- followed by <a>iconInfoLoadIcon</a>.
--
-- Note that you probably want to listen for icon theme changes and
-- update the icon. This is usually done by connecting to the
-- <tt>styleSet</tt> signal. If for some reason you do not want to update
-- the icon when the icon theme changes, you should consider using
-- <tt>pixbufCopy</tt> to make a private copy of the pixbuf returned by
-- this function. Otherwise GTK+ may need to keep the old icon theme
-- loaded, which would be a waste of memory.
iconInfoLoadIcon :: IconInfo -> IO Pixbuf
-- | Sets whether the coordinates returned by
-- <a>iconInfoGetEmbeddedRect</a> and <a>iconInfoGetAttachPoints</a>
-- should be returned in their original form as specified in the icon
-- theme, instead of scaled appropriately for the pixbuf returned by
-- <a>iconInfoLoadIcon</a>.
--
-- Raw coordinates are somewhat strange; they are specified to be with
-- respect to the unscaled pixmap for PNG and XPM icons, but for SVG
-- icons, they are in a 1000x1000 coordinate space that is scaled to the
-- final size of the icon. You can determine if the icon is an SVG icon
-- by using <a>iconInfoGetFilename</a>, and seeing if it is
-- non-<a>Nothing</a> and ends in '.svg'.
--
-- This function is provided primarily to allow compatibility wrappers
-- for older API's, and is not expected to be useful for applications.
iconInfoSetRawCoordinates :: IconInfo -> Bool -> IO ()
-- | Emitted when the current icon theme is switched or Gtk+ detects that a
-- change has occurred in the contents of the current icon theme.
iconThemeChanged :: IconThemeClass self => Signal self (IO ())
instance GHC.Show.Show Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Classes.Eq Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Enum.Enum Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Show.Show Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
-- | Functions for handling inter-process communication via selections.
module Graphics.UI.Gtk.General.Selection
-- | A number that the application can use to differentiate between
-- different data types or application states.
type InfoId = CUInt
-- | An atom is an index into a global string table. It is possible to
-- associate binary data with each entry. This facility is used for
-- inter-application data exchange such as properties of
-- <a>DrawWindow</a> (using <a>PropertyTag</a>), <a>Clipboard</a> or
-- <a>Drag</a> (<tt>SelectionId</tt> and <tt>TargetId</tt>).
data Atom
-- | A tag that uniquely identifies a target. A target describes the format
-- of the underlying data source, for instance, it might be a string. A
-- single selection may support multiple targets: suppose a new target is
-- created for the Haskell data type <a>Double</a>. In this case, the
-- value of the floating point number could also be offered as a string.
type TargetTag = Atom
-- | A tag that uniquely identifies a selection. A selection denotes the
-- exchange mechanism that is being used, for instance, the clipboard is
-- the most common exchange mechanism. For drag and drop applications, a
-- new selection tag is usually created for each different kind of data
-- that is being exchanged.
type SelectionTag = Atom
-- | A tag that defines the encoding of the binary data. For instance, a
-- string might be encoded as UTF-8 or in a different locale. Each
-- encoding would use the same <a>TargetTag</a> but a different
-- <a>SelectionTypeTag</a>.
type SelectionTypeTag = Atom
-- | A <a>TargetList</a> contains information about all possible formats
-- (represented as <a>TargetTag</a>) that a widget can create or receive
-- in form of a selection.
data TargetList
-- | A monad providing access to selection data.
type SelectionDataM a = ReaderT (Ptr ()) IO a
-- | The <a>TargetFlags</a> enumeration is used to specify constraints on
-- an entry in a <a>TargetList</a>. These flags are only used for drag
-- and drop.
--
-- <ul>
-- <li>If the <a>TargetSameApp</a> flag is set, the target will only be
-- selected for drags within a single application.</li>
-- <li>If the <a>TargetSameWidget</a> flag is set, the target will only
-- be selected for drags within a single widget.</li>
-- </ul>
data TargetFlags
TargetSameApp :: TargetFlags
TargetSameWidget :: TargetFlags
TargetOtherApp :: TargetFlags
TargetOtherWidget :: TargetFlags
-- | If this target is provided by a selection, then the data is a string.
targetString :: TargetTag
-- | The type indicating that the associated data is itself a (list of)
-- <a>Atom</a>s.
selectionTypeAtom :: SelectionTypeTag
-- | The type indicating that the associated data consists of integers.
selectionTypeInteger :: SelectionTypeTag
-- | The type indicating that the associated data is a string without
-- further information on its encoding.
selectionTypeString :: SelectionTypeTag
-- | Create a new <a>TargetTag</a>, <a>SelectionTag</a>,
-- <a>SelectionTypeTag</a> or <a>PropertyTag</a>. Note that creating two
-- target tags with the same name will create the same tag, in
-- particular, the tag will be the same across different applications.
-- Note that the name of an <a>Atom</a> can be printed by <a>show</a>
-- though comparing the atom is merely an integer comparison.
atomNew :: GlibString string => string -> IO Atom
-- | Create a new, empty <a>TargetList</a>.
targetListNew :: IO TargetList
-- | Append another target to the given <a>TargetList</a>.
--
-- <ul>
-- <li>Note that the <a>TargetFlags</a> are only used for drag and drop,
-- not in normal selection handling.</li>
-- </ul>
targetListAdd :: TargetList -> TargetTag -> [TargetFlags] -> InfoId -> IO ()
-- | Append all text targets supported by the selection mechanism to the
-- target list. All targets are added with the same <a>InfoId</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
targetListAddTextTargets :: TargetList -> InfoId -> IO ()
-- | Append all image targets supported by the selection mechanism to the
-- target list. All targets are added with the same <a>InfoId</a>. If the
-- boolean flag is set, only targets will be added which Gtk+ knows how
-- to convert into a <a>Pixbuf</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
targetListAddImageTargets :: TargetList -> InfoId -> Bool -> IO ()
-- | Append all URI (universal resource indicator, fomerly URL) targets
-- supported by the selection mechanism to the target list. All targets
-- are added with the same <a>InfoId</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
targetListAddUriTargets :: TargetList -> InfoId -> IO ()
-- | Append all rich text targets registered with
-- <a>textBufferRegisterSerializeFormat</a> to the target list. All
-- targets are added with the same <a>InfoId</a>. If the boolean flag is
-- <tt>True</tt> then deserializable rich text formats will be added,
-- serializable formats otherwise.
--
-- <ul>
-- <li>Since Gtk 2.10.</li>
-- </ul>
targetListAddRichTextTargets :: TextBufferClass tb => TargetList -> InfoId -> Bool -> tb -> IO ()
-- | Remove a target from a target list.
targetListRemove :: TargetList -> TargetTag -> IO ()
-- | Appends a specified target to the list of supported targets for a
-- given widget and selection.
selectionAddTarget :: WidgetClass widget => widget -> SelectionTag -> TargetTag -> InfoId -> IO ()
-- | Remove all targets registered for the given selection for the widget.
selectionClearTargets :: WidgetClass widget => widget -> SelectionTag -> IO ()
-- | Claims ownership of a given selection for a particular widget, or, if
-- widget is <a>Nothing</a>, release ownership of the selection.
selectionOwnerSet :: WidgetClass widget => Maybe widget -> SelectionTag -> TimeStamp -> IO Bool
-- | Set the ownership of a given selection and display.
selectionOwnerSetForDisplay :: WidgetClass widget => Display -> Maybe widget -> SelectionTag -> TimeStamp -> IO Bool
-- | Removes all handlers and unsets ownership of all selections for a
-- widget. Called when widget is being destroyed. This function will not
-- generally be called by applications.
selectionRemoveAll :: WidgetClass widget => widget -> IO ()
-- | Stores new data in the <a>SelectionDataM</a> monad. The stored data
-- may only be an array of integer types that are no larger than 32 bits.
selectionDataSet :: (Integral a, Storable a) => SelectionTypeTag -> [a] -> SelectionDataM ()
-- | Check if the currently stored data is valid.
--
-- <ul>
-- <li>If this function returns <tt>False</tt>, no data is set in this
-- selection and <tt>selectionDataGet</tt> will return <tt>Nothing</tt>
-- no matter what type is requested.</li>
-- </ul>
selectionDataIsValid :: SelectionDataM Bool
-- | Sets the contents of the selection from a string. The string is
-- converted to the form determined by the allowed targets of the
-- selection.
--
-- <ul>
-- <li>Returns <tt>True</tt> if setting the text was successful.</li>
-- </ul>
selectionDataSetText :: GlibString string => string -> SelectionDataM Bool
-- | Gets the contents of the selection data as a string.
selectionDataGetText :: GlibString string => SelectionDataM (Maybe string)
-- | Sets the contents of the selection from a <a>Pixbuf</a>. The pixbuf is
-- converted to the form determined by the allowed targets of the
-- selection.
--
-- <ul>
-- <li>Returns <tt>True</tt> if setting the <a>Pixbuf</a> was successful.
-- Since Gtk 2.6.</li>
-- </ul>
selectionDataSetPixbuf :: Pixbuf -> SelectionDataM Bool
-- | Gets the contents of the selection data as a <a>Pixbuf</a>.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
selectionDataGetPixbuf :: SelectionDataM (Maybe Pixbuf)
-- | Sets the contents of the selection from a list of URIs. The string is
-- converted to the form determined by the possible targets of the
-- selection.
--
-- <ul>
-- <li>Returns <tt>True</tt> if setting the URIs was successful. Since
-- Gtk 2.6.</li>
-- </ul>
selectionDataSetURIs :: GlibString string => [string] -> SelectionDataM Bool
-- | Gets the contents of the selection data as list of URIs. Returns
-- <tt>Nothing</tt> if the selection did not contain any URIs.
--
-- <ul>
-- <li>Since Gtk 2.6.</li>
-- </ul>
selectionDataGetURIs :: GlibString string => SelectionDataM (Maybe [string])
-- | Given a <a>SelectionDataM</a> holding a list of targets, determines if
-- any of the targets in targets can be used to provide a <a>Pixbuf</a>.
--
-- <ul>
-- <li>Since Gtk 2.6</li>
-- </ul>
selectionDataTargetsIncludeImage :: Bool -> SelectionDataM Bool
-- | Retrieve the currently set <a>TargetTag</a> in the selection.
selectionDataGetTarget :: SelectionDataM TargetTag
-- | Queries the content type of the selection data as a list of targets.
-- Whenever the application is asked whether certain targets are
-- acceptable, it is handed a selection that contains a list of
-- <a>TargetTag</a>s as payload. A similar result could be achieved using
-- 'selectionDataGet selectionTypeAtom'.
selectionDataGetTargets :: SelectionDataM [TargetTag]
-- | Given a <a>SelectionDataM</a> holding a list of targets, determines if
-- any of the targets in targets can be used to provide text.
selectionDataTargetsIncludeText :: SelectionDataM Bool
-- | Given a <a>SelectionDataM</a> holding a list of targets, determines if
-- any of the targets in targets can be used to provide URIs.
--
-- <ul>
-- <li>Since Gtk 2.10</li>
-- </ul>
selectionDataTargetsIncludeUri :: SelectionDataM Bool
-- | Given a <a>SelectionDataM</a> holding a list of targets, check if,
-- well, dunno really. FIXME: what does the <a>TextBuffer</a> do?
--
-- <ul>
-- <li>Since Gtk 2.10</li>
-- </ul>
selectionDataTargetsIncludeRichText :: TextBufferClass tb => tb -> SelectionDataM Bool
-- | Emitted in order to ask the application for selection data. Within the
-- handler the function <a>selectionDataSet</a> or one of its derivatives
-- should be called.
selectionGet :: WidgetClass self => Signal self (InfoId -> TimeStamp -> SelectionDataM ())
-- | Pass the supplied selection data to the application. The application
-- is expected to read the data using <tt>selectionDataGet</tt> or one of
-- its derivatives.
selectionReceived :: WidgetClass self => Signal self (TimeStamp -> SelectionDataM ())
-- | Storing data on clipboards
module Graphics.UI.Gtk.General.Clipboard
data Clipboard
class GObjectClass o => ClipboardClass o
castToClipboard :: GObjectClass obj => obj -> Clipboard
gTypeClipboard :: GType
toClipboard :: ClipboardClass o => o -> Clipboard
-- | The primary selection (the currently highlighted text in X11 that can
-- in many applications be pasted using the middle button).
selectionPrimary :: SelectionTag
-- | The secondary selection. Rarely used.
selectionSecondary :: SelectionTag
-- | The modern clipboard that is filled by copy or cut commands.
selectionClipboard :: SelectionTag
-- | Returns the clipboard object for the given selection. See
-- <a>clipboardGetForDisplay</a> for complete details.
clipboardGet :: SelectionTag -> IO Clipboard
-- | Returns the clipboard object for the given selection. Cut/copy/paste
-- menu items and keyboard shortcuts should use the default clipboard,
-- returned by passing <a>selectionClipboard</a> for <tt>selection</tt>.
-- The currently-selected object or text should be provided on the
-- clipboard identified by <a>selectionPrimary</a>. Cut/copy/paste menu
-- items conceptually copy the contents of the <a>selectionPrimary</a>
-- clipboard to the default clipboard, i.e. they copy the selection to
-- what the user sees as the clipboard.
--
-- See <http: discussion of the <a>selectionClipboard</a> vs.
-- <a>selectionPrimary</a> selections under the X window system. On Win32
-- the <a>selectionPrimary</a> clipboard is essentially ignored.
--
-- It's possible to have arbitrary named clipboards; if you do invent new
-- clipboards, you should prefix the selection name with an underscore
-- (because the ICCCM requires that nonstandard atoms are
-- underscore-prefixed), and namespace it as well. For example, if your
-- application called "Foo" has a special-purpose clipboard, you could
-- create it using <a>atomNew</a> "_FOO_SPECIAL_CLIPBOARD".
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
clipboardGetForDisplay :: Display -> SelectionTag -> IO Clipboard
-- | Gets the <a>Display</a> associated with <tt>clipboard</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
clipboardGetDisplay :: ClipboardClass self => self -> IO Display
-- | Virtually sets the contents of the specified clipboard by providing a
-- list of supported formats for the clipboard data and a function to
-- call to get the actual data when it is requested.
clipboardSetWithData :: ClipboardClass self => self -> [(TargetTag, InfoId)] -> (InfoId -> SelectionDataM ()) -> IO () -> IO Bool
-- | Sets the contents of the clipboard to the given UTF-8 string. Gtk+
-- will make a copy of the text and take responsibility for responding
-- for requests for the text, and for converting the text into the
-- requested format.
clipboardSetText :: (ClipboardClass self, GlibString string) => self -> string -> IO ()
-- | Sets the contents of the clipboard to the given <a>Pixbuf</a>. Gtk+
-- will take responsibility for responding for requests for the image,
-- and for converting the image into the requested format.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
clipboardSetImage :: ClipboardClass self => self -> Pixbuf -> IO ()
-- | Requests the contents of clipboard as the given target. When the
-- results of the result are later received the supplied callback will be
-- called.
clipboardRequestContents :: ClipboardClass self => self -> TargetTag -> SelectionDataM () -> IO ()
-- | Requests the contents of the clipboard as text. When the text is later
-- received, it will be converted if it is stored in a different
-- character set if necessary, and <tt>callback</tt> will be called.
--
-- The <tt>text</tt> parameter to <tt>callback</tt> will contain the
-- resulting text if the request succeeded, or <tt>Nothing</tt> if it
-- failed. This could happen for various reasons, in particular if the
-- clipboard was empty or if the contents of the clipboard could not be
-- converted into text form.
clipboardRequestText :: (ClipboardClass self, GlibString string) => self -> (Maybe string -> IO ()) -> IO ()
-- | Requests the contents of the clipboard as image. When the image is
-- later received, it will be converted to a <a>Pixbuf</a>, and
-- <tt>callback</tt> will be called.
--
-- The <tt>pixbuf</tt> parameter to <tt>callback</tt> will contain the
-- resulting <a>Pixbuf</a> if the request succeeded, or <tt>Nothing</tt>
-- if it failed. This could happen for various reasons, in particular if
-- the clipboard was empty or if the contents of the clipboard could not
-- be converted into an image.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
clipboardRequestImage :: ClipboardClass self => self -> (Maybe Pixbuf -> IO ()) -> IO ()
-- | Requests the contents of the clipboard as list of supported targets.
-- When the list is later received, <tt>callback</tt> will be called.
--
-- The <tt>targets</tt> parameter to <tt>callback</tt> will contain the
-- resulting targets if the request succeeded, or <tt>Nothing</tt> if it
-- failed.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
clipboardRequestTargets :: ClipboardClass self => self -> (Maybe [TargetTag] -> IO ()) -> IO ()
-- | Requests the contents of the clipboard as rich text. When the rich
-- text is later received, <tt>callback</tt> will be called.
--
-- The <tt>text</tt> parameter to <tt>callback</tt> will contain the
-- resulting rich text if the request succeeded, or <tt>Nothing</tt> if
-- it failed. This function can fail for various reasons, in particular
-- if the clipboard was empty or if the contents of the clipboard could
-- not be converted into rich text form.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
clipboardRequestRichText :: (ClipboardClass self, TextBufferClass buffer, GlibString string) => self -> buffer -> (Maybe (TargetTag, string) -> IO ()) -> IO ()
-- | Hints that the clipboard data should be stored somewhere when the
-- application exits or when <a>clipboardStore</a> is called.
--
-- This value is reset when the clipboard owner changes. Where the
-- clipboard data is stored is platform dependent, see
-- <tt>displayStoreClipboard</tt> for more information.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
clipboardSetCanStore :: ClipboardClass self => self -> Maybe [(TargetTag, InfoId)] -> IO ()
-- | Stores the current clipboard data somewhere so that it will stay
-- around after the application has quit.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
clipboardStore :: ClipboardClass self => self -> IO ()
-- | Customization of widgets.
module Graphics.UI.Gtk.General.Style
data Style
class GObjectClass o => StyleClass o
castToStyle :: GObjectClass obj => obj -> Style
gTypeStyle :: GType
toStyle :: StyleClass o => o -> Style
-- | Retrieve the the foreground color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetForeground :: Style -> StateType -> IO Color
-- | Retrieve the background color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetBackground :: Style -> StateType -> IO Color
-- | Retrieve a light color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetLight :: Style -> StateType -> IO Color
-- | Retrieve a middle color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetMiddle :: Style -> StateType -> IO Color
-- | Retrieve a dark color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetDark :: Style -> StateType -> IO Color
-- | Retrieve the text color.
--
-- <ul>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetText :: Style -> StateType -> IO Color
-- | Retrieve the base color.
--
-- <ul>
-- <li>The base color is the standard text background of a widget.</li>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetBase :: Style -> StateType -> IO Color
-- | Retrieve the color for drawing anti-aliased text.
--
-- <ul>
-- <li>The anti-aliasing color is the color which is used when the
-- rendering of a character does not make it clear if a certain pixel
-- shoud be set or not. This color is between the text and the base
-- color.</li>
-- <li>The parameter <tt>state</tt> determines for which widget state
-- (one of <a>StateType</a>) the <a>Color</a> should be retrieved. Use
-- <tt>widgetGetState</tt> to determine the current state of the
-- widget.</li>
-- </ul>
styleGetAntiAliasing :: Style -> StateType -> IO Color
-- | Add tips to your widgets
--
-- <ul>
-- <li>Module available since Gtk+ version 2.12</li>
-- </ul>
module Graphics.UI.Gtk.Misc.Tooltip
data Tooltip
class GObjectClass o => TooltipClass o
castToTooltip :: GObjectClass obj => obj -> Tooltip
toTooltip :: TooltipClass o => o -> Tooltip
-- | Sets the text of the tooltip to be <tt>markup</tt>, which is marked up
-- with the Pango text markup language. If <tt>markup</tt> is
-- <a>Nothing</a>, the label will be hidden.
tooltipSetMarkup :: (TooltipClass self, GlibString markup) => self -> Maybe markup -> IO ()
-- | Sets the text of the tooltip to be <tt>text</tt>. If <tt>text</tt> is
-- <a>Nothing</a> the label will be hidden. See also
-- <a>tooltipSetMarkup</a>.
tooltipSetText :: (TooltipClass self, GlibString string) => self -> Maybe string -> IO ()
-- | Sets the icon of the tooltip (which is in front of the text) to be
-- <tt>pixbuf</tt>. If <tt>pixbuf</tt> is <a>Nothing</a> the image will
-- be hidden.
tooltipSetIcon :: TooltipClass self => self -> Maybe Pixbuf -> IO ()
-- | Sets the icon of the tooltip (which is in front of the text) to be the
-- stock item indicated by <tt>stockId</tt> with the size indicated by
-- <tt>size</tt>. If <tt>stockId</tt> is <a>Nothing</a> the image will be
-- hidden.
tooltipSetIconFromStock :: (TooltipClass self, GlibString string) => self -> Maybe string -> IconSize -> IO ()
-- | Sets the icon of the tooltip (which is in front of the text) to be the
-- icon indicated by <tt>iconName</tt> with the size indicated by
-- <tt>size</tt>. If <tt>iconName</tt> is <a>Nothing</a> the image will
-- be hidden.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
tooltipSetIconFromIconName :: (TooltipClass self, GlibString string) => self -> Maybe string -> IconSize -> IO ()
-- | Replaces the widget packed into the tooltip with
-- <tt>customWidget</tt>. <tt>customWidget</tt> does not get destroyed
-- when the tooltip goes away. By default a box with a <a>Image</a> and
-- <a>Label</a> is embedded in the tooltip, which can be configured using
-- <a>tooltipSetMarkup</a> and <a>tooltipSetIcon</a>.
tooltipSetCustom :: (TooltipClass self, WidgetClass widget) => self -> Maybe widget -> IO ()
-- | Triggers a new tooltip query on <tt>display</tt>, in order to update
-- the current visible tooltip, or to show/hide the current tooltip. This
-- function is useful to call when, for example, the state of the widget
-- changed by a key press.
tooltipTriggerTooltipQuery :: Display -> IO ()
-- | Sets the area of the widget, where the contents of this tooltip apply,
-- to be <tt>rect</tt> (in widget coordinates). This is especially useful
-- for properly setting tooltips on <a>TreeView</a> rows and cells,
-- <a>IconView</a>
--
-- For setting tooltips on <a>TreeView</a>, please refer to the
-- convenience functions for this: <tt>treeViewSetTooltipRow</tt> and
-- <tt>treeViewSetTooltipCell</tt>.
tooltipSetTipArea :: TooltipClass self => self -> Rectangle -> IO ()
-- | Sets the icon of the tooltip (which is in front of the text) to be the
-- icon indicated by gicon with the size indicated by size. If gicon is
-- <a>Nothing</a>, the image will be hidden.
tooltipSetIconFromGIcon :: TooltipClass self => self -> Maybe Icon -> IconSize -> IO ()
-- | The interface for sortable models used by <a>TreeView</a>
module Graphics.UI.Gtk.ModelView.TreeSortable
data TreeSortable
class GObjectClass o => TreeSortableClass o
castToTreeSortable :: GObjectClass obj => obj -> TreeSortable
gTypeTreeSortable :: GType
toTreeSortable :: TreeSortableClass o => o -> TreeSortable
-- | ID number of a sort column.
--
-- <ul>
-- <li>A <a>SortColumnId</a> is a logical number to which a sorting
-- function can be associated. The number does not have to coincide with
-- any column number.</li>
-- </ul>
type SortColumnId = Int
-- | A special <a>SortColumnId</a> to indicated that the default sorting
-- function is used.
treeSortableDefaultSortColumnId :: SortColumnId
-- | Query the sort column id that is currently in use. The return value
-- may be the special constant <a>treeSortableDefaultSortColumnId</a> in
-- which case the returned Boolean flag is <tt>False</tt>.
treeSortableGetSortColumnId :: TreeSortableClass self => self -> IO (SortType, Bool, SortColumnId)
-- | Sets the current sort column to be <tt>sortColumnId</tt>. The
-- <tt>sortable</tt> will resort itself to reflect this change, after
-- emitting a <a>sortColumnChanged</a> signal. If <tt>sortColumnId</tt>
-- is <a>treeSortableDefaultSortColumnId</a>, then the default sort
-- function will be used, if it is set. Note that this function is mainly
-- used by the view and that the user program should simply set the
-- <a>SortColumnId</a> of the <a>TreeViewColumn</a>s.
treeSortableSetSortColumnId :: TreeSortableClass self => self -> SortColumnId -> SortType -> IO ()
-- | Sets the comparison function used when sorting to be
-- <tt>sortFunc</tt>. If the current sort column id of <tt>self</tt> is
-- the same as <tt>sortColumnId</tt>, then the model will sort using this
-- function.
treeSortableSetSortFunc :: TreeSortableClass self => self -> SortColumnId -> (TreeIter -> TreeIter -> IO Ordering) -> IO ()
-- | Sets the default comparison function used when sorting to be
-- <tt>sortFunc</tt>. If the current sort column id of <tt>self</tt> is
-- <a>treeSortableDefaultSortColumnId</a> then the model will sort using
-- this function.
--
-- | If <tt>sortFunc</tt> is <a>Nothing</a>, then there will be no
-- default comparison function. This means that once the model has been
-- sorted, it can't go back to the default state. In this case, when the
-- current sort column id of sortable is
-- <tt>TreeSortableDefaultSortColumnId</tt>, the model will be unsorted.
treeSortableSetDefaultSortFunc :: TreeSortableClass self => self -> Maybe (TreeIter -> TreeIter -> IO Ordering) -> IO ()
-- | Returns <tt>True</tt> if the model has a default sort function. This
-- is used primarily by <a>TreeViewColumn</a>s in order to determine if a
-- model has a default ordering or if the entries are retrieved in the
-- sequence in which they are stored in the model.
treeSortableHasDefaultSortFunc :: TreeSortableClass self => self -> IO Bool
-- | Emits a <a>sortColumnChanged</a> signal on the model.
treeSortableSortColumnChanged :: TreeSortableClass self => self -> IO ()
sortColumnChanged :: TreeSortableClass self => Signal self (IO ())
-- | A tag that can be applied to text in a <a>TextBuffer</a>
module Graphics.UI.Gtk.Multiline.TextTag
data TextTag
class GObjectClass o => TextTagClass o
castToTextTag :: GObjectClass obj => obj -> TextTag
gTypeTextTag :: GType
toTextTag :: TextTagClass o => o -> TextTag
type TagName = DefaultGlibString
-- | Creates a <a>TextTag</a>.
--
-- <ul>
-- <li>Supplying <tt>Nothing</tt> as tag name results in an anonymous
-- tag.</li>
-- </ul>
textTagNew :: Maybe TagName -> IO TextTag
-- | Sets the priority of a <a>TextTag</a>. Valid priorities are start at 0
-- and go to one less than <a>textTagTableGetSize</a>. Each tag in a
-- table has a unique priority; setting the priority of one tag shifts
-- the priorities of all the other tags in the table to maintain a unique
-- priority for each tag. Higher priority tags "win" if two tags both set
-- the same text attribute. When adding a tag to a tag table, it will be
-- assigned the highest priority in the table by default; so normally the
-- precedence of a set of tags is the order in which they were added to
-- the table, or created with <a>textBufferCreateTag</a>, which adds the
-- tag to the buffer's table automatically.
textTagSetPriority :: TextTagClass self => self -> Int -> IO ()
-- | Get the tag priority.
textTagGetPriority :: TextTagClass self => self -> IO Int
newtype TextAttributes
TextAttributes :: (ForeignPtr (TextAttributes)) -> TextAttributes
-- | Creates a <a>TextAttributes</a>, which describes a set of properties
-- on some text.
textAttributesNew :: IO TextAttributes
-- | Copies src and returns a new <a>TextAttributes</a>.
textAttributesCopy :: TextAttributes -> IO TextAttributes
-- | Copies the values from src to dest so that dest has the same values as
-- src.
textAttributesCopyValues :: TextAttributes -> TextAttributes -> IO ()
-- | This function is use internal for transform TextAttributes. Don't
-- expoert this function.
makeNewTextAttributes :: Ptr TextAttributes -> IO TextAttributes
-- | Name used to refer to the text tag. <tt>Nothing</tt> for anonymous
-- tags.
--
-- Default value: <tt>Nothing</tt>
textTagName :: (TextTagClass self, GlibString string) => Attr self (Maybe string)
-- | Background color as a string.
--
-- Default value: ""
textTagBackground :: (TextTagClass self, GlibString string) => WriteAttr self string
-- | Whether this tag affects the background color.
--
-- Default value: <tt>False</tt>
textTagBackgroundSet :: TextTagClass self => Attr self Bool
-- | Whether the background color fills the entire line height or only the
-- height of the tagged characters.
--
-- Default value: <tt>False</tt>
textTagBackgroundFullHeight :: TextTagClass self => Attr self Bool
-- | Whether this tag affects background height.
--
-- Default value: <tt>False</tt>
textTagBackgroundFullHeightSet :: TextTagClass self => Attr self Bool
-- | Background color as a (possibly unallocated) GdkColor.
textTagBackgroundGdk :: TextTagClass self => Attr self Color
-- | Foreground color as a string.
--
-- Default value: ""
textTagForeground :: (TextTagClass self, GlibString string) => WriteAttr self string
-- | Whether this tag affects the foreground color.
--
-- Default value: <tt>False</tt>
textTagForegroundSet :: TextTagClass self => Attr self Bool
-- | Foreground color as a (possibly unallocated) GdkColor.
textTagForegroundGdk :: TextTagClass self => Attr self Color
-- | Text direction, e.g. right-to-left or left-to-right.
--
-- Default value: <a>TextDirLtr</a>
textTagDirection :: TextTagClass self => Attr self TextDirection
-- | Whether the text can be modified by the user.
--
-- Default value: <tt>True</tt>
textTagEditable :: TextTagClass self => Attr self Bool
-- | Whether this tag affects text editability.
--
-- Default value: <tt>False</tt>
textTagEditableSet :: TextTagClass self => Attr self Bool
-- | Font description as a string, e.g. "Sans Italic 12".
--
-- Default value: ""
textTagFont :: (TextTagClass self, GlibString string) => Attr self string
-- | Font description as a <a>FontDescription</a> struct.
textTagFontDesc :: TextTagClass self => Attr self FontDescription
-- | Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
--
-- Default value: ""
textTagFamily :: (TextTagClass self, GlibString string) => Attr self string
-- | Whether this tag affects the font family.
--
-- Default value: <tt>False</tt>
textTagFamilySet :: TextTagClass self => Attr self Bool
-- | Font style as a <a>Style</a>, e.g. <a>StyleItalic</a>.
--
-- Default value: <a>StyleNormal</a>
textTagStyle :: TextTagClass self => Attr self FontStyle
-- | Whether this tag affects the font style.
--
-- Default value: <tt>False</tt>
textTagStyleSet :: TextTagClass self => Attr self Bool
-- | Custom tabs for this text. textTagTabs :: TextTagClass self => Attr
-- self TabArray
--
-- Whether this tag affects tabs.
--
-- Default value: <tt>False</tt>
textTagTabsSet :: TextTagClass self => Attr self Bool
-- | Font variant as a <a>Variant</a>, e.g. <a>VariantSmallCaps</a>.
--
-- Default value: <a>VariantNormal</a>
textTagVariant :: TextTagClass self => Attr self Variant
-- | Whether this tag affects the font variant.
--
-- Default value: <tt>False</tt>
textTagVariantSet :: TextTagClass self => Attr self Bool
-- | Font weight as an integer, see predefined values in <a>Weight</a>; for
-- example, <a>WeightBold</a>.
--
-- Allowed values: >= 0
--
-- Default value: 400
textTagWeight :: TextTagClass self => Attr self Int
-- | Whether this tag affects the font weight.
--
-- Default value: <tt>False</tt>
textTagWeightSet :: TextTagClass self => Attr self Bool
-- | Font stretch as a <a>Stretch</a>, e.g. <a>StretchCondensed</a>.
--
-- Default value: <a>StretchNormal</a>
textTagStretch :: TextTagClass self => Attr self Stretch
-- | Whether this tag affects the font stretch.
textTagStretchSet :: TextTagClass self => Attr self Bool
-- | Font size in Pango units.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagSize :: TextTagClass self => Attr self Int
-- | Whether this tag affects the font size.
--
-- Default value: <tt>False</tt>
textTagSizeSet :: TextTagClass self => Attr self Bool
-- | Font size as a scale factor relative to the default font size. This
-- properly adapts to theme changes etc. so is recommended.
--
-- Allowed values: >= 0
--
-- Default value: 1
textTagScale :: TextTagClass self => Attr self Double
-- | Whether this tag scales the font size by a factor.
--
-- Default value: <tt>False</tt>
textTagScaleSet :: TextTagClass self => Attr self Bool
-- | Font size in points.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagSizePoints :: TextTagClass self => Attr self Double
-- | Left, right, or center justification.
--
-- Default value: <a>JustifyLeft</a>
textTagJustification :: TextTagClass self => Attr self Justification
-- | Whether this tag affects paragraph justification.
--
-- Default value: <tt>False</tt>
textTagJustificationSet :: TextTagClass self => Attr self Bool
-- | The language this text is in, as an ISO code. Pango can use this as a
-- hint when rendering the text. If not set, an appropriate default will
-- be used.
--
-- Default value: ""
textTagLanguage :: (TextTagClass self, GlibString string) => Attr self string
-- | Whether this tag affects the language the text is rendered as.
--
-- Default value: <tt>False</tt>
textTagLanguageSet :: TextTagClass self => Attr self Bool
-- | Width of the left margin in pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagLeftMargin :: TextTagClass self => Attr self Int
-- | Whether this tag affects the left margin.
--
-- Default value: <tt>False</tt>
textTagLeftMarginSet :: TextTagClass self => Attr self Bool
-- | Width of the right margin in pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagRightMargin :: TextTagClass self => Attr self Int
-- | Whether this tag affects the right margin.
--
-- Default value: <tt>False</tt>
textTagRightMarginSet :: TextTagClass self => Attr self Bool
-- | Amount to indent the paragraph, in pixels.
--
-- Default value: 0
textTagIndent :: TextTagClass self => Attr self Int
-- | Whether this tag affects indentation.
--
-- Default value: <tt>False</tt>
textTagIndentSet :: TextTagClass self => Attr self Bool
-- | Offset of text above the baseline (below the baseline if rise is
-- negative) in pixels.
--
-- Default value: 0
textTagRise :: TextTagClass self => Attr self Int
-- | Whether this tag affects the rise.
textTagRiseSet :: TextTagClass self => Attr self Bool
-- | Pixels of blank space above paragraphs.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagPixelsAboveLines :: TextTagClass self => Attr self Int
-- | Whether this tag affects the number of pixels above lines.
--
-- Default value: <tt>False</tt>
textTagPixelsAboveLinesSet :: TextTagClass self => Attr self Bool
-- | Pixels of blank space below paragraphs.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagPixelsBelowLines :: TextTagClass self => Attr self Int
-- | Whether this tag affects the number of pixels below lines.
--
-- Default value: <tt>False</tt>
textTagPixelsBelowLinesSet :: TextTagClass self => Attr self Bool
-- | Pixels of blank space between wrapped lines in a paragraph.
--
-- Allowed values: >= 0
--
-- Default value: 0
textTagPixelsInsideWrap :: TextTagClass self => Attr self Int
-- | Whether this tag affects the number of pixels between wrapped lines.
--
-- Default value: <tt>False</tt>
textTagPixelsInsideWrapSet :: TextTagClass self => Attr self Bool
-- | Whether to strike through the text.
--
-- Default value: <tt>False</tt>
textTagStrikethrough :: TextTagClass self => Attr self Bool
-- | Whether this tag affects strikethrough.
--
-- Default value: <tt>False</tt>
textTagStrikethroughSet :: TextTagClass self => Attr self Bool
-- | Style of underline for this text.
--
-- Default value: <a>UnderlineNone</a>
textTagUnderline :: TextTagClass self => Attr self Underline
-- | Whether this tag affects underlining.
--
-- Default value: <tt>False</tt>
textTagUnderlineSet :: TextTagClass self => Attr self Bool
-- | Whether to wrap lines never, at word boundaries, or at character
-- boundaries.
--
-- Default value: <a>WrapNone</a>
textTagWrapMode :: TextTagClass self => Attr self WrapMode
-- | Whether this tag affects line wrap mode.
--
-- Default value: <tt>False</tt>
textTagWrapModeSet :: TextTagClass self => Attr self Bool
-- | Whether this text is hidden.
--
-- Note that there may still be problems with the support for invisible
-- text, in particular when navigating programmatically inside a buffer
-- containing invisible segments.
--
-- Default value: <tt>False</tt>
textTagInvisible :: TextTagClass self => Attr self Bool
-- | Whether this tag affects text visibility.
--
-- Default value: <tt>False</tt>
textTagInvisibleSet :: TextTagClass self => Attr self Bool
-- | The paragraph background color as a string.
--
-- Default value: ""
textTagParagraphBackground :: (TextTagClass self, GlibString string) => WriteAttr self string
-- | Whether this tag affects the paragraph background color.
--
-- Default value: <tt>False</tt>
textTagParagraphBackgroundSet :: TextTagClass self => Attr self Bool
-- | The paragraph background color as a as a (possibly unallocated)
-- <a>Color</a>.
textTagParagraphBackgroundGdk :: TextTagClass self => Attr self Color
-- | 'priority' property. See <a>textTagGetPriority</a> and
-- <a>textTagSetPriority</a>
textTagPriority :: TextTagClass self => Attr self Int
-- | An event has occurred that affects the given tag.
--
-- <ul>
-- <li>Adding an event handler to the tag makes it possible to react on
-- e.g. mouse clicks to implement hyperlinking.</li>
-- <li>The first argument is the object the event was fired from
-- (typically a <a>TextView</a>). The second argument is the iterator
-- indicating where the event happened.</li>
-- </ul>
textTagEvent :: TextTagClass self => Signal self (GObject -> TextIter -> EventM EAny Bool)
-- | Stores attributed text for display in a <a>TextView</a>
module Graphics.UI.Gtk.Multiline.TextBuffer
data TextBuffer
class GObjectClass o => TextBufferClass o
castToTextBuffer :: GObjectClass obj => obj -> TextBuffer
gTypeTextBuffer :: GType
toTextBuffer :: TextBufferClass o => o -> TextBuffer
-- | Creates a new text buffer.
textBufferNew :: Maybe TextTagTable -> IO TextBuffer
-- | Obtains the number of lines in the buffer. This value is cached, so
-- the function is very fast.
textBufferGetLineCount :: TextBufferClass self => self -> IO Int
-- | Gets the number of characters in the buffer. The character count is
-- cached, so this function is very fast.
textBufferGetCharCount :: TextBufferClass self => self -> IO Int
-- | Get the <a>TextTagTable</a> associated with this buffer.
textBufferGetTagTable :: TextBufferClass self => self -> IO TextTagTable
-- | Inserts <tt>text</tt> at position <tt>iter</tt>. Emits the
-- <tt>insertText</tt> signal; insertion actually occurs in the default
-- handler for the signal. <tt>iter</tt> is invalidated when insertion
-- occurs (because the buffer contents change).
textBufferInsert :: (TextBufferClass self, GlibString string) => self -> TextIter -> string -> IO ()
-- | Inserts <tt>text</tt> at position <tt>iter</tt>. Similar to
-- <a>textBufferInsert</a> but uses <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The passed-in buffer must contain a valid UTF-8 encoded
-- string.</li>
-- </ul>
textBufferInsertByteString :: TextBufferClass self => self -> TextIter -> ByteString -> IO ()
-- | Simply calls <a>textBufferInsert</a>, using the current cursor
-- position as the insertion point.
textBufferInsertAtCursor :: (TextBufferClass self, GlibString string) => self -> string -> IO ()
-- | Simply calls <a>textBufferInsert</a>, using the current cursor
-- position as the insertion point. Similar to
-- <a>textBufferInsertAtCursor</a> but uses <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The passed-in buffer must contain a valid UTF-8 encoded
-- string.</li>
-- </ul>
textBufferInsertByteStringAtCursor :: TextBufferClass self => self -> ByteString -> IO ()
-- | Like <a>textBufferInsert</a>, but the insertion will not occur if
-- <tt>iter</tt> is at a non-editable location in the buffer. Usually you
-- want to prevent insertions at ineditable locations if the insertion
-- results from a user action (is interactive).
--
-- If no tag is at the specified position, use the default value
-- <tt>def</tt> to decide if the text should be inserted. This value
-- could be set to the result of <a>textViewGetEditable</a>.
textBufferInsertInteractive :: (TextBufferClass self, GlibString string) => self -> TextIter -> string -> Bool -> IO Bool
-- | Similar to <a>textBufferInsertInteractive</a> but uses
-- <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The passed-in buffer must contain a valid UTF-8 encoded
-- string.</li>
-- </ul>
textBufferInsertByteStringInteractive :: TextBufferClass self => self -> TextIter -> ByteString -> Bool -> IO Bool
-- | Calls <a>textBufferInsertInteractive</a> at the cursor position.
textBufferInsertInteractiveAtCursor :: (TextBufferClass self, GlibString string) => self -> string -> Bool -> IO Bool
-- | Similar to <a>textBufferInsertInteractiveAtCursor</a> but uses
-- <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The passed-in buffer must contain a valid UTF-8 encoded
-- string.</li>
-- </ul>
textBufferInsertByteStringInteractiveAtCursor :: TextBufferClass self => self -> ByteString -> Bool -> IO Bool
-- | Copies text, tags, and pixbufs between <tt>start</tt> and <tt>end</tt>
-- (the order of <tt>start</tt> and <tt>end</tt> doesn't matter) and
-- inserts the copy at <tt>iter</tt>. Used instead of simply
-- getting/inserting text because it preserves images and tags. If
-- <tt>start</tt> and <tt>end</tt> are in a different buffer from
-- <tt>buffer</tt>, the two buffers must share the same tag table.
--
-- Implemented via emissions of the insert-text and <a>applyTag</a>
-- signals, so expect those.
textBufferInsertRange :: TextBufferClass self => self -> TextIter -> TextIter -> TextIter -> IO ()
-- | Same as <a>textBufferInsertRange</a>, but does nothing if the
-- insertion point isn't editable. The <tt>defaultEditable</tt> parameter
-- indicates whether the text is editable at <tt>iter</tt> if no tags
-- enclosing <tt>iter</tt> affect editability. Typically the result of
-- <a>textViewGetEditable</a> is appropriate here.
textBufferInsertRangeInteractive :: TextBufferClass self => self -> TextIter -> TextIter -> TextIter -> Bool -> IO Bool
-- | Deletes text between <tt>start</tt> and <tt>end</tt>. The order of
-- <tt>start</tt> and <tt>end</tt> is not actually relevant;
-- <a>textBufferDelete</a> will reorder them. This function actually
-- emits the <a>deleteRange</a> signal, and the default handler of that
-- signal deletes the text. Because the buffer is modified, all
-- outstanding iterators become invalid after calling this function;
-- however, the <tt>start</tt> and <tt>end</tt> will be re-initialized to
-- point to the location where text was deleted.
textBufferDelete :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()
-- | Deletes all <i>editable</i> text in the given range. Calls
-- <a>textBufferDelete</a> for each editable sub-range of
-- [<tt>start</tt>,<tt>end</tt>). <tt>start</tt> and <tt>end</tt> are
-- revalidated to point to the location of the last deleted range, or
-- left untouched if no text was deleted.
textBufferDeleteInteractive :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO Bool
-- | Deletes current contents of <tt>buffer</tt>, and inserts <tt>text</tt>
-- instead. Similar to <a>textBufferSetText</a> but uses
-- <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The passed-in buffer must contain a valid UTF-8 encoded
-- string.</li>
-- </ul>
textBufferSetByteString :: TextBufferClass self => self -> ByteString -> IO ()
-- | Returns the text in the range [<tt>start</tt>,<tt>end</tt>). Similar
-- to <a>textBufferGetText</a> but uses <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The returned buffer is a UTF-8 encoded string.</li>
-- </ul>
textBufferGetByteString :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO ByteString
-- | Returns the text in the range [<tt>start</tt>,<tt>end</tt>). Similar
-- to <a>textBufferGetSlice</a> but uses <a>ByteString</a> buffers.
--
-- <ul>
-- <li>The returned buffer is a UTF-8 encoded string.</li>
-- </ul>
textBufferGetByteStringSlice :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO ByteString
-- | Deletes current contents of <tt>buffer</tt>, and inserts <tt>text</tt>
-- instead.
textBufferSetText :: (TextBufferClass self, GlibString string) => self -> string -> IO ()
-- | Returns the text in the range [<tt>start</tt>,<tt>end</tt>). Excludes
-- undisplayed text (text marked with tags that set the invisibility
-- attribute) if <tt>includeHiddenChars</tt> is <tt>False</tt>. Does not
-- include characters representing embedded images, so character indexes
-- into the returned string do <i>not</i> correspond to character indexes
-- into the buffer. Contrast with <a>textBufferGetSlice</a>.
textBufferGetText :: (TextBufferClass self, GlibString string) => self -> TextIter -> TextIter -> Bool -> IO string
-- | Returns the text in the range [<tt>start</tt>,<tt>end</tt>). Excludes
-- undisplayed text (text marked with tags that set the invisibility
-- attribute) if <tt>includeHiddenChars</tt> is <tt>False</tt>. The
-- returned string includes a <tt>(chr 0xFFFC)</tt> character whenever
-- the buffer contains embedded images, so character indexes into the
-- returned string <i>do</i> correspond to character indexes into the
-- buffer. Contrast with <a>textBufferGetText</a>. Note that <tt>(chr
-- 0xFFFC)</tt> can occur in normal text as well, so it is not a reliable
-- indicator that a pixbuf or widget is in the buffer.
textBufferGetSlice :: (TextBufferClass self, GlibString string) => self -> TextIter -> TextIter -> Bool -> IO string
-- | Inserts an image into the text buffer at <tt>iter</tt>. The image will
-- be counted as one character in character counts, and when obtaining
-- the buffer contents as a string, will be represented by the Unicode
-- "object replacement character" <tt>(chr 0xFFFC)</tt>. Note that the
-- "slice" variants for obtaining portions of the buffer as a string
-- include this character for pixbufs, but the "text" variants do not.
-- e.g. see <a>textBufferGetSlice</a> and <a>textBufferGetText</a>.
textBufferInsertPixbuf :: TextBufferClass self => self -> TextIter -> Pixbuf -> IO ()
-- | Creates a mark at position <tt>where</tt>. If <tt>markName</tt> is
-- <tt>Nothing</tt>, the mark is anonymous; otherwise, the mark can be
-- retrieved by name using <a>textBufferGetMark</a>. If a mark has left
-- gravity, and text is inserted at the mark's current location, the mark
-- will be moved to the left of the newly-inserted text. If the mark has
-- right gravity (<tt>leftGravity</tt> = <tt>False</tt>), the mark will
-- end up on the right of newly-inserted text. The standard left-to-right
-- cursor is a mark with right gravity (when you type, the cursor stays
-- on the right side of the text you're typing).
--
-- Emits the <a>markSet</a> signal as notification of the mark's initial
-- placement.
textBufferCreateMark :: TextBufferClass self => self -> Maybe MarkName -> TextIter -> Bool -> IO TextMark
-- | Adds the mark at position given by the <a>TextIter</a>. The mark may
-- not be added to any other buffer.
--
-- Emits the <a>markSet</a> signal as notification of the mark's initial
-- placement.
textBufferAddMark :: TextBufferClass self => self -> TextMark -> TextIter -> IO ()
-- | Moves <tt>mark</tt> to the new location <tt>where</tt>. Emits the
-- <a>markSet</a> signal as notification of the move.
textBufferMoveMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> TextIter -> IO ()
-- | Moves the mark named <tt>name</tt> (which must exist) to location
-- <tt>where</tt>. See <a>textBufferMoveMark</a> for details.
textBufferMoveMarkByName :: TextBufferClass self => self -> MarkName -> TextIter -> IO ()
-- | Deletes <tt>mark</tt>, so that it's no longer located anywhere in the
-- buffer. Most operations on <tt>mark</tt> become invalid. There is no
-- way to undelete a mark. <a>textMarkGetDeleted</a> will return
-- <tt>True</tt> after this function has been called on a mark;
-- <a>textMarkGetDeleted</a> indicates that a mark no longer belongs to a
-- buffer. The <a>markDeleted</a> signal will be emitted as notification
-- after the mark is deleted.
textBufferDeleteMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> IO ()
-- | Deletes the mark named <tt>name</tt>; the mark must exist. See
-- <a>textBufferDeleteMark</a> for details.
textBufferDeleteMarkByName :: TextBufferClass self => self -> MarkName -> IO ()
-- | Returns the mark named <tt>name</tt> in the buffer, or
-- <tt>Nothing</tt> if no such mark exists in the buffer.
textBufferGetMark :: TextBufferClass self => self -> MarkName -> IO (Maybe TextMark)
-- | Returns the mark that represents the cursor (insertion point).
-- Equivalent to calling <tt>liftM fromJust $ textBufferGetMark
-- "insert"</tt>, but very slightly more efficient, and involves less
-- typing.
textBufferGetInsert :: TextBufferClass self => self -> IO TextMark
-- | Returns the mark that represents the selection bound. Equivalent to
-- calling <tt>liftM fromJust $ textBufferGetMark "selection_bound"</tt>,
-- but very slightly more efficient, and involves less typing.
--
-- The currently-selected text in <tt>buffer</tt> is the region between
-- the "selection_bound" and "insert" marks. If "selection_bound" and
-- "insert" are in the same place, then there is no current selection.
-- <a>textBufferGetSelectionBounds</a> is another convenient function for
-- handling the selection, if you just want to know whether there's a
-- selection and what its bounds are.
textBufferGetSelectionBound :: TextBufferClass self => self -> IO TextMark
-- | This function moves the "insert" and "selection_bound" marks
-- simultaneously. If you move them to the same place in two steps with
-- <a>textBufferMoveMark</a>, you will temporarily select a region in
-- between their old and new locations, which can be pretty inefficient
-- since the temporarily-selected region will force stuff to be
-- recalculated. This function moves them as a unit, which can be
-- optimized.
textBufferPlaceCursor :: TextBufferClass self => self -> TextIter -> IO ()
-- | Emits the <a>applyTag</a> signal on the buffer. The default handler
-- for the signal applies <tt>tag</tt> to the given range. <tt>start</tt>
-- and <tt>end</tt> do not have to be in order.
textBufferApplyTag :: (TextBufferClass self, TextTagClass tag) => self -> tag -> TextIter -> TextIter -> IO ()
-- | Emits the <a>removeTag</a> signal. The default handler for the signal
-- removes all occurrences of <tt>tag</tt> from the given range.
-- <tt>start</tt> and <tt>end</tt> don't have to be in order.
textBufferRemoveTag :: (TextBufferClass self, TextTagClass tag) => self -> tag -> TextIter -> TextIter -> IO ()
-- | Calls <a>textTagTableLookup</a> on the buffer's tag table to get a
-- <a>TextTag</a>, then calls <a>textBufferApplyTag</a>.
textBufferApplyTagByName :: TextBufferClass self => self -> TagName -> TextIter -> TextIter -> IO ()
-- | Calls <a>textTagTableLookup</a> on the buffer's tag table to get a
-- <a>TextTag</a>, then calls <a>textBufferRemoveTag</a>.
textBufferRemoveTagByName :: TextBufferClass self => self -> TagName -> TextIter -> TextIter -> IO ()
-- | Removes all tags in the range between <tt>start</tt> and <tt>end</tt>.
-- Be careful with this function; it could remove tags added in code
-- unrelated to the code you're currently writing. That is, using this
-- function is probably a bad idea if you have two or more unrelated code
-- sections that add tags.
textBufferRemoveAllTags :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()
-- | Obtains an iterator pointing to <tt>charOffset</tt> within the given
-- line. The <tt>charOffset</tt> must exist, offsets off the end of the
-- line are not allowed.
textBufferGetIterAtLineOffset :: TextBufferClass self => self -> Int -> Int -> IO TextIter
-- | Creates an iterator pointing to a position <tt>charOffset</tt> chars
-- from the start of the entire buffer. If <tt>charOffset</tt> is -1 or
-- greater than the number of characters in the buffer, the end iterator
-- is returned, that is the iterator one past the last valid character in
-- the buffer.
textBufferGetIterAtOffset :: TextBufferClass self => self -> Int -> IO TextIter
-- | Create an iterator at a specific line.
textBufferGetIterAtLine :: TextBufferClass self => self -> Int -> IO TextIter
-- | Create an iterator from a mark.
textBufferGetIterAtMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> IO TextIter
-- | Create an iterator at the first position in the text buffer. This is
-- the same as using <a>textBufferGetIterAtOffset</a> to get the iter at
-- character offset 0.
textBufferGetStartIter :: TextBufferClass self => self -> IO TextIter
-- | Returns the "end iterator," one past the last valid character in the
-- text buffer. If dereferenced with <a>textIterGetChar</a>, the end
-- iterator has a character value of 0. The entire buffer lies in the
-- range from the first position in the buffer (call
-- <a>textBufferGetStartIter</a> to get character position 0) to the end
-- iterator.
textBufferGetEndIter :: TextBufferClass self => self -> IO TextIter
-- | Indicates whether the buffer has been modified since the last call to
-- <a>textBufferSetModified</a> set the modification flag to
-- <tt>False</tt>. Used for example to enable a "save" function in a text
-- editor.
--
-- It is often more convenient to use <tt>onModifiedChanged</tt>.
textBufferGetModified :: TextBufferClass self => self -> IO Bool
-- | Used to keep track of whether the buffer has been modified since the
-- last time it was saved. Whenever the buffer is saved to disk, call
-- <tt><a>textBufferSetModified</a> buffer False</tt>. When the buffer is
-- modified, it will automatically toggled on the modified bit again.
-- When the modified bit flips, the buffer emits a <a>modifiedChanged</a>
-- signal.
textBufferSetModified :: TextBufferClass self => self -> Bool -> IO ()
-- | Deletes the range between the "insert" and "selection_bound" marks,
-- that is, the currently-selected text. If <tt>interactive</tt> is
-- <tt>True</tt>, the editability of the selection will be considered
-- (users can't delete uneditable text).
textBufferDeleteSelection :: TextBufferClass self => self -> Bool -> Bool -> IO Bool
-- | Check if a selection exists.
textBufferHasSelection :: TextBufferClass self => self -> IO Bool
-- | Returns the bounds of the selection (if the selection has length 0,
-- then <tt>start</tt> and <tt>end</tt> will be the same). <tt>start</tt>
-- and <tt>end</tt> will be in ascending order.
textBufferGetSelectionBounds :: TextBufferClass self => self -> IO (TextIter, TextIter)
-- | This function moves the "insert" and "selection_bound" marks
-- simultaneously. If you move them in two steps with
-- <a>textBufferMoveMark</a>, you will temporarily select a region in
-- between their old and new locations, which can be pretty inefficient
-- since the temporarily-selected region will force stuff to be
-- recalculated. This function moves them as a unit, which can be
-- optimized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
textBufferSelectRange :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()
-- | Retrieves the first and last iterators in the buffer, i.e. the entire
-- buffer lies within the range <tt>[start,end)</tt>.
textBufferGetBounds :: TextBufferClass self => self -> IO (TextIter, TextIter)
-- | Called to indicate that the buffer operations between here and a call
-- to <a>textBufferEndUserAction</a> are part of a single user-visible
-- operation. The operations between <a>textBufferBeginUserAction</a> and
-- <a>textBufferEndUserAction</a> can then be grouped when creating an
-- undo stack. <a>TextBuffer</a> maintains a count of calls to
-- <a>textBufferBeginUserAction</a> that have not been closed with a call
-- to <a>textBufferEndUserAction</a>, and emits the
-- <a>beginUserAction</a> and <a>endUserAction</a> signals only for the
-- outermost pair of calls. This allows you to build user actions from
-- other user actions.
--
-- The "interactive" buffer mutation functions, such as
-- <a>textBufferInsertInteractive</a>, automatically call begin/end user
-- action around the buffer operations they perform, so there's no need
-- to add extra calls if you user action consists solely of a single call
-- to one of those functions.
textBufferBeginUserAction :: TextBufferClass self => self -> IO ()
-- | Should be paired with a call to <a>textBufferBeginUserAction</a>. See
-- that function for a full explanation.
textBufferEndUserAction :: TextBufferClass self => self -> IO ()
-- | Performs the appropriate action as if the user hit the delete key with
-- the cursor at the position specified by <tt>iter</tt>. In the normal
-- case a single character will be deleted, but when combining accents
-- are involved, more than one character can be deleted, and when
-- precomposed character and accent combinations are involved, less than
-- one character will be deleted.
--
-- Because the buffer is modified, all outstanding iterators become
-- invalid after calling this function; however, the <tt>iter</tt> will
-- be re-initialized to point to the location where text was deleted.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
textBufferBackspace :: TextBufferClass self => self -> TextIter -> Bool -> Bool -> IO Bool
-- | Inserts a child widget anchor into the text buffer at <tt>iter</tt>.
-- The anchor will be counted as one character in character counts, and
-- when obtaining the buffer contents as a string, will be represented by
-- the Unicode "object replacement character" <tt>(chr 0xFFFC)</tt>. Note
-- that the "slice" variants for obtaining portions of the buffer as a
-- string include this character for child anchors, but the "text"
-- variants do not. e.g. see <a>textBufferGetSlice</a> and
-- <a>textBufferGetText</a>. Consider <a>textBufferCreateChildAnchor</a>
-- as a more convenient alternative to this function.
textBufferInsertChildAnchor :: TextBufferClass self => self -> TextIter -> TextChildAnchor -> IO ()
-- | This is a convenience function which simply creates a child anchor
-- with <a>textBufferChildAnchorNew</a> and inserts it into the buffer
-- with <a>textBufferInsertChildAnchor</a>.
textBufferCreateChildAnchor :: TextBufferClass self => self -> TextIter -> IO TextChildAnchor
-- | Obtains the location of <tt>anchor</tt> within <tt>buffer</tt>.
textBufferGetIterAtChildAnchor :: TextBufferClass self => self -> TextIter -> TextChildAnchor -> IO ()
-- | Pastes the contents of a clipboard at the given <tt>location</tt>.
-- (Note: pasting is asynchronous, that is, we'll ask for the paste data
-- and return, and at some point later after the main loop runs, the
-- paste data will be inserted.)
textBufferPasteClipboard :: TextBufferClass self => self -> Clipboard -> TextIter -> Bool -> IO ()
-- | Pastes the contents of a clipboard at the insertion point. (Note:
-- pasting is asynchronous, that is, we'll ask for the paste data and
-- return, and at some point later after the main loop runs, the paste
-- data will be inserted.)
textBufferPasteClipboardAtCursor :: TextBufferClass self => self -> Clipboard -> Bool -> IO ()
-- | Copies the currently-selected text to a clipboard.
textBufferCopyClipboard :: TextBufferClass self => self -> Clipboard -> IO ()
-- | Copies the currently-selected text to a clipboard, then deletes said
-- text if it's editable.
textBufferCutClipboard :: TextBufferClass self => self -> Clipboard -> Bool -> IO ()
-- | Adds clipboard to the list of clipboards in which the selection
-- contents of <tt>self</tt> are available. In most cases,
-- <tt>clipboard</tt> will be the <a>Clipboard</a> of type
-- <tt>selectionPrimary</tt> for a view of <tt>self</tt>.
textBufferAddSelectionClipboard :: TextBufferClass self => self -> Clipboard -> IO ()
-- | Removes a <a>Clipboard</a> added with
-- <a>textBufferAddSelectionClipboard</a>.
textBufferRemoveSelectionClipboard :: TextBufferClass self => self -> Clipboard -> IO ()
-- | Text Tag Table.
textBufferTagTable :: (TextBufferClass self, TextTagTableClass textTagTable) => ReadWriteAttr self TextTagTable textTagTable
-- | The text content of the buffer. Without child widgets and images, see
-- <a>textBufferGetText</a> for more information.
--
-- Default value: ""
textBufferText :: (TextBufferClass self, GlibString string) => Attr self string
-- | The 'modified' property. See <a>textBufferGetModified</a> and
-- <a>textBufferSetModified</a>
textBufferModified :: TextBufferClass self => Attr self Bool
-- | A <a>TextTag</a> was applied to a region of text.
applyTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())
-- | A new atomic user action is started.
--
-- <ul>
-- <li>Together with <a>endUserAction</a> these signals can be used to
-- build an undo stack.</li>
-- </ul>
beginUserAction :: TextBufferClass self => Signal self (IO ())
-- | Emitted when the contents of the buffer change.
bufferChanged :: TextBufferClass self => Signal self (IO ())
-- | A range of text is about to be deleted.
deleteRange :: TextBufferClass self => Signal self (TextIter -> TextIter -> IO ())
-- | An atomic action has ended.
--
-- <ul>
-- <li>see <a>beginUserAction</a></li>
-- </ul>
endUserAction :: TextBufferClass self => Signal self (IO ())
-- | A <a>Pixbuf</a> is inserted into the buffer.
--
-- <ul>
-- <li>See note in <a>bufferInsertText</a>.</li>
-- </ul>
insertPixbuf :: TextBufferClass self => Signal self (TextIter -> Pixbuf -> IO ())
-- | The <a>insertChildAnchor</a> signal is emitted to insert a
-- <a>TextChildAnchor</a> in a <a>TextBuffer</a>. Insertion actually
-- occurs in the default handler.
--
-- <ul>
-- <li>See note in <a>bufferInsertText</a>.</li>
-- </ul>
insertChildAnchor :: TextBufferClass self => Signal self (TextIter -> TextChildAnchor -> IO ())
-- | Some text is inserted. Insertion actually occurs in the default
-- handler.
--
-- <ul>
-- <li>The function connected to this handler may not modify the buffer
-- since this would invalidate the iterator. If this function replaces
-- the default handler, it needs to stop the emission of this signal in
-- order to prevent the default handler from running. If additional text
-- should be inserted, this can be done using the <a>after</a> function
-- to connect.</li>
-- </ul>
bufferInsertText :: (TextBufferClass self, GlibString string) => Signal self (TextIter -> string -> IO ())
-- | A <a>TextMark</a> within the buffer was deleted.
markDeleted :: TextBufferClass self => Signal self (TextMark -> IO ())
-- | A <a>TextMark</a> was inserted into the buffer.
markSet :: TextBufferClass self => Signal self (TextIter -> TextMark -> IO ())
modifiedChanged :: TextBufferClass self => Signal self (IO ())
-- | The <a>pasteDone</a> signal is emitted after paste operation has been
-- completed. This is useful to properly scroll the view to the end of
-- the pasted text. See <a>textBufferPasteClipboard</a> for more details.
pasteDone :: TextBufferClass self => Signal self (Clipboard -> IO ())
-- | The textbuffer has changed.
removeTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())
-- | An iterator is an abstract datatype representing a pointer into a
-- <a>TextBuffer</a>.
module Graphics.UI.Gtk.Multiline.TextIter
data TextIter
-- | Specify the way the search function for <a>TextBuffer</a> works.
data TextSearchFlags
TextSearchVisibleOnly :: TextSearchFlags
TextSearchTextOnly :: TextSearchFlags
TextSearchCaseInsensitive :: TextSearchFlags
-- | Copy the iterator.
textIterCopy :: TextIter -> IO TextIter
-- | Return the <a>TextBuffer</a> this iterator is associated with.
textIterGetBuffer :: TextIter -> IO TextBuffer
-- | Returns the character offset of an iterator. Each character in a
-- <a>TextBuffer</a> has an offset, starting with 0 for the first
-- character in the buffer. Use <a>textBufferGetIterAtOffset</a> to
-- convert an offset back into an iterator.
textIterGetOffset :: TextIter -> IO Int
-- | Returns the line number containing the iterator. Lines in a
-- <a>TextBuffer</a> are numbered beginning with 0 for the first line in
-- the buffer.
textIterGetLine :: TextIter -> IO Int
-- | Returns the character offset of the iterator, counting from the start
-- of a newline-terminated line. The first character on the line has
-- offset 0.
textIterGetLineOffset :: TextIter -> IO Int
-- | Returns the offset in characters from the start of the line to the
-- given <tt>iter</tt>, not counting characters that are invisible due to
-- tags with the "invisible" flag toggled on.
textIterGetVisibleLineOffset :: TextIter -> IO Int
-- | Returns the Unicode character at this iterator. If the element at this
-- iterator is a non-character element, such as an image embedded in the
-- buffer, the Unicode "unknown" character 0xFFFC is returned. If invoked
-- on the end iterator, <tt>Nothigng</tt> is returned.
textIterGetChar :: TextIter -> IO (Maybe Char)
-- | Returns the text in the given range. A "slice" is a list of
-- characters, including the Unicode "unknown" character 0xFFFC for
-- iterable non-character elements in the buffer, such as images. Because
-- images are encoded in the slice, offsets in the returned array will
-- correspond to offsets in the text buffer. Note that 0xFFFC can occur
-- in normal text as well, so it is not a reliable indicator that a
-- pixbuf or widget is in the buffer.
textIterGetSlice :: GlibString string => TextIter -> TextIter -> IO string
-- | Return the text in a given range.
--
-- <ul>
-- <li>Pictures (and other objects) are stripped form the output. Thus,
-- this function does not preserve offsets.</li>
-- </ul>
textIterGetText :: GlibString string => TextIter -> TextIter -> IO string
-- | Like <a>textIterGetSlice</a>, but invisible text is not included.
-- Invisible text is usually invisible because a <a>TextTag</a> with the
-- "invisible" attribute turned on has been applied to it.
textIterGetVisibleSlice :: GlibString string => TextIter -> TextIter -> IO string
-- | Like <a>textIterGetText</a>, but invisible text is not included.
-- Invisible text is usually invisible because a <a>TextTag</a> with the
-- "invisible" attribute turned on has been applied to it.
textIterGetVisibleText :: GlibString string => TextIter -> TextIter -> IO string
-- | Get the <a>Pixbuf</a> under the iterator.
textIterGetPixbuf :: TextIter -> IO (Maybe Pixbuf)
-- | If the location at <tt>iter</tt> contains a child anchor, the anchor
-- is returned (with no new reference count added). Otherwise,
-- <tt>Nothing</tt> is returned.
textIterGetChildAnchor :: TextIter -> IO (Maybe TextChildAnchor)
-- | Returns a list of all <a>TextMark</a> at this location. Because marks
-- are not iterable (they don't take up any "space" in the buffer, they
-- are just marks in between iterable locations), multiple marks can
-- exist in the same place. The returned list is not in any meaningful
-- order.
textIterGetMarks :: TextIter -> IO [TextMark]
-- | Returns a list of <a>TextTag</a> that are toggled on or off at this
-- point. (If <tt>toggledOn</tt> is <tt>True</tt>, the list contains tags
-- that are toggled on.) If a tag is toggled on at <tt>iter</tt>, then
-- some non-empty range of characters following <tt>iter</tt> has that
-- tag applied to it. If a tag is toggled off, then some non-empty range
-- following <tt>iter</tt> does <i>not</i> have the tag applied to it.
textIterGetToggledTags :: TextIter -> Bool -> IO [TextTag]
-- | Returns <tt>True</tt> if <tt>tag</tt> is toggled on at exactly this
-- point. If <tt>tag</tt> is <tt>Nothing</tt>, returns <tt>True</tt> if
-- any tag is toggled on at this point. Note that the
-- <a>textIterBeginsTag</a> returns <tt>True</tt> if <tt>iter</tt> is the
-- <i>start</i> of the tagged range; <a>textIterHasTag</a> tells you
-- whether an iterator is <i>within</i> a tagged range.
textIterBeginsTag :: TextIter -> Maybe TextTag -> IO Bool
-- | Returns <tt>True</tt> if <tt>tag</tt> is toggled off at exactly this
-- point. If <tt>tag</tt> is <tt>Notihng</tt>, returns <tt>True</tt> if
-- any tag is toggled off at this point. Note that the
-- <a>textIterEndsTag</a> returns <tt>True</tt> if <tt>iter</tt> is the
-- <i>end</i> of the tagged range; <a>textIterHasTag</a> tells you
-- whether an iterator is <i>within</i> a tagged range.
textIterEndsTag :: TextIter -> Maybe TextTag -> IO Bool
-- | Query if the <a>TextIter</a> is at the beginning or the end of a
-- <a>TextTag</a>. This is equivalent to (<a>textIterBeginsTag</a> ||
-- <a>textIterEndsTag</a>), i.e. it tells you whether a range with
-- <tt>tag</tt> applied to it begins <i>or</i> ends at <tt>iter</tt>.
textIterTogglesTag :: TextIter -> Maybe TextTag -> IO Bool
-- | Check if <a>TextIter</a> is within a range tagged with tag.
textIterHasTag :: TextIter -> Maybe TextTag -> IO Bool
-- | Returns a list of tags that apply to <tt>iter</tt>, in ascending order
-- of priority (highest-priority tags are last).
textIterGetTags :: TextIter -> IO [TextTag]
-- | Returns whether the character at <tt>iter</tt> is within an editable
-- region of text. Non-editable text is "locked" and can't be changed by
-- the user via <a>TextView</a>. This function is simply a convenience
-- wrapper around <a>textIterGetAttributes</a>. If no tags applied to
-- this text affect editability, <tt>defaultSetting</tt> will be
-- returned.
--
-- You don't want to use this function to decide whether text can be
-- inserted at <tt>iter</tt>, because for insertion you don't want to
-- know whether the char at <tt>iter</tt> is inside an editable range,
-- you want to know whether a new character inserted at <tt>iter</tt>
-- would be inside an editable range. Use <a>textIterCanInsert</a> to
-- handle this case.
textIterEditable :: TextIter -> Bool -> IO Bool
-- | Check if new text can be inserted at <a>TextIter</a>.
--
-- <ul>
-- <li>Considering the default editability of the buffer, and tags that
-- affect editability, determines whether text inserted at <tt>iter</tt>
-- would be editable. If text inserted at <tt>iter</tt> would be editable
-- then the user should be allowed to insert text at <tt>iter</tt>.
-- <a>textBufferInsertInteractive</a> uses this function to decide
-- whether insertions are allowed at a given position.</li>
-- <li>Use <a>textBufferInsertInteractive</a> if you want to insert text
-- depending on the current editable status.</li>
-- </ul>
textIterCanInsert :: TextIter -> Bool -> IO Bool
-- | Determine if <a>TextIter</a> begins a new natural-language word.
textIterStartsWord :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> ends a new natural-language word.
textIterEndsWord :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> is inside a word.
textIterInsideWord :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> begins a new line.
textIterStartsLine :: TextIter -> IO Bool
-- | Returns <tt>True</tt> if <tt>iter</tt> points to the start of the
-- paragraph delimiter characters for a line (delimiters will be either a
-- newline, a carriage return, a carriage return followed by a newline,
-- or a Unicode paragraph separator character). Note that an iterator
-- pointing to the n of a rn pair will not be counted as the end of a
-- line, the line ends before the r. The end iterator is considered to be
-- at the end of a line, even though there are no paragraph delimiter
-- chars there.
textIterEndsLine :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> starts a sentence.
textIterStartsSentence :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> ends a sentence.
textIterEndsSentence :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> is inside a sentence.
textIterInsideSentence :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> is at a cursor position.
textIterIsCursorPosition :: TextIter -> IO Bool
-- | Return number of characters in this line.
--
-- <ul>
-- <li>The return value includes delimiters.</li>
-- </ul>
textIterGetCharsInLine :: TextIter -> IO Int
-- | Computes the effect of any tags applied to this spot in the text. The
-- values parameter should be initialized to the default settings you
-- wish to use if no tags are in effect. You'd typically obtain the
-- defaults from <tt>textViewGetDefaultAttributes</tt>.
-- <a>textIterGetAttributes</a> will modify values, applying the effects
-- of any tags present at iter. If any tags affected values, the function
-- returns <tt>True</tt>.
textIterGetAttributes :: TextIter -> TextAttributes -> IO Bool
-- | A convenience wrapper around <a>textIterGetAttributes</a>, which
-- returns the language in effect at iter. If no tags affecting language
-- apply to iter, the return value is identical to that of
-- <tt>getDefaultLanguage</tt>.
textIterGetLanguage :: TextIter -> IO Language
-- | Determine if <a>TextIter</a> is at the end of the buffer.
textIterIsEnd :: TextIter -> IO Bool
-- | Determine if <a>TextIter</a> is at the beginning of the buffer.
textIterIsStart :: TextIter -> IO Bool
-- | Move <a>TextIter</a> forwards.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a character.</li>
-- </ul>
textIterForwardChar :: TextIter -> IO Bool
-- | Move <a>TextIter</a> backwards.
--
-- <ul>
-- <li>Retuns True if the movement was possible.</li>
-- </ul>
textIterBackwardChar :: TextIter -> IO Bool
-- | Move <a>TextIter</a> forwards by <tt>n</tt> characters.
--
-- <ul>
-- <li>Retuns <tt>True</tt> if the iterator is pointing to a new
-- character (and <tt>False</tt> if the iterator points to a picture or
-- has not moved).</li>
-- <li>Note that images embedded in the buffer occupy 1 character slot,
-- so <a>textIterForwardChar</a> may actually move onto an image instead
-- of a character.</li>
-- </ul>
textIterForwardChars :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> backwards by <tt>n</tt> characters.
--
-- <ul>
-- <li>Retuns <tt>True</tt> if the iterator is pointing to a new
-- character (and <tt>False</tt> if the iterator points to a picture or
-- has not moved).</li>
-- </ul>
textIterBackwardChars :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> forwards.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new line (and False
-- if the iterator points to a picture or has not moved).</li>
-- <li>If <a>TextIter</a> is on the first line, it will be moved to the
-- beginning of the buffer.</li>
-- </ul>
textIterForwardLine :: TextIter -> IO Bool
-- | Move <a>TextIter</a> backwards.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new line (and False
-- if the iterator points to a picture or has not moved).</li>
-- <li>If <a>TextIter</a> is on the first line, it will be moved to the
-- end of the buffer.</li>
-- </ul>
textIterBackwardLine :: TextIter -> IO Bool
-- | Move <a>TextIter</a> forwards by <tt>n</tt> lines.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new line (and False
-- if the iterator points to a picture or has not moved).</li>
-- <li>If <a>TextIter</a> is on the first line, it will be moved to the
-- beginning of the buffer.</li>
-- <li><tt>n</tt> can be negative.</li>
-- </ul>
textIterForwardLines :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> backwards by <tt>n</tt> lines.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new line (and False
-- if the iterator points to a picture or has not moved).</li>
-- <li>If <a>TextIter</a> is on the first line, it will be moved to the
-- end of the buffer.</li>
-- <li><tt>n</tt> can be negative.</li>
-- </ul>
textIterBackwardLines :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> forwards by <tt>n</tt> word ends.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new word end.</li>
-- </ul>
textIterForwardWordEnds :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> backwards by <tt>n</tt> word beginnings.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new word start.</li>
-- </ul>
textIterBackwardWordStarts :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> forwards to the next word end.
--
-- <ul>
-- <li>Retuns True if the iterator has moved to a new word end.</li>
-- </ul>
textIterForwardWordEnd :: TextIter -> IO Bool
-- | Move <a>TextIter</a> backwards to the next word beginning.
--
-- <ul>
-- <li>Retuns True if the iterator has moved to a new word
-- beginning.</li>
-- </ul>
textIterBackwardWordStart :: TextIter -> IO Bool
-- | Move <a>TextIter</a> forwards to the next cursor position.
--
-- <ul>
-- <li>Some characters are composed of two Unicode codes. This function
-- ensures that <a>TextIter</a> does not point inbetween such double
-- characters.</li>
-- <li>Returns True if <a>TextIter</a> moved and points to a character
-- (not to an object).</li>
-- </ul>
textIterForwardCursorPosition :: TextIter -> IO Bool
-- | Move <a>TextIter</a> backwards to the next cursor position.
--
-- <ul>
-- <li>Some characters are composed of two Unicode codes. This function
-- ensures that <a>TextIter</a> does not point inbetween such double
-- characters.</li>
-- <li>Returns True if <a>TextIter</a> moved and points to a character
-- (not to an object).</li>
-- </ul>
textIterBackwardCursorPosition :: TextIter -> IO Bool
-- | Move <a>TextIter</a> forwards by <tt>n</tt> cursor positions.
--
-- <ul>
-- <li>Returns True if <a>TextIter</a> moved and points to a character
-- (not to an object).</li>
-- </ul>
textIterForwardCursorPositions :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> backwards by <tt>n</tt> cursor positions.
--
-- <ul>
-- <li>Returns True if <a>TextIter</a> moved and points to a character
-- (not to an object).</li>
-- </ul>
textIterBackwardCursorPositions :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> forwards by <tt>n</tt> sentence ends.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new sentence
-- end.</li>
-- </ul>
textIterForwardSentenceEnds :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> backwards by <tt>n</tt> sentence beginnings.
--
-- <ul>
-- <li>Retuns True if the iterator is pointing to a new sentence
-- start.</li>
-- </ul>
textIterBackwardSentenceStarts :: TextIter -> Int -> IO Bool
-- | Move <a>TextIter</a> forwards to the next sentence end.
--
-- <ul>
-- <li>Retuns True if the iterator has moved to a new sentence end.</li>
-- </ul>
textIterForwardSentenceEnd :: TextIter -> IO Bool
-- | Move <a>TextIter</a> backwards to the next sentence beginning.
--
-- <ul>
-- <li>Retuns True if the iterator has moved to a new sentence
-- beginning.</li>
-- </ul>
textIterBackwardSentenceStart :: TextIter -> IO Bool
-- | Set <a>TextIter</a> to an offset within the buffer.
textIterSetOffset :: TextIter -> Int -> IO ()
-- | Set <a>TextIter</a> to a line within the buffer.
--
-- <ul>
-- <li>If number is negative or larger than the number of lines in the
-- buffer, moves <tt>iter</tt> to the start of the last line in the
-- buffer.</li>
-- </ul>
textIterSetLine :: TextIter -> Int -> IO ()
-- | Set <a>TextIter</a> to an offset within the line.
--
-- <ul>
-- <li>The given character offset must be less than or equal to the
-- number of characters in the line; if equal, the iterator moves to the
-- start of the next line.</li>
-- </ul>
textIterSetLineOffset :: TextIter -> Int -> IO ()
-- | Like <a>textIterSetLineOffset</a>, but the offset is in visible
-- characters, i.e. text with a tag making it invisible is not counted in
-- the offset.
textIterSetVisibleLineOffset :: TextIter -> Int -> IO ()
-- | Moves <tt>iter</tt> forward to the "end iterator," which points one
-- past the last valid character in the buffer.
textIterForwardToEnd :: TextIter -> IO ()
-- | Moves the iterator to point to the paragraph delimiter characters,
-- which will be either a newline, a carriage return, a carriage
-- return/newline in sequence, or the Unicode paragraph separator
-- character. If the iterator is already at the paragraph delimiter
-- characters, moves to the paragraph delimiter characters for the next
-- line. If <tt>iter</tt> is on the last line in the buffer, which does
-- not end in paragraph delimiters, moves to the end iterator (end of the
-- last line), and returns <tt>False</tt>.
textIterForwardToLineEnd :: TextIter -> IO Bool
-- | Moves <a>TextIter</a> forward to the next change of a <a>TextTag</a>.
--
-- <ul>
-- <li>If Nothing is supplied, any <a>TextTag</a> will be matched.</li>
-- <li>Returns <tt>True</tt> if there was a tag toggle after
-- <a>TextIter</a>.</li>
-- </ul>
textIterForwardToTagToggle :: TextIter -> Maybe TextTag -> IO Bool
-- | Moves <a>TextIter</a> backward to the next change of a <a>TextTag</a>.
--
-- <ul>
-- <li>If <tt>Nothing</tt> is supplied, any <a>TextTag</a> will be
-- matched.</li>
-- <li>Returns <tt>True</tt> if there was a tag toggle before
-- <a>TextIter</a>.</li>
-- </ul>
textIterBackwardToTagToggle :: TextIter -> Maybe TextTag -> IO Bool
-- | Move <a>TextIter</a> forward until a predicate function returns True.
--
-- <ul>
-- <li>If <tt>pred</tt> returns True before <tt>limit</tt> is reached,
-- the search is stopped and the return value is True.</li>
-- <li>If <tt>limit</tt> is Nothing, the search stops at the end of the
-- buffer.</li>
-- </ul>
textIterForwardFindChar :: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool
-- | Move <a>TextIter</a> backward until a predicate function returns True.
--
-- <ul>
-- <li>If <tt>pred</tt> returns True before <tt>limit</tt> is reached,
-- the search is stopped and the return value is True.</li>
-- <li>If <tt>limit</tt> is Nothing, the search stops at the end of the
-- buffer.</li>
-- </ul>
textIterBackwardFindChar :: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool
-- | Search forward for a specific string.
--
-- <ul>
-- <li>If specified, the last character which is tested against that
-- start of the search pattern will be <tt>limit</tt>.</li>
-- <li><a>TextSearchFlags</a> may be empty.</li>
-- <li>Returns the start and end position of the string found.</li>
-- </ul>
textIterForwardSearch :: GlibString string => TextIter -> string -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter, TextIter))
-- | Search backward for a specific string.
--
-- <ul>
-- <li>If specified, the last character which is tested against that
-- start of the search pattern will be <tt>limit</tt>.</li>
-- <li><a>TextSearchFlags</a> my be empty.</li>
-- <li>Returns the start and end position of the string found.</li>
-- </ul>
textIterBackwardSearch :: GlibString string => TextIter -> string -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter, TextIter))
-- | Compare two <a>TextIter</a> for equality.
textIterEqual :: TextIter -> TextIter -> IO Bool
-- | Compare two <a>TextIter</a>.
textIterCompare :: TextIter -> TextIter -> IO Ordering
-- | Checks whether iter falls in the range [start, end). start and end
-- must be in ascending order.
textIterInRange :: TextIter -> TextIter -> TextIter -> IO Bool
-- | Swaps the value of first and second if second comes before first in
-- the buffer. That is, ensures that first and second are in sequence.
-- Most text buffer functions that take a range call this automatically
-- on your behalf, so there's no real reason to call it yourself in those
-- cases. There are some exceptions, such as <a>textIterInRange</a>, that
-- expect a pre-sorted range.
textIterOrder :: TextIter -> TextIter -> IO ()
-- | Moves <tt>iter</tt> to the start of the next visible line. Returns
-- <tt>True</tt> if there was a next line to move to, and <tt>False</tt>
-- if <tt>iter</tt> was simply moved to the end of the buffer and is now
-- not dereferenceable, or if <tt>iter</tt> was already at the end of the
-- buffer.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
textIterForwardVisibleLine :: TextIter -> IO Bool
-- | Moves <tt>iter</tt> to the start of the previous visible line. Returns
-- <tt>True</tt> if <tt>iter</tt> could be moved; i.e. if <tt>iter</tt>
-- was at character offset 0, this function returns <tt>False</tt>.
-- Therefore if <tt>iter</tt> was already on line 0, but not at the start
-- of the line, <tt>iter</tt> is snapped to the start of the line and the
-- function returns <tt>True</tt>. (Note that this implies that in a loop
-- calling this function, the line number may not change on every
-- iteration, if your first iteration is on line 0.)
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
textIterBackwardVisibleLine :: TextIter -> IO Bool
-- | Moves <tt>count</tt> visible lines forward, if possible (if
-- <tt>count</tt> would move past the start or end of the buffer, moves
-- to the start or end of the buffer). The return value indicates whether
-- the iterator moved onto a dereferenceable position; if the iterator
-- didn't move, or moved onto the end iterator, then <tt>False</tt> is
-- returned. If <tt>count</tt> is 0, the function does nothing and
-- returns <tt>False</tt>. If <tt>count</tt> is negative, moves backward
-- by 0 - <tt>count</tt> lines.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
textIterForwardVisibleLines :: TextIter -> Int -> IO Bool
-- | Moves <tt>count</tt> visible lines backward, if possible (if
-- <tt>count</tt> would move past the start or end of the buffer, moves
-- to the start or end of the buffer). The return value indicates whether
-- the iterator moved onto a dereferenceable position; if the iterator
-- didn't move, or moved onto the end iterator, then <tt>False</tt> is
-- returned. If <tt>count</tt> is 0, the function does nothing and
-- returns <tt>False</tt>. If <tt>count</tt> is negative, moves forward
-- by 0 - <tt>count</tt> lines.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
textIterBackwardVisibleLines :: TextIter -> Int -> IO Bool
-- | Calls <a>textIterForwardVisibleWordEnd</a> up to count times.
textIterForwardVisibleWordEnds :: TextIter -> Int -> IO Bool
-- | Calls <a>textIterBackwardVisibleWordStart</a> up to count times.
textIterBackwardVisibleWordStarts :: TextIter -> Int -> IO Bool
-- | Moves forward to the next visible word end. (If iter is currently on a
-- word end, moves forward to the next one after that.) Word breaks are
-- determined by Pango and should be correct for nearly any language (if
-- not, the correct fix would be to the Pango word break algorithms).
textIterForwardVisibleWordEnd :: TextIter -> IO Bool
-- | Moves backward to the previous visible word start. (If iter is
-- currently on a word start, moves backward to the next one after that.)
-- Word breaks are determined by Pango and should be correct for nearly
-- any language (if not, the correct fix would be to the Pango word break
-- algorithms).
textIterBackwardVisibleWordStart :: TextIter -> IO Bool
-- | Moves iter forward to the next visible cursor position. See
-- <a>textIterForwardCursorPosition</a> for details.
textIterForwardVisibleCursorPosition :: TextIter -> IO Bool
-- | Moves iter forward to the previous visible cursor position. See
-- <a>textIterBackwardCursorPosition</a> for details.
textIterBackwardVisibleCursorPosition :: TextIter -> IO Bool
-- | Moves up to count visible cursor positions. See
-- <a>textIterForwardCursorPosition</a> for details.
textIterForwardVisibleCursorPositions :: TextIter -> Int -> IO Bool
-- | Moves up to count visible cursor positions. See
-- <a>textIterBackwardCursorPosition</a> for details.
textIterBackwardVisibleCursorPositions :: TextIter -> Int -> IO Bool
-- | 'visibleLineOffset' property. See <a>textIterGetVisibleLineOffset</a>
-- and <a>textIterSetVisibleLineOffset</a>
textIterVisibleLineOffset :: Attr TextIter Int
-- | 'offset' property. See <a>textIterGetOffset</a> and
-- <a>textIterSetOffset</a>
textIterOffset :: Attr TextIter Int
-- | 'lineOffset' property. See <a>textIterGetLineOffset</a> and
-- <a>textIterSetLineOffset</a>
textIterLineOffset :: Attr TextIter Int
-- | 'line' property. See <a>textIterGetLine</a> and <a>textIterSetLine</a>
textIterLine :: Attr TextIter Int
-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Alignment
data Alignment
class BinClass o => AlignmentClass o
castToAlignment :: GObjectClass obj => obj -> Alignment
gTypeAlignment :: GType
toAlignment :: AlignmentClass o => o -> Alignment
-- | Creates a new <a>Alignment</a>.
alignmentNew :: Float -> Float -> Float -> Float -> IO Alignment
-- | Sets the <a>Alignment</a> values.
alignmentSet :: AlignmentClass self => self -> Float -> Float -> Float -> Float -> IO ()
-- | Sets the padding on the different sides of the widget. The padding
-- adds blank space to the sides of the widget. For instance, this can be
-- used to indent the child widget towards the right by adding padding on
-- the left.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
alignmentSetPadding :: AlignmentClass self => self -> Int -> Int -> Int -> Int -> IO ()
-- | Gets the padding on the different sides of the widget. See
-- <a>alignmentSetPadding</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
alignmentGetPadding :: AlignmentClass self => self -> IO (Int, Int, Int, Int)
-- | Horizontal position of child in available space. 0.0 is left aligned,
-- 1.0 is right aligned.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
alignmentXAlign :: AlignmentClass self => Attr self Float
-- | Vertical position of child in available space. 0.0 is top aligned, 1.0
-- is bottom aligned.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
alignmentYAlign :: AlignmentClass self => Attr self Float
-- | If available horizontal space is bigger than needed for the child, how
-- much of it to use for the child. 0.0 means none, 1.0 means all.
--
-- Allowed values: [0,1]
--
-- Default value: 1
alignmentXScale :: AlignmentClass self => Attr self Float
-- | If available vertical space is bigger than needed for the child, how
-- much of it to use for the child. 0.0 means none, 1.0 means all.
--
-- Allowed values: [0,1]
--
-- Default value: 1
alignmentYScale :: AlignmentClass self => Attr self Float
-- | The padding to insert at the top of the widget.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
alignmentTopPadding :: AlignmentClass self => Attr self Int
-- | The padding to insert at the bottom of the widget.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
alignmentBottomPadding :: AlignmentClass self => Attr self Int
-- | The padding to insert at the left of the widget.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
alignmentLeftPadding :: AlignmentClass self => Attr self Int
-- | The padding to insert at the right of the widget.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
alignmentRightPadding :: AlignmentClass self => Attr self Int
-- | A frame that constrains its child to a particular aspect ratio
module Graphics.UI.Gtk.Layout.AspectFrame
data AspectFrame
class FrameClass o => AspectFrameClass o
castToAspectFrame :: GObjectClass obj => obj -> AspectFrame
gTypeAspectFrame :: GType
toAspectFrame :: AspectFrameClass o => o -> AspectFrame
-- | Create a new <a>AspectFrame</a>.
--
-- The frame may be augmented with a label which can be set by
-- <tt>frameSetLabel</tt>.
aspectFrameNew :: Float -> Float -> Maybe Float -> IO AspectFrame
-- | Set parameters for an existing <a>AspectFrame</a>.
aspectFrameSet :: AspectFrameClass self => self -> Float -> Float -> Maybe Float -> IO ()
-- | X alignment of the child.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
aspectFrameXAlign :: AspectFrameClass self => Attr self Float
-- | Y alignment of the child.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
aspectFrameYAlign :: AspectFrameClass self => Attr self Float
-- | Aspect ratio if obey_child is <tt>False</tt>.
--
-- Allowed values: [1e-04,10000]
--
-- Default value: 0.5
aspectFrameRatio :: AspectFrameClass self => Attr self Float
-- | Force aspect ratio to match that of the frame's child.
--
-- Default value: <tt>True</tt>
aspectFrameObeyChild :: AspectFrameClass self => Attr self Bool
-- | A container which can hide its child
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Layout.Expander
data Expander
class BinClass o => ExpanderClass o
castToExpander :: GObjectClass obj => obj -> Expander
gTypeExpander :: GType
toExpander :: ExpanderClass o => o -> Expander
-- | Creates a new expander using the given string as the text of the
-- label.
expanderNew :: GlibString string => string -> IO Expander
-- | Creates a new expander using <tt>label</tt> as the text of the label.
-- If characters in <tt>label</tt> are preceded by an underscore, they
-- are underlined. If you need a literal underscore character in a label,
-- use '__' (two underscores). The first underlined character represents
-- a keyboard accelerator called a mnemonic. Pressing Alt and that key
-- activates the button.
expanderNewWithMnemonic :: GlibString string => string -> IO Expander
-- | Sets the state of the expander. Set to <tt>True</tt>, if you want the
-- child widget to be revealed, and <tt>False</tt> if you want the child
-- widget to be hidden.
expanderSetExpanded :: Expander -> Bool -> IO ()
-- | Queries a <a>Expander</a> and returns its current state. Returns
-- <tt>True</tt> if the child widget is revealed.
--
-- See <a>expanderSetExpanded</a>.
expanderGetExpanded :: Expander -> IO Bool
-- | Sets the spacing field of <tt>expander</tt>, which is the number of
-- pixels to place between expander and the child.
expanderSetSpacing :: Expander -> Int -> IO ()
-- | Gets the value set by <a>expanderSetSpacing</a>.
expanderGetSpacing :: Expander -> IO Int
-- | Sets the text of the label of the expander to <tt>label</tt>.
--
-- This will also clear any previously set labels.
expanderSetLabel :: GlibString string => Expander -> string -> IO ()
-- | Fetches the text from the label of the expander, as set by
-- <a>expanderSetLabel</a>.
expanderGetLabel :: GlibString string => Expander -> IO string
-- | If true, an underline in the text of the expander label indicates the
-- next character should be used for the mnemonic accelerator key.
expanderSetUseUnderline :: Expander -> Bool -> IO ()
-- | Returns whether an embedded underline in the expander label indicates
-- a mnemonic. See <a>expanderSetUseUnderline</a>.
expanderGetUseUnderline :: Expander -> IO Bool
-- | Sets whether the text of the label contains markup in Pango's text
-- markup language. See <a>labelSetMarkup</a>.
expanderSetUseMarkup :: Expander -> Bool -> IO ()
-- | Returns whether the label's text is interpreted as marked up with the
-- Pango text markup language. See <a>expanderSetUseMarkup</a>.
expanderGetUseMarkup :: Expander -> IO Bool
-- | Set the label widget for the expander. This is the widget that will
-- appear embedded alongside the expander arrow.
expanderSetLabelWidget :: WidgetClass labelWidget => Expander -> labelWidget -> IO ()
-- | Retrieves the label widget for the frame. See
-- <a>expanderSetLabelWidget</a>.
expanderGetLabelWidget :: Expander -> IO Widget
-- | Whether the expander has been opened to reveal the child widget.
--
-- Default value: <tt>False</tt>
expanderExpanded :: Attr Expander Bool
-- | Text of the expander's label.
expanderLabel :: GlibString string => Attr Expander string
-- | If set, an underline in the text indicates the next character should
-- be used for the mnemonic accelerator key.
--
-- Default value: <tt>False</tt>
expanderUseUnderline :: Attr Expander Bool
-- | The text of the label includes XML markup. See pango_parse_markup().
--
-- Default value: <tt>False</tt>
expanderUseMarkup :: Attr Expander Bool
-- | Space to put between the label and the child.
--
-- Allowed values: >= 0
--
-- Default value: 0
expanderSpacing :: Attr Expander Int
-- | A widget to display in place of the usual expander label.
expanderLabelWidget :: WidgetClass labelWidget => ReadWriteAttr Expander Widget labelWidget
-- | Whether the label widget should fill all available horizontal space.
--
-- Default value: <a>False</a>
expanderLabelFill :: Attr Expander Bool
onActivate :: Expander -> IO () -> IO (ConnectId Expander)
afterActivate :: Expander -> IO () -> IO (ConnectId Expander)
-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Grid
data Grid
class ContainerClass o => GridClass o
castToGrid :: GObjectClass obj => obj -> Grid
gTypeGrid :: GType
toGrid :: GridClass o => o -> Grid
-- | Creates a new grid widget.
gridNew :: IO Grid
-- | Adds a widget to the grid. The position of child is determined by left
-- and top. the number of "cells" that child will occupy is determined by
-- width and height.
gridAttach :: (GridClass self, WidgetClass child) => self -> child -> Int -> Int -> Int -> Int -> IO ()
-- | Adds a widget to the grid. The widget is placed next to sibling , on
-- the side determined by side . When sibling is Nothing, the widget is
-- placed in row (for left or right placement) or column 0 (for top or
-- bottom placement), at the end indicated by side.
--
-- Attaching widgets labeled [1], [2], [3] with sibling == Nothing and
-- side == GTK_POS_LEFT yields a layout of 3[1].
gridAttachNextTo :: (GridClass self, WidgetClass child, WidgetClass sibling) => self -> child -> Maybe sibling -> PositionType -> Int -> Int -> IO ()
-- | Sets whether all rows of grid will have the same height.
gridSetRowHomogeneous :: GridClass self => self -> Bool -> IO ()
-- | Returns whether all rows of grid have the same height.
gridGetRowHomogeneous :: GridClass self => self -> IO Bool
-- | Sets the amount of space between rows of grid.
gridSetRowSpacing :: GridClass self => self -> Int -> IO ()
-- | Returns the amount of space between the rows of grid.
gridGetRowSpacing :: GridClass self => self -> IO Int
-- | Sets whether all columns of grid will have the same width.
gridSetColumnHomogeneous :: GridClass self => self -> Bool -> IO ()
-- | Returns whether all columns of grid have the same width.
gridGetColumnHomogeneous :: GridClass self => self -> IO Bool
-- | Sets the amount of space between columns of grid.
gridSetColumnSpacing :: GridClass self => self -> Int -> IO ()
-- | Returns the amount of space between the columns of grid.
gridGetColumnSpacing :: GridClass self => self -> IO Int
-- | Gets the child of grid whose area covers the grid cell whose upper
-- left corner is at left , top .
gridGetChildAt :: GridClass self => self -> Int -> Int -> IO (Maybe Widget)
-- | Inserts a row at the specified position. Children which are attached
-- at or below this position are moved one row down. Children which span
-- across this position are grown to span the new row.
gridInsertRow :: GridClass self => self -> Int -> IO ()
-- | Inserts a column at the specified position. Children which are
-- attached at or to the right of this position are moved one column to
-- the right. Children which span across this position are grown to span
-- the new column
gridInsertColumn :: GridClass self => self -> Int -> IO ()
-- | Inserts a row or column at the specified position. The new row or
-- column is placed next to sibling , on the side determined by side. If
-- side is GTK_POS_TOP or GTK_POS_BOTTOM, a row is inserted. If side is
-- GTK_POS_LEFT of GTK_POS_RIGHT, a column is inserted.
gridInsertNextTo :: (GridClass self, WidgetClass sibling) => self -> sibling -> PositionType -> IO ()
-- | Removes a row from the grid. Children that are placed in this row are
-- removed, spanning children that overlap this row have their height
-- reduced by one, and children below the row are moved up.
gridRemoveRow :: GridClass self => self -> Int -> IO ()
-- | Removes a column from the grid. Children that are placed in this
-- column are removed, spanning children that overlap this column have
-- their width reduced by one, and children after the column are moved to
-- the left.
gridRemoveColumn :: GridClass self => self -> Int -> IO ()
-- | Returns which row defines the global baseline of grid.
gridGetBaselineRow :: GridClass self => self -> IO Int
-- | Sets which row defines the global baseline for the entire grid. Each
-- row in the grid can have its own local baseline, but only one of those
-- is global, meaning it will be the baseline in the parent of the grid.
gridSetBaselineRow :: GridClass self => self -> Int -> IO ()
-- | Returns the baseline position of row as set by
-- gridSetRowBaselinePosition or the default value
-- BASELINE_POSITION_CENTER
gridGetRowBaselinePosition :: GridClass self => self -> Int -> IO BaselinePosition
-- | Sets how the baseline should be positioned on row of the grid, in case
-- that row is assigned more space than is requested.
gridSetRowBaselinePosition :: GridClass self => self -> Int -> BaselinePosition -> IO ()
-- | A horizontal container box
module Graphics.UI.Gtk.Layout.HBox
data HBox
class BoxClass o => HBoxClass o
castToHBox :: GObjectClass obj => obj -> HBox
gTypeHBox :: GType
toHBox :: HBoxClass o => o -> HBox
-- | Creates a new <a>HBox</a>.
hBoxNew :: Bool -> Int -> IO HBox
-- | A container for arranging buttons horizontally
module Graphics.UI.Gtk.Layout.HButtonBox
data HButtonBox
class ButtonBoxClass o => HButtonBoxClass o
castToHButtonBox :: GObjectClass obj => obj -> HButtonBox
gTypeHButtonBox :: GType
toHButtonBox :: HButtonBoxClass o => o -> HButtonBox
-- | Creates a new horizontal button box.
hButtonBoxNew :: IO HButtonBox
-- | A container with two panes arranged horizontally
module Graphics.UI.Gtk.Layout.HPaned
data HPaned
class PanedClass o => HPanedClass o
castToHPaned :: GObjectClass obj => obj -> HPaned
gTypeHPaned :: GType
toHPaned :: HPanedClass o => o -> HPaned
-- | Create a new <a>HPaned</a>
hPanedNew :: IO HPaned
-- | A simple container that can display overlayed widgets
module Graphics.UI.Gtk.Layout.Overlay
data Overlay
class BinClass o => OverlayClass o
castToOverlay :: GObjectClass obj => obj -> Overlay
gTypeOverlay :: GType
toOverlay :: OverlayClass o => o -> Overlay
-- | Create a new <a>Overlay</a>
overlayNew :: IO Overlay
overlayAdd :: (OverlayClass self, WidgetClass widget) => self -> widget -> IO ()
-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Stack
data Stack
castToStack :: GObjectClass obj => obj -> Stack
gTypeStack :: GType
toStack :: StackClass o => o -> Stack
data StackTransitionType
StackTransitionTypeNone :: StackTransitionType
StackTransitionTypeCrossfade :: StackTransitionType
StackTransitionTypeSlideRight :: StackTransitionType
StackTransitionTypeSlideLeft :: StackTransitionType
StackTransitionTypeSlideUp :: StackTransitionType
StackTransitionTypeSlideDown :: StackTransitionType
StackTransitionTypeSlideLeftRight :: StackTransitionType
StackTransitionTypeSlideUpDown :: StackTransitionType
StackTransitionTypeOverUp :: StackTransitionType
StackTransitionTypeOverDown :: StackTransitionType
StackTransitionTypeOverLeft :: StackTransitionType
StackTransitionTypeOverRight :: StackTransitionType
StackTransitionTypeUnderUp :: StackTransitionType
StackTransitionTypeUnderDown :: StackTransitionType
StackTransitionTypeUnderLeft :: StackTransitionType
StackTransitionTypeUnderRight :: StackTransitionType
StackTransitionTypeOverUpDown :: StackTransitionType
StackTransitionTypeOverDownUp :: StackTransitionType
StackTransitionTypeOverLeftRight :: StackTransitionType
StackTransitionTypeOverRightLeft :: StackTransitionType
-- | Creates a new <a>Stack</a> container.
stackNew :: IO Stack
-- | Adds a child to stack . The child is identified by the name.
stackAddNamed :: (StackClass self, WidgetClass child, GlibString name) => self -> child -> name -> IO ()
-- | Adds a child to stack. The child is identified by the name. The title
-- will be used by <a>StackSwitcher</a> to represent child in a tab bar,
-- so it should be short.
stackAddTitled :: (StackClass self, WidgetClass child, GlibString name, GlibString title) => self -> child -> name -> title -> IO ()
-- | Gets the type of animation that will be used for transitions between
-- pages in stack.
stackGetTransitionType :: StackClass self => self -> IO StackTransitionType
-- | Sets the type of animation that will be used for transitions between
-- pages in stack . Available types include various kinds of fades and
-- slides. The transition type can be changed without problems at
-- runtime, so it is possible to change the animation based on the page
-- that is about to become current.
stackSetTransitionType :: StackClass self => self -> StackTransitionType -> IO ()
-- | Sets the duration that transitions between pages in stack will take.
stackSetTransitionDuration :: StackClass self => self -> Int -> IO ()
-- | Returns the amount of time (in milliseconds) that transitions between
-- pages in stack will take.
stackGetTransitionDuration :: StackClass self => self -> IO Int
-- | Finds the child of the GtkStack with the name given as the argument.
-- Returns Nothing if there is no child with this name.
stackGetChildByName :: (StackClass self, GlibString name) => self -> name -> IO Widget
-- | Makes child the visible child of stack. If child is different from the
-- currently visible child, the transition between the two will be
-- animated with the current transition type of stack. Note that the
-- child widget has to be visible itself (see <tt>widgetShow</tt>) in
-- order to become the visible child of stack.
stackSetVisibleChild :: (StackClass self, WidgetClass child) => self -> child -> IO ()
-- | Makes the child with the given name visible. If child is different
-- from the currently visible child, the transition between the two will
-- be animated with the current transition type of stack. Note that the
-- child widget has to be visible itself (see <tt>widgetShow</tt>) in
-- order to become the visible child of stack.
stackSetVisibleChildName :: (StackClass self, GlibString name) => self -> name -> IO ()
-- | Returns the name of the currently visible child of stack, or Nothing
-- if there is no visible child.
stackGetVisibleChildName :: (StackClass self, GlibString name) => self -> IO (Maybe name)
-- | Makes the child with the given name visible. Note that the child
-- widget has to be visible itself (see <tt>widgetShow</tt>) in order to
-- become the visible child of stack .
stackSetVisibleChildFull :: (StackClass self, GlibString name) => self -> name -> StackTransitionType -> IO ()
-- | Sets the stack to be homogeneous or not. If it is homogeneous, the
-- stack will request the same size for all its children. If it isn't,
-- the stack may change size when a different child becomes visible.
stackSetHomogeneous :: StackClass self => self -> Bool -> IO ()
-- | Gets whether stack is homogeneous. See <a>stackSetHomogeneous</a>.
stackGetHomogeneous :: StackClass self => self -> IO Bool
-- | Sets the stack to be horizontally homogeneous or not. If it is
-- homogeneous, the stack will request the same width for all its
-- children. If it isn't, the stack may change width when a different
-- child becomes visible.
stackSetHhomogeneous :: StackClass self => self -> Bool -> IO ()
-- | Gets whether stack is horizontally homogeneous. See
-- <a>stackSetHhomogeneous</a>.
stackGetHhomogeneous :: StackClass self => self -> IO Bool
-- | Sets the stack to be vertically homogeneous or not. If it is
-- homogeneous, the stack will request the same height for all its
-- children. If it isn't, the stack may change height when a different
-- child becomes visible.
stackSetVhomogeneous :: StackClass self => self -> Bool -> IO ()
-- | Gets whether stack is vertically homogeneous. See
-- <a>stackSetVhomogeneous</a>.
stackGetVhomogeneous :: StackClass self => self -> IO Bool
-- | Returns whether the stack is currently in a transition from one page
-- to another.
stackGetTransitionRunning :: StackClass self => self -> IO Bool
-- | Sets whether or not the stack will interpolate its size when changing
-- the visible child. If the 'interpolate-size' property is set to True,
-- stack will interpolate its size between the current one and the one
-- it'll take after changing the visible child, according to the set
-- transition duration.
stackSetInterpolateSize :: StackClass self => self -> Bool -> IO ()
-- | Returns wether the stack is set up to interpolate between the sizes of
-- children on page switch.
stackGetInterpolateSize :: StackClass self => self -> IO Bool
-- | True if the stack allocates the same width for all children.
stackHhomogeneous :: StackClass self => Attr self Bool
-- | Homogeneous sizing.
stackHomogeneous :: StackClass self => Attr self Bool
-- | Whether or not the size should smoothly change when changing between
-- differently sized children.
stackInterpolateSize :: StackClass self => Attr self Bool
-- | The animation duration, in milliseconds.
stackTransitionDuration :: StackClass self => Attr self Int
-- | Whether or not the transition is currently running.
stackTransitionRunning :: StackClass self => ReadAttr self Bool
-- | The type of animation used to transition.
stackTransitionType :: StackClass self => Attr self StackTransitionType
-- | True if the stack allocates the same height for all children.
stackVhomogeneous :: StackClass self => Attr self Bool
-- | The widget currently visible in the stack.
stackVisibleChild :: StackClass self => ReadWriteAttr self (Maybe Widget) Widget
-- | The name of the widget currently visible in the stack.
stackVisibleChildName :: StackClass self => ReadWriteAttr self (Maybe String) String
-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.StackSwitcher
data StackSwitcher
castToStackSwitcher :: GObjectClass obj => obj -> StackSwitcher
gTypeStackSwitcher :: GType
toStackSwitcher :: StackSwitcherClass o => o -> StackSwitcher
-- | Creates a new <a>StackSwitcher</a>.
stackSwitcherNew :: IO StackSwitcher
-- | Sets the stack to control.
stackSwitcherSetStack :: (StackSwitcherClass self, StackClass stack) => self -> stack -> IO ()
-- | Retrieves the stack.
stackSwitcherGetStack :: StackSwitcherClass self => self -> IO (Maybe Stack)
-- | Use the "icon-size" property to change the size of the image displayed
-- when a GtkStackSwitcher is displaying icons.
--
-- Default value: <tt>1</tt>
stackSwitcherIconSize :: StackSwitcherClass self => Attr self Int
-- | The <a>Stack</a> controlled by this <a>StackSwitcher</a>.
stackSwitcherStack :: (StackSwitcherClass self, StackClass stack) => ReadWriteAttr self (Maybe Stack) (Maybe stack)
-- | A vertical container box
module Graphics.UI.Gtk.Layout.VBox
data VBox
class BoxClass o => VBoxClass o
castToVBox :: GObjectClass obj => obj -> VBox
gTypeVBox :: GType
toVBox :: VBoxClass o => o -> VBox
-- | Creates a new <a>VBox</a>.
vBoxNew :: Bool -> Int -> IO VBox
-- | A container for arranging buttons vertically
module Graphics.UI.Gtk.Layout.VButtonBox
data VButtonBox
class ButtonBoxClass o => VButtonBoxClass o
castToVButtonBox :: GObjectClass obj => obj -> VButtonBox
gTypeVButtonBox :: GType
toVButtonBox :: VButtonBoxClass o => o -> VButtonBox
-- | Creates a new vertical button box.
vButtonBoxNew :: IO VButtonBox
-- | A container with two panes arranged vertically
module Graphics.UI.Gtk.Layout.VPaned
data VPaned
class PanedClass o => VPanedClass o
castToVPaned :: GObjectClass obj => obj -> VPaned
gTypeVPaned :: GType
toVPaned :: VPanedClass o => o -> VPaned
-- | Create a new <a>VPaned</a>
vPanedNew :: IO VPaned
-- | A menu item with a check box
module Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem
data CheckMenuItem
class MenuItemClass o => CheckMenuItemClass o
castToCheckMenuItem :: GObjectClass obj => obj -> CheckMenuItem
gTypeCheckMenuItem :: GType
toCheckMenuItem :: CheckMenuItemClass o => o -> CheckMenuItem
-- | Creates a new <a>CheckMenuItem</a>.
checkMenuItemNew :: IO CheckMenuItem
-- | Creates a new <a>CheckMenuItem</a> with a label.
checkMenuItemNewWithLabel :: GlibString string => string -> IO CheckMenuItem
-- | Creates a new <a>CheckMenuItem</a> containing a label. The label will
-- be created using <a>labelNewWithMnemonic</a>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the menu item.
checkMenuItemNewWithMnemonic :: GlibString string => string -> IO CheckMenuItem
-- | Sets the active state of the menu item's check box.
checkMenuItemSetActive :: CheckMenuItemClass self => self -> Bool -> IO ()
-- | Returns whether the check menu item is active. See
-- <a>checkMenuItemSetActive</a>.
checkMenuItemGetActive :: CheckMenuItemClass self => self -> IO Bool
-- | Emits the toggled signal.
checkMenuItemEmitToggled :: CheckMenuItemClass self => self -> IO ()
-- | If the user has selected a range of elements (such as some text or
-- spreadsheet cells) that are affected by a boolean setting, and the
-- current values in that range are inconsistent, you may want to display
-- the check in an "in between" state. This function turns on "in
-- between" display. Normally you would turn off the inconsistent state
-- again if the user explicitly selects a setting. This has to be done
-- manually, <a>checkMenuItemSetInconsistent</a> only affects visual
-- appearance, it doesn't affect the semantics of the widget.
checkMenuItemSetInconsistent :: CheckMenuItemClass self => self -> Bool -> IO ()
-- | Query if the menu check is drawn as inconsistent (inbetween). See
-- <a>checkMenuItemSetInconsistent</a>.
checkMenuItemGetInconsistent :: CheckMenuItemClass self => self -> IO Bool
-- | Returns whether the menu item is drawn like a <a>RadioMenuItem</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
checkMenuItemGetDrawAsRadio :: CheckMenuItemClass self => self -> IO Bool
-- | Sets whether the menu item is drawn like a <a>RadioMenuItem</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
checkMenuItemSetDrawAsRadio :: CheckMenuItemClass self => self -> Bool -> IO ()
-- | Whether the menu item is checked.
--
-- Default value: <tt>False</tt>
checkMenuItemActive :: CheckMenuItemClass self => Attr self Bool
-- | Whether to display an "inconsistent" state.
--
-- Default value: <tt>False</tt>
checkMenuItemInconsistent :: CheckMenuItemClass self => Attr self Bool
-- | Whether the menu item looks like a radio menu item.
--
-- Default value: <tt>False</tt>
checkMenuItemDrawAsRadio :: CheckMenuItemClass self => Attr self Bool
-- | This signal is emitted when the state of the check box is changed.
checkMenuItemToggled :: CheckMenuItemClass self => Signal self (IO ())
-- | A menu item with an icon
module Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem
data ImageMenuItem
class MenuItemClass o => ImageMenuItemClass o
castToImageMenuItem :: GObjectClass obj => obj -> ImageMenuItem
gTypeImageMenuItem :: GType
toImageMenuItem :: ImageMenuItemClass o => o -> ImageMenuItem
-- | Creates a new <a>ImageMenuItem</a> with an empty label.
imageMenuItemNew :: IO ImageMenuItem
-- | Creates a new <a>ImageMenuItem</a> containing the image and text from
-- a stock item.
imageMenuItemNewFromStock :: StockId -> IO ImageMenuItem
-- | Creates a new <a>ImageMenuItem</a> containing a label.
imageMenuItemNewWithLabel :: GlibString string => string -> IO ImageMenuItem
-- | Creates a new <a>ImageMenuItem</a> containing a label. The label will
-- be created using <a>labelNewWithMnemonic</a>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the menu item.
imageMenuItemNewWithMnemonic :: GlibString string => string -> IO ImageMenuItem
-- | Sets the image of the image menu item to the given widget. Note that
-- it depends on the "show-menu-images" setting whether the image will be
-- displayed or not.
imageMenuItemSetImage :: (ImageMenuItemClass self, WidgetClass image) => self -> image -> IO ()
-- | Gets the widget that is currently set as the image. See
-- <a>imageMenuItemSetImage</a>.
imageMenuItemGetImage :: ImageMenuItemClass self => self -> IO (Maybe Widget)
-- | Child widget to appear next to the menu text.
imageMenuItemImage :: (ImageMenuItemClass self, WidgetClass image) => ReadWriteAttr self (Maybe Widget) image
-- | A subclass widget for <a>MenuShell</a> which holds <a>MenuItem</a>
-- widgets
module Graphics.UI.Gtk.MenuComboToolbar.MenuBar
data MenuBar
class MenuShellClass o => MenuBarClass o
castToMenuBar :: GObjectClass obj => obj -> MenuBar
gTypeMenuBar :: GType
toMenuBar :: MenuBarClass o => o -> MenuBar
-- | Determines how to pack a menu bar: left-to-right, right-to-left,
-- top-to-bottom or bottom-to-top.
data PackDirection
PackDirectionLtr :: PackDirection
PackDirectionRtl :: PackDirection
PackDirectionTtb :: PackDirection
PackDirectionBtt :: PackDirection
-- | Creates the new <a>MenuBar</a>
menuBarNew :: IO MenuBar
-- | Sets how items should be packed inside a menubar.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuBarSetPackDirection :: MenuBarClass self => self -> PackDirection -> IO ()
-- | Retrieves the current pack direction of the menubar. See
-- <a>menuBarSetPackDirection</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuBarGetPackDirection :: MenuBarClass self => self -> IO PackDirection
-- | Sets how widgets should be packed inside the children of a menubar.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuBarSetChildPackDirection :: MenuBarClass self => self -> PackDirection -> IO ()
-- | Retrieves the current child pack direction of the menubar. See
-- <a>menuBarSetChildPackDirection</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
menuBarGetChildPackDirection :: MenuBarClass self => self -> IO PackDirection
-- | The pack direction of the menubar. It determines how menuitems are
-- arranged in the menubar.
--
-- Default value: <a>PackDirectionLtr</a>
menuBarPackDirection :: MenuBarClass self => Attr self PackDirection
-- | The pack direction of the menubar. It determines how the widgets
-- contained in child menuitems are arranged.
--
-- Default value: <a>PackDirectionLtr</a>
menuBarChildPackDirection :: MenuBarClass self => Attr self PackDirection
instance GHC.Enum.Enum Graphics.UI.Gtk.MenuComboToolbar.MenuBar.PackDirection
-- | The widget used for item in menus
module Graphics.UI.Gtk.MenuComboToolbar.MenuItem
data MenuItem
class BinClass o => MenuItemClass o
castToMenuItem :: GObjectClass obj => obj -> MenuItem
gTypeMenuItem :: GType
toMenuItem :: MenuItemClass o => o -> MenuItem
-- | Creates a new <a>MenuItem</a>.
menuItemNew :: IO MenuItem
-- | Creates a new <a>MenuItem</a> whose child is a <a>Label</a>.
menuItemNewWithLabel :: GlibString string => string -> IO MenuItem
-- | Creates a new <a>MenuItem</a> containing a label. The label will be
-- created using <tt>labelNewWithMnemonic</tt>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the menu item.
menuItemNewWithMnemonic :: GlibString string => string -> IO MenuItem
-- | Sets text on the MenuItem label
menuItemSetLabel :: (MenuItemClass self, GlibString string) => self -> string -> IO ()
-- | Gets text on the MenuItem label
menuItemGetLabel :: (MenuItemClass self, GlibString string) => self -> IO string
-- | If True, an underline in the text indicates the next character should
-- be used for the mnemonic accelerator key.
menuItemSetUseUnderline :: (MenuItemClass self) => self -> Bool -> IO ()
-- | Checks if an underline in the text indicates the next character should
-- be used for the mnemonic accelerator key.
menuItemGetUseUnderline :: (MenuItemClass self) => self -> IO Bool
-- | Sets the item's submenu, or changes it.
menuItemSetSubmenu :: (MenuItemClass self, MenuClass submenu) => self -> submenu -> IO ()
-- | Gets the submenu underneath this menu item, if any. See
-- <a>menuItemSetSubmenu</a>.
menuItemGetSubmenu :: MenuItemClass self => self -> IO (Maybe Widget)
-- | Removes the item's submenu.
menuItemRemoveSubmenu :: MenuItemClass self => self -> IO ()
-- | Select the menu item. Emits the "select" signal on the item.
menuItemEmitSelect :: MenuItemClass self => self -> IO ()
-- | Deselect the menu item. Emits the "deselect" signal on the item.
menuItemEmitDeselect :: MenuItemClass self => self -> IO ()
-- | Simulate a click on the menu item. Emits the "activate" signal on the
-- item.
menuItemEmitActivate :: MenuItemClass self => self -> IO ()
-- | Sets whether the menu item appears justified at the right side of a
-- menu bar. This was traditionally done for "Help" menu items, but is
-- now considered a bad idea. (If the widget layout is reversed for a
-- right-to-left language like Hebrew or Arabic,
-- right-justified-menu-items appear at the left.)
menuItemSetRightJustified :: MenuItemClass self => self -> Bool -> IO ()
-- | Gets whether the menu item appears justified at the right side of the
-- menu bar.
menuItemGetRightJustified :: MenuItemClass self => self -> IO Bool
-- | Set the accelerator path on the menu item, through which runtime
-- changes of the menu item's accelerator caused by the user can be
-- identified and saved to persistant storage (see <tt>accelMapSave</tt>
-- on this). To setup a default accelerator for this menu item, call
-- <tt>accelMapAddEntry</tt> with the same accel path. See also
-- <tt>accelMapAddEntry</tt> on the specifics of accelerator paths, and
-- <tt>menuSetAccelPath</tt> for a more convenient variant of this
-- function.
--
-- This function is basically a convenience wrapper that handles calling
-- <tt>widgetSetAccelPath</tt> with the appropriate accelerator group for
-- the menu item.
--
-- Note that you do need to set an accelerator on the parent menu with
-- <tt>menuSetAccelGroup</tt> for this to work.
menuItemSetAccelPath :: (MenuItemClass self, GlibString string) => self -> Maybe string -> IO ()
-- | 'submenu' property. See <a>menuItemGetSubmenu</a> and
-- <a>menuItemSetSubmenu</a>
menuItemSubmenu :: (MenuItemClass self, MenuClass submenu) => ReadWriteAttr self (Maybe Widget) submenu
-- | 'rightJustified' property. See <a>menuItemGetRightJustified</a> and
-- <a>menuItemSetRightJustified</a>
menuItemRightJustified :: MenuItemClass self => Attr self Bool
-- | 'label' property. See <a>menuItemSetLabel</a> and
-- <a>menuItemGetLabel</a>
menuItemLabel :: (MenuItemClass self, GlibString string) => Attr self string
-- | 'useUnderline' property. See <a>menuItemSetUseUnderline</a> and
-- <tt>menuItemGetUseEUnderline</tt>
menuItemUseUnderline :: MenuItemClass self => Attr self Bool
-- | Emitted when the user chooses a menu item that has a submenu.
--
-- <ul>
-- <li>This signal is not emitted if the menu item does not have a
-- submenu.</li>
-- </ul>
menuItemActivatedItem :: MenuItemClass self => Signal self (IO ())
-- | The user has chosen the menu item.
--
-- <ul>
-- <li>This is the only function applications normally connect to. It is
-- not emitted if the item has a submenu.</li>
-- </ul>
menuItemActivated :: MenuItemClass self => Signal self (IO ())
-- | Deprecated. See <a>menuItemActivatedItem</a>.
menuItemActivateItem :: MenuItemClass self => Signal self (IO ())
-- | Deprecated. See <a>menuItemActivated</a>.
menuItemActivate :: MenuItemClass self => Signal self (IO ())
-- | This signal is emitted when the item is selected.
menuItemSelect :: MenuItemClass i => Signal i (IO ())
-- | This signal is emitted when the item is deselected.
menuItemDeselect :: MenuItemClass i => Signal i (IO ())
-- | This signal is emitted when the item is toggled.
menuItemToggle :: MenuItemClass i => Signal i (IO ())
-- | A <a>ToolItem</a> containing a button with an additional dropdown menu
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton
data MenuToolButton
class ToolButtonClass o => MenuToolButtonClass o
castToMenuToolButton :: GObjectClass obj => obj -> MenuToolButton
gTypeMenuToolButton :: GType
toMenuToolButton :: MenuToolButtonClass o => o -> MenuToolButton
-- | Creates a new <a>MenuToolButton</a> using <tt>iconWidget</tt> as icon
-- and <tt>label</tt> as label.
menuToolButtonNew :: (WidgetClass iconWidget, GlibString string) => Maybe iconWidget -> Maybe string -> IO MenuToolButton
-- | Creates a new <a>MenuToolButton</a>. The new <a>MenuToolButton</a>
-- will contain an icon and label from the stock item indicated by
-- <tt>stockId</tt>.
menuToolButtonNewFromStock :: StockId -> IO MenuToolButton
-- | Sets the <a>Menu</a> that is popped up when the user clicks on the
-- arrow. If <tt>menu</tt> is <tt>Nothing</tt>, the arrow button becomes
-- insensitive.
menuToolButtonSetMenu :: (MenuToolButtonClass self, MenuClass menu) => self -> Maybe menu -> IO ()
-- | Gets the <a>Menu</a> associated with <a>MenuToolButton</a>.
menuToolButtonGetMenu :: MenuToolButtonClass self => self -> IO (Maybe Menu)
-- | Sets the tooltip text to be used as tooltip for the arrow button which
-- pops up the menu. See <tt>toolItemSetTooltip</tt> for setting a
-- tooltip on the whole <a>MenuToolButton</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
menuToolButtonSetArrowTooltipText :: (MenuToolButtonClass self, GlibString string) => self -> string -> IO ()
-- | Sets the tooltip markup text to be used as tooltip for the arrow
-- button which pops up the menu. See <tt>toolItemSetTooltip</tt> for
-- setting a tooltip on the whole <a>MenuToolButton</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
menuToolButtonSetArrowTooltipMarkup :: (MenuToolButtonClass self, GlibString markup) => self -> markup -> IO ()
-- | The dropdown menu.
menuToolButtonMenu :: (MenuToolButtonClass self, MenuClass menu) => ReadWriteAttr self (Maybe Menu) (Maybe menu)
onShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)
afterShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)
-- | A choice from multiple check menu items
module Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem
data RadioMenuItem
class CheckMenuItemClass o => RadioMenuItemClass o
castToRadioMenuItem :: GObjectClass obj => obj -> RadioMenuItem
gTypeRadioMenuItem :: GType
toRadioMenuItem :: RadioMenuItemClass o => o -> RadioMenuItem
-- | Creates a new <a>RadioMenuItem</a>.
radioMenuItemNew :: IO RadioMenuItem
-- | Creates a new <a>RadioMenuItem</a> whose child is a simple
-- <a>Label</a>.
radioMenuItemNewWithLabel :: GlibString string => string -> IO RadioMenuItem
-- | Creates a new <a>RadioMenuItem</a> containing a label. The label will
-- be created using <tt>labelNewWithMnemonic</tt>, so underscores in
-- <tt>label</tt> indicate the mnemonic for the menu item.
radioMenuItemNewWithMnemonic :: GlibString string => string -> IO RadioMenuItem
-- | Create a new radio button, adding it to the same group as the group to
-- which <tt>groupMember</tt> belongs.
radioMenuItemNewFromWidget :: RadioMenuItem -> IO RadioMenuItem
-- | Create a new radio button with a label, adding it to the same group as
-- the group to which <tt>groupMember</tt> belongs.
radioMenuItemNewWithLabelFromWidget :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
-- | Create a new radio button with a label and attach it to the group of
-- another radio button. Underscores in the label string indicate the
-- mnemonic for the menu item.
radioMenuItemNewWithMnemonicFromWidget :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
-- | Alias for <a>radioMenuItemNewFromWidget</a>.
radioMenuItemNewJoinGroup :: RadioMenuItem -> IO RadioMenuItem
-- | Alias for <a>radioMenuItemNewWithLabelFromWidget</a>.
radioMenuItemNewJoinGroupWithLabel :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
-- | Alias for <a>radioMenuItemNewWithMnemonicFromWidget</a>.
radioMenuItemNewJoinGroupWithMnemonic :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
-- | A toolbar item that contains a radio button
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.RadioToolButton
data RadioToolButton
class ToggleToolButtonClass o => RadioToolButtonClass o
castToRadioToolButton :: GObjectClass obj => obj -> RadioToolButton
gTypeRadioToolButton :: GType
toRadioToolButton :: RadioToolButtonClass o => o -> RadioToolButton
-- | Creates a new <a>RadioToolButton</a>, creating a new group.
radioToolButtonNew :: IO RadioToolButton
-- | Creates a new <a>RadioToolButton</a>, creating a new group. The new
-- <a>RadioToolButton</a> will contain an icon and label from the stock
-- item indicated by <tt>stockId</tt>.
radioToolButtonNewFromStock :: StockId -> IO RadioToolButton
-- | Creates a new <a>RadioToolButton</a> adding it to the same group as
-- the group to which <tt>groupMember</tt> belongs.
radioToolButtonNewFromWidget :: RadioToolButtonClass groupMember => groupMember -> IO RadioToolButton
-- | Creates a new <a>RadioToolButton</a> adding it to the same group as
-- the group to which <tt>groupMember</tt> belongs. The new
-- <a>RadioToolButton</a> will contain an icon and label from the stock
-- item indicated by <tt>stockId</tt>.
radioToolButtonNewWithStockFromWidget :: RadioToolButtonClass groupMember => groupMember -> StockId -> IO RadioToolButton
-- | Returns the radio button group <tt>button</tt> belongs to.
radioToolButtonGetGroup :: RadioToolButtonClass self => self -> IO [RadioToolButton]
-- | Adds <tt>button</tt> to <tt>group</tt>, removing it from the group it
-- belonged to before.
radioToolButtonSetGroup :: RadioToolButtonClass self => self -> RadioToolButton -> IO ()
-- | Sets a new group for a radio tool button.
radioToolButtonGroup :: RadioToolButtonClass self => ReadWriteAttr self [RadioToolButton] RadioToolButton
-- | A separator used in menus
module Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem
data SeparatorMenuItem
class MenuItemClass o => SeparatorMenuItemClass o
castToSeparatorMenuItem :: GObjectClass obj => obj -> SeparatorMenuItem
gTypeSeparatorMenuItem :: GType
toSeparatorMenuItem :: SeparatorMenuItemClass o => o -> SeparatorMenuItem
-- | Creates a new <a>SeparatorMenuItem</a>.
separatorMenuItemNew :: IO SeparatorMenuItem
-- | A toolbar item that separates groups of other toolbar items
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.SeparatorToolItem
data SeparatorToolItem
class ToolItemClass o => SeparatorToolItemClass o
castToSeparatorToolItem :: GObjectClass obj => obj -> SeparatorToolItem
gTypeSeparatorToolItem :: GType
toSeparatorToolItem :: SeparatorToolItemClass o => o -> SeparatorToolItem
-- | Create a new <a>SeparatorToolItem</a>
separatorToolItemNew :: IO SeparatorToolItem
-- | Whether the separator tool item is drawn as a vertical line, or just
-- blank. Setting this <tt>False</tt> along with <a>toolItemSetExpand</a>
-- is useful to create an item that forces following items to the end of
-- the toolbar.
separatorToolItemSetDraw :: SeparatorToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the separator tool item is drawn as a line, or just
-- blank. See <a>separatorToolItemSetDraw</a>.
separatorToolItemGetDraw :: SeparatorToolItemClass self => self -> IO Bool
-- | Whether the separator is drawn, or just blank.
--
-- Default value: <tt>True</tt>
separatorToolItemDraw :: SeparatorToolItemClass self => Attr self Bool
-- | A menu item used to tear off and reattach its menu
module Graphics.UI.Gtk.MenuComboToolbar.TearoffMenuItem
data TearoffMenuItem
class MenuItemClass o => TearoffMenuItemClass o
castToTearoffMenuItem :: GObjectClass obj => obj -> TearoffMenuItem
gTypeTearoffMenuItem :: GType
toTearoffMenuItem :: TearoffMenuItemClass o => o -> TearoffMenuItem
-- | Creates a new <a>TearoffMenuItem</a>.
tearoffMenuItemNew :: IO TearoffMenuItem
-- | A <a>ToolItem</a> containing a toggle button
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton
data ToggleToolButton
class ToolButtonClass o => ToggleToolButtonClass o
castToToggleToolButton :: GObjectClass obj => obj -> ToggleToolButton
gTypeToggleToolButton :: GType
toToggleToolButton :: ToggleToolButtonClass o => o -> ToggleToolButton
-- | Returns a new <a>ToggleToolButton</a>
toggleToolButtonNew :: IO ToggleToolButton
-- | Creates a new <a>ToggleToolButton</a> containing the image and text
-- from a stock item.
--
-- It is an error if <tt>stockId</tt> is not a name of a stock item.
toggleToolButtonNewFromStock :: StockId -> IO ToggleToolButton
-- | Sets the status of the toggle tool button. Set to <tt>True</tt> if you
-- want the <a>ToggleButton</a> to be 'pressed in', and <tt>False</tt> to
-- raise it. This action causes the toggled signal to be emitted.
toggleToolButtonSetActive :: ToggleToolButtonClass self => self -> Bool -> IO ()
-- | Queries a <a>ToggleToolButton</a> and returns its current state.
-- Returns <tt>True</tt> if the toggle button is pressed in and
-- <tt>False</tt> if it is raised.
toggleToolButtonGetActive :: ToggleToolButtonClass self => self -> IO Bool
-- | If the toggle tool button should be pressed in or not.
--
-- Default value: <tt>False</tt>
toggleToolButtonActive :: ToggleToolButtonClass self => Attr self Bool
-- | Emitted whenever the toggle tool button changes state.
onToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self)
-- | Emitted whenever the toggle tool button changes state.
afterToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self)
-- | A <a>ToolItem</a> subclass that displays buttons
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.ToolButton
data ToolButton
class ToolItemClass o => ToolButtonClass o
castToToolButton :: GObjectClass obj => obj -> ToolButton
gTypeToolButton :: GType
toToolButton :: ToolButtonClass o => o -> ToolButton
-- | Creates a new <a>ToolButton</a> using <tt>iconWidget</tt> as icon and
-- <tt>label</tt> as label.
toolButtonNew :: (WidgetClass iconWidget, GlibString string) => Maybe iconWidget -> Maybe string -> IO ToolButton
-- | Creates a new <a>ToolButton</a> containing the image and text from a
-- stock item.
--
-- It is an error if <tt>stockId</tt> is not a name of a stock item.
toolButtonNewFromStock :: StockId -> IO ToolButton
-- | Sets <tt>label</tt> as the label used for the tool button. The "label"
-- property only has an effect if not overridden by a
-- non-<tt>Nothing</tt> "label_widget" property. If both the
-- "label_widget" and "label" properties are <tt>Nothing</tt>, the label
-- is determined by the "stock_id" property. If the "stock_id" property
-- is also <tt>Nothing</tt>, <tt>button</tt> will not have a label.
toolButtonSetLabel :: (ToolButtonClass self, GlibString string) => self -> Maybe string -> IO ()
-- | Returns the label used by the tool button, or <tt>Nothing</tt> if the
-- tool button doesn't have a label. or uses a the label from a stock
-- item.
toolButtonGetLabel :: (ToolButtonClass self, GlibString string) => self -> IO (Maybe string)
-- | If set, an underline in the label property indicates that the next
-- character should be used for the mnemonic accelerator key in the
-- overflow menu. For example, if the label property is "_Open" and
-- <tt>useUnderline</tt> is <tt>True</tt>, the label on the tool button
-- will be "Open" and the item on the overflow menu will have an
-- underlined 'O'.
--
-- Labels shown on tool buttons never have mnemonics on them; this
-- property only affects the menu item on the overflow menu.
toolButtonSetUseUnderline :: ToolButtonClass self => self -> Bool -> IO ()
-- | Returns whether underscores in the label property are used as
-- mnemonics on menu items on the overflow menu. See
-- <a>toolButtonSetUseUnderline</a>.
toolButtonGetUseUnderline :: ToolButtonClass self => self -> IO Bool
-- | Sets the name of the stock item. See <a>toolButtonNewFromStock</a>.
-- The stock_id property only has an effect if not overridden by
-- non-<tt>Nothing</tt> "label" and "icon_widget" properties.
toolButtonSetStockId :: ToolButtonClass self => self -> Maybe StockId -> IO ()
-- | Returns the name of the stock item. See <a>toolButtonSetStockId</a>.
toolButtonGetStockId :: ToolButtonClass self => self -> IO (Maybe StockId)
-- | Sets <tt>icon</tt> as the widget used as icon on <tt>button</tt>. If
-- <tt>iconWidget</tt> is <tt>Nothing</tt> the icon is determined by the
-- "stock_id" property. If the "stock_id" property is also
-- <tt>Nothing</tt>, the button will not have an icon.
toolButtonSetIconWidget :: (ToolButtonClass self, WidgetClass iconWidget) => self -> Maybe iconWidget -> IO ()
-- | Return the widget used as icon widget on <tt>button</tt>. See
-- <a>toolButtonSetIconWidget</a>.
toolButtonGetIconWidget :: ToolButtonClass self => self -> IO (Maybe Widget)
-- | Sets <tt>labelWidget</tt> as the widget that will be used as the label
-- for <tt>button</tt>. If <tt>labelWidget</tt> is <tt>Nothing</tt> the
-- "label" property is used as label. If "label" is also
-- <tt>Nothing</tt>, the label in the stock item determined by the
-- "stock_id" property is used as label. If "stock_id" is also
-- <tt>Nothing</tt>, <tt>button</tt> does not have a label.
toolButtonSetLabelWidget :: (ToolButtonClass self, WidgetClass labelWidget) => self -> Maybe labelWidget -> IO ()
-- | Returns the widget used as label on <tt>button</tt>. See
-- <a>toolButtonSetLabelWidget</a>.
toolButtonGetLabelWidget :: ToolButtonClass self => self -> IO (Maybe Widget)
-- | Sets the icon for the tool button from a named themed icon. See the
-- docs for <a>IconTheme</a> for more details. The "icon_name" property
-- only has an effect if not overridden by the "label", "icon_widget" and
-- "stock_id" properties.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
toolButtonSetIconName :: (ToolButtonClass self, GlibString string) => self -> string -> IO ()
-- | Returns the name of the themed icon for the tool button, see
-- <a>toolButtonSetIconName</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
toolButtonGetIconName :: (ToolButtonClass self, GlibString string) => self -> IO string
-- | Text to show in the item.
--
-- Default value: <tt>Nothing</tt>
toolButtonLabel :: (ToolButtonClass self, GlibString string) => Attr self (Maybe string)
-- | If set, an underline in the label property indicates that the next
-- character should be used for the mnemonic accelerator key in the
-- overflow menu.
--
-- Default value: <tt>False</tt>
toolButtonUseUnderline :: ToolButtonClass self => Attr self Bool
-- | Widget to use as the item label.
toolButtonLabelWidget :: (ToolButtonClass self, WidgetClass labelWidget) => ReadWriteAttr self (Maybe Widget) (Maybe labelWidget)
-- | The stock icon displayed on the item.
--
-- Default value: <tt>Nothing</tt>
toolButtonStockId :: ToolButtonClass self => ReadWriteAttr self (Maybe StockId) (Maybe StockId)
-- | The name of the themed icon displayed on the item. This property only
-- has an effect if not overridden by "label", "icon_widget" or
-- "stock_id" properties.
--
-- Default value: ""
toolButtonIconName :: (ToolButtonClass self, GlibString string) => Attr self string
-- | Icon widget to display in the item.
toolButtonIconWidget :: (ToolButtonClass self, WidgetClass iconWidget) => ReadWriteAttr self (Maybe Widget) (Maybe iconWidget)
-- | This signal is emitted when the tool button is clicked with the mouse
-- or activated with the keyboard.
onToolButtonClicked :: ToolButtonClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is emitted when the tool button is clicked with the mouse
-- or activated with the keyboard.
afterToolButtonClicked :: ToolButtonClass self => self -> IO () -> IO (ConnectId self)
-- | The base class of widgets that can be added to <a>Toolbar</a>
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.ToolItem
data ToolItem
class BinClass o => ToolItemClass o
castToToolItem :: GObjectClass obj => obj -> ToolItem
gTypeToolItem :: GType
toToolItem :: ToolItemClass o => o -> ToolItem
-- | Creates a new <a>ToolItem</a>
toolItemNew :: IO ToolItem
-- | Sets whether the tool item is to be allocated the same size as other
-- homogeneous items. The effect is that all homogeneous items will have
-- the same width as the widest of the items.
toolItemSetHomogeneous :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item is the same size as other homogeneous
-- items. See <a>toolItemSetHomogeneous</a>.
toolItemGetHomogeneous :: ToolItemClass self => self -> IO Bool
-- | Sets whether the tool item is allocated extra space when there is more
-- room on the toolbar then needed for the items. The effect is that the
-- item gets bigger when the toolbar gets bigger and smaller when the
-- toolbar gets smaller.
toolItemSetExpand :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item is allocated extra space. See
-- <a>toolItemSetExpand</a>.
toolItemGetExpand :: ToolItemClass self => self -> IO Bool
-- | Sets whether toolitem has a drag window. When <tt>True</tt> the tool
-- item can be used as a drag source through <tt>dragSourceSet</tt>. When
-- the tool item has a drag window it will intercept all events, even
-- those that would otherwise be sent to a child widget.
toolItemSetUseDragWindow :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item has a drag window. See
-- <a>toolItemSetUseDragWindow</a>.
toolItemGetUseDragWindow :: ToolItemClass self => self -> IO Bool
-- | Sets whether the tool item is visible when the toolbar is docked
-- horizontally.
toolItemSetVisibleHorizontal :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item is visible on toolbars that are docked
-- horizontally.
toolItemGetVisibleHorizontal :: ToolItemClass self => self -> IO Bool
-- | Sets whether the tool item is visible when the toolbar is docked
-- vertically. Some tool items, such as text entries, are too wide to be
-- useful on a vertically docked toolbar. If <tt>False</tt> the tool item
-- will not appear on toolbars that are docked vertically.
toolItemSetVisibleVertical :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item is visible when the toolbar is docked
-- vertically. See <a>toolItemSetVisibleVertical</a>.
toolItemGetVisibleVertical :: ToolItemClass self => self -> IO Bool
-- | Sets whether the tool item should be considered important. The
-- <a>ToolButton</a> class uses this property to determine whether to
-- show or hide its label when the toolbar style is
-- <a>ToolbarBothHoriz</a>. The result is that only tool buttons with the
-- "is important" property set have labels, an effect known as "priority
-- text".
toolItemSetIsImportant :: ToolItemClass self => self -> Bool -> IO ()
-- | Returns whether the tool item is considered important. See
-- <a>toolItemSetIsImportant</a>
toolItemGetIsImportant :: ToolItemClass self => self -> IO Bool
-- | The size of an icon in pixels.
--
-- <ul>
-- <li>This enumeration contains one case that is not exported and which
-- is used when new sizes are registered using
-- <a>iconSizeRegister</a>.</li>
-- <li>Applying <a>show</a> to this type will reveal the name of the size
-- that is registered with Gtk+.</li>
-- </ul>
data IconSize
-- | Returns the icon size used for the tool item.
toolItemGetIconSize :: ToolItemClass self => self -> IO IconSize
-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation
-- | Returns the orientation used for the tool item.
toolItemGetOrientation :: ToolItemClass self => self -> IO Orientation
-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle
-- | Returns the toolbar style used for the tool item.
--
-- Possibilities are: [<a>ToolbarBoth</a>] meaning the tool item should
-- show both an icon and a label, stacked vertically
-- [<a>ToolbarIcons</a>] meaning the toolbar shows only icons
-- [<a>ToolbarText</a>] meaning the tool item should only show text
-- [<a>ToolbarBothHoriz</a>] meaning the tool item should show both an
-- icon and a label, arranged horizontally
toolItemGetToolbarStyle :: ToolItemClass self => self -> IO ToolbarStyle
-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle
-- | Returns the relief style of the tool item. See
-- <tt>buttonSetReliefStyle</tt>.
toolItemGetReliefStyle :: ToolItemClass self => self -> IO ReliefStyle
-- | Returns the <a>MenuItem</a> that was last set by
-- <a>toolItemSetProxyMenuItem</a>, ie. the <a>MenuItem</a> that is going
-- to appear in the overflow menu.
toolItemRetrieveProxyMenuItem :: ToolItemClass self => self -> IO (Maybe Widget)
-- | If <tt>menuItemId</tt> matches the string passed to
-- <a>toolItemSetProxyMenuItem</a> return the corresponding
-- <a>MenuItem</a>.
toolItemGetProxyMenuItem :: (ToolItemClass self, GlibString string) => self -> string -> IO (Maybe Widget)
-- | Sets the <a>MenuItem</a> used in the toolbar overflow menu. The
-- <tt>menuItemId</tt> is used to identify the caller of this function
-- and should also be used with <a>toolItemGetProxyMenuItem</a>.
toolItemSetProxyMenuItem :: (ToolItemClass self, MenuItemClass menuItem, GlibString string) => self -> string -> menuItem -> IO ()
-- | Returns the ellipsize mode used for <tt>toolItem</tt>. Custom
-- subclasses of <a>ToolItem</a> should call this function to find out
-- how text should be ellipsized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGetEllipsizeMode :: ToolItemClass item => item -> IO EllipsizeMode
-- | Returns the text alignment used for <tt>toolItem</tt>. Custom
-- subclasses of <a>ToolItem</a> should call this function to find out
-- how text should be aligned.
toolItemGetTextAlignment :: ToolItemClass item => item -> IO Double
-- | Returns the text orientation used for <tt>toolItem</tt>. Custom
-- subclasses of <a>ToolItem</a> should call this function to find out
-- how text should be orientated.
toolItemGetTextOrientation :: ToolItemClass item => item -> IO Orientation
-- | Returns the size group used for labels in <tt>toolItem</tt>. Custom
-- subclasses of <a>ToolItem</a> should call this function and use the
-- size group for labels.
toolItemGetTextSizeGroup :: ToolItemClass item => item -> IO SizeGroup
-- | Whether the toolbar item is visible when the toolbar is in a
-- horizontal orientation.
--
-- Default value: <tt>True</tt>
toolItemVisibleHorizontal :: ToolItemClass self => Attr self Bool
-- | Whether the toolbar item is visible when the toolbar is in a vertical
-- orientation.
--
-- Default value: <tt>True</tt>
toolItemVisibleVertical :: ToolItemClass self => Attr self Bool
-- | Whether the toolbar item is considered important. When <tt>True</tt>,
-- toolbar buttons show text in <a>ToolbarBothHoriz</a> mode.
--
-- Default value: <tt>False</tt>
toolItemIsImportant :: ToolItemClass self => Attr self Bool
-- | 'expand' property. See <a>toolItemGetExpand</a> and
-- <a>toolItemSetExpand</a>
toolItemExpand :: ToolItemClass self => Attr self Bool
-- | 'homogeneous' property. See <a>toolItemGetHomogeneous</a> and
-- <a>toolItemSetHomogeneous</a>
toolItemHomogeneous :: ToolItemClass self => Attr self Bool
-- | 'useDragWindow' property. See <a>toolItemGetUseDragWindow</a> and
-- <a>toolItemSetUseDragWindow</a>
toolItemUseDragWindow :: ToolItemClass self => Attr self Bool
-- | A sub container used in a tool palette
--
-- <ul>
-- <li>Module available since Gtk+ version 2.20</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.ToolItemGroup
data ToolItemGroup
class ContainerClass o => ToolItemGroupClass o
castToToolItemGroup :: GObjectClass obj => obj -> ToolItemGroup
toToolItemGroup :: ToolItemGroupClass o => o -> ToolItemGroup
-- | Creates a new tool item group with label label.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupNew :: GlibString string => string -> IO ToolItemGroup
-- | Gets the tool item at position (x, y).
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupGetDropItem :: ToolItemGroupClass self => self -> (Int, Int) -> IO ToolItem
-- | Gets the position of item in group as index.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupGetItemPosition :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> IO Int
-- | Gets the number of tool items in group.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupGetNItems :: ToolItemGroupClass group => group -> IO Int
-- | Gets the tool item at index in group.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupGetNthItem :: ToolItemGroupClass group => group -> Int -> IO ToolItem
-- | Inserts item at position in the list of children of group.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupInsert :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> Int -> IO ()
-- | Sets the position of item in the list of children of group.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupSetItemPosition :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> Int -> IO ()
-- | Wether the group has been collapsed and items are hidden.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupCollapsed :: ToolItemGroupClass group => Attr group Bool
-- | Ellipsize for item group headers.
--
-- Default value: EllipsizeNone
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupEllipsize :: ToolItemGroupClass group => Attr group EllipsizeMode
-- | Relief of the group header button.
--
-- Default value: <a>ReliefNormal</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupHeaderRelief :: ToolItemGroupClass group => Attr group ReliefStyle
-- | The human-readable title of this item group.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupLabel :: GlibString string => ToolItemGroupClass group => Attr group string
-- | A widget to display in place of the usual label.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupLabelWidget :: ToolItemGroupClass group => Attr group Widget
-- | Whether the item should receive extra space when the group grows.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupChildExpand :: ToolItemGroupClass group => Attr group Bool
-- | Whether the item should fill the available space.
--
-- Default value: <a>True</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupChildFill :: ToolItemGroupClass group => Attr group Bool
-- | Whether the item should be the same size as other homogeneous items.
--
-- Default value: <a>True</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupChildHomogeneous :: ToolItemGroupClass group => Attr group Bool
-- | Whether the item should start a new row.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupChildNewRow :: ToolItemGroupClass group => Attr group Bool
-- | Position of the item within this group.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolItemGroupChildPosition :: ToolItemGroupClass group => Attr group Int
-- | A tool palette with categories
--
-- <ul>
-- <li>Module available since Gtk+ version 2.20</li>
-- </ul>
--
-- TODO:
--
-- gtk_tool_palette_add_drag_dest gtk_tool_palette_get_drag_item
-- gtk_tool_palette_get_drag_target_group
-- gtk_tool_palette_get_drag_target_item gtk_tool_palette_get_drop_group
-- gtk_tool_palette_get_drop_item
module Graphics.UI.Gtk.MenuComboToolbar.ToolPalette
data ToolPalette
class ContainerClass o => ToolPaletteClass o
castToToolPalette :: GObjectClass obj => obj -> ToolPalette
toToolPalette :: ToolPaletteClass o => o -> ToolPalette
-- | Flags used to specify the supported drag targets.
data ToolPaletteDragTargets
ToolPaletteDragItems :: ToolPaletteDragTargets
ToolPaletteDragGroups :: ToolPaletteDragTargets
toolPaletteNew :: IO ToolPalette
-- | Unsets the tool palette icon size set with
-- <tt>toolPaletteSetIconSize</tt>, so that user preferences will be used
-- to determine the icon size.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteUnsetIconSize :: ToolPaletteClass self => self -> IO ()
-- | Unsets a toolbar style set with <tt>toolPaletteSetStyle</tt>, so that
-- user preferences will be used to determine the toolbar style.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteUnsetStyle :: ToolPaletteClass self => self -> IO ()
-- | Gets the horizontal adjustment of the tool palette.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteGetHAdjustment :: ToolPaletteClass self => self -> IO Adjustment
-- | Gets the vertical adjustment of the tool palette.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteGetVAdjustment :: ToolPaletteClass self => self -> IO Adjustment
-- | Sets the position of the group as an index of the tool palette. If
-- position is 0 the group will become the first child, if position is -1
-- it will become the last child.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteSetGroupPosition :: (ToolPaletteClass palette, ToolItemGroupClass group) => palette -> group -> Int -> IO ()
-- | Gets the position of group in palette as index. See
-- <a>toolPaletteSetGroupPosition</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteGetGroupPosition :: (ToolPaletteClass palette, ToolItemGroupClass group) => palette -> group -> IO Int
-- | The size of the icons in a tool palette is normally determined by the
-- <tt>toolbarIconSize</tt> setting. When this property is set, it
-- overrides the setting.
--
-- This should only be used for special-purpose tool palettes, normal
-- application tool palettes should respect the user preferences for the
-- size of icons.
--
-- Default value: <a>IconSizeSmallToolbar</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteIconSize :: ToolPaletteClass self => Attr self IconSize
-- | Is <a>True</a> if the <tt>iconSize</tt> property has been set.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteIconSizeSet :: ToolPaletteClass self => Attr self Bool
-- | The style of items in the tool palette.
--
-- Default value: <a>ToolbarIcons</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteToolbarStyle :: ToolPaletteClass self => Attr self ToolbarStyle
-- | Whether the item group should be the only one that is expanded at a
-- given time.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteChildExclusive :: ToolPaletteClass self => Attr self Bool
-- | Whether the item group should receive extra space when the palette
-- grows. at a given time.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteChildExpand :: ToolPaletteClass self => Attr self Bool
-- | Set the scroll adjustments for the viewport. Usually scrolled
-- containers like <a>ScrolledWindow</a> will emit this signal to connect
-- two instances of <a>Scrollbar</a> to the scroll directions of the
-- <tt>Toolpalette</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
toolPaletteSetScrollAdjustments :: ToolPaletteClass self => Signal self (Adjustment -> Adjustment -> IO ())
instance GHC.Classes.Eq Graphics.UI.Gtk.MenuComboToolbar.ToolPalette.ToolPaletteDragTargets
instance GHC.Enum.Enum Graphics.UI.Gtk.MenuComboToolbar.ToolPalette.ToolPaletteDragTargets
-- | A <tt>Object</tt> representing an adjustable bounded value
module Graphics.UI.Gtk.Misc.Accessible
data Accessible
class AtkObjectClass o => AccessibleClass o
castToAccessible :: GObjectClass obj => obj -> Accessible
gTypeAccessible :: GType
toAccessible :: AccessibleClass o => o -> Accessible
-- | Gets the <a>Widget</a> corresponding to the <a>Accessible</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
accessibleGetWidget :: AccessibleClass self => self -> IO (Maybe Widget)
-- | Sets the <a>Widget</a> corresponding to the <a>Accessible</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
accessibleSetWidget :: (AccessibleClass self, WidgetClass widget) => self -> widget -> IO ()
-- | A <tt>Object</tt> representing an adjustable bounded value
module Graphics.UI.Gtk.Misc.Adjustment
data Adjustment
class GObjectClass o => AdjustmentClass o
castToAdjustment :: GObjectClass obj => obj -> Adjustment
gTypeAdjustment :: GType
toAdjustment :: AdjustmentClass o => o -> Adjustment
-- | Creates a new <a>Adjustment</a>.
--
-- The creation function take every value that is contained in the
-- object: <tt>value</tt> is the initial value and should be between the
-- <tt>upper</tt> and <tt>lower</tt> bounds of the slider. Clicking on
-- the arrows increases this value by <tt>stepIncrement</tt>. Clicking in
-- the slider advances by <tt>pageIncrement</tt>. The <tt>pageSize</tt>
-- is needed to determine if the end of the slider is still in the range.
adjustmentNew :: Double -> Double -> Double -> Double -> Double -> Double -> IO Adjustment
-- | Set the lower value.
adjustmentSetLower :: Adjustment -> Double -> IO ()
-- | Retrieve the lower value.
adjustmentGetLower :: Adjustment -> IO Double
-- | Set the page increment value.
adjustmentSetPageIncrement :: Adjustment -> Double -> IO ()
-- | Retrieve the pageincrement value.
adjustmentGetPageIncrement :: Adjustment -> IO Double
-- | Set the page size value.
adjustmentSetPageSize :: Adjustment -> Double -> IO ()
-- | Retrieve the page size value.
adjustmentGetPageSize :: Adjustment -> IO Double
-- | Set the step-increment value.
adjustmentSetStepIncrement :: Adjustment -> Double -> IO ()
-- | Retrieve the step-increment value.
adjustmentGetStepIncrement :: Adjustment -> IO Double
-- | Set the upper value.
adjustmentSetUpper :: Adjustment -> Double -> IO ()
-- | Retrieve the upper value.
adjustmentGetUpper :: Adjustment -> IO Double
-- | Sets the current value of the Adjustment object. The value is clamped
-- to lie between the adjustment's <tt>lower</tt> and <tt>upper</tt>
-- values. See <a>adjustmentNew</a> for details of these properties.
--
-- Note that for adjustments which are used in a <a>Scrollbar</a>, the
-- effective range of allowed values goes from <tt>lower</tt> to
-- <tt>upper - page_size</tt>.
adjustmentSetValue :: Adjustment -> Double -> IO ()
-- | Gets the current value of the adjustment. See
-- <a>adjustmentSetValue</a>.
adjustmentGetValue :: Adjustment -> IO Double
-- | Updates the <a>Adjustment</a> <tt>value</tt> to ensure that the range
-- between <tt>lower</tt> and <tt>upper</tt> is in the current page (i.e.
-- between <tt>value</tt> and <tt>value + pageSize</tt>). If the range is
-- larger than the page size, then only the start of it will be in the
-- current page. A "changed" signal will be emitted if the value is
-- changed.
adjustmentClampPage :: Adjustment -> Double -> Double -> IO ()
-- | Emit the <a>onAdjChanged</a> signal.
adjustmentAdjChanged :: Adjustment -> IO ()
-- | Emit the <a>onValueChanged</a> signal.
--
-- <ul>
-- <li>When adjusting the or bounds, this function can be called to
-- enforce a visual update of the containing widget.</li>
-- </ul>
adjustmentValueChanged :: Adjustment -> IO ()
-- | The value of the adjustment.
--
-- Default value: 0
adjustmentValue :: Attr Adjustment Double
-- | The minimum value of the adjustment.
--
-- Default value: 0
adjustmentLower :: Attr Adjustment Double
-- | The maximum value of the adjustment. Note that values will be
-- restricted by <tt>upper - page-size</tt> if the page-size property is
-- nonzero.
--
-- Default value: 0
adjustmentUpper :: Attr Adjustment Double
-- | The step increment of the adjustment.
--
-- Default value: 0
adjustmentStepIncrement :: Attr Adjustment Double
-- | The page increment of the adjustment.
--
-- Default value: 0
adjustmentPageIncrement :: Attr Adjustment Double
-- | The page size of the adjustment. Note that the page-size is irrelevant
-- and should be set to zero if the adjustment is used for a simple
-- scalar value, e.g. in a <a>SpinButton</a>.
--
-- Default value: 0
adjustmentPageSize :: Attr Adjustment Double
-- | Emitted when one or more of the <a>Adjustment</a> fields have been
-- changed, other than the value field.
onAdjChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)
-- | Emitted when one or more of the <a>Adjustment</a> fields have been
-- changed, other than the value field.
afterAdjChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)
-- | Emitted when the <a>Adjustment</a> value field has been changed.
onValueChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)
-- | Emitted when the <a>Adjustment</a> value field has been changed.
afterValueChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)
-- | Displays an arrow
module Graphics.UI.Gtk.Misc.Arrow
data Arrow
class MiscClass o => ArrowClass o
castToArrow :: GObjectClass obj => obj -> Arrow
gTypeArrow :: GType
toArrow :: ArrowClass o => o -> Arrow
-- | Arrow directions for the arrow widget
data ArrowType
ArrowUp :: ArrowType
ArrowDown :: ArrowType
ArrowLeft :: ArrowType
ArrowRight :: ArrowType
ArrowNone :: ArrowType
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
-- | Creates a new arrow widget.
arrowNew :: ArrowType -> ShadowType -> IO Arrow
-- | Sets the direction and style of the <a>Arrow</a>.
arrowSet :: ArrowClass self => self -> ArrowType -> ShadowType -> IO ()
-- | The direction the arrow should point.
--
-- Default value: <a>ArrowRight</a>
arrowArrowType :: ArrowClass self => Attr self ArrowType
-- | Appearance of the shadow surrounding the arrow.
--
-- Default value: <a>ShadowOut</a>
arrowShadowType :: ArrowClass self => Attr self ShadowType
-- | Displays a calendar and allows the user to select a date
module Graphics.UI.Gtk.Misc.Calendar
data Calendar
class WidgetClass o => CalendarClass o
castToCalendar :: GObjectClass obj => obj -> Calendar
gTypeCalendar :: GType
toCalendar :: CalendarClass o => o -> Calendar
-- | Specify which items of a calendar should be displayed.
data CalendarDisplayOptions
CalendarShowHeading :: CalendarDisplayOptions
CalendarShowDayNames :: CalendarDisplayOptions
CalendarNoMonthChange :: CalendarDisplayOptions
CalendarShowWeekNumbers :: CalendarDisplayOptions
CalendarShowDetails :: CalendarDisplayOptions
-- | Creates a new calendar, with the current date being selected.
calendarNew :: IO Calendar
-- | Shifts the calendar to a different month.
calendarSelectMonth :: CalendarClass self => self -> Int -> Int -> IO ()
-- | Selects a day from the current month.
calendarSelectDay :: CalendarClass self => self -> Int -> IO ()
-- | Places a visual marker on a particular day.
calendarMarkDay :: CalendarClass self => self -> Int -> IO ()
-- | Removes the visual marker from a particular day.
calendarUnmarkDay :: CalendarClass self => self -> Int -> IO ()
-- | Remove all visual markers.
calendarClearMarks :: CalendarClass self => self -> IO ()
-- | Sets display options (whether to display the heading and the month
-- headings).
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
calendarSetDisplayOptions :: CalendarClass self => self -> [CalendarDisplayOptions] -> IO ()
-- | Returns the current display options for the calendar.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
calendarGetDisplayOptions :: CalendarClass self => self -> IO [CalendarDisplayOptions]
-- | Retrieve the currently selected date.
calendarGetDate :: CalendarClass self => self -> IO (Int, Int, Int)
-- | The selected year.
--
-- Allowed values: >= 0
--
-- Default value: 0
calendarYear :: CalendarClass self => Attr self Int
-- | The selected month (as a number between 0 and 11).
--
-- Allowed values: [0,11]
--
-- Default value: 0
calendarMonth :: CalendarClass self => Attr self Int
-- | The selected day (as a number between 1 and 31, or 0 to unselect the
-- currently selected day).
--
-- Allowed values: [0,31]
--
-- Default value: 0
calendarDay :: CalendarClass self => Attr self Int
-- | Determines whether a heading is displayed.
--
-- Default value: <tt>True</tt>
calendarShowHeading :: CalendarClass self => Attr self Bool
-- | Determines whether day names are displayed.
--
-- Default value: <tt>True</tt>
calendarShowDayNames :: CalendarClass self => Attr self Bool
-- | Determines whether the selected month can be changed.
--
-- Default value: <tt>False</tt>
calendarNoMonthChange :: CalendarClass self => Attr self Bool
-- | Determines whether week numbers are displayed.
--
-- Default value: <tt>False</tt>
calendarShowWeekNumbers :: CalendarClass self => Attr self Bool
-- | 'displayOptions' property. See <a>calendarGetDisplayOptions</a> and
-- <a>calendarSetDisplayOptions</a>
--
-- calendarDisplayOptions :: CalendarClass self => Attr self
-- [CalendarDisplayOptions] calendarDisplayOptions = newAttr
-- calendarGetDisplayOptions calendarSetDisplayOptions
--
-- Emitted when a day was selected.
onDaySelected :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | 'displayOptions' property. See <a>calendarGetDisplayOptions</a> and
-- <a>calendarSetDisplayOptions</a>
--
-- calendarDisplayOptions :: CalendarClass self => Attr self
-- [CalendarDisplayOptions] calendarDisplayOptions = newAttr
-- calendarGetDisplayOptions calendarSetDisplayOptions
--
-- Emitted when a day was selected.
afterDaySelected :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | Emitted when a day received a double click.
onDaySelectedDoubleClick :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | Emitted when a day received a double click.
afterDaySelectedDoubleClick :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The month changed.
onMonthChanged :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The month changed.
afterMonthChanged :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The next month was selected.
onNextMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The next month was selected.
afterNextMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The next year was selected.
onNextYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The next year was selected.
afterNextYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The previous month was selected.
onPrevMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The previous month was selected.
afterPrevMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The previous year was selected.
onPrevYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | The previous year was selected.
afterPrevYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)
-- | A widget for custom user interface elements
module Graphics.UI.Gtk.Misc.DrawingArea
data DrawingArea
class WidgetClass o => DrawingAreaClass o
castToDrawingArea :: GObjectClass obj => obj -> DrawingArea
gTypeDrawingArea :: GType
toDrawingArea :: DrawingAreaClass o => o -> DrawingArea
-- | Creates a new drawing area.
drawingAreaNew :: IO DrawingArea
-- | A widget used to catch events for widgets which do not have their own
-- window
module Graphics.UI.Gtk.Misc.EventBox
data EventBox
class BinClass o => EventBoxClass o
castToEventBox :: GObjectClass obj => obj -> EventBox
gTypeEventBox :: GType
toEventBox :: EventBoxClass o => o -> EventBox
-- | Creates a new <a>EventBox</a>.
eventBoxNew :: IO EventBox
-- | Set whether the event box uses a visible or invisible child window.
-- The default is to use visible windows.
--
-- In an invisible window event box, the window that that the event box
-- creates is a "input only" window, which means that it is invisible and
-- only serves to receive events.
--
-- A visible window event box creates a visible ("input output") window
-- that acts as the parent window for all the widgets contained in the
-- event box.
--
-- You should generally make your event box invisible if you just want to
-- trap events. Creating a visible window may cause artifacts that are
-- visible to the user, especially if the user is using a theme with
-- gradients or pixmaps.
--
-- The main reason to create a non input-only event box is if you want to
-- set the background to a different color or draw on it.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
eventBoxSetVisibleWindow :: EventBox -> Bool -> IO ()
-- | Returns whether the event box has a visible window. See
-- <a>eventBoxSetVisibleWindow</a> for details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
eventBoxGetVisibleWindow :: EventBox -> IO Bool
-- | Set whether the event box window is positioned above the windows of
-- its child, as opposed to below it. If the window is above, all events
-- inside the event box will go to the event box. If the window is below,
-- events in windows of child widgets will first got to that widget, and
-- then to its parents.
--
-- The default is to keep the window below the child.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
eventBoxSetAboveChild :: EventBox -> Bool -> IO ()
-- | Returns whether the event box window is above or below the windows of
-- its child. See <a>eventBoxSetAboveChild</a> for details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
eventBoxGetAboveChild :: EventBox -> IO Bool
-- | Whether the event box is visible, as opposed to invisible and only
-- used to trap events.
--
-- Default value: <tt>True</tt>
eventBoxVisibleWindow :: Attr EventBox Bool
-- | Whether the event-trapping window of the eventbox is above the window
-- of the child widget as opposed to below it.
--
-- Default value: <tt>False</tt>
eventBoxAboveChild :: Attr EventBox Bool
-- | A widget for custom drawing with OpenGL
module Graphics.UI.Gtk.Misc.GLArea
data GLArea
class WidgetClass o => GLAreaClass o
castToGLArea :: GObjectClass obj => obj -> GLArea
gTypeGLArea :: GType
toGLArea :: GLAreaClass o => o -> GLArea
-- | Creates a new GLArea widget.
glAreaNew :: IO GLArea
-- | Retrieves the <a>GLContext</a> used by area.
glAreaGetContext :: GLAreaClass self => self -> IO (Maybe GLContext)
-- | Ensures that the <a>GLContext</a> used by area is associated with the
-- GLArea.
--
-- This function is automatically called before emitting the
-- <a>glAreaRender</a> signal, and doesn't normally need to be called by
-- application code.
glAreaMakeCurrent :: GLAreaClass self => self -> IO ()
-- | Marks the currently rendered data (if any) as invalid, and queues a
-- redraw of the widget, ensuring that the <a>glAreaRender</a> signal is
-- emitted during the draw.
--
-- This is only needed when <a>glAreaSetAutoRender</a> has been called
-- with a False value. The default behaviour is to emit
-- <a>glAreaRender</a> on each draw.
glAreaQueueRender :: GLAreaClass self => self -> IO ()
-- | Ensures that the area framebuffer object is made the current draw and
-- read target, and that all the required buffers for the area are
-- created and bound to the frambuffer.
--
-- This function is automatically called before emitting the
-- <a>glAreaRender</a> signal, and doesn't normally need to be called by
-- application code.
glAreaAttachBuffers :: GLAreaClass self => self -> IO ()
-- | If autoRender is True the <a>glAreaRender</a> signal will be emitted
-- every time the widget draws. This is the default and is useful if
-- drawing the widget is faster.
--
-- If autoRender is False the data from previous rendering is kept around
-- and will be used for drawing the widget the next time, unless the
-- window is resized. In order to force a rendering
-- <a>glAreaQueueRender</a> must be called. This mode is useful when the
-- scene changes seldomly, but takes a long time to redraw.
glAreaSetAutoRender :: GLAreaClass self => self -> Bool -> IO ()
-- | Returns whether the area is in auto render mode or not.
glAreaGetAutoRender :: GLAreaClass self => self -> IO Bool
-- | If hasAlpha is True the buffer allocated by the widget will have an
-- alpha channel component, and when rendering to the window the result
-- will be composited over whatever is below the widget.
--
-- If hasAlpha is False there will be no alpha channel, and the buffer
-- will fully replace anything below the widget.
glAreaSetHasAlpha :: GLAreaClass self => self -> Bool -> IO ()
-- | Returns whether the area has an alpha component.
glAreaGetHasAlpha :: GLAreaClass self => self -> IO Bool
-- | If hasDepthBuffer is True the widget will allocate and enable a depth
-- buffer for the target framebuffer. Otherwise there will be none.
glAreaSetHasDepthBuffer :: GLAreaClass self => self -> Bool -> IO ()
-- | Returns whether the area has a depth buffer.
glAreaGetHasDepthBuffer :: GLAreaClass self => self -> IO Bool
-- | If hasStencilBuffer is True the widget will allocate and enable a
-- stencil buffer for the target framebuffer. Otherwise there will be
-- none.
glAreaSetHasStencilBuffer :: GLAreaClass self => self -> Bool -> IO ()
-- | Returns whether the area has a stencil buffer.
glAreaGetHasStencilBuffer :: GLAreaClass self => self -> IO Bool
-- | Retrieves the required version of OpenGL set using
-- <a>glAreaSetRequiredVersion</a>.
glAreaGetRequiredVersion :: GLAreaClass self => self -> IO (Int, Int)
-- | Sets the required version of OpenGL to be used when creating the
-- context for the widget.
--
-- This function must be called before the area has been realized.
glAreaSetRequiredVersion :: GLAreaClass self => self -> Int -> Int -> IO ()
-- | Gets the current error set on the area.
glAreaGetError :: GLAreaClass self => self -> IO (Maybe GError)
-- | If set to True the <a>glAreaRender</a> signal will be emitted every
-- time the widget draws. This is the default and is useful if drawing
-- the widget is faster.
--
-- If set to False the data from previous rendering is kept around and
-- will be used for drawing the widget the next time, unless the window
-- is resized. In order to force a rendering <a>glAreaQueueRender</a>
-- must be called. This mode is useful when the scene changes seldomly,
-- but takes a long time to redraw.
--
-- Default value: True
glAreaAutoRender :: GLAreaClass self => Attr self Bool
-- | The <a>GLContext</a> used by the GLArea widget.
--
-- The GLArea widget is responsible for creating the <a>GLContext</a>
-- instance. If you need to render with other kinds of buffers (stencil,
-- depth, etc), use render buffers.
glAreaContext :: GLAreaClass self => ReadAttr self (Maybe GLContext)
-- | If set to True the buffer allocated by the widget will have an alpha
-- channel component, and when rendering to the window the result will be
-- composited over whatever is below the widget.
--
-- If set to False there will be no alpha channel, and the buffer will
-- fully replace anything below the widget.
--
-- Default value: False
glAreaHasAlpha :: GLAreaClass self => Attr self Bool
-- | If set to True the widget will allocate and enable a depth buffer for
-- the target framebuffer.
--
-- Default value: False
glAreaHasDepthBuffer :: GLAreaClass self => Attr self Bool
-- | If set to True the widget will allocate and enable a stencil buffer
-- for the target framebuffer.
--
-- Default value: False
glAreaHasStencilBuffer :: GLAreaClass self => Attr self Bool
-- | The glAreaResize signal is emitted once when the widget is realized,
-- and then each time the widget is changed while realized. This is
-- useful in order to keep GL state up to date with the widget size, like
-- for instance camera properties which may depend on the width/height
-- ratio.
--
-- The GL context for the area is guaranteed to be current when this
-- signal is emitted.
--
-- The default handler sets up the GL viewport.
glAreaResize :: GLAreaClass glac => Signal glac (Int -> Int -> IO ())
-- | The glAreaRender signal is emitted every time the contents of the
-- GLArea should be redrawn.
--
-- The context is bound to the area prior to emitting this function, and
-- the buffers are painted to the window once the emission terminates.
glAreaRender :: GLAreaClass glac => Signal glac (Maybe GLContext -> IO (Bool))
-- | a widget for detachable window portions
module Graphics.UI.Gtk.Misc.HandleBox
data HandleBox
class BinClass o => HandleBoxClass o
castToHandleBox :: GObjectClass obj => obj -> HandleBox
gTypeHandleBox :: GType
toHandleBox :: HandleBoxClass o => o -> HandleBox
-- | Create a new handle box.
handleBoxNew :: IO HandleBox
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
-- | Sets the type of shadow to be drawn around the border of the handle
-- box.
handleBoxSetShadowType :: HandleBoxClass self => self -> ShadowType -> IO ()
-- | Gets the type of shadow drawn around the handle box. See
-- <a>handleBoxSetShadowType</a>.
handleBoxGetShadowType :: HandleBoxClass self => self -> IO ShadowType
-- | Position a scale's value is drawn relative to the trough
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType
-- | Sets the side of the handlebox where the handle is drawn.
handleBoxSetHandlePosition :: HandleBoxClass self => self -> PositionType -> IO ()
-- | Gets the handle position of the handle box. See
-- <a>handleBoxSetHandlePosition</a>.
handleBoxGetHandlePosition :: HandleBoxClass self => self -> IO PositionType
-- | Sets the snap edge of the HandleBox. The snap edge is the edge of the
-- detached child that must be aligned with the corresponding edge of the
-- "ghost" left behind when the child was detached to reattach the
-- torn-off window. Usually, the snap edge should be chosen so that it
-- stays in the same place on the screen when the handlebox is torn off.
--
-- If the snap edge is not set, then an appropriate value will be guessed
-- from the handle position. If the handle position is <a>PosRight</a> or
-- <a>PosLeft</a>, then the snap edge will be <a>PosTop</a>, otherwise it
-- will be <a>PosLeft</a>.
handleBoxSetSnapEdge :: HandleBoxClass self => self -> PositionType -> IO ()
-- | Gets the edge used for determining reattachment of the handle box. See
-- <a>handleBoxSetSnapEdge</a>.
handleBoxGetSnapEdge :: HandleBoxClass self => self -> IO PositionType
-- | Appearance of the shadow that surrounds the container.
--
-- Default value: <a>ShadowEtchedOut</a>
handleBoxShadowType :: HandleBoxClass self => Attr self ShadowType
-- | Position of the handle relative to the child widget.
--
-- Default value: <a>PosLeft</a>
handleBoxHandlePosition :: HandleBoxClass self => Attr self PositionType
-- | Side of the handlebox that's lined up with the docking point to dock
-- the handlebox.
--
-- Default value: <a>PosTop</a>
handleBoxSnapEdge :: HandleBoxClass self => Attr self PositionType
-- | Whether to use the value from the snap_edge property or a value
-- derived from handle_position.
--
-- Default value: <tt>False</tt>
handleBoxSnapEdgeSet :: HandleBoxClass self => Attr self Bool
-- | This signal is emitted when the contents of the handlebox are
-- reattached to the main window.
onChildAttached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is emitted when the contents of the handlebox are
-- reattached to the main window.
afterChildAttached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is emitted when the contents of the handlebox are detached
-- from the main window.
onChildDetached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)
-- | This signal is emitted when the contents of the handlebox are detached
-- from the main window.
afterChildDetached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)
-- | A "light switch" style toggle
module Graphics.UI.Gtk.Misc.Switch
data Switch
castToSwitch :: GObjectClass obj => obj -> Switch
gTypeSwitch :: GType
toSwitch :: SwitchClass o => o -> Switch
-- | Creates a new <a>Switch</a>.
switchNew :: IO Switch
-- | Changes the state of control to the desired one. See
-- <a>switchGetActive</a>.
switchSetActive :: SwitchClass self => self -> Bool -> IO ()
-- | Gets whether the GtkSwitch is in its on or off state.
switchGetActive :: SwitchClass self => self -> IO Bool
-- | Sets the underlying state of the GtkSwitch. Normally, this is the same
-- as <a>switchActive</a>, unless the switch is set up for delayed state
-- changes. This function is typically called from a <a>stateSet</a>
-- signal handler.
--
-- See <a>stateSet</a> for details.
switchSetState :: SwitchClass self => self -> Bool -> IO ()
-- | Gets the underlying state of the GtkSwitch. Set <a>switchSetState</a>.
switchGetState :: SwitchClass self => self -> IO Bool
-- | Whether the switch is in its on or off state.
--
-- Default value: <tt>False</tt>
switchActive :: SwitchClass self => Attr self Bool
-- | The backend state that is controlled by the switch. See
-- <a>stateSet</a> for details.
--
-- Default value: <tt>False</tt>
switchState :: SwitchClass self => Attr self Bool
-- | This signal on GtkSwitch is an action signal and emitting it causes
-- the switch to animate. Applications should never connect to this
-- signal, but use the notify::active signal.
switchActivate :: SwitchClass self => Signal self (IO ())
-- | This signal on GtkSwitch is emitted to change the underlying state. It
-- is emitted when the user changes the switch position. The default
-- handler keeps the state in sync with the <a>switchActive</a> property.
--
-- To implement delayed state change, applications can connect to this
-- signal, initiate the change of the underlying state, and call
-- <a>switchSetState</a> when the underlying state change is complete.
-- The signal handler should return <tt>True</tt> to prevent the default
-- handler from running.
--
-- Visually, the underlying state is represented by the trough color of
-- the switch, while the <a>switchActive</a> property is represented by
-- the position of the switch.
stateSet :: SwitchClass self => Signal self (Bool -> IO Bool)
-- | An adapter which makes widgets scrollable
module Graphics.UI.Gtk.Misc.Viewport
data Viewport
class BinClass o => ViewportClass o
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
castToViewport :: GObjectClass obj => obj -> Viewport
gTypeViewport :: GType
toViewport :: ViewportClass o => o -> Viewport
-- | Creates a new <a>Viewport</a> with the given adjustments.
viewportNew :: Adjustment -> Adjustment -> IO Viewport
-- | Returns the horizontal adjustment of the viewport.
viewportGetHAdjustment :: ViewportClass self => self -> IO Adjustment
-- | Returns the vertical adjustment of the viewport.
viewportGetVAdjustment :: ViewportClass self => self -> IO Adjustment
-- | Sets the horizontal adjustment of the viewport.
viewportSetHAdjustment :: ViewportClass self => self -> Adjustment -> IO ()
-- | Sets the vertical adjustment of the viewport.
viewportSetVAdjustment :: ViewportClass self => self -> Adjustment -> IO ()
-- | Sets the shadow type of the viewport.
viewportSetShadowType :: ViewportClass self => self -> ShadowType -> IO ()
-- | Gets the shadow type of the <a>Viewport</a>. See
-- <a>viewportSetShadowType</a>.
viewportGetShadowType :: ViewportClass self => self -> IO ShadowType
-- | Gets the bin window of the <a>Viewport</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.20</li>
-- </ul>
viewportGetBinWindow :: ViewportClass self => self -> IO DrawWindow
-- | Gets the view window of the <a>Viewport</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
viewportGetViewWindow :: ViewportClass self => self -> IO DrawWindow
-- | The <a>Adjustment</a> that determines the values of the horizontal
-- position for this viewport.
viewportHAdjustment :: ViewportClass self => Attr self Adjustment
-- | The <a>Adjustment</a> that determines the values of the vertical
-- position for this viewport.
viewportVAdjustment :: ViewportClass self => Attr self Adjustment
-- | Determines how the shadowed box around the viewport is drawn.
--
-- Default value: <a>ShadowIn</a>
viewportShadowType :: ViewportClass self => Attr self ShadowType
-- | Renders a keyboard accelerator in a cell
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellRendererAccel
data CellRendererAccel
class CellRendererTextClass o => CellRendererAccelClass o
castToCellRendererAccel :: GObjectClass obj => obj -> CellRendererAccel
toCellRendererAccel :: CellRendererAccelClass o => o -> CellRendererAccel
data CellRendererAccelMode
CellRendererAccelModeGtk :: CellRendererAccelMode
CellRendererAccelModeOther :: CellRendererAccelMode
CellRendererAccelModeModifierTap :: CellRendererAccelMode
-- | Creates a new <a>CellRendererAccel</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererAccelNew :: IO CellRendererAccel
-- | The keyval of the accelerator.
--
-- Allowed values: <= GMaxint
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererAccelAccelKey :: CellRendererAccelClass self => Attr self Int
-- | The modifier mask of the accelerator.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererAccelAccelMods :: CellRendererAccelClass self => Attr self [Modifier]
-- | The hardware keycode of the accelerator. Note that the hardware
-- keycode is only relevant if the key does not have a keyval. Normally,
-- the keyboard configuration should assign keyvals to all keys.
--
-- Allowed values: <= GMaxint
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererAccelKeycode :: CellRendererAccelClass self => Attr self Int
-- | Determines if the edited accelerators are GTK+ accelerators. If they
-- are, consumed modifiers are suppressed, only accelerators accepted by
-- GTK+ are allowed, and the accelerators are rendered in the same way as
-- they are in menus.
--
-- Default value: <a>CellRendererAccelModeGtk</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererAccelAccelMode :: CellRendererAccelClass self => Attr self CellRendererAccelMode
-- | Gets emitted when the user has selected a new accelerator.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
accelEdited :: (CellRendererAccelClass self, GlibString string) => Signal self (string -> KeyVal -> Modifier -> KeyCode -> IO ())
-- | Gets emitted when the user has removed the accelerator.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
accelCleared :: (CellRendererAccelClass self, GlibString string) => Signal self (string -> IO ())
instance GHC.Show.Show Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Classes.Eq Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Enum.Bounded Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Enum.Enum Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
-- | Renders a combo box in a cell
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellRendererCombo
data CellRendererCombo
class CellRendererTextClass o => CellRendererComboClass o
castToCellRendererCombo :: GObjectClass obj => obj -> CellRendererCombo
gTypeCellRendererCombo :: GType
toCellRendererCombo :: CellRendererComboClass o => o -> CellRendererCombo
-- | Creates a new <a>CellRendererCombo</a>. This <tt>Renderer</tt> allows
-- for displaying a fixed set of options the user can choose from.
cellRendererComboNew :: IO CellRendererCombo
-- | If <tt>True</tt>, the cell renderer will allow the user to enter
-- values other than the ones in the popup list.
--
-- Default value: <tt>True</tt>
cellComboHasEntry :: CellRendererComboClass self => Attr self Bool
-- | The tuple containing a model and a column in this model that determine
-- the possible strings that can be shown in the combo box. Note that
-- this tree model can be a datum in the tree model that is used to
-- populate the view in which the <a>CellRendererCombo</a> is part of. In
-- other words, it is possible that every <a>CellRendererCombo</a> can
-- show a different set of options on each row.
cellComboTextModel :: (TreeModelClass (model row), TypedTreeModelClass model, CellRendererComboClass self, GlibString string) => WriteAttr self (model row, ColumnId row string)
-- | Renders a pixbuf in a cell
module Graphics.UI.Gtk.ModelView.CellRendererPixbuf
data CellRendererPixbuf
class CellRendererClass o => CellRendererPixbufClass o
castToCellRendererPixbuf :: GObjectClass obj => obj -> CellRendererPixbuf
gTypeCellRendererPixbuf :: GType
toCellRendererPixbuf :: CellRendererPixbufClass o => o -> CellRendererPixbuf
-- | Create a new CellRendererPixbuf object.
cellRendererPixbufNew :: IO CellRendererPixbuf
-- | The pixbuf to render.
cellPixbuf :: CellRendererPixbufClass self => Attr self Pixbuf
-- | Pixbuf for open expander.
cellPixbufExpanderOpen :: CellRendererPixbufClass self => Attr self Pixbuf
-- | Pixbuf for closed expander.
cellPixbufExpanderClosed :: CellRendererPixbufClass self => Attr self Pixbuf
-- | The stock ID of the stock icon to render.
--
-- Default value: <tt>""</tt>
cellPixbufStockId :: (CellRendererPixbufClass self, GlibString string) => Attr self string
-- | The <tt>IconSize</tt> value that specifies the size of the rendered
-- icon.
--
-- Default value: 1
cellPixbufStockSize :: CellRendererPixbufClass self => Attr self Int
-- | Render detail to pass to the theme engine.
--
-- Default value: <tt>""</tt>
cellPixbufStockDetail :: (CellRendererPixbufClass self, GlibString string) => Attr self string
-- | The name of the themed icon to display. This property only has an
-- effect if not overridden by <a>cellPixbufStockId</a> or
-- <a>cellPixbuf</a> attributes.
--
-- Default value: <tt>""</tt>
cellPixbufIconName :: (CellRendererPixbufClass self, GlibString string) => Attr self string
-- | Specifies whether the rendered pixbuf should be colorized according to
-- the <tt>CellRendererState</tt>.
--
-- Default value: <tt>False</tt>
cellPixbufFollowState :: CellRendererPixbufClass self => Attr self Bool
-- | Renders numbers as progress bars
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellRendererProgress
data CellRendererProgress
class CellRendererClass o => CellRendererProgressClass o
castToCellRendererProgress :: GObjectClass obj => obj -> CellRendererProgress
gTypeCellRendererProgress :: GType
toCellRendererProgress :: CellRendererProgressClass o => o -> CellRendererProgress
-- | Creates a new <a>CellRendererProgress</a>.
cellRendererProgressNew :: IO CellRendererProgress
-- | The "value" property determines the percentage to which the progress
-- bar will be "filled in".
--
-- Allowed values: <tt>[0,100]</tt>
--
-- Default value: <tt>0</tt>
cellProgressValue :: CellRendererProgressClass self => Attr self Int
-- | The <a>cellProgressText</a> attribute determines the label which will
-- be drawn over the progress bar. Setting this property to
-- <tt>Nothing</tt> causes the default label to be displayed. Setting
-- this property to an empty string causes no label to be displayed.
--
-- Default value: <tt>Nothing</tt>
cellProgressText :: (CellRendererProgressClass self, GlibString string) => Attr self (Maybe string)
-- | Renders a spin button in a cell
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellRendererSpin
data CellRendererSpin
class CellRendererTextClass o => CellRendererSpinClass o
castToCellRendererSpin :: GObjectClass obj => obj -> CellRendererSpin
toCellRendererSpin :: CellRendererSpinClass o => o -> CellRendererSpin
-- | Creates a new <a>CellRendererSpin</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererSpinNew :: IO CellRendererSpin
-- | The adjustment that holds the value of the spinbutton.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererSpinAdjustment :: CellRendererSpinClass self => Attr self Adjustment
-- | The acceleration rate when you hold down a button.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererSpinClimbRate :: CellRendererSpinClass self => Attr self Double
-- | The number of decimal places to display.
--
-- Allowed values: <= 20
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellRendererSpinDigits :: CellRendererSpinClass self => Attr self Int
-- | Renders a spinning animation in a cell
--
-- <ul>
-- <li>Module available since Gtk+ version 2.20</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellRendererSpinner
data CellRendererSpinner
class CellRendererClass o => CellRendererSpinnerClass o
castToCellRendererSpinner :: GObjectClass obj => obj -> CellRendererSpinner
toCellRendererSpinner :: CellRendererSpinnerClass o => o -> CellRendererSpinner
-- | Returns a new cell renderer which will show a spinner to indicate
-- activity.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
cellRendererSpinnerNew :: IO CellRendererSpinner
-- | Whether the spinner is active (ie. shown) in the cell.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
cellRendererSpinnerActive :: CellRendererSpinnerClass self => Attr self Bool
-- | Pulse of the spinner. Increment this value to draw the next frame of
-- the spinner animation. Usually, you would update this value in a
-- timeout.
--
-- The <a>Spinner</a> widget draws one full cycle of the animation per
-- second by default. You can learn about the number of frames used by
-- the theme by looking at the <tt>numSteps</tt> style property and the
-- duration of the cycle by looking at <tt>cycleDuration</tt>.
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
cellRendererSpinnerPulse :: CellRendererSpinnerClass self => Attr self Int
-- | The <a>IconSize</a> value that specifies the size of the rendered
-- spinner.
--
-- Default value: <a>IconSizeMenu</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
cellRendererSpinnerSize :: CellRendererSpinnerClass self => Attr self IconSize
-- | A <a>CellRenderer</a> which displays a single-line text.
module Graphics.UI.Gtk.ModelView.CellRendererText
data CellRendererText
class CellRendererClass o => CellRendererTextClass o
castToCellRendererText :: GObjectClass obj => obj -> CellRendererText
gTypeCellRendererText :: GType
toCellRendererText :: CellRendererTextClass o => o -> CellRendererText
-- | Create a new CellRendererText object.
cellRendererTextNew :: IO CellRendererText
-- | Sets the height of a renderer to explicitly be determined by the
-- <a>cellTextFont</a> and <a>cellYPad</a> attribute set on it. Further
-- changes in these properties do not affect the height, so they must be
-- accompanied by a subsequent call to this function. Using this function
-- is unflexible, and should really only be used if calculating the size
-- of a cell is too slow (ie, a massive number of cells displayed). If
-- <tt>numberOfRows</tt> is -1, then the fixed height is unset, and the
-- height is determined by the properties again.
cellRendererTextSetFixedHeightFromFont :: CellRendererTextClass self => self -> Int -> IO ()
-- | Define the attribute that specifies the text to be rendered. See also
-- <a>cellTextMarkup</a>.
cellText :: (CellRendererTextClass cr, GlibString string) => Attr cr string
-- | Define a markup string instead of a text. See <a>cellText</a>.
cellTextMarkup :: (CellRendererTextClass cr, GlibString string) => WriteAttr cr (Maybe string)
-- | Whether or not to keep all text in a single paragraph.
--
-- Default value: <tt>False</tt>
cellTextSingleParagraphMode :: CellRendererTextClass self => Attr self Bool
-- | Text background color as a string.
--
-- Default value: <tt>""</tt>
cellTextBackground :: (CellRendererClass self, GlibString string) => WriteAttr self string
-- | Text background color as a <a>Color</a>.
cellTextBackgroundColor :: CellRendererClass self => Attr self Color
-- | Whether the 'cellTextBackground'\/'cellTextBackgroundColor' attribute
-- is set.
--
-- Default value: <tt>False</tt>
cellTextBackgroundSet :: CellRendererClass self => Attr self Bool
-- | Text foreground color as a string.
--
-- Default value: <tt>""</tt>
cellTextForeground :: (CellRendererClass self, GlibString string) => WriteAttr self string
-- | Text foreground color as a <a>Color</a>.
cellTextForegroundColor :: CellRendererClass self => Attr self Color
-- | Whether the 'cellTextForeground'\/'cellTextForegroundColor' attribute
-- is set.
--
-- Default value: <tt>False</tt>
cellTextForegroundSet :: CellRendererClass self => Attr self Bool
-- | Whether the text can be modified by the user.
cellTextEditable :: CellRendererTextClass self => Attr self Bool
-- | Whether the <a>cellTextEditable</a> flag affects text editability.
cellTextEditableSet :: CellRendererTextClass self => Attr self Bool
-- | Font description as a string.
cellTextFont :: (CellRendererTextClass self, GlibString string) => Attr self string
-- | Font description as a <a>FontDescription</a>.
cellTextFontDesc :: CellRendererTextClass self => Attr self FontDescription
-- | Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
cellTextFamily :: (CellRendererTextClass self, GlibString string) => Attr self string
-- | Determines if <a>cellTextFamily</a> has an effect.
cellTextFamilySet :: CellRendererTextClass self => Attr self Bool
-- | Font style (e.g. normal or italics).
cellTextStyle :: CellRendererTextClass self => Attr self FontStyle
-- | Whether the <a>cellTextStyle</a> tag is used, default is
-- <tt>False</tt>.
cellTextStyleSet :: CellRendererTextClass self => Attr self Bool
-- | Font variant (e.g. small caps).
cellTextVariant :: CellRendererTextClass self => Attr self Variant
-- | Whether the <a>cellTextVariant</a> tag is used, default is
-- <tt>False</tt>.
cellTextVariantSet :: CellRendererTextClass self => Attr self Bool
-- | Font weight, default: 400.
cellTextWeight :: CellRendererTextClass self => Attr self Int
-- | Whether the <a>cellTextWeight</a> tag is used, default is
-- <tt>False</tt>.
cellTextWeightSet :: CellRendererTextClass self => Attr self Bool
-- | Font stretch.
cellTextStretch :: CellRendererTextClass self => Attr self Stretch
-- | Whether the <a>cellTextStretch</a> tag is used, default is
-- <tt>False</tt>.
cellTextStretchSet :: CellRendererTextClass self => Attr self Bool
-- | Font size in points.
cellTextSize :: CellRendererTextClass self => Attr self Double
-- | Font size in points.
--
-- Allowed values: >= 0
--
-- Default value: 0
cellTextSizePoints :: CellRendererTextClass self => Attr self Double
-- | Whether the <a>cellTextSize</a> tag is used, default is
-- <tt>False</tt>.
cellTextSizeSet :: CellRendererTextClass self => Attr self Bool
-- | Font scaling factor. Default is 1.
cellTextScale :: CellRendererTextClass self => Attr self Double
-- | Whether the <a>cellTextScale</a> tag is used, default is
-- <tt>False</tt>.
cellTextScaleSet :: CellRendererTextClass self => Attr self Bool
-- | Offset of text above the baseline (below the baseline if rise is
-- negative).
--
-- Allowed values: >= -2147483647
--
-- Default value: 0
cellTextRise :: CellRendererTextClass self => Attr self Int
-- | Whether the <a>cellTextRise</a> tag is used, default is
-- <tt>False</tt>.
cellTextRiseSet :: CellRendererTextClass self => Attr self Bool
-- | Whether to strike through the text.
cellTextStrikethrough :: CellRendererTextClass self => Attr self Bool
-- | Whether the <a>cellTextStrikethrough</a> tag is used, default is
-- <tt>False</tt>.
cellTextStrikethroughSet :: CellRendererTextClass self => Attr self Bool
-- | Style of underline for this text.
cellTextUnderline :: CellRendererTextClass self => Attr self Underline
-- | Whether the <a>cellTextUnderline</a> tag is used, default is
-- <tt>False</tt>.
cellTextUnderlineSet :: CellRendererTextClass self => Attr self Bool
-- | The language this text is in, as an ISO code. Pango can use this as a
-- hint when rendering the text. If you don't understand this parameter,
-- you probably don't need it.
cellTextLanguage :: (CellRendererTextClass self, GlibString string) => Attr self (Maybe string)
-- | Whether the <a>cellTextLanguage</a> tag is used, default is
-- <tt>False</tt>.
cellTextLanguageSet :: CellRendererTextClass self => Attr self Bool
-- | Specifies the preferred place to ellipsize the string, if the cell
-- renderer does not have enough room to display the entire string.
-- Setting it to <a>EllipsizeNone</a> turns off ellipsizing. See the
-- <a>cellTextWrapWidth</a> property for another way of making the text
-- fit into a given width.
--
-- <ul>
-- <li>Available in Gtk 2.6 or higher.</li>
-- </ul>
cellTextEllipsize :: CellRendererTextClass self => Attr self EllipsizeMode
-- | Whether the <a>cellTextEllipsize</a> tag affects the ellipsize mode.
--
-- <ul>
-- <li>Available in Gtk 2.6 or higher.</li>
-- </ul>
cellTextEllipsizeSet :: CellRendererTextClass self => Attr self Bool
-- | The desired width of the cell, in characters. If this property is set
-- to <tt>-1</tt>, the width will be calculated automatically, otherwise
-- the cell will request either 3 characters or the property value,
-- whichever is greater.
--
-- <ul>
-- <li>Available in Gtk 2.6 or higher.</li>
-- </ul>
cellTextWidthChars :: CellRendererTextClass self => Attr self Int
-- | Specifies how to break the string into multiple lines, if the cell
-- renderer does not have enough room to display the entire string. This
-- property has no effect unless the <a>cellTextWrapWidth</a> property is
-- set.
--
-- <ul>
-- <li>Available in Gtk 2.8 or higher.</li>
-- </ul>
cellTextWrapMode :: CellRendererTextClass self => Attr self LayoutWrapMode
-- | Specifies the width at which the text is wrapped. The wrap-mode
-- property can be used to influence at what character positions the line
-- breaks can be placed. Setting wrap-width to <tt>-1</tt> turns wrapping
-- off.
--
-- <ul>
-- <li>Available in Gtk 2.8 or higher.</li>
-- </ul>
cellTextWrapWidth :: CellRendererTextClass self => Attr self Int
-- | Specifies how to align the lines of text with respect to each other.
--
-- Note that this property describes how to align the lines of text in
-- case there are several of them. The <a>cellXAlign</a> property of
-- <a>CellRenderer</a>, on the other hand, sets the horizontal alignment
-- of the whole text.
--
-- Default value: <a>AlignLeft</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
cellTextAlignment :: CellRendererTextClass self => Attr self LayoutAlignment
-- | Emitted when the user finished editing a cell.
--
-- Whenever editing is finished successfully, this signal is emitted
-- which indicates that the model should be updated with the supplied
-- value. The value is always a string which matches the <a>cellText</a>
-- attribute of <a>CellRendererText</a> (and its derivates like
-- <a>CellRendererCombo</a>).
--
-- <ul>
-- <li>This signal is not emitted when editing is disabled (see
-- <a>cellTextEditable</a>) or when the user aborts editing.</li>
-- </ul>
edited :: (CellRendererTextClass self, GlibString string) => Signal self (TreePath -> string -> IO ())
-- | A widget used to choose from a list of items.
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.MenuComboToolbar.ComboBox
data ComboBox
class BinClass o => ComboBoxClass o
castToComboBox :: GObjectClass obj => obj -> ComboBox
gTypeComboBox :: GType
toComboBox :: ComboBoxClass o => o -> ComboBox
-- | Create a combo box that holds strings.
--
-- This function stores a <a>ListStore</a> with the widget and sets the
-- model to the list store. The widget can contain only strings. The
-- model can be retrieved with <a>comboBoxGetModel</a>. The list store
-- can be retrieved with <a>comboBoxGetModelText</a>. Any exisiting model
-- or renderers are removed before setting the new text model. Note that
-- the functions <a>comboBoxAppendText</a>, <a>comboBoxInsertText</a>,
-- <a>comboBoxPrependText</a>, <a>comboBoxRemoveText</a> and
-- <a>comboBoxGetActiveText</a> can be called on a combo box only once
-- <a>comboBoxSetModelText</a> is called.
type ComboBoxText = Text
-- | Creates a new empty <a>ComboBox</a>.
comboBoxNew :: IO ComboBox
-- | Creates a new empty <a>ComboBox</a> with an entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.24</li>
-- </ul>
comboBoxNewWithEntry :: IO ComboBox
-- | Convenience function which constructs a new text combo box that is a
-- <a>ComboBox</a> just displaying strings. This function internally
-- calls <a>comboBoxSetModelText</a> after creating a new combo box.
comboBoxNewText :: IO ComboBox
-- | Creates a new <a>ComboBox</a> with the model initialized to
-- <tt>model</tt>.
comboBoxNewWithModel :: TreeModelClass model => model -> IO ComboBox
-- | Creates a new empty <a>ComboBox</a> with an entry and with the model
-- initialized to <tt>model</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.24</li>
-- </ul>
comboBoxNewWithModelAndEntry :: TreeModelClass model => model -> IO ComboBox
comboBoxSetModelText :: ComboBoxClass self => self -> IO (ListStore ComboBoxText)
-- | Retrieve the model that was created with <a>comboBoxSetModelText</a>.
comboBoxGetModelText :: ComboBoxClass self => self -> IO (ListStore ComboBoxText)
-- | Appends <tt>string</tt> to the list of strings stored in
-- <tt>comboBox</tt>. Note that you can only use this function with combo
-- boxes constructed with <a>comboBoxNewText</a>. Returns the index of
-- the appended text.
comboBoxAppendText :: ComboBoxClass self => self -> ComboBoxText -> IO Int
-- | Inserts <tt>string</tt> at <tt>position</tt> in the list of strings
-- stored in <tt>comboBox</tt>. Note that you can only use this function
-- with combo boxes constructed with <a>comboBoxNewText</a>.
comboBoxInsertText :: ComboBoxClass self => self -> Int -> ComboBoxText -> IO ()
-- | Prepends <tt>string</tt> to the list of strings stored in
-- <tt>comboBox</tt>. Note that you can only use this function with combo
-- boxes constructed with <a>comboBoxNewText</a>.
comboBoxPrependText :: ComboBoxClass self => self -> ComboBoxText -> IO ()
-- | Removes the string at <tt>position</tt> from <tt>comboBox</tt>. Note
-- that you can only use this function with combo boxes constructed with
-- <a>comboBoxNewText</a>.
comboBoxRemoveText :: ComboBoxClass self => self -> Int -> IO ()
-- | Returns the currently active string in <tt>comboBox</tt> or
-- <tt>Nothing</tt> if none is selected. Note that you can only use this
-- function with combo boxes constructed with <a>comboBoxNewText</a>.
comboBoxGetActiveText :: ComboBoxClass self => self -> IO (Maybe ComboBoxText)
-- | Returns the wrap width which is used to determine the number of
-- columns for the popup menu. If the wrap width is larger than 1, the
-- combo box is in table mode.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxGetWrapWidth :: ComboBoxClass self => self -> IO Int
-- | Sets the wrap width of the combo box to be <tt>width</tt>. The wrap
-- width is basically the preferred number of columns when you want the
-- popup to be laid out in a table.
comboBoxSetWrapWidth :: ComboBoxClass self => self -> Int -> IO ()
-- | Gets the column with row span information for <tt>comboBox</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxGetRowSpanColumn :: ComboBoxClass self => self -> IO (ColumnId row Int)
-- | Sets the column with row span information for <tt>comboBox</tt> to be
-- <tt>rowSpan</tt>. The row span column contains integers which indicate
-- how many rows an item should span.
comboBoxSetRowSpanColumn :: ComboBoxClass self => self -> ColumnId row Int -> IO ()
-- | Gets the source of the column span information for the combo box.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxGetColumnSpanColumn :: ComboBoxClass self => self -> IO (ColumnId row Int)
-- | Sets the source of the column span information for the combo box. The
-- column span source contains integers which indicate how many columns
-- an item should span.
comboBoxSetColumnSpanColumn :: ComboBoxClass self => self -> ColumnId row Int -> IO ()
-- | Returns the index of the currently active item, or -1 if there is no
-- active item. If the model is a non-flat treemodel, and the active item
-- is not an immediate child of the root of the tree, this function
-- returns <tt><tt>treePathGetIndices</tt> path !! 0</tt>, where
-- <tt>path</tt> is the <a>TreePath</a> of the active item.
comboBoxGetActive :: ComboBoxClass self => self -> IO Int
-- | Sets the active item of <tt>comboBox</tt> to be the item at
-- <tt>index</tt>.
comboBoxSetActive :: ComboBoxClass self => self -> Int -> IO ()
-- | Returns a <a>TreeIter</a> that points to the current active item, if
-- it exists, or <tt>Nothing</tt> if there is no current active item.
comboBoxGetActiveIter :: ComboBoxClass self => self -> IO (Maybe TreeIter)
-- | Sets the current active item to be the one referenced by
-- <tt>iter</tt>. <tt>iter</tt> must correspond to a path of depth one.
comboBoxSetActiveIter :: ComboBoxClass self => self -> TreeIter -> IO ()
-- | Returns the <a>TreeModel</a> which is acting as data source for
-- <tt>comboBox</tt>.
comboBoxGetModel :: ComboBoxClass self => self -> IO (Maybe TreeModel)
-- | Sets the model used by <tt>comboBox</tt> to be <tt>model</tt>. Will
-- unset a previously set model (if applicable). If model is
-- <tt>Nothing</tt>, then it will unset the model.
--
-- Note that this function does not clear the cell renderers, you have to
-- call <tt>comboBoxCellLayoutClear</tt> yourself if you need to set up
-- different cell renderers for the new model.
comboBoxSetModel :: (ComboBoxClass self, TreeModelClass model) => self -> Maybe model -> IO ()
-- | Pops up the menu or dropdown list of the combo box.
--
-- This function is mostly intended for use by accessibility
-- technologies; applications should have little use for it.
comboBoxPopup :: ComboBoxClass self => self -> IO ()
-- | Hides the menu or dropdown list of <tt>comboBox</tt>.
--
-- This function is mostly intended for use by accessibility
-- technologies; applications should have little use for it.
comboBoxPopdown :: ComboBoxClass self => self -> IO ()
-- | Installs a mapping from the model to a row separator flag, which is
-- used to determine whether a row should be drawn as a separator. If the
-- row separator mapping is <tt>Nothing</tt>, no separators are drawn.
-- This is the default value.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxSetRowSeparatorSource :: (ComboBoxClass self, TreeModelClass (model row), TypedTreeModelClass model) => self -> Maybe (model row, row -> Bool) -> IO ()
-- | Sets whether the popup menu should have a tearoff menu item.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxSetAddTearoffs :: ComboBoxClass self => self -> Bool -> IO ()
-- | Gets the current value of the :add-tearoffs property.
comboBoxGetAddTearoffs :: ComboBoxClass self => self -> IO Bool
-- | Sets the menu's title in tearoff mode.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
comboBoxSetTitle :: (ComboBoxClass self, GlibString string) => self -> string -> IO ()
-- | Gets the current title of the menu in tearoff mode. See
-- <a>comboBoxSetAddTearoffs</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
comboBoxGetTitle :: (ComboBoxClass self, GlibString string) => self -> IO string
-- | Sets whether the combo box will grab focus when it is clicked with the
-- mouse. Making mouse clicks not grab focus is useful in places like
-- toolbars where you don't want the keyboard focus removed from the main
-- area of the application.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxSetFocusOnClick :: ComboBoxClass self => self -> Bool -> IO ()
-- | Returns whether the combo box grabs focus when it is clicked with the
-- mouse. See <a>comboBoxSetFocusOnClick</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxGetFocusOnClick :: ComboBoxClass self => self -> IO Bool
-- | The model from which the combo box takes the values shown in the list.
comboBoxModel :: (ComboBoxClass self, TreeModelClass treeModel) => ReadWriteAttr self TreeModel treeModel
-- | If wrap-width is set to a positive value, the list will be displayed
-- in multiple columns, the number of columns is determined by
-- wrap-width.
--
-- Allowed values: >= 0
--
-- Default value: 0
comboBoxWrapWidth :: ComboBoxClass self => Attr self Int
-- | The values of that column are used to determine how many rows a value
-- in the list will span. Therefore, the values in the model column
-- pointed to by this property must be greater than zero and not larger
-- than wrap-width.
--
-- Default value: <a>invalidColumnId</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxRowSpanColumn :: ComboBoxClass self => Attr self (ColumnId row Int)
-- | The values of that column are used to determine how many columns a
-- value in the list will span.
--
-- Default value: <a>invalidColumnId</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxColumnSpanColumn :: ComboBoxClass self => Attr self (ColumnId row Int)
-- | The item which is currently active. This value only makes sense for a
-- list model.
comboBoxActive :: ComboBoxClass self => Attr self Int
-- | The add-tearoffs property controls whether generated menus have
-- tearoff menu items.
--
-- Note that this only affects menu style combo boxes.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxAddTearoffs :: ComboBoxClass self => Attr self Bool
-- | The has-frame property controls whether a frame is drawn around the
-- entry.
--
-- Default value: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
comboBoxHasFrame :: ComboBoxClass self => Attr self Bool
-- | Whether the combo box grabs focus when it is clicked with the mouse.
--
-- Default value: <tt>True</tt>
comboBoxFocusOnClick :: ComboBoxClass self => Attr self Bool
-- | A title that may be displayed by the window manager when the popup is
-- torn-off.
--
-- Default value: ""
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
comboBoxTearoffTitle :: (ComboBoxClass self, GlibString string) => Attr self string
-- | Whether the combo boxes dropdown is popped up. Note that this property
-- is mainly useful because it allows you to connect to
-- notify::popup-shown.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
comboBoxPopupShown :: ComboBoxClass self => ReadAttr self Bool
-- | 'title' property. See <a>comboBoxGetTitle</a> and
-- <a>comboBoxSetTitle</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
comboBoxTitle :: (ComboBoxClass self, GlibString string) => Attr self string
-- | Returns whether the combo box has an entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.24</li>
-- </ul>
comboBoxGetHasEntry :: ComboBoxClass self => self -> IO Bool
-- | Sets the model column which combo_box should use to get strings from
-- to be <tt>textColumn</tt>. The column text_column in the model of
-- <tt>comboBox</tt> must be of type ComboBoxText.
--
-- This is only relevant if <tt>comboBox</tt> has been created with
-- "has-entry" as True.
--
-- <ul>
-- <li>Available since Gtk+ version 2.24</li>
-- </ul>
comboBoxSetEntryTextColumn :: ComboBoxClass comboBox => comboBox -> ColumnId row ComboBoxText -> IO ()
-- | Returns the column which <tt>comboBox</tt> is using to get the strings
-- from to display in the internal entry.
--
-- <ul>
-- <li>Available since Gtk+ version 2.24</li>
-- </ul>
comboBoxGetEntryTextColumn :: ComboBoxClass comboBox => comboBox -> IO (ColumnId row ComboBoxText)
-- | The changed signal is emitted when the active item is changed. The can
-- be due to the user selecting a different item from the list, or due to
-- a call to <a>comboBoxSetActiveIter</a>. It will also be emitted while
-- typing into a <tt>ComboBoxEntry</tt>, as well as when selecting an
-- item from the <tt>ComboBoxEntry'</tt>s list.
changed :: ComboBoxClass self => Signal self (IO ())
-- | Renders a toggle button in a cell
module Graphics.UI.Gtk.ModelView.CellRendererToggle
data CellRendererToggle
class CellRendererClass o => CellRendererToggleClass o
castToCellRendererToggle :: GObjectClass obj => obj -> CellRendererToggle
gTypeCellRendererToggle :: GType
toCellRendererToggle :: CellRendererToggleClass o => o -> CellRendererToggle
-- | Creates a new <a>CellRendererToggle</a>. Adjust rendering parameters
-- using object properties. Object properties can be set globally (with
-- <a>set</a>). Also, within a <a>TreeViewColumn</a>, you can bind a
-- property to a value in a <a>TreeModel</a> using
-- <a>cellLayoutSetAttributes</a>. For example, you can bind the
-- <a>cellToggleActive</a> property on the cell renderer to a boolean
-- value in the model, thus causing the check button to reflect the state
-- of the model.
cellRendererToggleNew :: IO CellRendererToggle
-- | Returns whether we're rendering radio toggles rather than checkboxes.
cellRendererToggleGetRadio :: CellRendererToggleClass self => self -> IO Bool
-- | If <tt>radio</tt> is <tt>True</tt>, the cell renderer renders a radio
-- toggle (i.e. a toggle in a group of mutually-exclusive toggles). If
-- <tt>False</tt>, it renders a check toggle (a standalone boolean
-- option). This can be set globally for the cell renderer, or changed
-- just before rendering each cell in the model (for <a>TreeView</a>, you
-- set up a per-row setting using <a>TreeViewColumn</a> to associate
-- model columns with cell renderer properties).
cellRendererToggleSetRadio :: CellRendererToggleClass self => self -> Bool -> IO ()
-- | Returns whether the cell renderer is active. See
-- <a>cellRendererToggleSetActive</a>.
cellRendererToggleGetActive :: CellRendererToggleClass self => self -> IO Bool
-- | Activates or deactivates a cell renderer.
cellRendererToggleSetActive :: CellRendererToggleClass self => self -> Bool -> IO ()
-- | The toggle state of the button.
--
-- Default value: <tt>False</tt>
cellToggleActive :: CellRendererToggleClass self => Attr self Bool
-- | The inconsistent state of the button.
--
-- Default value: <tt>False</tt>
cellToggleInconsistent :: CellRendererToggleClass self => Attr self Bool
-- | The toggle button can be activated.
--
-- Default value: <tt>True</tt>
cellToggleActivatable :: CellRendererToggleClass self => Attr self Bool
-- | Draw the toggle button as a radio button.
--
-- Default value: <tt>False</tt>
cellToggleRadio :: CellRendererToggleClass self => Attr self Bool
-- | Size of check or radio indicator.
--
-- Allowed values: >= 0
--
-- Default value: 12
cellToggleIndicatorSize :: CellRendererToggleClass self => Attr self Int
-- | The <a>cellToggled</a> signal is emitted when the cell is toggled. The
-- string represents a <tt>TreePath</tt> into the model and can be
-- converted using <tt>stringToTreePath</tt>.
cellToggled :: (CellRendererToggleClass self, GlibString string) => Signal self (string -> IO ())
-- | A widget displaying a single row of a <a>TreeModel</a>
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.CellView
data CellView
class WidgetClass o => CellViewClass o
castToCellView :: GObjectClass obj => obj -> CellView
gTypeCellView :: GType
toCellView :: CellViewClass o => o -> CellView
-- | Creates a new <a>CellView</a> widget.
cellViewNew :: IO CellView
-- | Creates a new <a>CellView</a> widget, adds a <a>CellRendererText</a>
-- to it, and makes its show <tt>markup</tt>. The text can be marked up
-- with the Pango text markup language.
cellViewNewWithMarkup :: GlibString string => string -> IO CellView
-- | Creates a new <a>CellView</a> widget, adds a <a>CellRendererPixbuf</a>
-- to it, and makes its show <tt>pixbuf</tt>.
cellViewNewWithPixbuf :: Pixbuf -> IO CellView
-- | Creates a new <a>CellView</a> widget, adds a <a>CellRendererText</a>
-- to it, and makes its show <tt>text</tt>.
cellViewNewWithText :: GlibString string => string -> IO CellView
-- | Sets the model for <tt>cellView</tt>. If <tt>cellView</tt> already has
-- a model set, it will remove it before setting the new model. If
-- <tt>model</tt> is <tt>Nothing</tt>, then it will unset the old model.
cellViewSetModel :: (CellViewClass self, TreeModelClass model) => self -> Maybe model -> IO ()
-- | Returns the size needed by the cell view to display the model row
-- pointed to by <tt>path</tt>.
cellViewGetSizeOfRow :: CellViewClass self => self -> TreePath -> IO Requisition
-- | Sets the background color of <tt>view</tt>.
cellViewSetBackgroundColor :: CellViewClass self => self -> Color -> IO ()
-- | Background color as a string.
--
-- Default value: <tt>""</tt>
cellViewBackground :: (CellViewClass self, GlibString string) => WriteAttr self string
-- | A widget which displays a list of icons in a grid
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.ModelView.IconView
data IconView
class ContainerClass o => IconViewClass o
castToIconView :: GObjectClass obj => obj -> IconView
gTypeIconView :: GType
toIconView :: IconViewClass o => o -> IconView
-- | Creates a new <a>IconView</a> widget
iconViewNew :: IO IconView
-- | Creates a new <a>IconView</a> widget with the model <tt>model</tt> and
-- defines how to extract a string and a pixbuf from the model.
iconViewNewWithModel :: TreeModelClass model => model -> IO IconView
-- | Sets the model for a <a>IconView</a>. If the <tt>iconView</tt> already
-- has a model set, it will remove it before setting the new model. If
-- <tt>model</tt> is <tt>Nothing</tt>, then it will unset the old model.
iconViewSetModel :: (IconViewClass self, TreeModelClass model) => self -> Maybe model -> IO ()
-- | Returns the model the <a>IconView</a> is based on. Returns
-- <tt>Nothing</tt> if the model is unset.
iconViewGetModel :: IconViewClass self => self -> IO (Maybe TreeModel)
-- | Sets the column of the text for entries in the <a>IconView</a>. If a
-- markup source is set using <tt>iconViewSetMarkupSource</tt>, then the
-- text source is ignored.
iconViewSetTextColumn :: (IconViewClass self, GlibString string) => self -> ColumnId row string -> IO ()
-- | Returns the column with text for <tt>iconView</tt>.
iconViewGetTextColumn :: (IconViewClass self, GlibString string) => self -> IO (ColumnId row string)
-- | Sets the column of the text for entries in the <a>IconView</a> as a
-- markup string (see <a>Markup</a>). A text source that is set using
-- <tt>iconViewSetTextSource</tt> is ignored once a markup source is set.
iconViewSetMarkupColumn :: (IconViewClass self, GlibString markup) => self -> ColumnId row markup -> IO ()
-- | Returns the column with markup text for <tt>iconView</tt>.
iconViewGetMarkupColumn :: (IconViewClass self, GlibString markup) => self -> IO (ColumnId row markup)
-- | Sets the column of the <a>Pixbuf</a> for entries in the
-- <a>IconView</a>.
iconViewSetPixbufColumn :: IconViewClass self => self -> ColumnId row Pixbuf -> IO ()
-- | Returns the column with pixbufs for <tt>iconView</tt>.
iconViewGetPixbufColumn :: IconViewClass self => self -> IO (ColumnId row Pixbuf)
-- | Finds the path at the point (<tt>x</tt>, <tt>y</tt>), relative to
-- widget coordinates. See <a>iconViewGetItemAtPos</a>, if you are also
-- interested in the cell at the specified position.
iconViewGetPathAtPos :: IconViewClass self => self -> Int -> Int -> IO TreePath
-- | Calls a function for each selected icon. Note that the model or
-- selection cannot be modified from within this function.
iconViewSelectedForeach :: IconViewClass self => self -> (TreePath -> IO ()) -> IO ()
-- | Sets the selection mode of the <tt>iconView</tt>.
iconViewSetSelectionMode :: IconViewClass self => self -> SelectionMode -> IO ()
-- | Gets the selection mode of the <tt>iconView</tt>.
iconViewGetSelectionMode :: IconViewClass self => self -> IO SelectionMode
-- | Sets the ::columns property which determines in how many columns the
-- icons are arranged. If <tt>columns</tt> is -1, the number of columns
-- will be chosen automatically to fill the available area.
iconViewSetColumns :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::columns property.
iconViewGetColumns :: IconViewClass self => self -> IO Int
-- | Sets the ::item-width property which specifies the width to use for
-- each item. If it is set to -1, the icon view will automatically
-- determine a suitable item size.
iconViewSetItemWidth :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::item-width property.
iconViewGetItemWidth :: IconViewClass self => self -> IO Int
-- | Sets the ::spacing property which specifies the space which is
-- inserted between the cells (i.e. the icon and the text) of an item.
iconViewSetSpacing :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::spacing property.
iconViewGetSpacing :: IconViewClass self => self -> IO Int
-- | Sets the ::row-spacing property which specifies the space which is
-- inserted between the rows of the icon view.
iconViewSetRowSpacing :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::row-spacing property.
iconViewGetRowSpacing :: IconViewClass self => self -> IO Int
-- | Sets the ::column-spacing property which specifies the space which is
-- inserted between the columns of the icon view.
iconViewSetColumnSpacing :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::column-spacing property.
iconViewGetColumnSpacing :: IconViewClass self => self -> IO Int
-- | Sets the ::margin property which specifies the space which is inserted
-- at the top, bottom, left and right of the icon view.
iconViewSetMargin :: IconViewClass self => self -> Int -> IO ()
-- | Returns the value of the ::margin property.
iconViewGetMargin :: IconViewClass self => self -> IO Int
-- | Selects the row at <tt>path</tt>.
iconViewSelectPath :: IconViewClass self => self -> TreePath -> IO ()
-- | Unselects the row at <tt>path</tt>.
iconViewUnselectPath :: IconViewClass self => self -> TreePath -> IO ()
-- | Returns <tt>True</tt> if the icon pointed to by <tt>path</tt> is
-- currently selected. If <tt>icon</tt> does not point to a valid
-- location, <tt>False</tt> is returned.
iconViewPathIsSelected :: IconViewClass self => self -> TreePath -> IO Bool
-- | Creates a list of paths of all selected items. Additionally, if you
-- are planning on modifying the model after calling this function, you
-- may want to convert the returned list into a list of
-- <tt>TreeRowReference</tt>s. To do this, you can use
-- <tt>treeRowReferenceNew</tt>.
iconViewGetSelectedItems :: IconViewClass self => self -> IO [TreePath]
-- | Selects all the icons. <tt>iconView</tt> must has its selection mode
-- set to <tt>SelectionMultiple</tt>.
iconViewSelectAll :: IconViewClass self => self -> IO ()
-- | Unselects all the icons.
iconViewUnselectAll :: IconViewClass self => self -> IO ()
-- | Activates the item determined by <tt>path</tt>.
iconViewItemActivated :: IconViewClass self => self -> TreePath -> IO ()
-- | Finds the path at the point (<tt>x</tt>, <tt>y</tt>), relative to
-- widget coordinates. In contrast to <a>iconViewGetPathAtPos</a>, this
-- function also obtains the cell at the specified position.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewGetItemAtPos :: IconViewClass self => self -> Int -> Int -> IO (Maybe (TreePath, CellRenderer))
-- | Given <tt>Left path</tt> as argument , sets the current keyboard focus
-- to be at <tt>path</tt>, and selects it. This is useful when you want
-- to focus the user's attention on a particular item. If <tt>Right
-- cell</tt> is given, then focus is given to the cell specified by it.
-- Additionally, if <tt>startEditing</tt> is <tt>True</tt>, then editing
-- should be started in the specified cell.
--
-- This function is often followed by <a>widgetGrabFocus</a> in order to
-- give keyboard focus to the widget. Please note that editing can only
-- happen when the widget is realized.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewSetCursor :: (IconViewClass self, CellRendererClass cell) => self -> (Either TreePath cell) -> Bool -> IO ()
-- | Return a <tt>path</tt> and a <tt>cell</tt> with the current cursor
-- path and cell. If the cursor isn't currently set, then <tt>[]</tt>
-- will be returned for the <tt>path</tt>. If no cell currently has
-- focus, then <tt>cell</tt> will be <tt>Nothing</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewGetCursor :: IconViewClass self => self -> IO (TreePath, Maybe CellRenderer)
-- | Moves the alignments of <tt>iconView</tt> to the position specified by
-- <tt>path</tt>. <tt>rowAlign</tt> determines where the row is placed,
-- and <tt>colAlign</tt> determines where <tt>column</tt> is placed. Both
-- are expected to be between 0.0 and 1.0. 0.0 means left/top alignment,
-- 1.0 means right/bottom alignment, 0.5 means center.
--
-- If <tt>useAlign</tt> is <tt>False</tt>, then the alignment arguments
-- are ignored, and the tree does the minimum amount of work to scroll
-- the item onto the screen. This means that the item will be scrolled to
-- the edge closest to its current position. If the item is currently
-- visible on the screen, nothing is done.
--
-- This function only works if the model is set, and <tt>path</tt> is a
-- valid row on the model. If the model changes before the
-- <tt>iconView</tt> is realized, the centered path will be modified to
-- reflect this change.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewScrollToPath :: IconViewClass self => self -> TreePath -> Bool -> Float -> Float -> IO ()
-- | Retrieve the first and last visible path. Note that there may be
-- invisible paths inbetween.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewGetVisibleRange :: IconViewClass self => self -> IO (Maybe (TreePath, TreePath))
-- | Turns <tt>iconView</tt> into a drag source for automatic DND.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
iconViewEnableModelDragSource :: IconViewClass self => self -> [Modifier] -> TargetList -> [DragAction] -> IO ()
-- | Turns <tt>iconView</tt> into a drop destination for automatic DND.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
iconViewEnableModelDragDest :: IconViewClass self => self -> TargetList -> [DragAction] -> IO ()
-- | Undoes the effect of <a>iconViewEnableModelDragSource</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
iconViewUnsetModelDragSource :: IconViewClass self => self -> IO ()
-- | Undoes the effect of <a>iconViewEnableModelDragDest</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
iconViewUnsetModelDragDest :: IconViewClass self => self -> IO ()
-- | Check if icons can be moved around.
--
-- <ul>
-- <li>Set whether the user can use drag and drop (DND) to reorder the
-- rows in the store. This works on both <a>TreeStore</a> and
-- <a>ListStore</a> models. If <tt>ro</tt> is <tt>True</tt>, then the
-- user can reorder the model by dragging and dropping rows. The
-- developer can listen to these changes by connecting to the model's
-- signals. If you need to control which rows may be dragged or where
-- rows may be dropped, you can override the
-- <a>treeDragSourceRowDraggable</a> function in the default DND
-- implementation of the model.</li>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewSetReorderable :: IconViewClass self => self -> Bool -> IO ()
-- | Retrieves whether the user can reorder the list via drag-and-drop. See
-- <a>iconViewSetReorderable</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewGetReorderable :: IconViewClass self => self -> IO Bool
-- | Gets the row in which the item path is currently displayed. Row
-- numbers start at 0.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
iconViewGetItemRow :: IconViewClass self => self -> TreePath -> IO Int
-- | Gets the column in which the item path is currently displayed. Column
-- numbers start at 0.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
iconViewGetItemColumn :: IconViewClass self => self -> TreePath -> IO Int
-- | The ::selection-mode property specifies the selection mode of icon
-- view. If the mode is <tt>SelectionMultiple</tt>, rubberband selection
-- is enabled, for the other modes, only keyboard selection is possible.
--
-- Default value: <tt>SelectionSingle</tt>
iconViewSelectionMode :: IconViewClass self => Attr self SelectionMode
-- | The <a>iconViewTextColumn</a> property contains the number of the
-- model column containing the texts which are displayed. If this
-- property and the <a>iconViewMarkupColumn</a> property are both set to
-- <a>invalidColumnId</a>, no texts are displayed.
--
-- Default value: <a>invalidColumnId</a>
iconViewTextColumn :: (IconViewClass self, GlibString string) => Attr self (ColumnId row string)
-- | The <a>iconViewMarkupColumn</a> property contains the number of the
-- model column containing markup information to be displayed. If this
-- property and the <a>iconViewTextColumn</a> property are both set to
-- column numbers, it overrides the text column. If both are set to
-- <a>invalidColumnId</a>, no texts are displayed.
--
-- Default value: <a>invalidColumnId</a>
iconViewMarkupColumn :: (IconViewClass self, GlibString markup) => Attr self (ColumnId row markup)
-- | The <a>iconViewPixbufColumn</a> property contains the number of the
-- model column containing the pixbufs which are displayed. Setting this
-- property to <a>invalidColumnId</a> turns off the display of pixbufs.
--
-- Default value: <a>invalidColumnId</a>
iconViewPixbufColumn :: IconViewClass self => Attr self (ColumnId row Pixbuf)
-- | The model for the icon view.
iconViewModel :: (IconViewClass self, TreeModelClass model) => ReadWriteAttr self (Maybe TreeModel) (Maybe model)
-- | The columns property contains the number of the columns in which the
-- items should be displayed. If it is -1, the number of columns will be
-- chosen automatically to fill the available area.
--
-- Allowed values: >= -1
--
-- Default value: -1
iconViewColumns :: IconViewClass self => Attr self Int
-- | The item-width property specifies the width to use for each item. If
-- it is set to -1, the icon view will automatically determine a suitable
-- item size.
--
-- Allowed values: >= -1
--
-- Default value: -1
iconViewItemWidth :: IconViewClass self => Attr self Int
-- | The spacing property specifies the space which is inserted between the
-- cells (i.e. the icon and the text) of an item.
--
-- Allowed values: >= 0
--
-- Default value: 0
iconViewSpacing :: IconViewClass self => Attr self Int
-- | The row-spacing property specifies the space which is inserted between
-- the rows of the icon view.
--
-- Allowed values: >= 0
--
-- Default value: 6
iconViewRowSpacing :: IconViewClass self => Attr self Int
-- | The column-spacing property specifies the space which is inserted
-- between the columns of the icon view.
--
-- Allowed values: >= 0
--
-- Default value: 6
iconViewColumnSpacing :: IconViewClass self => Attr self Int
-- | The margin property specifies the space which is inserted at the edges
-- of the icon view.
--
-- Allowed values: >= 0
--
-- Default value: 6
iconViewMargin :: IconViewClass self => Attr self Int
-- | The orientation property specifies how the cells (i.e. the icon and
-- the text) of the item are positioned relative to each other.
--
-- Default value: <tt>OrientationVertical</tt>
iconViewOrientation :: IconViewClass self => Attr self Orientation
-- | The reorderable property specifies if the items can be reordered by
-- DND.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
iconViewReorderable :: IconViewClass self => Attr self Bool
-- | The item-orientation property specifies how the cells (i.e. the icon
-- and the text) of the item are positioned relative to each other.
--
-- Default value: <tt>OrientationVertical</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
iconViewItemOrientation :: IconViewClass self => Attr self Orientation
-- | New scroll adjustment have been set for this widget.
setIconViewScrollAdjustments :: IconViewClass self => Signal self (Adjustment -> Adjustment -> IO ())
-- | A specific element has been activated (by pressing enter or double
-- clicking).
itemActivated :: IconViewClass self => Signal self (TreePath -> IO ())
-- | The selected item changed.
selectionChanged :: IconViewClass self => Signal self (IO ())
-- | The selection object for <a>TreeView</a>
module Graphics.UI.Gtk.ModelView.TreeSelection
data TreeSelection
class GObjectClass o => TreeSelectionClass o
castToTreeSelection :: GObjectClass obj => obj -> TreeSelection
gTypeTreeSelection :: GType
toTreeSelection :: TreeSelectionClass o => o -> TreeSelection
-- | Mode in which selections can be performed
--
-- <ul>
-- <li>There is a deprecated entry SelectionExtended which should have
-- the same value as SelectionMultiple. C2HS chokes on that
-- construct.</li>
-- </ul>
data SelectionMode
SelectionNone :: SelectionMode
SelectionSingle :: SelectionMode
SelectionBrowse :: SelectionMode
SelectionMultiple :: SelectionMode
-- | Callback type for a function that is called everytime the selection
-- changes. This function is set with
-- <a>treeSelectionSetSelectFunction</a>.
type TreeSelectionCB = TreePath -> IO Bool
-- | Callback function type for <a>treeSelectionSelectedForeach</a>.
type TreeSelectionForeachCB = TreeIter -> IO ()
-- | Set single or multiple choice.
treeSelectionSetMode :: TreeSelectionClass self => self -> SelectionMode -> IO ()
-- | Gets the selection mode.
treeSelectionGetMode :: TreeSelectionClass self => self -> IO SelectionMode
-- | Set a callback function if selection changes.
--
-- <ul>
-- <li>If set, this function is called before any node is selected or
-- unselected, giving some control over which nodes are selected. The
-- select function should return <tt>True</tt> if the state of the node
-- may be toggled, and <tt>False</tt> if the state of the node should be
-- left unchanged.</li>
-- </ul>
treeSelectionSetSelectFunction :: TreeSelectionClass self => self -> TreeSelectionCB -> IO ()
-- | Retrieve the <a>TreeView</a> widget that this <a>TreeSelection</a>
-- works on.
treeSelectionGetTreeView :: TreeSelectionClass self => self -> IO TreeView
-- | Retrieves the selection of a single choice <a>TreeSelection</a>.
treeSelectionGetSelected :: TreeSelectionClass self => self -> IO (Maybe TreeIter)
-- | Execute a function for each selected node.
--
-- <ul>
-- <li>Note that you cannot modify the tree or selection from within this
-- function. Hence, <a>treeSelectionGetSelectedRows</a> might be more
-- useful.</li>
-- </ul>
treeSelectionSelectedForeach :: TreeSelectionClass self => self -> TreeSelectionForeachCB -> IO ()
-- | Creates a list of paths of all selected rows.
--
-- <ul>
-- <li>Additionally, if you are planning on modifying the model after
-- calling this function, you may want to convert the returned list into
-- a list of <tt>TreeRowReference</tt>s. To do this, you can use
-- <tt>treeRowReferenceNew</tt>.</li>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeSelectionGetSelectedRows :: TreeSelectionClass self => self -> IO [TreePath]
-- | Returns the number of rows that are selected.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeSelectionCountSelectedRows :: TreeSelectionClass self => self -> IO Int
-- | Select a specific item by <a>TreePath</a>.
treeSelectionSelectPath :: TreeSelectionClass self => self -> TreePath -> IO ()
-- | Deselect a specific item by <a>TreePath</a>.
treeSelectionUnselectPath :: TreeSelectionClass self => self -> TreePath -> IO ()
-- | Returns True if the row at the given path is currently selected.
treeSelectionPathIsSelected :: TreeSelectionClass self => self -> TreePath -> IO Bool
-- | Select a specific item by <a>TreeIter</a>.
treeSelectionSelectIter :: TreeSelectionClass self => self -> TreeIter -> IO ()
-- | Deselect a specific item by <a>TreeIter</a>.
treeSelectionUnselectIter :: TreeSelectionClass self => self -> TreeIter -> IO ()
-- | Returns True if the row at the given iter is currently selected.
treeSelectionIterIsSelected :: TreeSelectionClass self => self -> TreeIter -> IO Bool
-- | Selects all the nodes. The tree selection must be set to
-- <a>SelectionMultiple</a> mode.
treeSelectionSelectAll :: TreeSelectionClass self => self -> IO ()
-- | Unselects all the nodes.
treeSelectionUnselectAll :: TreeSelectionClass self => self -> IO ()
-- | Selects a range of nodes, determined by <tt>startPath</tt> and
-- <tt>endPath</tt> inclusive. <tt>selection</tt> must be set to
-- <a>SelectionMultiple</a> mode.
treeSelectionSelectRange :: TreeSelectionClass self => self -> TreePath -> TreePath -> IO ()
-- | Unselects a range of nodes, determined by <tt>startPath</tt> and
-- <tt>endPath</tt> inclusive.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeSelectionUnselectRange :: TreeSelectionClass self => self -> TreePath -> TreePath -> IO ()
-- | 'mode' property. See <a>treeSelectionGetMode</a> and
-- <a>treeSelectionSetMode</a>
treeSelectionMode :: TreeSelectionClass self => Attr self SelectionMode
-- | Emitted whenever the selection has (possibly) changed. Please note
-- that this signal is mostly a hint. It may only be emitted once when a
-- range of rows are selected, and it may occasionally be emitted when
-- nothing has happened.
treeSelectionSelectionChanged :: TreeSelectionClass self => Signal self (IO ())
-- | A widget for displaying both trees and lists.
module Graphics.UI.Gtk.ModelView.TreeView
data TreeView
class ContainerClass o => TreeViewClass o
castToTreeView :: GObjectClass obj => obj -> TreeView
gTypeTreeView :: GType
toTreeView :: TreeViewClass o => o -> TreeView
-- | Represents the x and y coordinate of a point.
type Point = (Int, Int)
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction
-- | Grid lines.
data TreeViewGridLines
TreeViewGridLinesNone :: TreeViewGridLines
TreeViewGridLinesHorizontal :: TreeViewGridLines
TreeViewGridLinesVertical :: TreeViewGridLines
TreeViewGridLinesBoth :: TreeViewGridLines
-- | Creates a new <a>TreeView</a> widget.
treeViewNew :: IO TreeView
-- | Create a new <a>TreeView</a> widget with <tt>model</tt> as the storage
-- model.
treeViewNewWithModel :: TreeModelClass model => model -> IO TreeView
-- | Returns the model that supplies the data for this <a>TreeView</a>.
-- Returns <tt>Nothing</tt> if the model is unset.
treeViewGetModel :: TreeViewClass self => self -> IO (Maybe TreeModel)
-- | Set the <a>TreeModel</a> for the current View.
treeViewSetModel :: (TreeViewClass self, TreeModelClass model) => self -> model -> IO ()
-- | Retrieve a <a>TreeSelection</a> that holds the current selected nodes
-- of the View.
treeViewGetSelection :: TreeViewClass self => self -> IO TreeSelection
-- | Gets the <a>Adjustment</a> currently being used for the horizontal
-- aspect.
treeViewGetHAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)
-- | Sets the <a>Adjustment</a> for the current horizontal aspect.
treeViewSetHAdjustment :: TreeViewClass self => self -> Maybe Adjustment -> IO ()
-- | Gets the <a>Adjustment</a> currently being used for the vertical
-- aspect.
treeViewGetVAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)
-- | Sets the <a>Adjustment</a> for the current vertical aspect.
treeViewSetVAdjustment :: TreeViewClass self => self -> Maybe Adjustment -> IO ()
-- | Query if the column headers are visible.
treeViewGetHeadersVisible :: TreeViewClass self => self -> IO Bool
-- | Set the visibility state of the column headers.
treeViewSetHeadersVisible :: TreeViewClass self => self -> Bool -> IO ()
-- | Resize the columns to their optimal size.
treeViewColumnsAutosize :: TreeViewClass self => self -> IO ()
-- | Set wether the columns headers are sensitive to mouse clicks.
treeViewSetHeadersClickable :: TreeViewClass self => self -> Bool -> IO ()
-- | Query if visual aid for wide columns is turned on.
treeViewGetRulesHint :: TreeViewClass self => self -> IO Bool
-- | This function tells Gtk+ that the user interface for your application
-- requires users to read across tree rows and associate cells with one
-- another. By default, Gtk+ will then render the tree with alternating
-- row colors. Do <i>not</i> use it just because you prefer the
-- appearance of the ruled tree; that's a question for the theme. Some
-- themes will draw tree rows in alternating colors even when rules are
-- turned off, and users who prefer that appearance all the time can
-- choose those themes. You should call this function only as a
-- <i>semantic</i> hint to the theme engine that your tree makes
-- alternating colors useful from a functional standpoint (since it has
-- lots of columns, generally).
treeViewSetRulesHint :: TreeViewClass self => self -> Bool -> IO ()
-- | Append a new column to the <a>TreeView</a>. Returns the new number of
-- columns.
treeViewAppendColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int
-- | Remove column <tt>tvc</tt> from the <a>TreeView</a> widget. The number
-- of remaining columns is returned.
treeViewRemoveColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int
-- | Inserts column <tt>tvc</tt> into the <a>TreeView</a> widget at the
-- position <tt>pos</tt>. Returns the number of columns after insertion.
-- Specify -1 for <tt>pos</tt> to insert the column at the end.
treeViewInsertColumn :: TreeViewClass self => self -> TreeViewColumn -> Int -> IO Int
-- | Retrieve a <a>TreeViewColumn</a>.
--
-- <ul>
-- <li>Retrieve the <tt>pos</tt> th columns of <a>TreeView</a>. If the
-- index is out of range Nothing is returned.</li>
-- </ul>
treeViewGetColumn :: TreeViewClass self => self -> Int -> IO (Maybe TreeViewColumn)
-- | Return all <a>TreeViewColumn</a>s in this <a>TreeView</a>.
treeViewGetColumns :: TreeViewClass self => self -> IO [TreeViewColumn]
-- | Move a specific column.
--
-- <ul>
-- <li>Use <tt>treeViewMoveColumnToFront</tt> if you want to move the
-- column to the left end of the <a>TreeView</a>.</li>
-- </ul>
treeViewMoveColumnAfter :: TreeViewClass self => self -> TreeViewColumn -> TreeViewColumn -> IO ()
-- | Move a specific column.
--
-- <ul>
-- <li>Use <a>treeViewMoveColumnAfter</a> if you want to move the column
-- somewhere else than to the leftmost position.</li>
-- </ul>
treeViewMoveColumnFirst :: TreeViewClass self => self -> TreeViewColumn -> IO ()
-- | Set location of hierarchy controls.
--
-- <ul>
-- <li>Sets the column to draw the expander arrow at. If <tt>col</tt> is
-- <tt>Nothing</tt>, then the expander arrow is always at the first
-- visible column.</li>
-- </ul>
--
-- If you do not want expander arrow to appear in your tree, set the
-- expander column to a hidden column.
treeViewSetExpanderColumn :: TreeViewClass self => self -> Maybe TreeViewColumn -> IO ()
-- | Get location of hierarchy controls.
--
-- <ul>
-- <li>Gets the column to draw the expander arrow at. If <tt>col</tt> is
-- <tt>Nothing</tt>, then the expander arrow is always at the first
-- visible column.</li>
-- </ul>
treeViewGetExpanderColumn :: TreeViewClass self => self -> IO TreeViewColumn
-- | Specify where a column may be dropped.
--
-- <ul>
-- <li>Sets a user function for determining where a column may be dropped
-- when dragged. This function is called on every column pair in turn at
-- the beginning of a column drag to determine where a drop can take
-- place.</li>
-- <li>The callback function take the <a>TreeViewColumn</a> to be moved,
-- the second and third arguments are the columns on the left and right
-- side of the new location. At most one of them might be
-- <tt>Nothing</tt> which indicates that the column is about to be
-- dropped at the left or right end of the <a>TreeView</a>.</li>
-- <li>The predicate <tt>pred</tt> should return <tt>True</tt> if it is
-- ok to insert the column at this place.</li>
-- <li>Use <tt>Nothing</tt> for the predicate if columns can be inserted
-- anywhere.</li>
-- </ul>
treeViewSetColumnDragFunction :: TreeViewClass self => self -> Maybe (TreeViewColumn -> Maybe TreeViewColumn -> Maybe TreeViewColumn -> IO Bool) -> IO ()
-- | Scroll to a coordinate.
--
-- <ul>
-- <li>Scrolls the tree view such that the top-left corner of the visible
-- area is <tt>treeX</tt>, <tt>treeY</tt>, where <tt>treeX</tt> and
-- <tt>treeY</tt> are specified in tree window coordinates. The
-- <a>TreeView</a> must be realized before this function is called. If it
-- isn't, you probably want to use <a>treeViewScrollToCell</a>.</li>
-- </ul>
treeViewScrollToPoint :: TreeViewClass self => self -> Int -> Int -> IO ()
-- | Scroll to a cell.
--
-- Moves the alignments of tree_view to the position specified by
-- mbColumn and mbPath. If mbColumn is Nothing, then no horizontal
-- scrolling occurs. Likewise, if mbPath is Nothing no vertical scrolling
-- occurs. At a minimum, one of mbColumn or mbPath need to be provided.
-- <tt>rowAlign</tt> determines where the row is placed, and
-- <tt>colAlign</tt> determines where column is placed. Both are expected
-- to be between 0.0 and 1.0. 0.0 means left<i>top alignment, 1.0 means
-- right</i>bottom alignment, 0.5 means center.
--
-- If Nothing is passed instead of <tt>rowAlign</tt> and
-- <tt>colAlign</tt>, then the tree does the minimum amount of work to
-- scroll the cell onto the screen. This means that the cell will be
-- scrolled to the edge closest to its current position. If the cell is
-- currently visible on the screen, nothing is done.
--
-- This function only works if the model is set, and path is a valid row
-- on the model. If the model changes before the tree_view is realized,
-- the centered path will be modified to reflect this change.
treeViewScrollToCell :: TreeViewClass self => self -> Maybe TreePath -> Maybe TreeViewColumn -> Maybe (Float, Float) -> IO ()
-- | Selects a specific row.
--
-- <ul>
-- <li>Sets the current keyboard focus to be at <tt>path</tt>, and
-- selects it. This is useful when you want to focus the user's attention
-- on a particular row. If <tt>focusColumn</tt> is given, then the input
-- focus is given to the column specified by it. Additionally, if
-- <tt>focusColumn</tt> is specified, and <tt>startEditing</tt> is
-- <tt>True</tt>, then editing will be started in the specified cell.
-- This function is often followed by a <tt>widgetGrabFocus</tt> to the
-- <a>TreeView</a> in order to give keyboard focus to the widget.</li>
-- </ul>
treeViewSetCursor :: TreeViewClass self => self -> TreePath -> (Maybe (TreeViewColumn, Bool)) -> IO ()
-- | Selects a cell in a specific row.
--
-- <ul>
-- <li>Similar to <a>treeViewSetCursor</a> but allows a column to
-- containt several <a>CellRenderer</a>s.</li>
-- <li>Only available in Gtk 2.2 and higher.</li>
-- </ul>
treeViewSetCursorOnCell :: (TreeViewClass self, CellRendererClass focusCell) => self -> TreePath -> TreeViewColumn -> focusCell -> Bool -> IO ()
-- | Retrieves the position of the focus.
--
-- <ul>
-- <li>Returns a pair <tt>(path, column)</tt>.If the cursor is not
-- currently set, <tt>path</tt> will be <tt>[]</tt>. If no column is
-- currently selected, <tt>column</tt> will be <tt>Nothing</tt>.</li>
-- </ul>
treeViewGetCursor :: TreeViewClass self => self -> IO (TreePath, Maybe TreeViewColumn)
-- | Emit the activated signal on a cell.
treeViewRowActivated :: TreeViewClass self => self -> TreePath -> TreeViewColumn -> IO ()
-- | Recursively expands all nodes in the tree view.
treeViewExpandAll :: TreeViewClass self => self -> IO ()
-- | Recursively collapses all visible, expanded nodes in the tree view.
treeViewCollapseAll :: TreeViewClass self => self -> IO ()
-- | Make a certain path visible.
--
-- <ul>
-- <li>This will expand all parent rows of <tt>tp</tt> as necessary.</li>
-- <li>Only available in Gtk 2.2 and higher.</li>
-- </ul>
treeViewExpandToPath :: TreeViewClass self => self -> TreePath -> IO ()
-- | Opens the row so its children are visible.
treeViewExpandRow :: TreeViewClass self => self -> TreePath -> Bool -> IO Bool
-- | Collapses a row (hides its child rows, if they exist).
treeViewCollapseRow :: TreeViewClass self => self -> TreePath -> IO Bool
-- | Call function for every expaned row.
treeViewMapExpandedRows :: TreeViewClass self => self -> (TreePath -> IO ()) -> IO ()
-- | Check if row is expanded.
treeViewRowExpanded :: TreeViewClass self => self -> TreePath -> IO Bool
-- | Query if rows can be moved around.
--
-- <ul>
-- <li>See <a>treeViewSetReorderable</a>.</li>
-- </ul>
treeViewGetReorderable :: TreeViewClass self => self -> IO Bool
-- | Check if rows can be moved around.
--
-- <ul>
-- <li>Set whether the user can use drag and drop (DND) to reorder the
-- rows in the store. This works on both <a>TreeStore</a> and
-- <a>ListStore</a> models. If <tt>ro</tt> is <tt>True</tt>, then the
-- user can reorder the model by dragging and dropping rows. The
-- developer can listen to these changes by connecting to the model's
-- signals. If you need to control which rows may be dragged or where
-- rows may be dropped, you can override the
-- <a>treeDragSourceRowDraggable</a> function in the default DND
-- implementation of the model.</li>
-- </ul>
treeViewSetReorderable :: TreeViewClass self => self -> Bool -> IO ()
-- | Map a pixel to the specific cell.
--
-- <ul>
-- <li>Finds the path at the <a>Point</a> <tt>(x, y)</tt>. The
-- coordinates <tt>x</tt> and <tt>y</tt> are relative to the top left
-- corner of the <a>TreeView</a> drawing window. As such, coordinates in
-- a mouse click event can be used directly to determine the cell which
-- the user clicked on. This function is useful to realize popup
-- menus.</li>
-- <li>The returned point is the input point relative to the cell's upper
-- left corner. The whole <a>TreeView</a> is divided between all cells.
-- The returned point is relative to the rectangle this cell occupies
-- within the <a>TreeView</a>.</li>
-- </ul>
treeViewGetPathAtPos :: TreeViewClass self => self -> Point -> IO (Maybe (TreePath, TreeViewColumn, Point))
-- | Retrieve the smallest bounding box of a cell.
--
-- <ul>
-- <li>Fills the bounding rectangle in tree window coordinates for the
-- cell at the row specified by <tt>tp</tt> and the column specified by
-- <tt>tvc</tt>. If <tt>path</tt> is <tt>Nothing</tt> or points to a path
-- not currently displayed, the <tt>y</tt> and <tt>height</tt> fields of
-- the <a>Rectangle</a> will be filled with <tt>0</tt>. The sum of all
-- cell rectangles does not cover the entire tree; there are extra pixels
-- in between rows, for example.</li>
-- </ul>
treeViewGetCellArea :: TreeViewClass self => self -> Maybe TreePath -> TreeViewColumn -> IO Rectangle
-- | Retrieve the largest bounding box of a cell.
--
-- <ul>
-- <li>Fills the bounding rectangle in tree window coordinates for the
-- cell at the row specified by <tt>tp</tt> and the column specified by
-- <tt>tvc</tt>. If <tt>path</tt> is <tt>Nothing</tt> or points to a path
-- not currently displayed, the <tt>y</tt> and <tt>height</tt> fields of
-- the <a>Rectangle</a> will be filled with <tt>0</tt>. The background
-- areas tile the widget's area to cover the entire tree window (except
-- for the area used for header buttons). Contrast this with
-- <a>treeViewGetCellArea</a>.</li>
-- </ul>
treeViewGetBackgroundArea :: TreeViewClass self => self -> Maybe TreePath -> TreeViewColumn -> IO Rectangle
-- | Retrieve the currently visible area.
--
-- <ul>
-- <li>The returned rectangle gives the visible part of the tree in tree
-- coordinates.</li>
-- </ul>
treeViewGetVisibleRect :: TreeViewClass self => self -> IO Rectangle
-- | Converts bin window coordinates to coordinates for the tree (the full
-- scrollable area of the tree).
treeViewConvertBinWindowToTreeCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Converts bin window coordinates (see <tt>treeViewGetBinWindow</tt> to
-- widget relative coordinates.
treeViewConvertBinWindowToWidgetCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Converts tree coordinates (coordinates in full scrollable area of the
-- tree) to bin window coordinates.
treeViewConvertTreeToBinWindowCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Converts tree coordinates (coordinates in full scrollable area of the
-- tree) to widget coordinates.
treeViewConvertTreeToWidgetCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Converts widget coordinates to coordinates for the window (see
-- <tt>treeViewGetBinWindow</tt> ).
treeViewConvertWidgetToBinWindowCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Converts widget coordinates to coordinates for the tree (the full
-- scrollable area of the tree).
treeViewConvertWidgetToTreeCoords :: TreeViewClass self => self -> Point -> IO Point
-- | Returns whether or not the tree allows to start interactive searching
-- by typing in text.
--
-- <ul>
-- <li>If enabled, the user can type in text which will set the cursor to
-- the first matching entry.</li>
-- </ul>
treeViewGetEnableSearch :: TreeViewClass self => self -> IO Bool
-- | If this is set, then the user can type in text to search through the
-- tree interactively (this is sometimes called "typeahead find").
--
-- Note that even if this is <tt>False</tt>, the user can still initiate
-- a search using the "start-interactive-search" key binding. In any
-- case, a predicate that compares a row of the model with the text the
-- user has typed must be set using <a>treeViewSetSearchEqualFunc</a>.
treeViewSetEnableSearch :: TreeViewClass self => self -> Bool -> IO ()
-- | Gets the column searched on by the interactive search code.
treeViewGetSearchColumn :: (TreeViewClass self, GlibString string) => self -> IO (ColumnId row string)
-- | Sets <tt>column</tt> as the column where the interactive search code
-- should search in.
--
-- If the sort column is set, users can use the
-- "start-interactive-search" key binding to bring up search popup. The
-- enable-search property controls whether simply typing text will also
-- start an interactive search.
--
-- Note that <tt>column</tt> refers to a column of the model.
-- Furthermore, the search column is not used if a comparison function is
-- set, see <a>treeViewSetSearchEqualFunc</a>.
treeViewSetSearchColumn :: (TreeViewClass self, GlibString string) => self -> (ColumnId row string) -> IO ()
-- | Set the predicate to test for equality.
--
-- <ul>
-- <li>The predicate must returns <tt>True</tt> if the text entered by
-- the user and the row of the model match. Calling this function will
-- overwrite the <a>treeViewSearchColumn</a> (which isn't used anyway
-- when a comparison function is installed).</li>
-- </ul>
treeViewSetSearchEqualFunc :: (TreeViewClass self, GlibString string) => self -> Maybe (string -> TreeIter -> IO Bool) -> IO ()
-- | Returns whether fixed height mode is turned on for the tree view.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewGetFixedHeightMode :: TreeViewClass self => self -> IO Bool
-- | Enables or disables the fixed height mode of the tree view. Fixed
-- height mode speeds up <a>TreeView</a> by assuming that all rows have
-- the same height. Only enable this option if all rows are the same
-- height and all columns are of type <tt>TreeViewColumnFixed</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewSetFixedHeightMode :: TreeViewClass self => self -> Bool -> IO ()
-- | Returns whether hover selection mode is turned on for
-- <tt>treeView</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewGetHoverSelection :: TreeViewClass self => self -> IO Bool
-- | Enables of disables the hover selection mode of the tree view. Hover
-- selection makes the selected row follow the pointer. Currently, this
-- works only for the selection modes <tt>SelectionSingle</tt> and
-- <tt>SelectionBrowse</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewSetHoverSelection :: TreeViewClass self => self -> Bool -> IO ()
-- | Returns whether hover expansion mode is turned on for the tree view.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewGetHoverExpand :: TreeViewClass self => self -> IO Bool
-- | Enables of disables the hover expansion mode of the tree view. Hover
-- expansion makes rows expand or collaps if the pointer moves over them.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewSetHoverExpand :: TreeViewClass self => self -> Bool -> IO ()
-- | Returns whether all header columns are clickable.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewGetHeadersClickable :: TreeViewClass self => self -> IO Bool
-- | Return the first and last visible path. Note that there may be
-- invisible paths in between.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
treeViewGetVisibleRange :: TreeViewClass self => self -> IO (TreePath, TreePath)
-- | Turns <tt>treeView</tt> into a drop destination for automatic DND.
treeViewEnableModelDragDest :: TreeViewClass self => self -> TargetList -> [DragAction] -> IO ()
-- | Turns <tt>treeView</tt> into a drag source for automatic DND.
treeViewEnableModelDragSource :: TreeViewClass self => self -> [Modifier] -> TargetList -> [DragAction] -> IO ()
-- | Undoes the effect of <a>treeViewEnableModelDragSource</a>.
treeViewUnsetRowsDragSource :: TreeViewClass self => self -> IO ()
-- | Undoes the effect of <a>treeViewEnableModelDragDest</a>.
treeViewUnsetRowsDragDest :: TreeViewClass self => self -> IO ()
-- | Returns the <a>Entry</a> which is currently in use as interactive
-- search entry for <tt>treeView</tt>. In case the built-in entry is
-- being used, <tt>Nothing</tt> will be returned.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewGetSearchEntry :: TreeViewClass self => self -> IO (Maybe Entry)
-- | Sets the entry which the interactive search code will use for this
-- <tt>treeView</tt>. This is useful when you want to provide a search
-- entry in our interface at all time at a fixed position. Passing
-- <tt>Nothing</tt> for <tt>entry</tt> will make the interactive search
-- code use the built-in popup entry again.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewSetSearchEntry :: (TreeViewClass self, EntryClass entry) => self -> (Maybe entry) -> IO ()
-- | Sets the row separator function, which is used to determine whether a
-- row should be drawn as a separator. If the row separator function is
-- <tt>Nothing</tt>, no separators are drawn. This is the default value.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewSetRowSeparatorFunc :: TreeViewClass self => self -> Maybe (TreeIter -> IO Bool) -> IO ()
-- | Returns whether rubber banding is turned on for <tt>treeView</tt>. If
-- the selection mode is <tt>SelectionMultiple</tt>, rubber banding will
-- allow the user to select multiple rows by dragging the mouse.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewGetRubberBanding :: TreeViewClass self => self -> IO Bool
-- | Enables or disables rubber banding in <tt>treeView</tt>. If the
-- selection mode is <tt>SelectionMultiple</tt>, rubber banding will
-- allow the user to select multiple rows by dragging the mouse.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewSetRubberBanding :: TreeViewClass self => self -> Bool -> IO ()
-- | Returns whether or not tree lines are drawn in <tt>treeView</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewGetEnableTreeLines :: TreeViewClass self => self -> IO Bool
-- | Sets whether to draw lines interconnecting the expanders in
-- <tt>treeView</tt>. This does not have any visible effects for lists.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewSetEnableTreeLines :: TreeViewClass self => self -> Bool -> IO ()
-- | Returns which grid lines are enabled in <tt>treeView</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewGetGridLines :: TreeViewClass self => self -> IO TreeViewGridLines
-- | Sets which grid lines to draw in <tt>treeView</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
treeViewSetGridLines :: TreeViewClass self => self -> TreeViewGridLines -> IO ()
-- | Sets the tip area of <tt>tooltip</tt> to be the area covered by
-- <tt>path</tt>. See also <a>treeViewTooltipColumn</a> for a simpler
-- alternative. See also <tt>tooltipSetTipArea</tt>.
treeViewSetTooltipRow :: TreeViewClass self => self -> Tooltip -> TreePath -> IO ()
-- | Sets the tip area of tooltip to the area path, column and cell have in
-- common. For example if <tt>path</tt> is <tt>Nothing</tt> and
-- <tt>column</tt> is set, the tip area will be set to the full area
-- covered by column. See also <tt>tooltipSetTipArea</tt>. Note that if
-- <tt>path</tt> is not specified and <tt>cell</tt> is set and part of a
-- column containing the expander, the tooltip might not show and hide at
-- the correct position. In such cases <tt>path</tt> must be set to the
-- current node under the mouse cursor for this function to operate
-- correctly. See also <a>treeViewTooltipColumn</a> for a simpler
-- alternative.
treeViewSetTooltipCell :: (TreeViewClass self, TreeViewColumnClass col, CellRendererClass renderer) => self -> Tooltip -> Maybe TreePath -> Maybe col -> Maybe renderer -> IO ()
-- | This function is supposed to be used in a <tt>widgetQueryTooltip</tt>
-- signal handler for this <a>TreeView</a>. The <tt>point</tt> value
-- which is received in the signal handler should be passed to this
-- function without modification. A return value of <tt>Just iter</tt>
-- indicates that there is a tree view row at the given coordinates (if
-- <tt>Just (x,y)</tt> is passed in, denoting a mouse position), resp.
-- the cursor row (if <tt>Nothing</tt> is passed in, denoting a keyboard
-- request).
treeViewGetTooltipContext :: TreeViewClass self => self -> Maybe Point -> IO (Maybe TreeIter)
-- | The model for the tree view.
treeViewModel :: (TreeViewClass self, TreeModelClass model) => ReadWriteAttr self (Maybe TreeModel) model
-- | Horizontal Adjustment for the widget.
treeViewHAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)
-- | Vertical Adjustment for the widget.
treeViewVAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)
-- | Show the column header buttons.
--
-- Default value: <tt>True</tt>
treeViewHeadersVisible :: TreeViewClass self => Attr self Bool
-- | Column headers respond to click events.
--
-- Default value: <tt>False</tt>
treeViewHeadersClickable :: TreeViewClass self => Attr self Bool
-- | Set the column for the expander column.
treeViewExpanderColumn :: TreeViewClass self => ReadWriteAttr self TreeViewColumn (Maybe TreeViewColumn)
-- | View is reorderable.
--
-- Default value: <tt>False</tt>
treeViewReorderable :: TreeViewClass self => Attr self Bool
-- | Set a hint to the theme engine to draw rows in alternating colors.
--
-- Default value: <tt>False</tt>
treeViewRulesHint :: TreeViewClass self => Attr self Bool
-- | View allows user to search through columns interactively.
--
-- Default value: <tt>True</tt>
treeViewEnableSearch :: TreeViewClass self => Attr self Bool
-- | Model column to search through when searching through code.
--
-- Default value: <tt>invalidColumnId</tt>
treeViewSearchColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)
-- | Setting the <a>treeViewFixedHeightMode</a> property to <tt>True</tt>
-- speeds up <a>TreeView</a> by assuming that all rows have the same
-- height. Only enable this option if all rows are the same height.
-- Please see <a>treeViewSetFixedHeightMode</a> for more information on
-- this option.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
treeViewFixedHeightMode :: TreeViewClass self => Attr self Bool
-- | Enables of disables the hover selection mode of <tt>treeView</tt>.
-- Hover selection makes the selected row follow the pointer. Currently,
-- this works only for the selection modes <tt>SelectionSingle</tt> and
-- <tt>SelectionBrowse</tt>.
--
-- This mode is primarily intended for <a>TreeView</a>s in popups, e.g.
-- in <a>ComboBox</a> or <a>EntryCompletion</a>.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewHoverSelection :: TreeViewClass self => Attr self Bool
-- | Enables of disables the hover expansion mode of <tt>treeView</tt>.
-- Hover expansion makes rows expand or collaps if the pointer moves over
-- them.
--
-- This mode is primarily intended for <a>TreeView</a>s in popups, e.g.
-- in <a>ComboBox</a> or <a>EntryCompletion</a>.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
treeViewHoverExpand :: TreeViewClass self => Attr self Bool
-- | View has expanders.
--
-- Default value: <tt>True</tt>
treeViewShowExpanders :: TreeViewClass self => Attr self Bool
-- | Extra indentation for each level.
--
-- Allowed values: >= 0
--
-- Default value: 0
treeViewLevelIndentation :: TreeViewClass self => Attr self Int
-- | Whether to enable selection of multiple items by dragging the mouse
-- pointer.
--
-- Default value: <tt>False</tt>
treeViewRubberBanding :: TreeViewClass self => Attr self Bool
-- | Whether grid lines should be drawn in the tree view.
--
-- Default value: <a>TreeViewGridLinesNone</a>
treeViewEnableGridLines :: TreeViewClass self => Attr self TreeViewGridLines
-- | Whether tree lines should be drawn in the tree view.
--
-- Default value: <tt>False</tt>
treeViewEnableTreeLines :: TreeViewClass self => Attr self Bool
-- | 'gridLines' property. See <a>treeViewGetGridLines</a> and
-- <a>treeViewSetGridLines</a>
treeViewGridLines :: TreeViewClass self => Attr self TreeViewGridLines
-- | 'searchEntry' property. See <a>treeViewGetSearchEntry</a> and
-- <a>treeViewSetSearchEntry</a>
treeViewSearchEntry :: (TreeViewClass self, EntryClass entry) => ReadWriteAttr self (Maybe Entry) (Maybe entry)
-- | The column for which to show tooltips.
--
-- If you only plan to have simple (text-only) tooltips on full rows, you
-- can use this function to have <a>TreeView</a> handle these
-- automatically for you. <tt>column</tt> should be set to a column in
-- model containing the tooltip texts, or <tt>-1</tt> to disable this
-- feature. When enabled, <tt>widgetHasTooltip</tt> will be set to
-- <tt>True</tt> and this view will connect to the
-- <tt>widgetQueryTooltip</tt> signal handler.
--
-- Note that the signal handler sets the text as <tt>Markup</tt>, so
-- &, <, etc have to be escaped in the text.
--
-- Default value: <tt>invalidColumnId</tt>
treeViewTooltipColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)
-- | The number of columns of the treeview has changed.
columnsChanged :: TreeViewClass self => Signal self (IO ())
-- | The position of the cursor (focused cell) has changed.
cursorChanged :: TreeViewClass self => Signal self (IO ())
-- | The given row has been collapsed (child nodes are hidden).
rowCollapsed :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())
-- | The given row has been expanded (child nodes are shown).
rowExpanded :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())
-- | A row was activated.
--
-- <ul>
-- <li>Activation usually means the user has pressed return on a
-- row.</li>
-- </ul>
rowActivated :: TreeViewClass self => Signal self (TreePath -> TreeViewColumn -> IO ())
-- | The given row is about to be collapsed (hide its children nodes). Use
-- this signal if you need to control the collapsibility of individual
-- rows.
testCollapseRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)
-- | The given row is about to be expanded (show its children nodes). Use
-- this signal if you need to control the expandability of individual
-- rows.
testExpandRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)
instance GHC.Enum.Enum Graphics.UI.Gtk.ModelView.TreeView.TreeViewGridLines
-- | A visible column in a <a>TreeView</a> widget
module Graphics.UI.Gtk.ModelView.TreeViewColumn
data TreeViewColumn
class GObjectClass o => TreeViewColumnClass o
castToTreeViewColumn :: GObjectClass obj => obj -> TreeViewColumn
gTypeTreeViewColumn :: GType
toTreeViewColumn :: TreeViewColumnClass o => o -> TreeViewColumn
-- | Generate a new TreeViewColumn widget.
treeViewColumnNew :: IO TreeViewColumn
-- | Add a cell renderer at the beginning of a column.
--
-- <ul>
-- <li>Excess space is divided equally among all renderers which have
-- <tt>expand</tt> set to True.</li>
-- </ul>
treeViewColumnPackStart :: CellRendererClass cell => TreeViewColumn -> cell -> Bool -> IO ()
-- | Add a cell renderer at the end of a column.
--
-- <ul>
-- <li>Excess space is divided equally among all renderers which have
-- <tt>expand</tt> set to True.</li>
-- </ul>
treeViewColumnPackEnd :: CellRendererClass cell => TreeViewColumn -> cell -> Bool -> IO ()
-- | Remove the associations of attributes to a store for all
-- <a>CellRenderer</a>s.
treeViewColumnClear :: TreeViewColumn -> IO ()
-- | Set the number of pixels between two cell renderers.
treeViewColumnSetSpacing :: TreeViewColumn -> Int -> IO ()
-- | Get the number of pixels between two cell renderers.
treeViewColumnGetSpacing :: TreeViewColumn -> IO Int
-- | Set the visibility of a given column.
treeViewColumnSetVisible :: TreeViewColumn -> Bool -> IO ()
-- | Get the visibility of a given column.
treeViewColumnGetVisible :: TreeViewColumn -> IO Bool
-- | Set if a given column is resizable by the user.
treeViewColumnSetResizable :: TreeViewColumn -> Bool -> IO ()
-- | Get if a given column is resizable by the user.
treeViewColumnGetResizable :: TreeViewColumn -> IO Bool
-- | Wether columns of a tree or list widget can be resized.
data TreeViewColumnSizing
TreeViewColumnGrowOnly :: TreeViewColumnSizing
TreeViewColumnAutosize :: TreeViewColumnSizing
TreeViewColumnFixed :: TreeViewColumnSizing
-- | Set wether the column can be resized.
treeViewColumnSetSizing :: TreeViewColumn -> TreeViewColumnSizing -> IO ()
-- | Return the resizing type of the column.
treeViewColumnGetSizing :: TreeViewColumn -> IO TreeViewColumnSizing
-- | Query the current width of the column.
treeViewColumnGetWidth :: TreeViewColumn -> IO Int
-- | Set the width of the column.
--
-- <ul>
-- <li>This is meaningful only if the sizing type is
-- <a>TreeViewColumnFixed</a>.</li>
-- </ul>
treeViewColumnSetFixedWidth :: TreeViewColumn -> Int -> IO ()
-- | Gets the fixed width of the column.
--
-- <ul>
-- <li>This is meaningful only if the sizing type is
-- <a>TreeViewColumnFixed</a>.</li>
-- <li>This value is only meaning may not be the actual width of the
-- column on the screen, just what is requested.</li>
-- </ul>
treeViewColumnGetFixedWidth :: TreeViewColumn -> IO Int
-- | Set minimum width of the column.
treeViewColumnSetMinWidth :: TreeViewColumn -> Int -> IO ()
-- | Get the minimum width of a column. Returns -1 if this width was not
-- set.
treeViewColumnGetMinWidth :: TreeViewColumn -> IO Int
-- | Set maximum width of the column.
treeViewColumnSetMaxWidth :: TreeViewColumn -> Int -> IO ()
-- | Get the maximum width of a column. Returns -1 if this width was not
-- set.
treeViewColumnGetMaxWidth :: TreeViewColumn -> IO Int
-- | Emit the <tt>clicked</tt> signal on the column.
treeViewColumnClicked :: TreeViewColumn -> IO ()
-- | Set the widget's title if a custom widget has not been set.
treeViewColumnSetTitle :: GlibString string => TreeViewColumn -> string -> IO ()
-- | Get the widget's title.
treeViewColumnGetTitle :: GlibString string => TreeViewColumn -> IO (Maybe string)
-- | Set if the column should be sensitive to mouse clicks.
treeViewColumnSetClickable :: TreeViewColumn -> Bool -> IO ()
-- | Returns True if the user can click on the header for the column.
treeViewColumnGetClickable :: TreeViewColumn -> IO Bool
-- | Set the column's title to this widget.
treeViewColumnSetWidget :: WidgetClass widget => TreeViewColumn -> Maybe widget -> IO ()
-- | Retrieve the widget responsible for showing the column title. In case
-- only a text title was set this will be a <a>Alignment</a> widget with
-- a <a>Label</a> inside.
treeViewColumnGetWidget :: TreeViewColumn -> IO (Maybe Widget)
-- | Sets the alignment of the title or custom widget inside the column
-- header. The alignment determines its location inside the button -- 0.0
-- for left, 0.5 for center, 1.0 for right.
treeViewColumnSetAlignment :: TreeViewColumn -> Float -> IO ()
-- | Returns the current x alignment of the tree column. This value can
-- range between 0.0 and 1.0.
treeViewColumnGetAlignment :: TreeViewColumn -> IO Float
-- | Set if the column can be reordered by the end user dragging the
-- header.
treeViewColumnSetReorderable :: TreeViewColumn -> Bool -> IO ()
-- | Returns whether the column can be reordered by the user.
treeViewColumnGetReorderable :: TreeViewColumn -> IO Bool
-- | Set the column by which to sort.
--
-- <ul>
-- <li>Sets the logical <tt>columnId</tt> that this column sorts on when
-- this column is selected for sorting. The selected column's header will
-- be clickable after this call. Logical refers to the
-- <a>SortColumnId</a> for which a comparison function was set.</li>
-- </ul>
treeViewColumnSetSortColumnId :: TreeViewColumn -> SortColumnId -> IO ()
-- | Get the column by which to sort.
--
-- <ul>
-- <li>Retrieves the logical <tt>columnId</tt> that the model sorts on
-- when this column is selected for sorting.</li>
-- <li>Returns <a>treeSortableDefaultSortColumnId</a> if this tree view
-- column has no <a>SortColumnId</a> associated with it.</li>
-- </ul>
treeViewColumnGetSortColumnId :: TreeViewColumn -> IO SortColumnId
-- | Set if a given column has sorting arrows in its heading.
treeViewColumnSetSortIndicator :: TreeViewColumn -> Bool -> IO ()
-- | Query if a given column has sorting arrows in its heading.
treeViewColumnGetSortIndicator :: TreeViewColumn -> IO Bool
-- | Set if a given column is sorted in ascending or descending order.
--
-- <ul>
-- <li>In order for sorting to work, it is necessary to either use
-- automatic sorting via <a>treeViewColumnSetSortColumnId</a> or to use a
-- user defined sorting on the elements in a <a>TreeModel</a>.</li>
-- </ul>
treeViewColumnSetSortOrder :: TreeViewColumn -> SortType -> IO ()
-- | Query if a given column is sorted in ascending or descending order.
treeViewColumnGetSortOrder :: TreeViewColumn -> IO SortType
data SortType
SortAscending :: SortType
SortDescending :: SortType
-- | Sets the column to take available extra space. This space is shared
-- equally amongst all columns that have the expand set to <tt>True</tt>.
-- If no column has this option set, then the last column gets all extra
-- space. By default, every column is created with this <tt>False</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
treeViewColumnSetExpand :: TreeViewColumn -> Bool -> IO ()
-- | Return <tt>True</tt> if the column expands to take any available
-- space.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
treeViewColumnGetExpand :: TreeViewColumn -> IO Bool
-- | Returns <tt>True</tt> if any of the cells packed into the
-- <tt>treeColumn</tt> are visible. For this to be meaningful, you must
-- first initialize the cells with <tt>treeViewColumnCellSetCellData</tt>
treeViewColumnCellIsVisible :: TreeViewColumn -> IO Bool
-- | Sets the current keyboard focus to be at <tt>cell</tt>, if the column
-- contains 2 or more editable and activatable cells.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
treeViewColumnFocusCell :: CellRendererClass cell => TreeViewColumn -> cell -> IO ()
-- | Flags the column, and the cell renderers added to this column, to have
-- their sizes renegotiated.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
treeViewColumnQueueResize :: TreeViewColumn -> IO ()
-- | Whether to display the column.
--
-- Default value: <tt>True</tt>
treeViewColumnVisible :: Attr TreeViewColumn Bool
-- | Column is user-resizable.
--
-- Default value: <tt>False</tt>
treeViewColumnResizable :: Attr TreeViewColumn Bool
-- | Current width of the column.
--
-- Allowed values: >= 0
--
-- Default value: 0
treeViewColumnWidth :: ReadAttr TreeViewColumn Int
-- | Space which is inserted between cells.
--
-- Allowed values: >= 0
--
-- Default value: 0
treeViewColumnSpacing :: Attr TreeViewColumn Int
-- | Resize mode of the column.
--
-- Default value: <a>TreeViewColumnGrowOnly</a>
treeViewColumnSizing :: Attr TreeViewColumn TreeViewColumnSizing
-- | Current fixed width of the column.
--
-- Allowed values: >= 1
--
-- Default value: 1
treeViewColumnFixedWidth :: Attr TreeViewColumn Int
-- | Minimum allowed width of the column.
--
-- Allowed values: >= -1
--
-- Default value: -1
treeViewColumnMinWidth :: Attr TreeViewColumn Int
-- | Maximum allowed width of the column.
--
-- Allowed values: >= -1
--
-- Default value: -1
treeViewColumnMaxWidth :: Attr TreeViewColumn Int
-- | Title to appear in column header.
--
-- Default value: ""
treeViewColumnTitle :: GlibString string => ReadWriteAttr TreeViewColumn (Maybe string) string
-- | Column gets share of extra width allocated to the widget.
--
-- Default value: <tt>False</tt>
treeViewColumnExpand :: Attr TreeViewColumn Bool
-- | Whether the header can be clicked.
--
-- Default value: <tt>False</tt>
treeViewColumnClickable :: Attr TreeViewColumn Bool
-- | Widget to put in column header button instead of column title.
treeViewColumnWidget :: WidgetClass widget => ReadWriteAttr TreeViewColumn (Maybe Widget) (Maybe widget)
-- | X Alignment of the column header text or widget.
--
-- Allowed values: [0,1]
--
-- Default value: 0
treeViewColumnAlignment :: Attr TreeViewColumn Float
-- | Whether the column can be reordered around the headers.
--
-- Default value: <tt>False</tt>
treeViewColumnReorderable :: Attr TreeViewColumn Bool
-- | Whether to show a sort indicator.
--
-- Default value: <tt>False</tt>
treeViewColumnSortIndicator :: Attr TreeViewColumn Bool
-- | Sort direction the sort indicator should indicate.
--
-- Default value: <a>SortAscending</a>
treeViewColumnSortOrder :: Attr TreeViewColumn SortType
-- | 'sortColumnId' property. See <a>treeViewColumnGetSortColumnId</a> and
-- <a>treeViewColumnSetSortColumnId</a>
treeViewColumnSortColumnId :: Attr TreeViewColumn SortColumnId
-- | Emitted when the header of this column has been clicked on.
onColClicked :: TreeViewColumnClass self => self -> IO () -> IO (ConnectId self)
-- | Emitted when the header of this column has been clicked on.
afterColClicked :: TreeViewColumnClass self => self -> IO () -> IO (ConnectId self)
-- | New model-based tree/list widget system.
--
-- This just re-exports the Graphics.UI.Gtk.ModelView.* modules.
--
-- <ul>
-- <li>Note: From this version of Gtk2Hs this system will be the default
-- so it will not be necessary to explicitly import this module.</li>
-- </ul>
module Graphics.UI.Gtk.ModelView
-- | Widget that displays a <a>TextBuffer</a>
module Graphics.UI.Gtk.Multiline.TextView
data TextView
class ContainerClass o => TextViewClass o
data TextChildAnchor
class GObjectClass o => TextChildAnchorClass o
castToTextView :: GObjectClass obj => obj -> TextView
gTypeTextView :: GType
toTextView :: TextViewClass o => o -> TextView
-- | Editing option
data DeleteType
DeleteChars :: DeleteType
DeleteWordEnds :: DeleteType
DeleteWords :: DeleteType
DeleteDisplayLines :: DeleteType
DeleteDisplayLineEnds :: DeleteType
DeleteParagraphEnds :: DeleteType
DeleteParagraphs :: DeleteType
DeleteWhitespace :: DeleteType
-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType
-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification
-- | Movement in text widget
data MovementStep
MovementLogicalPositions :: MovementStep
MovementVisualPositions :: MovementStep
MovementWords :: MovementStep
MovementDisplayLines :: MovementStep
MovementDisplayLineEnds :: MovementStep
MovementParagraphs :: MovementStep
MovementParagraphEnds :: MovementStep
MovementPages :: MovementStep
MovementBufferEnds :: MovementStep
MovementHorizontalPages :: MovementStep
data TextWindowType
TextWindowPrivate :: TextWindowType
TextWindowWidget :: TextWindowType
TextWindowText :: TextWindowType
TextWindowLeft :: TextWindowType
TextWindowRight :: TextWindowType
TextWindowTop :: TextWindowType
TextWindowBottom :: TextWindowType
-- | Determine how lines are wrapped in a <a>TextView</a>.
data WrapMode
WrapNone :: WrapMode
WrapChar :: WrapMode
WrapWord :: WrapMode
WrapWordChar :: WrapMode
-- | Creates a new <a>TextView</a>. If you don't call
-- <a>textViewSetBuffer</a> before using the text view, an empty default
-- buffer will be created for you. Get the buffer with
-- <a>textViewGetBuffer</a>. If you want to specify your own buffer,
-- consider <a>textViewNewWithBuffer</a>.
textViewNew :: IO TextView
-- | Creates a new <a>TextView</a> widget displaying the buffer
-- <tt>buffer</tt>. One buffer can be shared among many widgets.
textViewNewWithBuffer :: TextBufferClass buffer => buffer -> IO TextView
-- | Sets the given buffer as the buffer being displayed by the text view.
textViewSetBuffer :: (TextViewClass self, TextBufferClass buffer) => self -> buffer -> IO ()
-- | Returns the <a>TextBuffer</a> being displayed by this text view.
textViewGetBuffer :: TextViewClass self => self -> IO TextBuffer
-- | Scrolls the text view so that <tt>mark</tt> is on the screen in the
-- position indicated by <tt>xalign</tt> and <tt>yalign</tt>. An
-- alignment of 0.0 indicates left or top, 1.0 indicates right or bottom,
-- 0.5 means center. If the alignment is <tt>Nothing</tt>, the text
-- scrolls the minimal distance to get the mark onscreen, possibly not
-- scrolling at all. The effective screen for purposes of this function
-- is reduced by a margin of size <tt>withinMargin</tt>.
textViewScrollToMark :: (TextViewClass self, TextMarkClass mark) => self -> mark -> Double -> Maybe (Double, Double) -> IO ()
-- | Scrolls the text view so that <tt>iter</tt> is on the screen in the
-- position indicated by <tt>xalign</tt> and <tt>yalign</tt>. An
-- alignment of 0.0 indicates left or top, 1.0 indicates right or bottom,
-- 0.5 means center. If the alignment is <tt>Nothing</tt>, the text
-- scrolls the minimal distance to get the mark onscreen, possibly not
-- scrolling at all. The effective screen for purposes of this function
-- is reduced by a margin of size <tt>withinMargin</tt>.
--
-- <ul>
-- <li>This function uses the currently-computed height of the lines in
-- the text buffer. Note that line heights are computed in an idle
-- handler; so this function may not have the desired effect if it's
-- called before the height computations. To avoid oddness, consider
-- using <a>textViewScrollToMark</a> which saves a point to be scrolled
-- to after line validation. This is particularly important if you add
-- new text to the buffer and immediately ask the view to scroll to it
-- (which it can't since it is not updated until the main loop
-- runs).</li>
-- </ul>
textViewScrollToIter :: TextViewClass self => self -> TextIter -> Double -> Maybe (Double, Double) -> IO Bool
-- | Scrolls the text view the minimum distance such that <tt>mark</tt> is
-- contained within the visible area of the widget.
textViewScrollMarkOnscreen :: (TextViewClass self, TextMarkClass mark) => self -> mark -> IO ()
-- | Moves a mark within the buffer so that it's located within the
-- currently-visible text area.
textViewMoveMarkOnscreen :: (TextViewClass self, TextMarkClass mark) => self -> mark -> IO Bool
-- | Moves the cursor to the currently visible region of the buffer, it it
-- isn't there already.
textViewPlaceCursorOnscreen :: TextViewClass self => self -> IO Bool
-- | Gets the <a>TextIter</a> at the start of the line containing the
-- coordinate <tt>y</tt>. <tt>y</tt> is in buffer coordinates, convert
-- from window coordinates with <a>textViewWindowToBufferCoords</a>. Also
-- returns <tt>lineTop</tt> the coordinate of the top edge of the line.
textViewGetLineAtY :: TextViewClass self => self -> Int -> IO (TextIter, Int)
-- | Gets the y coordinate of the top of the line containing <tt>iter</tt>,
-- and the height of the line. The coordinate is a buffer coordinate;
-- convert to window coordinates with
-- <a>textViewBufferToWindowCoords</a>.
textViewGetLineYrange :: TextViewClass self => self -> TextIter -> IO (Int, Int)
-- | Retrieves the iterator at buffer coordinates <tt>x</tt> and
-- <tt>y</tt>. Buffer coordinates are coordinates for the entire buffer,
-- not just the currently-displayed portion. If you have coordinates from
-- an event, you have to convert those to buffer coordinates with
-- <a>textViewWindowToBufferCoords</a>.
textViewGetIterAtLocation :: TextViewClass self => self -> Int -> Int -> IO TextIter
-- | Converts coordinate <tt>(bufferX, bufferY)</tt> to coordinates for the
-- window <tt>win</tt>
--
-- Note that you can't convert coordinates for a nonexisting window (see
-- <a>textViewSetBorderWindowSize</a>).
textViewBufferToWindowCoords :: TextViewClass self => self -> TextWindowType -> (Int, Int) -> IO (Int, Int)
-- | Converts coordinates on the window identified by <tt>win</tt> to
-- buffer coordinates.
--
-- Note that you can't convert coordinates for a nonexisting window (see
-- <a>textViewSetBorderWindowSize</a>).
textViewWindowToBufferCoords :: TextViewClass self => self -> TextWindowType -> (Int, Int) -> IO (Int, Int)
-- | Retrieves the <a>DrawWindow</a> corresponding to an area of the text
-- view; possible windows include the overall widget window, child
-- windows on the left, right, top, bottom, and the window that displays
-- the text buffer. Windows are <tt>Nothing</tt> and nonexistent if their
-- width or height is 0, and are nonexistent before the widget has been
-- realized.
textViewGetWindow :: TextViewClass self => self -> TextWindowType -> IO (Maybe DrawWindow)
-- | Retrieve the type of window the <a>TextView</a> widget contains.
--
-- Usually used to find out which window an event corresponds to. An
-- emission of an event signal of <a>TextView</a> yields a
-- <a>DrawWindow</a>. This function can be used to see if the event
-- actually belongs to the main text window.
textViewGetWindowType :: TextViewClass self => self -> DrawWindow -> IO TextWindowType
-- | Sets the width of <a>TextWindowLeft</a> or <a>TextWindowRight</a>, or
-- the height of <a>TextWindowTop</a> or <a>TextWindowBottom</a>.
-- Automatically destroys the corresponding window if the size is set to
-- 0, and creates the window if the size is set to non-zero. This
-- function can only be used for the "border windows", it doesn't work
-- with <a>TextWindowWidget</a>, <a>TextWindowText</a>, or
-- <a>TextWindowPrivate</a>.
textViewSetBorderWindowSize :: TextViewClass self => self -> TextWindowType -> Int -> IO ()
-- | Gets the width of the specified border window. See
-- <a>textViewSetBorderWindowSize</a>.
textViewGetBorderWindowSize :: TextViewClass self => self -> TextWindowType -> IO Int
-- | Moves the given <tt>iter</tt> forward by one display (wrapped) line. A
-- display line is different from a paragraph. Paragraphs are separated
-- by newlines or other paragraph separator characters. Display lines are
-- created by line-wrapping a paragraph. If wrapping is turned off,
-- display lines and paragraphs will be the same. Display lines are
-- divided differently for each view, since they depend on the view's
-- width; paragraphs are the same in all views, since they depend on the
-- contents of the <a>TextBuffer</a>.
textViewForwardDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool
-- | Moves the given <tt>iter</tt> backward by one display (wrapped) line.
-- A display line is different from a paragraph. Paragraphs are separated
-- by newlines or other paragraph separator characters. Display lines are
-- created by line-wrapping a paragraph. If wrapping is turned off,
-- display lines and paragraphs will be the same. Display lines are
-- divided differently for each view, since they depend on the view's
-- width; paragraphs are the same in all views, since they depend on the
-- contents of the <a>TextBuffer</a>.
textViewBackwardDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool
-- | Moves the given <tt>iter</tt> forward to the next display line end. A
-- display line is different from a paragraph. Paragraphs are separated
-- by newlines or other paragraph separator characters. Display lines are
-- created by line-wrapping a paragraph. If wrapping is turned off,
-- display lines and paragraphs will be the same. Display lines are
-- divided differently for each view, since they depend on the view's
-- width; paragraphs are the same in all views, since they depend on the
-- contents of the <a>TextBuffer</a>.
textViewForwardDisplayLineEnd :: TextViewClass self => self -> TextIter -> IO Bool
-- | Moves the given <tt>iter</tt> backward to the next display line start.
-- A display line is different from a paragraph. Paragraphs are separated
-- by newlines or other paragraph separator characters. Display lines are
-- created by line-wrapping a paragraph. If wrapping is turned off,
-- display lines and paragraphs will be the same. Display lines are
-- divided differently for each view, since they depend on the view's
-- width; paragraphs are the same in all views, since they depend on the
-- contents of the <a>TextBuffer</a>.
textViewBackwardDisplayLineStart :: TextViewClass self => self -> TextIter -> IO Bool
-- | Determines whether <tt>iter</tt> is at the start of a display line.
-- See <a>textViewForwardDisplayLine</a> for an explanation of display
-- lines vs. paragraphs.
textViewStartsDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool
-- | Move the iterator a given number of characters visually, treating it
-- as the strong cursor position. If <tt>count</tt> is positive, then the
-- new strong cursor position will be <tt>count</tt> positions to the
-- right of the old cursor position. If <tt>count</tt> is negative then
-- the new strong cursor position will be <tt>count</tt> positions to the
-- left of the old cursor position.
--
-- In the presence of bidirection text, the correspondence between
-- logical and visual order will depend on the direction of the current
-- run, and there may be jumps when the cursor is moved off of the end of
-- a run.
textViewMoveVisually :: TextViewClass self => self -> TextIter -> Int -> IO Bool
-- | Adds a child widget in the text buffer, at the given <tt>anchor</tt>.
textViewAddChildAtAnchor :: (TextViewClass self, WidgetClass child) => self -> child -> TextChildAnchor -> IO ()
-- | Create a new <a>TextChildAnchor</a>.
--
-- <ul>
-- <li>Using <tt>textBufferCreateChildAnchor</tt> is usually simpler then
-- executing this function and <tt>textBufferInsertChildAnchor</tt>.</li>
-- </ul>
textChildAnchorNew :: IO TextChildAnchor
-- | Retrieve all <a>Widget</a>s at this <a>TextChildAnchor</a>.
--
-- <ul>
-- <li>The widgets in the returned list need to be upcasted to what they
-- were.</li>
-- </ul>
textChildAnchorGetWidgets :: TextChildAnchor -> IO [Widget]
-- | Query if an anchor was deleted.
textChildAnchorGetDeleted :: TextChildAnchor -> IO Bool
-- | Adds a child at fixed coordinates in one of the text widget's windows.
-- The window must have nonzero size (see
-- <a>textViewSetBorderWindowSize</a>). Note that the child coordinates
-- are given relative to the <a>DrawWindow</a> in question, and that
-- these coordinates have no sane relationship to scrolling. When placing
-- a child in <a>TextWindowWidget</a>, scrolling is irrelevant, the child
-- floats above all scrollable areas. If you want the widget to move when
-- the text view scrolls, use <a>textViewAddChildAtAnchor</a> instead.
textViewAddChildInWindow :: (TextViewClass self, WidgetClass child) => self -> child -> TextWindowType -> Int -> Int -> IO ()
-- | Move a child widget within the <a>TextView</a>. This is really only
-- apprpriate for "floating" child widgets added using
-- <a>textViewAddChildInWindow</a>.
textViewMoveChild :: (TextViewClass self, WidgetClass child) => self -> child -> Int -> Int -> IO ()
-- | Sets the line wrapping for the view.
textViewSetWrapMode :: TextViewClass self => self -> WrapMode -> IO ()
-- | Gets the line wrapping for the view.
textViewGetWrapMode :: TextViewClass self => self -> IO WrapMode
-- | Sets the default editability of the <a>TextView</a>. You can override
-- this default setting with tags in the buffer, using the "editable"
-- attribute of tags.
textViewSetEditable :: TextViewClass self => self -> Bool -> IO ()
-- | Returns the default editability of the <a>TextView</a>. Tags in the
-- buffer may override this setting for some ranges of text.
textViewGetEditable :: TextViewClass self => self -> IO Bool
-- | Toggles whether the insertion point is displayed. A buffer with no
-- editable text probably shouldn't have a visible cursor, so you may
-- want to turn the cursor off.
textViewSetCursorVisible :: TextViewClass self => self -> Bool -> IO ()
-- | Find out whether the cursor is being displayed.
textViewGetCursorVisible :: TextViewClass self => self -> IO Bool
-- | Sets the default number of blank pixels above paragraphs in the text
-- view. Tags in the buffer for the text view may override the defaults.
--
-- <ul>
-- <li>Tags in the buffer may override this default.</li>
-- </ul>
textViewSetPixelsAboveLines :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default number of pixels to put above paragraphs.
textViewGetPixelsAboveLines :: TextViewClass self => self -> IO Int
-- | Sets the default number of pixels of blank space to put below
-- paragraphs in the text view. May be overridden by tags applied to the
-- text view's buffer.
textViewSetPixelsBelowLines :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default number of blank pixels below each paragraph.
textViewGetPixelsBelowLines :: TextViewClass self => self -> IO Int
-- | Sets the default number of pixels of blank space to leave between
-- display/wrapped lines within a paragraph. May be overridden by tags in
-- the text view's buffer.
textViewSetPixelsInsideWrap :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default number of pixels of blank space between lines in a
-- wrapped paragraph.
textViewGetPixelsInsideWrap :: TextViewClass self => self -> IO Int
-- | Sets the default justification of text in the text view. Tags in the
-- view's buffer may override the default.
textViewSetJustification :: TextViewClass self => self -> Justification -> IO ()
-- | Gets the default justification of paragraphs in the text view. Tags in
-- the buffer may override the default.
textViewGetJustification :: TextViewClass self => self -> IO Justification
-- | Sets the default left margin for text in the text view. Tags in the
-- buffer may override the default.
textViewSetLeftMargin :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default left margin size of paragraphs in the text view. Tags
-- in the buffer may override the default.
textViewGetLeftMargin :: TextViewClass self => self -> IO Int
-- | Sets the default right margin for text in the text view. Tags in the
-- buffer may override the default.
textViewSetRightMargin :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default right margin for text in the text view. Tags in the
-- buffer may override the default.
textViewGetRightMargin :: TextViewClass self => self -> IO Int
-- | Sets the default indentation for paragraphs in the text view. Tags in
-- the buffer may override the default.
textViewSetIndent :: TextViewClass self => self -> Int -> IO ()
-- | Gets the default indentation of paragraphs in the text view. Tags in
-- the view's buffer may override the default. The indentation may be
-- negative.
textViewGetIndent :: TextViewClass self => self -> IO Int
-- | Obtains a copy of the default text attributes. These are the
-- attributes used for text unless a tag overrides them. You'd typically
-- pass the default attributes in to <tt>textIterGetAttributes</tt> in
-- order to get the attributes in effect at a given text position.
textViewGetDefaultAttributes :: TextViewClass self => self -> IO TextAttributes
-- | Returns the currently-visible region of the buffer, in buffer
-- coordinates. Convert to window coordinates with
-- <a>textViewBufferToWindowCoords</a>.
textViewGetVisibleRect :: TextViewClass self => self -> IO Rectangle
-- | Gets a rectangle which roughly contains the character at
-- <tt>iter</tt>. The rectangle position is in buffer coordinates; use
-- <a>textViewBufferToWindowCoords</a> to convert these coordinates to
-- coordinates for one of the windows in the text view.
textViewGetIterLocation :: TextViewClass self => self -> TextIter -> IO Rectangle
-- | Retrieves the iterator pointing to the character at buffer coordinates
-- <tt>x</tt> and <tt>y</tt>. Buffer coordinates are coordinates for the
-- entire buffer, not just the currently-displayed portion. If you have
-- coordinates from an event, you have to convert those to buffer
-- coordinates with <a>textViewWindowToBufferCoords</a>.
--
-- Note that this is different from <a>textViewGetIterAtLocation</a>,
-- which returns cursor locations, i.e. positions <i>between</i>
-- characters.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
textViewGetIterAtPosition :: TextViewClass self => self -> Int -> Int -> IO (TextIter, Int)
-- | Changes the <a>TextView</a> overwrite mode.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
textViewSetOverwrite :: TextViewClass self => self -> Bool -> IO ()
-- | Returns whether the <a>TextView</a> is in overwrite mode or not.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
textViewGetOverwrite :: TextViewClass self => self -> IO Bool
-- | Sets the behavior of the text widget when the Tab key is pressed. If
-- <tt>acceptsTab</tt> is <tt>True</tt> a tab character is inserted. If
-- <tt>acceptsTab</tt> is <tt>False</tt> the keyboard focus is moved to
-- the next widget in the focus chain.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
textViewSetAcceptsTab :: TextViewClass self => self -> Bool -> IO ()
-- | Returns whether pressing the Tab key inserts a tab characters.
-- <a>textViewSetAcceptsTab</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
textViewGetAcceptsTab :: TextViewClass self => self -> IO Bool
-- | Gets the horizontal-scrolling <a>Adjustment</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
textViewGetHadjustment :: TextViewClass self => self -> IO Adjustment
-- | Gets the vertical-scrolling <a>Adjustment</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
textViewGetVadjustment :: TextViewClass self => self -> IO Adjustment
-- | Allow the <a>TextView</a> input method to internally handle key press
-- and release events. If this function returns <a>True</a>, then no
-- further processing should be done for this key event. See
-- <tt>imContextFilterKeypress</tt>.
--
-- Note that you are expected to call this function from your handler
-- when overriding key event handling. This is needed in the case when
-- you need to insert your own key handling between the input method and
-- the default key event handling of the <a>TextView</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
textViewImContextFilterKeypress :: TextViewClass self => self -> EventM EKey Bool
-- | Reset the input method context of the text view if needed.
--
-- This can be necessary in the case where modifying the buffer would
-- confuse on-going input method behavior.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
textViewResetImContext :: TextViewClass self => self -> IO ()
-- | Pixels of blank space above paragraphs.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewPixelsAboveLines :: TextViewClass self => Attr self Int
-- | Pixels of blank space below paragraphs.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewPixelsBelowLines :: TextViewClass self => Attr self Int
-- | Pixels of blank space between wrapped lines in a paragraph.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewPixelsInsideWrap :: TextViewClass self => Attr self Int
-- | Whether the text can be modified by the user.
--
-- Default value: <tt>True</tt>
textViewEditable :: TextViewClass self => Attr self Bool
-- | Which IM (input method) module should be used for this entry. See
-- GtkIMContext. Setting this to a non-empty value overrides the
-- system-wide IM module setting. See the GtkSettings "gtk-im-module"
-- property.
--
-- Default value: ""
textViewImModule :: TextViewClass self => Attr self DefaultGlibString
-- | Whether to wrap lines never, at word boundaries, or at character
-- boundaries.
--
-- Default value: <a>WrapNone</a>
textViewWrapMode :: TextViewClass self => Attr self WrapMode
-- | Left, right, or center justification.
--
-- Default value: <a>JustifyLeft</a>
textViewJustification :: TextViewClass self => Attr self Justification
-- | Width of the left margin in pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewLeftMargin :: TextViewClass self => Attr self Int
-- | Width of the right margin in pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewRightMargin :: TextViewClass self => Attr self Int
-- | Amount to indent the paragraph, in pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
textViewIndent :: TextViewClass self => Attr self Int
-- | If the insertion cursor is shown.
--
-- Default value: <tt>True</tt>
textViewCursorVisible :: TextViewClass self => Attr self Bool
-- | The buffer which is displayed.
textViewBuffer :: TextViewClass self => Attr self TextBuffer
-- | Whether entered text overwrites existing contents.
--
-- Default value: <tt>False</tt>
textViewOverwrite :: TextViewClass self => Attr self Bool
-- | Whether Tab will result in a tab character being entered.
--
-- Default value: <tt>True</tt>
textViewAcceptsTab :: TextViewClass self => Attr self Bool
-- | The <a>backspace</a> signal is a keybinding signal which gets emitted
-- when the user asks for it.
--
-- The default bindings for this signal are Backspace and
-- Shift-Backspace.
backspace :: TextViewClass self => Signal self (IO ())
-- | Copying to the clipboard.
--
-- <ul>
-- <li>This signal is emitted when a selection is copied to the
-- clipboard.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
copyClipboard :: TextViewClass self => Signal self (IO ())
-- | Cutting to the clipboard.
--
-- <ul>
-- <li>This signal is emitted when a selection is cut out and copied to
-- the clipboard. The action itself happens when the textview processed
-- this request.</li>
-- </ul>
cutClipboard :: TextViewClass self => Signal self (IO ())
-- | Deleting text.
--
-- <ul>
-- <li>The widget will remove the specified number of units in the text
-- where the meaning of units depends on the kind of deletion.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
deleteFromCursor :: TextViewClass self => Signal self (DeleteType -> Int -> IO ())
-- | Inserting text.
--
-- <ul>
-- <li>The widget will insert the string into the text where the meaning
-- of units depends on the kind of deletion.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
insertAtCursor :: (TextViewClass self, GlibString string) => Signal self (string -> IO ())
-- | Moving the cursor.
--
-- <ul>
-- <li>The signal specifies what kind and how many steps the cursor will
-- do. The flag is set to <tt>True</tt> if this movement extends a
-- selection.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
moveCursor :: TextViewClass self => Signal self (MovementStep -> Int -> Bool -> IO ())
-- | The <a>moveViewport</a> signal is a keybinding signal which can be
-- bound to key combinations to allow the user to move the viewport, i.e.
-- change what part of the text view is visible in a containing scrolled
-- window. There are no default bindings for this signal.
moveViewport :: TextViewClass self => Signal self (ScrollStep -> Int -> IO ())
-- | Moving the focus.
--
-- <ul>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
moveFocus :: TextViewClass self => Signal self (DirectionType -> IO ())
-- | Page change signals.
--
-- <ul>
-- <li>The signal specifies how many pages the view should move up or
-- down. The flag is set to <tt>True</tt> if this movement extends a
-- selection.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- <li>Figure out why this signal is called horizontally, not
-- vertically.</li>
-- </ul>
pageHorizontally :: TextViewClass self => Signal self (Int -> Bool -> IO ())
-- | Pasting from the clipboard.
--
-- <ul>
-- <li>This signal is emitted when something is pasted from the
-- clipboard.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
pasteClipboard :: TextViewClass self => Signal self (IO ())
-- | Add menu entries to context menus.
--
-- <ul>
-- <li>This signal is emitted if a context menu within the
-- <a>TextView</a> is opened. This signal can be used to add application
-- specific menu items to this popup.</li>
-- </ul>
populatePopup :: TextViewClass self => Signal self (Menu -> IO ())
-- | Inserting an anchor.
--
-- <ul>
-- <li>This signal is emitted when anchor is inserted into the text.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
selectAll :: TextViewClass self => Signal self (Bool -> IO ())
-- | The scroll-bars changed.
setAnchor :: TextViewClass self => Signal self (IO ())
-- | The <a>setTextViewScrollAdjustments</a> signal is a keybinding signal
-- which gets emitted to toggle the visibility of the cursor. The default
-- binding for this signal is F7.
setTextViewScrollAdjustments :: TextViewClass self => Signal self (Adjustment -> Adjustment -> IO ())
-- | The <a>toggleCursorVisible</a> signal is a keybinding signal which
-- gets emitted to toggle the visibility of the cursor. The default
-- binding for this signal is F7.
toggleCursorVisible :: TextViewClass self => Signal self (IO ())
-- | Insert Overwrite mode has changed.
--
-- <ul>
-- <li>This signal is emitted when the <a>TextView</a> changes from
-- inserting mode to overwriting mode and vice versa.</li>
-- <li>The action itself happens when the <a>TextView</a> processes this
-- signal.</li>
-- </ul>
toggleOverwrite :: TextViewClass self => Signal self (IO ())
-- | If an input method is used, the typed text will not immediately be
-- committed to the buffer. So if you are interested in the text, connect
-- to this signal.
--
-- This signal is only emitted if the text at the given position is
-- actually editable.
textViewPreeditChanged :: (TextViewClass self, GlibString string) => Signal self (string -> IO ())
-- | A bin with a decorative frame and optional label
module Graphics.UI.Gtk.Ornaments.Frame
data Frame
class BinClass o => FrameClass o
castToFrame :: GObjectClass obj => obj -> Frame
gTypeFrame :: GType
toFrame :: FrameClass o => o -> Frame
-- | Creates a new <a>Frame</a> without a label.
--
-- <ul>
-- <li>A label can later be set by calling <a>frameSetLabel</a>.</li>
-- </ul>
frameNew :: IO Frame
-- | Sets the text of the label.
frameSetLabel :: (FrameClass self, GlibString string) => self -> string -> IO ()
-- | If the frame's label widget is a <a>Label</a>, returns the text in the
-- label widget.
frameGetLabel :: (FrameClass self, GlibString string) => self -> IO string
-- | Sets the label widget for the frame. This is the widget that will
-- appear embedded in the top edge of the frame as a title.
frameSetLabelWidget :: (FrameClass self, WidgetClass labelWidget) => self -> labelWidget -> IO ()
-- | Retrieves the label widget for the frame. See
-- <a>frameSetLabelWidget</a>.
frameGetLabelWidget :: FrameClass self => self -> IO (Maybe Widget)
-- | Sets the alignment of the frame widget's label. The default values for
-- a newly created frame are 0.0 and 0.5.
frameSetLabelAlign :: FrameClass self => self -> Float -> Float -> IO ()
-- | Retrieves the X and Y alignment of the frame's label. See
-- <a>frameSetLabelAlign</a>.
frameGetLabelAlign :: FrameClass self => self -> IO (Float, Float)
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
-- | Sets the shadow type of the frame.
frameSetShadowType :: FrameClass self => self -> ShadowType -> IO ()
-- | Retrieves the shadow type of the frame. See <a>frameSetShadowType</a>.
frameGetShadowType :: FrameClass self => self -> IO ShadowType
-- | Text of the frame's label.
frameLabel :: (FrameClass self, GlibString string) => Attr self string
-- | The horizontal alignment of the label.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
frameLabelXAlign :: FrameClass self => Attr self Float
-- | The vertical alignment of the label.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
frameLabelYAlign :: FrameClass self => Attr self Float
-- | Appearance of the frame border.
--
-- Default value: <a>ShadowEtchedIn</a>
frameShadowType :: FrameClass self => Attr self ShadowType
-- | A widget to display in place of the usual frame label.
frameLabelWidget :: (FrameClass self, WidgetClass labelWidget) => ReadWriteAttr self (Maybe Widget) labelWidget
-- | A horizontal separator
module Graphics.UI.Gtk.Ornaments.HSeparator
data HSeparator
class SeparatorClass o => HSeparatorClass o
castToHSeparator :: GObjectClass obj => obj -> HSeparator
gTypeHSeparator :: GType
toHSeparator :: HSeparatorClass o => o -> HSeparator
-- | Creates a new <a>HSeparator</a>.
hSeparatorNew :: IO HSeparator
-- | A vertical separator
module Graphics.UI.Gtk.Ornaments.VSeparator
data VSeparator
class SeparatorClass o => VSeparatorClass o
castToVSeparator :: GObjectClass obj => obj -> VSeparator
gTypeVSeparator :: GType
toVSeparator :: VSeparatorClass o => o -> VSeparator
-- | Creates a new <a>VSeparator</a>.
vSeparatorNew :: IO VSeparator
-- | Interface implemented by widgets displaying recently used files
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Recent.RecentChooser
data RecentChooser
class GObjectClass o => RecentChooserClass o
castToRecentChooser :: GObjectClass obj => obj -> RecentChooser
toRecentChooser :: RecentChooserClass o => o -> RecentChooser
-- | These identify the various errors that can occur while calling
-- <a>RecentChooser</a> functions.
data RecentChooserError
RecentChooserErrorNotFound :: RecentChooserError
RecentChooserErrorInvalidUri :: RecentChooserError
-- | Used to specify the sorting method to be applyed to the recently used
-- resource list.
data RecentSortType
RecentSortNone :: RecentSortType
RecentSortMru :: RecentSortType
RecentSortLru :: RecentSortType
RecentSortCustom :: RecentSortType
recentChooserSetSortFunc :: RecentChooserClass self => self -> (Maybe (RecentInfo -> IO Int)) -> IO ()
-- | Sets <tt>uri</tt> as the current URI for <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSetCurrentURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO Bool
-- | Gets the URI currently selected by <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserGetCurrentURI :: (RecentChooserClass self, GlibString string) => self -> IO string
-- | Gets the <a>RecentInfo</a> currently selected by <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserGetCurrentItem :: RecentChooserClass self => self -> IO RecentInfo
-- | Selects <tt>uri</tt> inside <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSelectURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO Bool
-- | Unselects <tt>uri</tt> inside <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserUnselectURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO ()
-- | Selects all the items inside <tt>chooser</tt>, if the <tt>chooser</tt>
-- supports multiple selection.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSelectAll :: RecentChooserClass self => self -> IO ()
-- | Unselects all the items inside <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserUnselectAll :: RecentChooserClass self => self -> IO ()
-- | Gets the list of recently used resources in form of <a>RecentInfo</a>
--
-- The return value of this function is affected by the "sort-type" and
-- "limit" properties of <tt>chooser</tt>.
recentChooserGetItems :: RecentChooserClass self => self -> IO [RecentInfo]
-- | Gets the URI of the recently used resources.
--
-- The return value of this function is affected by the "sort-type" and
-- "limit" properties of <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserGetURIs :: (RecentChooserClass self, GlibString string) => self -> IO [string]
-- | Adds <tt>filter</tt> to the list of <a>RecentFilter</a> objects held
-- by <tt>chooser</tt>.
--
-- If no previous filter objects were defined, this function will call
-- <tt>recentChooserSetFilter</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserAddFilter :: (RecentChooserClass self, RecentFilterClass filter) => self -> filter -> IO ()
-- | Removes <tt>filter</tt> from the list of <a>RecentFilter</a> objects
-- held by <tt>chooser</tt>.
recentChooserRemoveFilter :: (RecentChooserClass self, RecentFilterClass filter) => self -> filter -> IO ()
-- | Gets the <a>RecentFilter</a> objects held by <tt>chooser</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserListFilters :: RecentChooserClass self => self -> IO [RecentFilter]
-- | Whether the private items should be displayed.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserShowPrivate :: RecentChooserClass self => Attr self Bool
-- | Whether this <a>RecentChooser</a> should display a tooltip containing
-- the full path of the recently used resources.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserShowTips :: RecentChooserClass self => Attr self Bool
-- | Whether this <a>RecentChooser</a> should display an icon near the
-- item.
--
-- Default value: <a>True</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserShowIcons :: RecentChooserClass self => Attr self Bool
-- | Whether this <a>RecentChooser</a> should display the recently used
-- resources even if not present anymore. Setting this to <a>False</a>
-- will perform a potentially expensive check on every local resource
-- (every remote resource will always be displayed).
--
-- Default value: <a>True</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserShowNotFound :: RecentChooserClass self => Attr self Bool
-- | Allow the user to select multiple resources.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSelectMultiple :: RecentChooserClass self => Attr self Bool
-- | Whether this <a>RecentChooser</a> should display only local (file:)
-- resources.
--
-- Default value: <a>True</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserLocalOnly :: RecentChooserClass self => Attr self Bool
-- | The maximum number of recently used resources to be displayed, or -1
-- to display all items. By default, the
-- <tt>Setting</tt>:gtk-recent-files-limit setting is respected: you can
-- override that limit on a particular instance of <a>RecentChooser</a>
-- by setting this property.
--
-- Allowed values: >= <tt>GMaxulong</tt>
--
-- Default value: -1
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserLimit :: RecentChooserClass self => Attr self Int
-- | Sorting order to be used when displaying the recently used resources.
--
-- Default value: '<tt>RecentSortNone'</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSortType :: RecentChooserClass self => Attr self RecentSortType
-- | The <a>RecentFilter</a> object to be used when displaying the recently
-- used resources.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserFilter :: (RecentChooserClass self, RecentFilterClass recentFilter) => ReadWriteAttr self RecentFilter recentFilter
-- | This signal is emitted when there is a change in the set of selected
-- recently used resources. This can happen when a user modifies the
-- selection with the mouse or the keyboard, or when explicitely calling
-- functions to change the selection.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserSelectionChanged :: RecentChooserClass self => Signal self (IO ())
-- | This signal is emitted when the user "activates" a recent item in the
-- recent chooser. This can happen by double-clicking on an item in the
-- recently used resources list, or by pressing Enter.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserItemActivated :: RecentChooserClass self => Signal self (IO ())
instance GHC.Show.Show Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Enum.Bounded Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Show.Show Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Enum.Bounded Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Enum.Enum Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Enum.Enum Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
-- | Displays recently used files in a menu
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Recent.RecentChooserMenu
data RecentChooserMenu
class MenuClass o => RecentChooserMenuClass o
castToRecentChooserMenu :: GObjectClass obj => obj -> RecentChooserMenu
toRecentChooserMenu :: RecentChooserMenuClass o => o -> RecentChooserMenu
-- | Creates a new <a>RecentChooserMenu</a> widget.
--
-- This kind of widget shows the list of recently used resources as a
-- menu, each item as a menu item. Each item inside the menu might have
-- an icon, representing its MIME type, and a number, for mnemonic
-- access.
--
-- This widget implements the <a>RecentChooser</a> interface.
--
-- This widget creates its own <a>RecentManager</a> object. See the
-- <a>recentChooserMenuNewForManager</a> function to know how to create a
-- <a>RecentChooserMenu</a> widget bound to another <a>RecentManager</a>
-- object.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserMenuNew :: IO RecentChooserMenu
-- | Creates a new <a>RecentChooserMenu</a> widget using <tt>manager</tt>
-- as the underlying recently used resources manager.
--
-- This is useful if you have implemented your own recent manager, or if
-- you have a customized instance of a <a>RecentManager</a> object or if
-- you wish to share a common <a>RecentManager</a> object among multiple
-- <a>RecentChooser</a> widgets.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserMenuNewForManager :: RecentManagerClass manager => manager -> IO RecentChooserMenu
-- | Whether the first ten items in the menu should be prepended by a
-- number acting as a unique mnemonic.
--
-- Default value: <a>False</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentChooserMenuShowNumbers :: RecentChooserMenuClass self => Attr self Bool
-- | Displays recently used files
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Recent.RecentChooserWidget
data RecentChooserWidget
class VBoxClass o => RecentChooserWidgetClass o
castToRecentChooserWidget :: GObjectClass obj => obj -> RecentChooserWidget
toRecentChooserWidget :: RecentChooserWidgetClass o => o -> RecentChooserWidget
-- | Creates a new <a>RecentChooserWidget</a> object. This is an embeddable
-- widget used to access the recently used resources list.
recentChooserWidgetNew :: IO RecentChooserWidget
-- | Creates a new <a>RecentChooserWidget</a> with a specified recent
-- manager.
--
-- This is useful if you have implemented your own recent manager, or if
-- you have a customized instance of a <a>RecentManager</a> object.
recentChooserWidgetNewForManager :: RecentManagerClass manager => manager -> IO RecentChooserWidget
-- | A filter for selecting a subset of recently used files
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Recent.RecentFilter
data RecentFilter
class GObjectClass o => RecentFilterClass o
castToRecentFilter :: GObjectClass obj => obj -> RecentFilter
toRecentFilter :: RecentFilterClass o => o -> RecentFilter
-- | These flags indicate what parts of a <tt>RecentFilterInfo</tt> struct
-- are filled or need to be filled.
data RecentFilterFlags
RecentFilterUri :: RecentFilterFlags
RecentFilterDisplayName :: RecentFilterFlags
RecentFilterMimeType :: RecentFilterFlags
RecentFilterApplication :: RecentFilterFlags
RecentFilterGroup :: RecentFilterFlags
RecentFilterAge :: RecentFilterFlags
recentFilterNew :: IO RecentFilter
-- | Gets the human-readable name for the filter. See
-- <a>recentFilterSetName</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterGetName :: (RecentFilterClass self, GlibString string) => self -> IO string
-- | Sets the human-readable name of the filter; this is the string that
-- will be displayed in the recently used resources selector user
-- interface if there is a selectable list of filters.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterSetName :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()
-- | Adds a rule that allows resources based on their registered MIME type.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterAddMimeType :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()
-- | Adds a rule that allows resources based on a pattern matching their
-- display name.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterAddPattern :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()
-- | Adds a rule allowing image files in the formats supported by
-- <a>Pixbuf</a>.
recentFilterAddPixbufFormats :: RecentFilterClass self => self -> IO ()
-- | Adds a rule that allows resources based on the name of the application
-- that has registered them.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterAddApplication :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()
-- | Adds a rule that allows resources based on the name of the group to
-- which they belong
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterAddGroup :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()
-- | Adds a rule that allows resources based on their age - that is, the
-- number of days elapsed since they were last modified.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
recentFilterAddAge :: RecentFilterClass self => self -> Int -> IO ()
instance GHC.Show.Show Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
-- | A horizontal scrollbar
module Graphics.UI.Gtk.Scrolling.HScrollbar
data HScrollbar
class ScrollbarClass o => HScrollbarClass o
castToHScrollbar :: GObjectClass obj => obj -> HScrollbar
gTypeHScrollbar :: GType
toHScrollbar :: HScrollbarClass o => o -> HScrollbar
-- | Creates a new horizontal scrollbar.
hScrollbarNew :: Adjustment -> IO HScrollbar
-- | Create a new HScrollbar without specifying an existing
-- <a>Adjustment</a>. A new one will be created instead.
hScrollbarNewDefaults :: IO HScrollbar
-- | Adds scrollbars to its child widget
module Graphics.UI.Gtk.Scrolling.ScrolledWindow
data ScrolledWindow
class BinClass o => ScrolledWindowClass o
castToScrolledWindow :: GObjectClass obj => obj -> ScrolledWindow
gTypeScrolledWindow :: GType
toScrolledWindow :: ScrolledWindowClass o => o -> ScrolledWindow
-- | Creates a new scrolled window. The two arguments are the scrolled
-- window's adjustments; these will be shared with the scrollbars and the
-- child widget to keep the bars in sync with the child. Usually you want
-- to pass <tt>Nothing</tt> for the adjustments, which will cause the
-- scrolled window to create them for you.
scrolledWindowNew :: Maybe Adjustment -> Maybe Adjustment -> IO ScrolledWindow
-- | Returns the horizontal scrollbar's adjustment, used to connect the
-- horizontal scrollbar to the child widget's horizontal scroll
-- functionality.
scrolledWindowGetHAdjustment :: ScrolledWindowClass self => self -> IO Adjustment
-- | Returns the vertical scrollbar's adjustment, used to connect the
-- vertical scrollbar to the child widget's vertical scroll
-- functionality.
scrolledWindowGetVAdjustment :: ScrolledWindowClass self => self -> IO Adjustment
data PolicyType
PolicyAlways :: PolicyType
PolicyAutomatic :: PolicyType
PolicyNever :: PolicyType
PolicyExternal :: PolicyType
-- | Sets the scrollbar policy for the horizontal and vertical scrollbars.
-- The policy determines when the scrollbar should appear; it is a value
-- from the <a>PolicyType</a> enumeration. If <a>PolicyAlways</a>, the
-- scrollbar is always present; if <a>PolicyNever</a>, the scrollbar is
-- never present; if <a>PolicyAutomatic</a>, the scrollbar is present
-- only if needed (that is, if the slider part of the bar would be
-- smaller than the trough - the display is larger than the page size).
scrolledWindowSetPolicy :: ScrolledWindowClass self => self -> PolicyType -> PolicyType -> IO ()
-- | Retrieves the current policy values for the horizontal and vertical
-- scrollbars. See <a>scrolledWindowSetPolicy</a>.
scrolledWindowGetPolicy :: ScrolledWindowClass self => self -> IO (PolicyType, PolicyType)
-- | Used to add children without native scrolling capabilities. This is
-- simply a convenience function; it is equivalent to adding the
-- unscrollable child to a viewport, then adding the viewport to the
-- scrolled window. If a child has native scrolling, use
-- <a>containerAdd</a> instead of this function.
--
-- The viewport scrolls the child by moving its <a>DrawWindow</a>, and
-- takes the size of the child to be the size of its toplevel
-- <a>DrawWindow</a>. This will be very wrong for most widgets that
-- support native scrolling; for example, if you add a widget such as
-- <a>TreeView</a> with a viewport, the whole widget will scroll,
-- including the column headings. Thus, widgets with native scrolling
-- support should not be used with the <a>Viewport</a> proxy.
scrolledWindowAddWithViewport :: (ScrolledWindowClass self, WidgetClass child) => self -> child -> IO ()
-- | Specifies in which corner a child widget should be placed
data CornerType
CornerTopLeft :: CornerType
CornerBottomLeft :: CornerType
CornerTopRight :: CornerType
CornerBottomRight :: CornerType
-- | Determines the location of the child widget with respect to the
-- scrollbars. The default is <a>CornerTopLeft</a>, meaning the child is
-- in the top left, with the scrollbars underneath and to the right.
-- Other values in <a>CornerType</a> are <a>CornerTopRight</a>,
-- <a>CornerBottomLeft</a>, and <a>CornerBottomRight</a>.
scrolledWindowSetPlacement :: ScrolledWindowClass self => self -> CornerType -> IO ()
-- | Gets the placement of the scrollbars for the scrolled window. See
-- <a>scrolledWindowSetPlacement</a>.
scrolledWindowGetPlacement :: ScrolledWindowClass self => self -> IO CornerType
-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
-- | Changes the type of shadow drawn around the contents of
-- <tt>scrolledWindow</tt>.
scrolledWindowSetShadowType :: ScrolledWindowClass self => self -> ShadowType -> IO ()
-- | Gets the shadow type of the scrolled window. See
-- <a>scrolledWindowSetShadowType</a>.
scrolledWindowGetShadowType :: ScrolledWindowClass self => self -> IO ShadowType
-- | Sets the minimum width that <tt>scrolledWindow</tt> should keep
-- visible. Note that this can and (usually will) be smaller than the
-- minimum size of the content.
scrolledWindowSetMinContentWidth :: ScrolledWindowClass self => self -> Int -> IO ()
-- | Gets the minimum content width of <tt>scrolledWindow</tt>, or -1 if
-- not set.
scrolledWindowGetMinContentWidth :: ScrolledWindowClass self => self -> IO Int
-- | Sets the minimum height that <tt>scrolledWindow</tt> should keep
-- visible. Note that this can and (usually will) be smaller than the
-- minimum size of the content.
scrolledWindowSetMinContentHeight :: ScrolledWindowClass self => self -> Int -> IO ()
-- | Gets the minimum content height of <tt>scrolledWindow</tt>, or -1 if
-- not set.
scrolledWindowGetMinContentHeight :: ScrolledWindowClass self => self -> IO Int
-- | Sets the <a>Adjustment</a> for the horizontal scrollbar.
scrolledWindowSetHAdjustment :: ScrolledWindowClass self => self -> Adjustment -> IO ()
-- | Sets the <a>Adjustment</a> for the vertical scrollbar.
scrolledWindowSetVAdjustment :: ScrolledWindowClass self => self -> Adjustment -> IO ()
-- | Returns the horizontal scrollbar of <tt>scrolledWindow</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
scrolledWindowGetHScrollbar :: ScrolledWindowClass self => self -> IO (Maybe HScrollbar)
-- | Returns the vertical scrollbar of <tt>scrolledWindow</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
scrolledWindowGetVScrollbar :: ScrolledWindowClass self => self -> IO (Maybe VScrollbar)
-- | Turns kinetic scrolling on or off. Kinetic scrolling only applies to
-- devices with source GDK_SOURCE_TOUCHSCREEN.
scrolledWindowSetKineticScrolling :: ScrolledWindowClass self => self -> Bool -> IO ()
-- | Returns the specified kinetic scrolling behavior.
scrolledWindowGetKineticScrolling :: ScrolledWindowClass self => self -> IO Bool
-- | Changes the behaviour of <tt>scrolledWindow</tt> wrt. to the initial
-- event that possibly starts kinetic scrolling. When
-- <tt>captureButtonPress</tt> is set to True, the event is captured by
-- the scrolled window, and then later replayed if it is meant to go to
-- the child widget.
--
-- This should be enabled if any child widgets perform non-reversible
-- actions on "button-press-event". If they don't, and handle
-- additionally handle "grab-broken-event", it might be better to set
-- captureButtonPress to False.
--
-- This setting only has an effect if kinetic scrolling is enabled.
scrolledWindowSetCaptureButtonPress :: ScrolledWindowClass self => self -> Bool -> IO ()
-- | Return whether button presses are captured during kinetic scrolling.
-- See <tt>scrolledWindowSetCaptureButtonPress</tt>.
scrolledWindowGetCaptureButtonPress :: ScrolledWindowClass self => self -> IO Bool
-- | The <a>Adjustment</a> for the horizontal position.
scrolledWindowHAdjustment :: ScrolledWindowClass self => Attr self Adjustment
-- | The <a>Adjustment</a> for the vertical position.
scrolledWindowVAdjustment :: ScrolledWindowClass self => Attr self Adjustment
-- | When the horizontal scrollbar is displayed.
--
-- Default value: <a>PolicyAlways</a>
scrolledWindowHscrollbarPolicy :: ScrolledWindowClass self => Attr self PolicyType
-- | When the vertical scrollbar is displayed.
--
-- Default value: <a>PolicyAlways</a>
scrolledWindowVscrollbarPolicy :: ScrolledWindowClass self => Attr self PolicyType
-- | Where the contents are located with respect to the scrollbars.
--
-- Default value: <a>CornerTopLeft</a>
scrolledWindowWindowPlacement :: ScrolledWindowClass self => Attr self CornerType
-- | Style of bevel around the contents.
--
-- Default value: <a>ShadowNone</a>
scrolledWindowShadowType :: ScrolledWindowClass self => Attr self ShadowType
-- | Minimum width that <tt>scrolledWindow</tt> should keep visible.
--
-- Default value: -1
scrolledWindowMinContentWidth :: ScrolledWindowClass self => Attr self Int
-- | Minimum height that <tt>scrolledWindow</tt> should keep visible.
--
-- Default value: -1
scrolledWindowMinContentHeight :: ScrolledWindowClass self => Attr self Int
-- | 'placement' property. See <a>scrolledWindowGetPlacement</a> and
-- <a>scrolledWindowSetPlacement</a>
scrolledWindowPlacement :: ScrolledWindowClass self => Attr self CornerType
-- | The kinetic scrolling behavior flags. Kinetic scrolling only applies
-- to devices with source GDK_SOURCE_TOUCHSCREEN
scrolledWindowKineticScrolling :: ScrolledWindowClass self => Attr self Bool
-- | A vertical scrollbar
module Graphics.UI.Gtk.Scrolling.VScrollbar
data VScrollbar
class ScrollbarClass o => VScrollbarClass o
castToVScrollbar :: GObjectClass obj => obj -> VScrollbar
gTypeVScrollbar :: GType
toVScrollbar :: VScrollbarClass o => o -> VScrollbar
-- | Creates a new vertical scrollbar.
vScrollbarNew :: Adjustment -> IO VScrollbar
-- | Create a new HScrollbar without specifying an existing
-- <a>Adjustment</a>. A new one will be created instead.
vScrollbarNewDefaults :: IO VScrollbar
-- | A button to launch a color selection dialog
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.ColorButton
data ColorButton
class ButtonClass o => ColorButtonClass o
castToColorButton :: GObjectClass obj => obj -> ColorButton
gTypeColorButton :: GType
toColorButton :: ColorButtonClass o => o -> ColorButton
-- | Creates a new color button. This returns a widget in the form of a
-- small button containing a swatch representing the current selected
-- color. When the button is clicked, a color-selection dialog will open,
-- allowing the user to select a color. The swatch will be updated to
-- reflect the new color when the user finishes.
colorButtonNew :: IO ColorButton
-- | Creates a new color button.
colorButtonNewWithColor :: Color -> IO ColorButton
-- | Sets the current color to be <tt>color</tt>.
colorButtonSetColor :: ColorButtonClass self => self -> Color -> IO ()
-- | Returns the current color value.
colorButtonGetColor :: ColorButtonClass self => self -> IO Color
-- | Sets the current opacity to be <tt>alpha</tt>.
colorButtonSetAlpha :: ColorButtonClass self => self -> Word16 -> IO ()
-- | Returns the current alpha value.
colorButtonGetAlpha :: ColorButtonClass self => self -> IO Word16
-- | Sets whether or not the color button should use the alpha channel.
colorButtonSetUseAlpha :: ColorButtonClass self => self -> Bool -> IO ()
-- | Does the color selection dialog use the alpha channel?
colorButtonGetUseAlpha :: ColorButtonClass self => self -> IO Bool
-- | Sets the title for the color selection dialog.
colorButtonSetTitle :: (ColorButtonClass self, GlibString string) => self -> string -> IO ()
-- | Gets the title of the color selection dialog.
colorButtonGetTitle :: (ColorButtonClass self, GlibString string) => self -> IO string
-- | If this property is set to <tt>True</tt>, the color swatch on the
-- button is rendered against a checkerboard background to show its
-- opacity and the opacity slider is displayed in the color selection
-- dialog.
--
-- Default value: <tt>False</tt>
colorButtonUseAlpha :: ColorButtonClass self => Attr self Bool
-- | The title of the color selection dialog
--
-- Default value: "Pick a Color"
colorButtonTitle :: (ColorButtonClass self, GlibString string) => Attr self string
-- | The selected opacity value (0 fully transparent, 65535 fully opaque).
--
-- Allowed values: <= 65535
--
-- Default value: 65535
colorButtonAlpha :: ColorButtonClass self => Attr self Word16
-- | The <tt>colorSet</tt> signal is emitted when the user selects a color.
-- When handling this signal, use <a>colorButtonGetColor</a> and
-- <a>colorButtonGetAlpha</a> to find out which color was just selected.
onColorSet :: ColorButtonClass self => self -> IO () -> IO (ConnectId self)
-- | The <tt>colorSet</tt> signal is emitted when the user selects a color.
-- When handling this signal, use <a>colorButtonGetColor</a> and
-- <a>colorButtonGetAlpha</a> to find out which color was just selected.
afterColorSet :: ColorButtonClass self => self -> IO () -> IO (ConnectId self)
-- | A widget used to select a color
module Graphics.UI.Gtk.Selectors.ColorSelection
data ColorSelection
class VBoxClass o => ColorSelectionClass o
castToColorSelection :: GObjectClass obj => obj -> ColorSelection
gTypeColorSelection :: GType
toColorSelection :: ColorSelectionClass o => o -> ColorSelection
-- | Creates a new <a>ColorSelection</a>.
colorSelectionNew :: IO ColorSelection
-- | Returns the current alpha value.
colorSelectionGetCurrentAlpha :: ColorSelectionClass self => self -> IO Int
-- | Sets the current opacity to be <tt>alpha</tt>. The first time this is
-- called, it will also set the original opacity to be <tt>alpha</tt>
-- too.
colorSelectionSetCurrentAlpha :: ColorSelectionClass self => self -> Int -> IO ()
-- | Gets the current color in the <a>ColorSelection</a> widget.
colorSelectionGetCurrentColor :: ColorSelectionClass self => self -> IO Color
-- | Sets the current color to be <tt>color</tt>. The first time this is
-- called, it will also set the original color to be <tt>color</tt> too.
colorSelectionSetCurrentColor :: ColorSelectionClass self => self -> Color -> IO ()
-- | Determines whether the <a>ColorSelection</a> widget has an opacity
-- control.
colorSelectionGetHasOpacityControl :: ColorSelectionClass self => self -> IO Bool
-- | Sets the <a>ColorSelection</a> widget to use or not use opacity.
colorSelectionSetHasOpacityControl :: ColorSelectionClass self => self -> Bool -> IO ()
-- | Determines whether the color selector has a color palette.
colorSelectionGetHasPalette :: ColorSelectionClass self => self -> IO Bool
-- | Sets whether to show or hide the palette.
colorSelectionSetHasPalette :: ColorSelectionClass self => self -> Bool -> IO ()
-- | Returns the previous alpha value.
colorSelectionGetPreviousAlpha :: ColorSelectionClass self => self -> IO Int
-- | Sets the 'previous' alpha to be <tt>alpha</tt>. This function should
-- be called with some hesitations, as it might seem confusing to have
-- that alpha change.
colorSelectionSetPreviousAlpha :: ColorSelectionClass self => self -> Int -> IO ()
-- | Returns the original color value.
colorSelectionGetPreviousColor :: ColorSelectionClass self => self -> IO Color
-- | Sets the 'previous' color to be <tt>color</tt>. This function should
-- be called with some hesitations, as it might seem confusing to have
-- that color change. Calling <a>colorSelectionSetCurrentColor</a> will
-- also set this color the first time it is called.
colorSelectionSetPreviousColor :: ColorSelectionClass self => self -> Color -> IO ()
-- | Gets the current state of the widget. Returns True if the user is
-- currently dragging a color around, and False if the selection has
-- stopped.
colorSelectionIsAdjusting :: ColorSelectionClass self => self -> IO Bool
-- | Whether the color selector should allow setting opacity.
--
-- Default value: <tt>False</tt>
colorSelectionHasOpacityControl :: ColorSelectionClass self => Attr self Bool
-- | Whether a palette should be used.
--
-- Default value: <tt>False</tt>
colorSelectionHasPalette :: ColorSelectionClass self => Attr self Bool
-- | The current opacity value (0 fully transparent, 65535 fully opaque).
--
-- Allowed values: <= 65535
--
-- Default value: 65535
colorSelectionCurrentAlpha :: ColorSelectionClass self => Attr self Int
-- | 'previousAlpha' property. See <a>colorSelectionGetPreviousAlpha</a>
-- and <a>colorSelectionSetPreviousAlpha</a>
colorSelectionPreviousAlpha :: ColorSelectionClass self => Attr self Int
-- | A standard dialog box for selecting a color
module Graphics.UI.Gtk.Selectors.ColorSelectionDialog
data ColorSelectionDialog
class DialogClass o => ColorSelectionDialogClass o
castToColorSelectionDialog :: GObjectClass obj => obj -> ColorSelectionDialog
gTypeColorSelectionDialog :: GType
toColorSelectionDialog :: ColorSelectionDialogClass o => o -> ColorSelectionDialog
-- | Creates a new <a>ColorSelectionDialog</a>.
colorSelectionDialogNew :: GlibString string => string -> IO ColorSelectionDialog
-- | File chooser interface used by <a>FileChooserWidget</a> and
-- <a>FileChooserDialog</a>
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FileChooser
data FileChooser
class GObjectClass o => FileChooserClass o
castToFileChooser :: GObjectClass obj => obj -> FileChooser
gTypeFileChooser :: GType
toFileChooser :: FileChooserClass o => o -> FileChooser
-- | Describes whether a <a>FileChooser</a> is being used to open existing
-- files or to save to a possibly new file.
data FileChooserAction
FileChooserActionOpen :: FileChooserAction
FileChooserActionSave :: FileChooserAction
FileChooserActionSelectFolder :: FileChooserAction
FileChooserActionCreateFolder :: FileChooserAction
-- | These identify the various errors that can occur while calling
-- <a>FileChooser</a> functions.
data FileChooserError
FileChooserErrorNonexistent :: FileChooserError
FileChooserErrorBadFilename :: FileChooserError
FileChooserErrorAlreadyExists :: FileChooserError
FileChooserErrorIncompleteHostname :: FileChooserError
-- | Used as a return value of handlers for the <tt>onConfirmOverwrite</tt>
-- signal of a <a>FileChooser</a>.
--
-- <ul>
-- <li>This value determines whether the file chooser will present the
-- stock confirmation dialog, accept the user's choice of a filename, or
-- let the user choose another filename.</li>
-- </ul>
--
-- Since Gtk 2.8.
data FileChooserConfirmation
FileChooserConfirmationConfirm :: FileChooserConfirmation
FileChooserConfirmationAcceptFilename :: FileChooserConfirmation
FileChooserConfirmationSelectAgain :: FileChooserConfirmation
-- | Sets the type of operation that the chooser is performing; the user
-- interface is adapted to suit the selected action. For example, an
-- option to create a new folder might be shown if the action is
-- <a>FileChooserActionSave</a> but not if the action is
-- <a>FileChooserActionOpen</a>.
fileChooserSetAction :: FileChooserClass self => self -> FileChooserAction -> IO ()
-- | Gets the type of operation that the file chooser is performing; see
-- <a>fileChooserSetAction</a>.
fileChooserGetAction :: FileChooserClass self => self -> IO FileChooserAction
-- | Sets whether only local files can be selected in the file selector. If
-- <tt>localOnly</tt> is <tt>True</tt> (the default), then the selected
-- file are files are guaranteed to be accessible through the operating
-- systems native file file system and therefore the application only
-- needs to worry about the filename functions in <a>FileChooser</a>,
-- like <a>fileChooserGetFilename</a>, rather than the URI functions like
-- <a>fileChooserGetURI</a>,
fileChooserSetLocalOnly :: FileChooserClass self => self -> Bool -> IO ()
-- | Gets whether only local files can be selected in the file selector.
-- See <a>fileChooserSetLocalOnly</a>
fileChooserGetLocalOnly :: FileChooserClass self => self -> IO Bool
-- | Sets whether multiple files can be selected in the file selector. This
-- is only relevant if the action is set to be
-- <a>FileChooserActionOpen</a> or <a>FileChooserActionSave</a>. It
-- cannot be set with either of the folder actions.
fileChooserSetSelectMultiple :: FileChooserClass self => self -> Bool -> IO ()
-- | Gets whether multiple files can be selected in the file selector. See
-- <a>fileChooserSetSelectMultiple</a>.
fileChooserGetSelectMultiple :: FileChooserClass self => self -> IO Bool
-- | Sets the current name in the file selector, as if entered by the user.
-- Note that the name passed in here is a Unicode string rather than a
-- filename. This function is meant for such uses as a suggested name in
-- a "Save As..." dialog.
--
-- If you want to preselect a particular existing file, you should use
-- <a>fileChooserSetFilename</a> or <a>fileChooserSetURI</a> instead.
-- Please see the documentation for those functions for an example of
-- using <a>fileChooserSetCurrentName</a> as well.
fileChooserSetCurrentName :: (FileChooserClass self, GlibFilePath fp) => self -> fp -> IO ()
-- | Gets the filename for the currently selected file in the file
-- selector. If multiple files are selected, one of the filenames will be
-- returned at random.
--
-- If the file chooser is in folder mode, this function returns the
-- selected folder.
fileChooserGetFilename :: (FileChooserClass self, GlibFilePath fp) => self -> IO (Maybe fp)
-- | Sets <tt>filename</tt> as the current filename for the file chooser,
-- by changing to the file's parent folder and actually selecting the
-- file in list. If the <tt>chooser</tt> is in
-- <a>FileChooserActionSave</a> mode, the file's base name will also
-- appear in the dialog's file name entry.
--
-- If the file name isn't in the current folder of <tt>chooser</tt>, then
-- the current folder of <tt>chooser</tt> will be changed to the folder
-- containing <tt>filename</tt>. This is equivalent to a sequence of
-- <a>fileChooserUnselectAll</a> followed by
-- <a>fileChooserSelectFilename</a>.
--
-- Note that the file must exist, or nothing will be done except for the
-- directory change.
--
-- If you are implementing a File/Save As... dialog, you should use this
-- function if you already have a file name to which the user may save;
-- for example, when the user opens an existing file and then does
-- File/Save As... on it. If you don't have a file name already — for
-- example, if the user just created a new file and is saving it for the
-- first time, do not call this function. Instead, use something similar
-- to this:
--
-- <pre>
-- if documentIsNew
-- then do -- the user just created a new document
-- fileChooserSetCurrentFolder chooser defaultFolderForSaving
-- fileChooserSetCurrentName chooser "Untitled document"
-- else do --the user edited an existing document
-- fileChooserSetFilename chooser existingFilename
-- </pre>
fileChooserSetFilename :: FileChooserClass self => self -> FilePath -> IO Bool
-- | Selects a filename. If the file name isn't in the current folder of
-- the chooser, then the current folder of the chooser will be changed to
-- the folder containing <tt>filename</tt>.
fileChooserSelectFilename :: FileChooserClass self => self -> FilePath -> IO Bool
-- | Unselects a currently selected filename. If the filename is not in the
-- current directory, does not exist, or is otherwise not currently
-- selected, does nothing.
fileChooserUnselectFilename :: FileChooserClass self => self -> FilePath -> IO ()
-- | Selects all the files in the current folder of a file chooser.
fileChooserSelectAll :: FileChooserClass self => self -> IO ()
-- | Unselects all the files in the current folder of a file chooser.
fileChooserUnselectAll :: FileChooserClass self => self -> IO ()
-- | Lists all the selected files and subfolders in the current folder of
-- the chooser. The returned names are full absolute paths. If files in
-- the current folder cannot be represented as local filenames they will
-- be ignored. (See <a>fileChooserGetURIs</a>)
fileChooserGetFilenames :: FileChooserClass self => self -> IO [FilePath]
-- | Sets the current folder for the chooser from a local filename. The
-- user will be shown the full contents of the current folder, plus user
-- interface elements for navigating to other folders.
fileChooserSetCurrentFolder :: FileChooserClass self => self -> FilePath -> IO Bool
-- | Gets the current folder of the chooser as a local filename. See
-- <a>fileChooserSetCurrentFolder</a>.
fileChooserGetCurrentFolder :: FileChooserClass self => self -> IO (Maybe FilePath)
-- | Gets the URI for the currently selected file in the file selector. If
-- multiple files are selected, one of the filenames will be returned at
-- random.
--
-- If the file chooser is in folder mode, this function returns the
-- selected folder.
fileChooserGetURI :: FileChooserClass self => self -> IO (Maybe String)
-- | Sets the file referred to by <tt>uri</tt> as the current file for the
-- file chooser, by changing to the URI's parent folder and actually
-- selecting the URI in the list. If the <tt>chooser</tt> is
-- <a>FileChooserActionSave</a> mode, the URI's base name will also
-- appear in the dialog's file name entry.
--
-- If the URI isn't in the current folder of <tt>chooser</tt>, then the
-- current folder of <tt>chooser</tt> will be changed to the folder
-- containing <tt>uri</tt>. This is equivalent to a sequence of
-- <a>fileChooserUnselectAll</a> followed by <a>fileChooserSelectURI</a>.
--
-- Note that the URI must exist, or nothing will be done except for the
-- directory change. If you are implementing a File/Save As... dialog,
-- you should use this function if you already have a file name to which
-- the user may save; for example, when the user opens an existing file
-- and then does File/Save As... on it. If you don't have a file name
-- already — for example, if the user just created a new file and is
-- saving it for the first time, do not call this function. Instead, use
-- something similar to this:
--
-- <pre>
-- if documentIsNew
-- then do -- the user just created a new document
-- fileChooserSetCurrentFolderURI chooser defaultFolderForSaving
-- fileChooserSetCurrentName chooser "Untitled document"
-- else do --the user edited an existing document
-- fileChooserSetURI chooser existingURI
-- </pre>
fileChooserSetURI :: FileChooserClass self => self -> String -> IO Bool
-- | Selects the file to by <tt>uri</tt>. If the URI doesn't refer to a
-- file in the current folder of the chooser, then the current folder of
-- the chooser will be changed to the folder containing
-- <tt>filename</tt>.
fileChooserSelectURI :: FileChooserClass self => self -> String -> IO Bool
-- | Unselects the file referred to by <tt>uri</tt>. If the file is not in
-- the current directory, does not exist, or is otherwise not currently
-- selected, does nothing.
fileChooserUnselectURI :: FileChooserClass self => self -> String -> IO ()
-- | Lists all the selected files and subfolders in the current folder of
-- the chooser. The returned names are full absolute URIs.
fileChooserGetURIs :: FileChooserClass self => self -> IO [String]
-- | Sets the current folder for the chooser from an URI. The user will be
-- shown the full contents of the current folder, plus user interface
-- elements for navigating to other folders.
fileChooserSetCurrentFolderURI :: FileChooserClass self => self -> String -> IO Bool
-- | Gets the current folder of the chooser as an URI. See
-- <a>fileChooserSetCurrentFolderURI</a>.
fileChooserGetCurrentFolderURI :: FileChooserClass self => self -> IO String
-- | Sets an application-supplied widget to use to display a custom preview
-- of the currently selected file. To implement a preview, after setting
-- the preview widget, you connect to the UpdatePreview signal, and call
-- <a>fileChooserGetPreviewFilename</a> or
-- <a>fileChooserGetPreviewURI</a> on each change. If you can display a
-- preview of the new file, update your widget and set the preview active
-- using <a>fileChooserSetPreviewWidgetActive</a>. Otherwise, set the
-- preview inactive.
--
-- When there is no application-supplied preview widget, or the
-- application-supplied preview widget is not active, the file chooser
-- may display an internally generated preview of the current file or it
-- may display no preview at all.
fileChooserSetPreviewWidget :: (FileChooserClass self, WidgetClass previewWidget) => self -> previewWidget -> IO ()
-- | Gets the current preview widget; see
-- <a>fileChooserSetPreviewWidget</a>.
fileChooserGetPreviewWidget :: FileChooserClass self => self -> IO (Maybe Widget)
-- | Sets whether the preview widget set by
-- <a>fileChooserSetPreviewWidget</a> should be shown for the current
-- filename. When <tt>active</tt> is set to false, the file chooser may
-- display an internally generated preview of the current file or it may
-- display no preview at all. See <a>fileChooserSetPreviewWidget</a> for
-- more details.
fileChooserSetPreviewWidgetActive :: FileChooserClass self => self -> Bool -> IO ()
-- | Gets whether the preview widget set by
-- <a>fileChooserSetPreviewWidget</a> should be shown for the current
-- filename. See <a>fileChooserSetPreviewWidgetActive</a>.
fileChooserGetPreviewWidgetActive :: FileChooserClass self => self -> IO Bool
-- | Sets whether the file chooser should display a stock label with the
-- name of the file that is being previewed; the default is
-- <tt>True</tt>. Applications that want to draw the whole preview area
-- themselves should set this to <tt>False</tt> and display the name
-- themselves in their preview widget.
--
-- See also: <a>fileChooserSetPreviewWidget</a>
fileChooserSetUsePreviewLabel :: FileChooserClass self => self -> Bool -> IO ()
-- | Gets whether a stock label should be drawn with the name of the
-- previewed file. See <a>fileChooserSetUsePreviewLabel</a>.
fileChooserGetUsePreviewLabel :: FileChooserClass self => self -> IO Bool
-- | Gets the filename that should be previewed in a custom preview widget.
-- See <a>fileChooserSetPreviewWidget</a>.
fileChooserGetPreviewFilename :: FileChooserClass self => self -> IO (Maybe FilePath)
-- | Gets the URI that should be previewed in a custom preview widget. See
-- <a>fileChooserSetPreviewWidget</a>.
fileChooserGetPreviewURI :: FileChooserClass self => self -> IO (Maybe String)
-- | Sets an application-supplied widget to provide extra options to the
-- user.
fileChooserSetExtraWidget :: (FileChooserClass self, WidgetClass extraWidget) => self -> extraWidget -> IO ()
-- | Gets the current preview widget; see <a>fileChooserSetExtraWidget</a>.
fileChooserGetExtraWidget :: FileChooserClass self => self -> IO (Maybe Widget)
-- | Adds the filter to the list of filters that the user can select
-- between. When a filter is selected, only files that are passed by that
-- filter are displayed.
fileChooserAddFilter :: FileChooserClass self => self -> FileFilter -> IO ()
-- | Removes the filter from the list of filters that the user can select
-- between.
fileChooserRemoveFilter :: FileChooserClass self => self -> FileFilter -> IO ()
-- | Lists the current set of user-selectable filters; see
-- <a>fileChooserAddFilter</a>, <a>fileChooserRemoveFilter</a>.
fileChooserListFilters :: FileChooserClass self => self -> IO [FileFilter]
-- | Sets the current filter; only the files that pass the filter will be
-- displayed. If the user-selectable list of filters is non-empty, then
-- the filter should be one of the filters in that list. Setting the
-- current filter when the list of filters is empty is useful if you want
-- to restrict the displayed set of files without letting the user change
-- it.
fileChooserSetFilter :: FileChooserClass self => self -> FileFilter -> IO ()
-- | Gets the current filter; see <a>fileChooserSetFilter</a>.
fileChooserGetFilter :: FileChooserClass self => self -> IO (Maybe FileFilter)
-- | Adds a folder to be displayed with the shortcut folders in a file
-- chooser. Note that shortcut folders do not get saved, as they are
-- provided by the application. For example, you can use this to add a
-- "/usr/share/mydrawprogram/Clipart" folder to the volume list.
--
-- If the folder can not be added successfully an exception will be
-- thrown.
fileChooserAddShortcutFolder :: FileChooserClass self => self -> FilePath -> IO ()
-- | Removes a folder from a file chooser's list of shortcut folders.
--
-- If the folder can not be removed successfully an exception will be
-- thrown.
fileChooserRemoveShortcutFolder :: FileChooserClass self => self -> FilePath -> IO ()
-- | Queries the list of shortcut folders in the file chooser, as set by
-- <a>fileChooserAddShortcutFolder</a>.
fileChooserListShortcutFolders :: FileChooserClass self => self -> IO [String]
-- | Adds a folder URI to be displayed with the shortcut folders in a file
-- chooser. Note that shortcut folders do not get saved, as they are
-- provided by the application. For example, you can use this to add a
-- "file:///usr/share/mydrawprogram/Clipart" folder to the volume list.
--
-- If the folder can not be added successfully an exception will be
-- thrown.
fileChooserAddShortcutFolderURI :: FileChooserClass self => self -> String -> IO ()
-- | Removes a folder URI from a file chooser's list of shortcut folders.
fileChooserRemoveShortcutFolderURI :: FileChooserClass self => self -> String -> IO ()
-- | Queries the list of shortcut folders in the file chooser, as set by
-- <a>fileChooserAddShortcutFolderURI</a>.
fileChooserListShortcutFolderURIs :: FileChooserClass self => self -> IO [String]
fileChooserErrorDomain :: GErrorDomain
-- | Sets whether hidden files and folders are displayed in the file
-- selector.
--
-- Available since Gtk+ version 2.6
fileChooserSetShowHidden :: FileChooserClass self => self -> Bool -> IO ()
-- | Gets whether hidden files and folders are displayed in the file
-- selector. See <a>fileChooserSetShowHidden</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
fileChooserGetShowHidden :: FileChooserClass self => self -> IO Bool
-- | Sets whether a file chooser in <a>FileChooserActionSave</a> mode will
-- present a confirmation dialog if the user types a file name that
-- already exists. This is <tt>False</tt> by default.
--
-- Regardless of this setting, the <tt>chooser</tt> will emit the
-- "confirm-overwrite" signal when appropriate.
--
-- If all you need is the stock confirmation dialog, set this property to
-- <tt>True</tt>. You can override the way confirmation is done by
-- actually handling the "confirm-overwrite" signal; please refer to its
-- documentation for the details.
--
-- Available since Gtk+ version 2.8
fileChooserSetDoOverwriteConfirmation :: FileChooserClass self => self -> Bool -> IO ()
-- | Queries whether a file chooser is set to confirm for overwriting when
-- the user types a file name that already exists.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
fileChooserGetDoOverwriteConfirmation :: FileChooserClass self => self -> IO Bool
-- | 'usePreviewLabel' property. See <a>fileChooserGetUsePreviewLabel</a>
-- and <a>fileChooserSetUsePreviewLabel</a>
fileChooserUsePreviewLabel :: FileChooserClass self => Attr self Bool
-- | 'showHidden' property. See <a>fileChooserGetShowHidden</a> and
-- <a>fileChooserSetShowHidden</a>
--
-- Since Gtk 2.6.
fileChooserShowHidden :: FileChooserClass self => Attr self Bool
-- | 'selectMultiple' property. See <a>fileChooserGetSelectMultiple</a> and
-- <a>fileChooserSetSelectMultiple</a>
fileChooserSelectMultiple :: FileChooserClass self => Attr self Bool
-- | 'previewWidgetActive' property. See
-- <a>fileChooserGetPreviewWidgetActive</a> and
-- <a>fileChooserSetPreviewWidgetActive</a>
fileChooserPreviewWidgetActive :: FileChooserClass self => Attr self Bool
-- | 'previewWidget' property. See <a>fileChooserGetPreviewWidget</a> and
-- <a>fileChooserSetPreviewWidget</a>
fileChooserPreviewWidget :: (FileChooserClass self, WidgetClass previewWidget) => ReadWriteAttr self (Maybe Widget) previewWidget
-- | 'localOnly' property. See <a>fileChooserGetLocalOnly</a> and
-- <a>fileChooserSetLocalOnly</a>
fileChooserLocalOnly :: FileChooserClass self => Attr self Bool
-- | 'filter' property. See <a>fileChooserGetFilter</a> and
-- <a>fileChooserSetFilter</a>
fileChooserFilter :: FileChooserClass self => ReadWriteAttr self (Maybe FileFilter) FileFilter
-- | 'extraWidget' property. See <a>fileChooserGetExtraWidget</a> and
-- <a>fileChooserSetExtraWidget</a>
fileChooserExtraWidget :: (FileChooserClass self, WidgetClass extraWidget) => ReadWriteAttr self (Maybe Widget) extraWidget
-- | 'doOverwriteConfirmation' property. See
-- <a>fileChooserGetDoOverwriteConfirmation</a> and
-- <a>fileChooserSetDoOverwriteConfirmation</a>
fileChooserDoOverwriteConfirmation :: FileChooserClass self => Attr self Bool
-- | 'action' property. See <a>fileChooserGetAction</a> and
-- <a>fileChooserSetAction</a>
fileChooserAction :: FileChooserClass self => Attr self FileChooserAction
-- | This signal is emitted when the current folder in a <a>FileChooser</a>
-- changes. This can happen due to the user performing some action that
-- changes folders, such as selecting a bookmark or visiting a folder on
-- the file list. It can also happen as a result of calling a function to
-- explicitly change the current folder in a file chooser.
--
-- Normally you do not need to connect to this signal, unless you need to
-- keep track of which folder a file chooser is showing.
--
-- See also: <a>fileChooserSetCurrentFolder</a>,
-- <a>fileChooserGetCurrentFolder</a>,
-- <a>fileChooserSetCurrentFolderURI</a>,
-- <a>fileChooserGetCurrentFolderURI</a>.
currentFolderChanged :: FileChooserClass self => Signal self (IO ())
-- | This signal is emitted when the user "activates" a file in the file
-- chooser. This can happen by double-clicking on a file in the file
-- list, or by pressing Enter.
--
-- Normally you do not need to connect to this signal. It is used
-- internally by <a>FileChooserDialog</a> to know when to activate the
-- default button in the dialog.
--
-- See also: <a>fileChooserGetFilename</a>,
-- <a>fileChooserGetFilenames</a>, <a>fileChooserGetURI</a>,
-- <a>fileChooserGetURIs</a>.
fileActivated :: FileChooserClass self => Signal self (IO ())
-- | This signal is emitted when there is a change in the set of selected
-- files in a <a>FileChooser</a>. This can happen when the user modifies
-- the selection with the mouse or the keyboard, or when explicitly
-- calling functions to change the selection.
--
-- Normally you do not need to connect to this signal, as it is easier to
-- wait for the file chooser to finish running, and then to get the list
-- of selected files using the functions mentioned below.
--
-- See also: <a>fileChooserSelectFilename</a>,
-- <a>fileChooserUnselectFilename</a>, <a>fileChooserGetFilename</a>,
-- <a>fileChooserGetFilenames</a>, <a>fileChooserSelectURI</a>,
-- <a>fileChooserUnselectURI</a>, <a>fileChooserGetURI</a>,
-- <a>fileChooserGetURIs</a>.
fileSelectionChanged :: FileChooserClass self => Signal self (IO ())
-- | This signal is emitted when the preview in a file chooser should be
-- regenerated. For example, this can happen when the currently selected
-- file changes. You should use this signal if you want your file chooser
-- to have a preview widget.
--
-- Once you have installed a preview widget with
-- <a>fileChooserSetPreviewWidget</a>, you should update it when this
-- signal is emitted. You can use the functions
-- <a>fileChooserGetPreviewFilename</a> or
-- <a>fileChooserGetPreviewURI</a> to get the name of the file to
-- preview. Your widget may not be able to preview all kinds of files;
-- your callback must call <a>fileChooserSetPreviewWidgetActive</a> to
-- inform the file chooser about whether the preview was generated
-- successfully or not.
--
-- See also: <a>fileChooserSetPreviewWidget</a>,
-- <a>fileChooserSetPreviewWidgetActive</a>,
-- <a>fileChooserSetUsePreviewLabel</a>,
-- <a>fileChooserGetPreviewFilename</a>, <a>fileChooserGetPreviewURI</a>.
updatePreview :: FileChooserClass self => Signal self (IO ())
-- | This signal gets emitted whenever it is appropriate to present a
-- confirmation dialog when the user has selected a file name that
-- already exists. The signal only gets emitted when the file chooser is
-- in <a>FileChooserActionSave</a> mode.
--
-- Most applications just need to turn on the do-overwrite-confirmation
-- property (or call the <a>fileChooserSetDoOverwriteConfirmation</a>
-- function), and they will automatically get a stock confirmation
-- dialog. Applications which need to customize this behavior should do
-- that, and also connect to the <a>confirmOverwrite</a> signal.
--
-- A signal handler for this signal must return a
-- <a>FileChooserConfirmation</a> value, which indicates the action to
-- take. If the handler determines that the user wants to select a
-- different filename, it should return
-- <a>FileChooserConfirmationSelectAgain</a>. If it determines that the
-- user is satisfied with his choice of file name, it should return
-- <a>FileChooserConfirmationAcceptFilename</a>. On the other hand, if it
-- determines that the stock confirmation dialog should be used, it
-- should return <a>FileChooserConfirmationConfirm</a>.
--
-- Since Gtk 2.8.
confirmOverwrite :: FileChooserClass self => Signal self (IO FileChooserConfirmation)
instance GHC.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserConfirmation
instance GHC.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserError
instance GHC.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserAction
instance System.Glib.GError.GErrorClass Graphics.UI.Gtk.Selectors.FileChooser.FileChooserError
-- | A button to launch a file selection dialog
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FileChooserButton
data FileChooserButton
class HBoxClass o => FileChooserButtonClass o
castToFileChooserButton :: GObjectClass obj => obj -> FileChooserButton
gTypeFileChooserButton :: GType
toFileChooserButton :: FileChooserButtonClass o => o -> FileChooserButton
-- | Creates a new file-selecting button widget.
fileChooserButtonNew :: GlibString string => string -> FileChooserAction -> IO FileChooserButton
-- | Creates a <a>FileChooserButton</a> widget which uses <tt>dialog</tt>
-- as it's file-picking window.
fileChooserButtonNewWithDialog :: FileChooserDialogClass dialog => dialog -> IO FileChooserButton
-- | Retrieves the title of the browse dialog used by the button.
fileChooserButtonGetTitle :: (FileChooserButtonClass self, GlibString string) => self -> IO string
-- | Modifies the <tt>title</tt> of the browse dialog used by the button.
fileChooserButtonSetTitle :: (FileChooserButtonClass self, GlibString string) => self -> string -> IO ()
-- | Retrieves the width in characters of the <tt>button</tt> widget's
-- entry and/or label.
fileChooserButtonGetWidthChars :: FileChooserButtonClass self => self -> IO Int
-- | Sets the width (in characters) that the button will use to
-- <tt>nChars</tt>.
fileChooserButtonSetWidthChars :: FileChooserButtonClass self => self -> Int -> IO ()
-- | Instance of the <a>FileChooserDialog</a> associated with the button.
fileChooserButtonDialog :: (FileChooserButtonClass self, FileChooserDialogClass fileChooserDialog) => WriteAttr self fileChooserDialog
-- | Title to put on the <a>FileChooserDialog</a> associated with the
-- button.
--
-- Default value: "Select A File"
fileChooserButtonTitle :: (FileChooserButtonClass self, GlibString string) => Attr self string
fileChooserButtonWidthChars :: FileChooserButtonClass self => Attr self Int
-- | Emitted when the user selects a file.
fileChooserButtonFileSet :: FileChooserButtonClass self => Signal self (IO ())
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserButton
-- | File chooser widget that can be embedded in other widgets
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FileChooserWidget
data FileChooserWidget
class VBoxClass o => FileChooserWidgetClass o
castToFileChooserWidget :: GObjectClass obj => obj -> FileChooserWidget
gTypeFileChooserWidget :: GType
toFileChooserWidget :: FileChooserWidgetClass o => o -> FileChooserWidget
-- | Describes whether a <a>FileChooser</a> is being used to open existing
-- files or to save to a possibly new file.
data FileChooserAction
-- | Creates a new <a>FileChooserWidget</a>. This is a file chooser widget
-- that can be embedded in custom windows, and it is the same widget that
-- is used by <a>FileChooserDialog</a>.
fileChooserWidgetNew :: FileChooserAction -> IO FileChooserWidget
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserWidget
-- | A filter for selecting a file subset
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FileFilter
data FileFilter
class GObjectClass o => FileFilterClass o
castToFileFilter :: GObjectClass obj => obj -> FileFilter
gTypeFileFilter :: GType
toFileFilter :: FileFilterClass o => o -> FileFilter
data FileFilterFlags
FileFilterFilename :: FileFilterFlags
FileFilterUri :: FileFilterFlags
FileFilterDisplayName :: FileFilterFlags
FileFilterMimeType :: FileFilterFlags
-- | Creates a new <a>FileFilter</a> with no rules added to it. Such a
-- filter doesn't accept any files, so is not particularly useful until
-- you add rules with <a>fileFilterAddMimeType</a>,
-- <a>fileFilterAddPattern</a>, or <a>fileFilterAddCustom</a>.
fileFilterNew :: IO FileFilter
-- | Sets the human-readable name of the filter; this is the string that
-- will be displayed in the file selector user interface if there is a
-- selectable list of filters.
fileFilterSetName :: GlibString string => FileFilter -> string -> IO ()
-- | Gets the human-readable name for the filter. See
-- <a>fileFilterSetName</a>.
fileFilterGetName :: GlibString string => FileFilter -> IO string
-- | Adds a rule allowing a given mime type to <tt>filter</tt>.
fileFilterAddMimeType :: GlibString string => FileFilter -> string -> IO ()
-- | Adds a rule allowing a shell style glob to a filter.
fileFilterAddPattern :: GlibString string => FileFilter -> string -> IO ()
-- | Adds rule to a filter that allows files based on a custom callback
-- function. The list of flags <tt>needed</tt> which is passed in
-- provides information about what sorts of information that the filter
-- function needs; this allows Gtk+ to avoid retrieving expensive
-- information when it isn't needed by the filter.
fileFilterAddCustom :: GlibString string => FileFilter -> [FileFilterFlags] -> (Maybe string -> Maybe string -> Maybe string -> Maybe string -> IO Bool) -> IO ()
-- | Adds a rule allowing image files in the formats supported by
-- <a>Pixbuf</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
fileFilterAddPixbufFormats :: FileFilter -> IO ()
-- | 'name' property. See <a>fileFilterGetName</a> and
-- <a>fileFilterSetName</a>
fileFilterName :: GlibString string => Attr FileFilter string
instance GHC.Classes.Eq Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Show.Show Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Enum.Bounded Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Enum.Enum Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
-- | A button to launch a font selection dialog
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FontButton
data FontButton
class ButtonClass o => FontButtonClass o
castToFontButton :: GObjectClass obj => obj -> FontButton
gTypeFontButton :: GType
toFontButton :: FontButtonClass o => o -> FontButton
-- | Creates a new font picker widget.
fontButtonNew :: IO FontButton
-- | Creates a new font picker widget.
fontButtonNewWithFont :: GlibString string => string -> IO FontButton
-- | Sets or updates the currently-displayed font in font picker dialog.
fontButtonSetFontName :: (FontButtonClass self, GlibString string) => self -> string -> IO Bool
-- | Retrieves the name of the currently selected font.
fontButtonGetFontName :: (FontButtonClass self, GlibString string) => self -> IO string
-- | If <tt>showStyle</tt> is <tt>True</tt>, the font style will be
-- displayed along with name of the selected font.
fontButtonSetShowStyle :: FontButtonClass self => self -> Bool -> IO ()
-- | Returns whether the name of the font style will be shown in the label.
fontButtonGetShowStyle :: FontButtonClass self => self -> IO Bool
-- | If <tt>showSize</tt> is <tt>True</tt>, the font size will be displayed
-- along with the name of the selected font.
fontButtonSetShowSize :: FontButtonClass self => self -> Bool -> IO ()
-- | Returns whether the font size will be shown in the label.
fontButtonGetShowSize :: FontButtonClass self => self -> IO Bool
-- | If <tt>useFont</tt> is <tt>True</tt>, the font name will be written
-- using the selected font.
fontButtonSetUseFont :: FontButtonClass self => self -> Bool -> IO ()
-- | Returns whether the selected font is used in the label.
fontButtonGetUseFont :: FontButtonClass self => self -> IO Bool
-- | If <tt>useSize</tt> is <tt>True</tt>, the font name will be written
-- using the selected size.
fontButtonSetUseSize :: FontButtonClass self => self -> Bool -> IO ()
-- | Returns whether the selected size is used in the label.
fontButtonGetUseSize :: FontButtonClass self => self -> IO Bool
-- | Sets the title for the font selection dialog.
fontButtonSetTitle :: (FontButtonClass self, GlibString string) => self -> string -> IO ()
-- | Retrieves the title of the font selection dialog.
fontButtonGetTitle :: (FontButtonClass self, GlibString string) => self -> IO string
-- | The title of the font selection dialog.
--
-- Default value: "Pick a Font"
fontButtonTitle :: (FontButtonClass self, GlibString string) => Attr self string
-- | The name of the currently selected font.
--
-- Default value: "Sans 12"
fontButtonFontName :: (FontButtonClass self, GlibString string) => Attr self string
-- | If this property is set to <tt>True</tt>, the label will be drawn in
-- the selected font.
--
-- Default value: <tt>False</tt>
fontButtonUseFont :: FontButtonClass self => Attr self Bool
-- | If this property is set to <tt>True</tt>, the label will be drawn with
-- the selected font size.
--
-- Default value: <tt>False</tt>
fontButtonUseSize :: FontButtonClass self => Attr self Bool
-- | If this property is set to <tt>True</tt>, the name of the selected
-- font style will be shown in the label. For a more WYSIWIG way to show
-- the selected style, see the ::use-font property.
--
-- Default value: <tt>True</tt>
fontButtonShowStyle :: FontButtonClass self => Attr self Bool
-- | If this property is set to <tt>True</tt>, the selected font size will
-- be shown in the label. For a more WYSIWIG way to show the selected
-- size, see the ::use-size property.
--
-- Default value: <tt>True</tt>
fontButtonShowSize :: FontButtonClass self => Attr self Bool
-- | The <tt>fontSet</tt> signal is emitted when the user selects a font.
-- When handling this signal, use <a>fontButtonGetFontName</a> to find
-- out which font was just selected.
onFontSet :: FontButtonClass self => self -> IO () -> IO (ConnectId self)
-- | The <tt>fontSet</tt> signal is emitted when the user selects a font.
-- When handling this signal, use <a>fontButtonGetFontName</a> to find
-- out which font was just selected.
afterFontSet :: FontButtonClass self => self -> IO () -> IO (ConnectId self)
-- | A widget for selecting fonts
module Graphics.UI.Gtk.Selectors.FontSelection
data FontSelection
class VBoxClass o => FontSelectionClass o
castToFontSelection :: GObjectClass obj => obj -> FontSelection
gTypeFontSelection :: GType
toFontSelection :: FontSelectionClass o => o -> FontSelection
-- | Creates a new <a>FontSelection</a>.
fontSelectionNew :: IO FontSelection
-- | Gets the currently-selected font name.
fontSelectionGetFontName :: (FontSelectionClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the currently-selected font.
fontSelectionSetFontName :: (FontSelectionClass self, GlibString string) => self -> string -> IO Bool
-- | Gets the text displayed in the preview area.
fontSelectionGetPreviewText :: (FontSelectionClass self, GlibString string) => self -> IO string
-- | Sets the text displayed in the preview area.
fontSelectionSetPreviewText :: (FontSelectionClass self, GlibString string) => self -> string -> IO ()
-- | The X string that represents this font.
--
-- Default value: ""
fontSelectionFontName :: (FontSelectionClass self, GlibString string) => Attr self string
-- | The text to display in order to demonstrate the selected font.
--
-- Default value: "abcdefghijk ABCDEFGHIJK"
fontSelectionPreviewText :: (FontSelectionClass self, GlibString string) => Attr self string
-- | A dialog box for selecting fonts
module Graphics.UI.Gtk.Selectors.FontSelectionDialog
data FontSelectionDialog
class DialogClass o => FontSelectionDialogClass o
castToFontSelectionDialog :: GObjectClass obj => obj -> FontSelectionDialog
gTypeFontSelectionDialog :: GType
toFontSelectionDialog :: FontSelectionDialogClass o => o -> FontSelectionDialog
-- | Creates a new <a>FontSelectionDialog</a>.
fontSelectionDialogNew :: GlibString string => string -> IO FontSelectionDialog
-- | Gets the currently-selected font name.
fontSelectionDialogGetFontName :: (FontSelectionDialogClass self, GlibString string) => self -> IO (Maybe string)
-- | Sets the currently-selected font.
fontSelectionDialogSetFontName :: (FontSelectionDialogClass self, GlibString string) => self -> string -> IO Bool
-- | Gets the text displayed in the preview area.
fontSelectionDialogGetPreviewText :: (FontSelectionDialogClass self, GlibString string) => self -> IO string
-- | Sets the text displayed in the preview area.
fontSelectionDialogSetPreviewText :: (FontSelectionDialogClass self, GlibString string) => self -> string -> IO ()
-- | Gets the <tt>Cancel</tt> button.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
fontSelectionDialogGetCancelButton :: FontSelectionDialogClass self => self -> IO Widget
-- | Gets the <tt>OK</tt> button.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
fontSelectionDialogGetOkButton :: FontSelectionDialogClass self => self -> IO Widget
-- | Retrieves the <a>FontSelection</a> widget embedded in the dialog.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
fontSelectionDialogGetFontSelection :: FontSelectionDialogClass self => self -> IO FontSelection
-- | 'previewText' property. See <a>fontSelectionDialogGetPreviewText</a>
-- and <a>fontSelectionDialogSetPreviewText</a>
fontSelectionDialogPreviewText :: (FontSelectionDialogClass self, GlibString string) => Attr self string
-- | A 'color wheel' widget
--
-- <ul>
-- <li>Module available since Gtk+ version 2.14</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.HSV
data HSV
class WidgetClass o => HSVClass o
castToHSV :: GObjectClass obj => obj -> HSV
toHSV :: HSVClass o => o -> HSV
-- | Creates a new <a>HSV</a> color selector.
--
-- <ul>
-- <li>Available since 2.14</li>
-- </ul>
hsvNew :: IO HSV
-- | An <a>HSV</a> color selector can be said to be adjusting if multiple
-- rapid changes are being made to its value, for example, when the user
-- is adjusting the value with the mouse. This function queries whether
-- the <a>HSV</a> color selector is being adjusted or not.
hsvIsAdjusting :: HSVClass self => self -> IO Bool
-- | Converts a color from <a>HSV</a> space to RGB. Input values must be in
-- the [0.0, 1.0] range; output values will be in the same range.
hsvToRgb :: (Double, Double, Double) -> (Double, Double, Double)
-- | Converts a color from RGB space to <a>HSV</a>. Input values must be in
-- the [0.0, 1.0] range; output values will be in the same range.
rgbToHsv :: (Double, Double, Double) -> (Double, Double, Double)
-- | Color in an <a>HSV</a> color selector. Color component values must be
-- in the [0.0, 1.0] range.
hsvColor :: HSVClass self => Attr self (Double, Double, Double)
-- | The size and ring width of an <a>HSV</a> color selector.
hsvMetrics :: HSVClass self => Attr self (Int, Int)
hsvChanged :: HSVClass self => Signal self (IO ())
hsvMove :: HSVClass self => Signal self (DirectionType -> IO ())
-- | Display information about an application
--
-- <ul>
-- <li>Module available since Gtk+ version 2.6</li>
-- </ul>
module Graphics.UI.Gtk.Windows.AboutDialog
data AboutDialog
class DialogClass o => AboutDialogClass o
castToAboutDialog :: GObjectClass obj => obj -> AboutDialog
gTypeAboutDialog :: GType
toAboutDialog :: AboutDialogClass o => o -> AboutDialog
-- | Creates a new <a>AboutDialog</a>.
aboutDialogNew :: IO AboutDialog
-- | The name of the program. If this is not set, it defaults to
-- <tt>gGetApplicationName</tt>.
aboutDialogProgramName :: (AboutDialogClass self, GlibString string) => Attr self string
-- | The name of the program. If this is not set, it defaults to
-- <tt>gGetApplicationName</tt>.
aboutDialogName :: (AboutDialogClass self, GlibString string) => Attr self string
-- | The version of the program.
aboutDialogVersion :: (AboutDialogClass self, GlibString string) => Attr self string
-- | Copyright information for the program.
aboutDialogCopyright :: (AboutDialogClass self, GlibString string) => Attr self string
-- | Comments about the program. This string is displayed in a label in the
-- main dialog, thus it should be a short explanation of the main purpose
-- of the program, not a detailed list of features.
aboutDialogComments :: (AboutDialogClass self, GlibString string) => Attr self string
-- | The license of the program. This string is displayed in a text view in
-- a secondary dialog, therefore it is fine to use a long multi-paragraph
-- text. Note that the text is only wrapped in the text view if the
-- <a>aboutDialogWrapLicense</a> property is set to <tt>True</tt>;
-- otherwise the text itself must contain the intended linebreaks.
--
-- Default value: <tt>Nothing</tt>
aboutDialogLicense :: (AboutDialogClass self, GlibString string) => Attr self (Maybe string)
-- | The URL for the link to the website of the program. This should be a
-- string starting with "http://.
aboutDialogWebsite :: (AboutDialogClass self, GlibString string) => Attr self string
-- | The label for the link to the website of the program. If this is not
-- set, it defaults to the URL specified in the website property.
aboutDialogWebsiteLabel :: (AboutDialogClass self, GlibString string) => Attr self string
-- | The authors of the program. Each string may contain email addresses
-- and URLs, which will be displayed as links, see the introduction for
-- more details.
aboutDialogAuthors :: (AboutDialogClass self, GlibString string) => Attr self [string]
-- | The people documenting the program. Each string may contain email
-- addresses and URLs, which will be displayed as links, see the
-- introduction for more details.
aboutDialogDocumenters :: (AboutDialogClass self, GlibString string) => Attr self [string]
-- | The people who contributed artwork to the program. Each string may
-- contain email addresses and URLs, which will be displayed as links,
-- see the introduction for more details.
aboutDialogArtists :: (AboutDialogClass self, GlibString string) => Attr self [string]
-- | Credits to the translators. This string should be marked as
-- translatable. The string may contain email addresses and URLs, which
-- will be displayed as links, see the introduction for more details.
aboutDialogTranslatorCredits :: (AboutDialogClass self, GlibString string) => Attr self string
-- | A logo for the about box. If this is not set, it defaults to
-- <tt>windowGetDefaultIconList</tt>.
aboutDialogLogo :: AboutDialogClass self => ReadWriteAttr self Pixbuf (Maybe Pixbuf)
-- | A named icon to use as the logo for the about box. This property
-- overrides the logo property.
--
-- Default value: <tt>Nothing</tt>
aboutDialogLogoIconName :: (AboutDialogClass self, GlibString string) => ReadWriteAttr self string (Maybe string)
-- | Whether to wrap the text in the license dialog.
--
-- Default value: <tt>False</tt>
aboutDialogWrapLicense :: AboutDialogClass self => Attr self Bool
-- | A widget used to guide users through multi-step operations
--
-- <ul>
-- <li>Module available since Gtk+ version 2.10</li>
-- </ul>
module Graphics.UI.Gtk.Windows.Assistant
data Assistant
class WindowClass o => AssistantClass o
castToAssistant :: GObjectClass obj => obj -> Assistant
toAssistant :: AssistantClass o => o -> Assistant
data AssistantPageType
AssistantPageContent :: AssistantPageType
AssistantPageIntro :: AssistantPageType
AssistantPageConfirm :: AssistantPageType
AssistantPageSummary :: AssistantPageType
AssistantPageProgress :: AssistantPageType
AssistantPageCustom :: AssistantPageType
-- | Creates a new <a>Assistant</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantNew :: IO Assistant
-- | Returns the number of pages in the <tt>assistant</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetNPages :: AssistantClass self => self -> IO Int
-- | Returns the child widget contained in page number <tt>pageNum</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetNthPage :: AssistantClass self => self -> Int -> IO (Maybe Widget)
-- | Prepends a page to the <tt>assistant</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantPrependPage :: (AssistantClass self, WidgetClass page) => self -> page -> IO Int
-- | Appends a page to the <tt>assistant</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantAppendPage :: (AssistantClass self, WidgetClass page) => self -> page -> IO Int
-- | Inserts a page in the <tt>assistant</tt> at a given position.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantInsertPage :: (AssistantClass self, WidgetClass page) => self -> page -> Int -> IO Int
-- | Sets the page forwarding function to be <tt>pageFunc</tt>, this
-- function will be used to determine what will be the next page when the
-- user presses the forward button. Setting <tt>pageFunc</tt> to
-- <a>Nothing</a> will make the assistant to use the default forward
-- function, which just goes to the next visible page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetForwardPageFunc :: AssistantClass self => self -> Maybe (Int -> IO Int) -> IO ()
-- | Adds a widget to the action area of a <a>Assistant</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantAddActionWidget :: (AssistantClass self, WidgetClass child) => self -> child -> IO ()
-- | Removes a widget from the action area of a <a>Assistant</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantRemoveActionWidget :: (AssistantClass self, WidgetClass child) => self -> child -> IO ()
-- | Forces <tt>assistant</tt> to recompute the buttons state.
--
-- Gtk+ automatically takes care of this in most situations, e.g. when
-- the user goes to a different page, or when the visibility or
-- completeness of a page changes.
--
-- One situation where it can be necessary to call this function is when
-- changing a value on the current page affects the future page flow of
-- the assistant.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantUpdateButtonsState :: AssistantClass self => self -> IO ()
-- | Sets the page type for <tt>page</tt>. The page type determines the
-- page behavior in the <tt>assistant</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetPageType :: (AssistantClass self, WidgetClass page) => self -> page -> AssistantPageType -> IO ()
-- | Gets the page type of <tt>page</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetPageType :: (AssistantClass self, WidgetClass page) => self -> page -> IO AssistantPageType
-- | Sets a title for <tt>page</tt>. The title is displayed in the header
-- area of the assistant when <tt>page</tt> is the current page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetPageTitle :: (AssistantClass self, WidgetClass page, GlibString string) => self -> page -> string -> IO ()
-- | Gets the title for <tt>page</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetPageTitle :: (AssistantClass self, WidgetClass page, GlibString string) => self -> page -> IO string
-- | Sets a header image for <tt>page</tt>. This image is displayed in the
-- header area of the assistant when <tt>page</tt> is the current page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetPageHeaderImage :: (AssistantClass self, WidgetClass page) => self -> page -> Pixbuf -> IO ()
-- | Gets the header image for <tt>page</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetPageHeaderImage :: (AssistantClass self, WidgetClass page) => self -> page -> IO (Maybe Pixbuf)
-- | Sets a header image for <tt>page</tt>. This image is displayed in the
-- side area of the assistant when <tt>page</tt> is the current page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetPageSideImage :: (AssistantClass self, WidgetClass page) => self -> page -> Pixbuf -> IO ()
-- | Gets the header image for <tt>page</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetPageSideImage :: (AssistantClass self, WidgetClass page) => self -> page -> IO (Maybe Pixbuf)
-- | Sets whether <tt>page</tt> contents are complete. This will make
-- <tt>assistant</tt> update the buttons state to be able to continue the
-- task.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantSetPageComplete :: (AssistantClass self, WidgetClass page) => self -> page -> Bool -> IO ()
-- | Gets whether <tt>page</tt> is complete.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantGetPageComplete :: (AssistantClass self, WidgetClass page) => self -> page -> IO Bool
-- | Erases the visited page history so the back button is not shown on the
-- current page, and removes the cancel button from subsequent pages.
--
-- Use this when the information provided up to the current page is
-- hereafter deemed permanent and cannot be modified or undone. For
-- example, showing a progress page to track a long-running, unreversible
-- operation after the user has clicked apply on a confirmation page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
assistantCommit :: AssistantClass self => self -> IO ()
-- | Switches the page to <tt>pageNum</tt>. Note that this will only be
-- necessary in custom buttons, as the <tt>assistant</tt> flow can be set
-- with <a>assistantSetForwardPageFunc</a>.
--
-- Returns the page number of the current page
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantCurrentPage :: AssistantClass self => Attr self Int
-- | The type of the assistant page.
--
-- Default value: <a>AssistantPageContent</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantChildPageType :: AssistantClass self => Attr self AssistantPageType
-- | The title that is displayed in the page header.
--
-- If title and header-image are both, no header is displayed.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantChildTitle :: (AssistantClass self, GlibString string) => Attr self string
-- | The image that is displayed next to the page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantChildHeaderImage :: AssistantClass self => Attr self Pixbuf
-- | Sidebar image for the assistant page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantChildSidebarImage :: AssistantClass self => Attr self Pixbuf
-- | Setting the "complete" child property to <tt>True</tt> marks a page as
-- complete (i.e.: all the required fields are filled out). Gtk+ uses
-- this information to control the sensitivity of the navigation buttons.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantChildComplete :: AssistantClass self => Attr self Bool
-- | The ::assistantCancel signal is emitted when then the assistantCancel
-- button is clicked.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantCancel :: AssistantClass self => Signal self (IO ())
-- | The ::assistantPrepare signal is emitted when a new page is set as the
-- assistant's current page, before making the new page visible. A
-- handler for this signal can do any preparation which are necessary
-- before showing <tt>page</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantPrepare :: AssistantClass self => Signal self (Widget -> IO ())
-- | The ::assistantApply signal is emitted when the assistantApply button
-- is clicked. The default behavior of the <a>Assistant</a> is to switch
-- to the page after the current page, unless the current page is the
-- last one.
--
-- A handler for the ::assistantApply signal should carry out the actions
-- for which the wizard has collected data. If the action takes a long
-- time to complete, you might consider to put a page of type
-- <a>AssistantPageProgress</a> after the confirmation page and handle
-- this operation within the <a>assistantPrepare</a> signal of the
-- progress page.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
assistantApply :: AssistantClass self => Signal self (IO ())
-- | The ::assistantClose signal is emitted either when the assistantClose
-- button of a summary page is clicked, or when the apply button in the
-- last page in the flow (of type <a>AssistantPageConfirm</a>) is
-- clicked.
assistantClose :: AssistantClass self => Signal self (IO ())
instance GHC.Show.Show Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Enum.Bounded Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Enum.Enum Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
-- | Create popup windows
--
-- NOTE: Now FFI haven't support variadic function
-- <tt>gtk_dialog_set_alternative_button_order</tt>
module Graphics.UI.Gtk.Windows.Dialog
data Dialog
class WindowClass o => DialogClass o
castToDialog :: GObjectClass obj => obj -> Dialog
gTypeDialog :: GType
toDialog :: DialogClass o => o -> Dialog
-- | Some constructors that can be used as response numbers for dialogs.
data ResponseId
-- | GTK returns this if a response widget has no <tt>response_id</tt>, or
-- if the dialog gets programmatically hidden or destroyed.
ResponseNone :: ResponseId
-- | GTK won't return these unless you pass them in as the response for an
-- action widget. They are for your convenience.
ResponseReject :: ResponseId
-- | (as above)
ResponseAccept :: ResponseId
-- | If the dialog is deleted.
ResponseDeleteEvent :: ResponseId
-- | "Ok" was pressed.
--
-- <ul>
-- <li>This value is returned from the "Ok" stock dialog button.</li>
-- </ul>
ResponseOk :: ResponseId
-- | "Cancel" was pressed.
--
-- <ul>
-- <li>These value is returned from the "Cancel" stock dialog
-- button.</li>
-- </ul>
ResponseCancel :: ResponseId
-- | "Close" was pressed.
--
-- <ul>
-- <li>This value is returned from the "Close" stock dialog button.</li>
-- </ul>
ResponseClose :: ResponseId
-- | "Yes" was pressed.
--
-- <ul>
-- <li>This value is returned from the "Yes" stock dialog button.</li>
-- </ul>
ResponseYes :: ResponseId
-- | "No" was pressed.
--
-- <ul>
-- <li>This value is returned from the "No" stock dialog button.</li>
-- </ul>
ResponseNo :: ResponseId
-- | "Apply" was pressed.
--
-- <ul>
-- <li>This value is returned from the "Apply" stock dialog button.</li>
-- </ul>
ResponseApply :: ResponseId
-- | "Help" was pressed.
--
-- <ul>
-- <li>This value is returned from the "Help" stock dialog button.</li>
-- </ul>
ResponseHelp :: ResponseId
-- | A user-defined response
--
-- <ul>
-- <li>This value is returned from a user defined button</li>
-- </ul>
ResponseUser :: Int -> ResponseId
-- | Creates a new dialog box. Widgets should not be packed into this
-- <a>Window</a> directly, but into the "upper" and "action area", which
-- are obtained using <tt>dialogGetUpper</tt> and
-- <a>dialogGetActionArea</a>.
dialogNew :: IO Dialog
-- | Returns the content area of dialog.
dialogGetContentArea :: DialogClass self => self -> IO Widget
-- | Returns the action area of dialog.
--
-- <ul>
-- <li>This is useful to add some special widgets that cannot be added
-- with dialogAddActionWidget.</li>
-- </ul>
dialogGetActionArea :: DialogClass self => self -> IO Widget
-- | Blocks in a recursive main loop until the dialog either emits the
-- response signal, or is destroyed. If the dialog is destroyed during
-- the call to <a>dialogRun</a>, it returns <a>ResponseNone</a>.
-- Otherwise, it returns the response ID from the "response" signal
-- emission. Before entering the recursive main loop, <a>dialogRun</a>
-- calls <tt>widgetShow</tt> on the dialog for you. Note that you still
-- need to show any children of the dialog yourself.
--
-- During <a>dialogRun</a>, the default behavior of "delete_event" is
-- disabled; if the dialog receives "delete_event", it will not be
-- destroyed as windows usually are, and <a>dialogRun</a> will return
-- <a>ResponseDeleteEvent</a>. Also, during <a>dialogRun</a> the dialog
-- will be modal. You can force <a>dialogRun</a> to return at any time by
-- calling <a>dialogResponse</a> to emit the "response" signal.
-- Destroying the dialog during <a>dialogRun</a> is a very bad idea,
-- because your post-run code won't know whether the dialog was destroyed
-- or not. Hence, you should not call <a>widgetDestroy</a> before
-- <a>dialogRun</a> has returned.
--
-- After <a>dialogRun</a> returns, you are responsible for hiding or
-- destroying the dialog if you wish to do so.
--
-- Note that even though the recursive main loop gives the effect of a
-- modal dialog (it prevents the user from interacting with other windows
-- while the dialog is run), callbacks such as timeouts, IO channel
-- watches, DND drops, etc, <i>will</i> be triggered during a
-- <a>dialogRun</a> call.
dialogRun :: DialogClass self => self -> IO ResponseId
-- | Emits the "response" signal with the given response ID. Used to
-- indicate that the user has responded to the dialog in some way;
-- typically either you or <a>dialogRun</a> will be monitoring the
-- "response" signal and take appropriate action.
--
-- This function can be used to add a custom widget to the action area
-- that should close the dialog when activated or to close the dialog
-- otherwise.
dialogResponse :: DialogClass self => self -> ResponseId -> IO ()
-- | Adds a button with the given text (or a stock button, if
-- <tt>buttonText</tt> is a stock ID) and sets things up so that clicking
-- the button will emit the "response" signal with the given
-- <tt>responseId</tt>. The button is appended to the end of the dialog's
-- action area. The button widget is returned, but usually you don't need
-- it.
dialogAddButton :: (DialogClass self, GlibString string) => self -> string -> ResponseId -> IO Button
-- | Adds an activatable widget to the action area of a <a>Dialog</a>,
-- connecting a signal handler that will emit the "response" signal on
-- the dialog when the widget is activated. The widget is appended to the
-- end of the dialog's action area. If you want to add a non-activatable
-- widget, simply pack it into the action area.
dialogAddActionWidget :: (DialogClass self, WidgetClass child) => self -> child -> ResponseId -> IO ()
-- | Sets the last widget in the dialog's action area with the given
-- <a>ResponseId</a> as the default widget for the dialog. Pressing
-- "Enter" normally activates the default widget.
--
-- <ul>
-- <li>The default response is reset once it is triggered. Hence, if you
-- hide the dialog (rather than closing it) and re-display it later, you
-- need to call this function again.</li>
-- </ul>
dialogSetDefaultResponse :: DialogClass self => self -> ResponseId -> IO ()
-- | Calls <tt><tt>widgetSetSensitive</tt> widget setting</tt> for each
-- widget in the dialog's action area with the given <tt>responseId</tt>.
-- A convenient way to sensitize/desensitize dialog buttons.
dialogSetResponseSensitive :: DialogClass self => self -> ResponseId -> Bool -> IO ()
-- | Gets the response id of a widget in the action area of a dialog.
dialogGetResponseForWidget :: (DialogClass self, WidgetClass widget) => self -> widget -> IO ResponseId
-- | Returns <tt>True</tt> if dialogs are expected to use an alternative
-- button order on the screen screen. See
-- <tt>dialogSetAlternativeButtonOrder</tt> for more details about
-- alternative button order.
--
-- If you need to use this function, you should probably connect to the
-- <tt>alternativeButtonOrder</tt> signal on the GtkSettings object
-- associated to screen, in order to be notified if the button order
-- setting changes.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
dialogAlternativeDialogButtonOrder :: Maybe Screen -> IO Bool
-- | Sets an alternative button order.
--
-- If the <tt>alternativeButtonOrder</tt> setting is set to
-- <tt>True</tt>, the dialog buttons are reordered according to the order
-- of the response ids in <tt>newOrder</tt>.
--
-- See <tt>dialogSetAlternativeButtonOrder</tt> for more information.
--
-- This function is for use by language bindings.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
dialogSetAlternativeButtonOrderFromArray :: DialogClass self => self -> [ResponseId] -> IO ()
-- | Gets the widget button that uses the given response ID in the action
-- area of a dialog.
dialogGetWidgetForResponse :: DialogClass self => self -> ResponseId -> IO (Maybe Widget)
-- | Width of border around the button area at the bottom of the dialog.
--
-- Allowed values: >= 0
--
-- Default value: 5
dialogActionAreaBorder :: DialogClass self => ReadAttr self Int
-- | Spacing between buttons.
--
-- Allowed values: >= 0
--
-- Default value: 6
dialogButtonSpacing :: DialogClass self => ReadAttr self Int
-- | Width of border around the main dialog area.
--
-- Allowed values: >= 0
--
-- Default value: 2
dialogContentAreaBorder :: DialogClass self => ReadAttr self Int
-- | The default spacing used between elements of the content area of the
-- dialog, as returned by <tt>dialogSetContentArea</tt>, unless
-- <tt>boxSetSpacing</tt> was called on that widget directly.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
dialogContentAreaSpacing :: DialogClass self => ReadAttr self Int
-- | Emitted when an action widget is clicked, the dialog receives a delete
-- event, or the application programmer calls <a>dialogResponse</a>. On a
-- delete event, the response ID is <a>ResponseNone</a>. Otherwise, it
-- depends on which action widget was clicked.
response :: DialogClass self => Signal self (ResponseId -> IO ())
-- | A widget which is not displayed The <a>Invisible</a> widget is used
-- internally in GTK+, and is probably not very useful for application
-- developers. It is used for reliable pointer grabs and selection
-- handling in the code for drag-and-drop.
module Graphics.UI.Gtk.Windows.Invisible
data Invisible
-- | Creates a new <a>Invisible</a>.
invisibleNew :: IO Invisible
-- | Creates a new <a>Invisible</a> object for a specified screen
--
-- <ul>
-- <li>Available since Gdk version 2.2</li>
-- </ul>
invisibleNewForScreen :: Screen -> IO Invisible
-- | Sets the <a>Screen</a> where the <a>Invisible</a> object will be
-- displayed.
--
-- <ul>
-- <li>Available since Gdk version 2.2</li>
-- </ul>
invisibleSetScreen :: Invisible -> Screen -> IO ()
-- | Returns the <a>Screen</a> object associated with invisible
--
-- <ul>
-- <li>Available since Gdk version 2.2</li>
-- </ul>
invisibleGetScreen :: Invisible -> IO Screen
-- | A convenient message window
module Graphics.UI.Gtk.Windows.MessageDialog
data MessageDialog
class DialogClass o => MessageDialogClass o
castToMessageDialog :: GObjectClass obj => obj -> MessageDialog
gTypeMessageDialog :: GType
toMessageDialog :: MessageDialogClass o => o -> MessageDialog
data MessageType
MessageInfo :: MessageType
MessageWarning :: MessageType
MessageQuestion :: MessageType
MessageError :: MessageType
MessageOther :: MessageType
-- | Specify what buttons this dialog should show.
--
-- <ul>
-- <li>Prebuilt sets of buttons for the dialog. If none of these choices
-- are appropriate, simply use <a>ButtonsNone</a> then call
-- <tt>dialogAddButton</tt>.</li>
-- </ul>
data ButtonsType
ButtonsNone :: ButtonsType
ButtonsOk :: ButtonsType
ButtonsClose :: ButtonsType
ButtonsCancel :: ButtonsType
ButtonsYesNo :: ButtonsType
ButtonsOkCancel :: ButtonsType
-- | Flags used to influence dialog construction.
--
-- <ul>
-- <li>Marking a dialog as model will call <tt>widgetSetModal</tt> on the
-- dialog window, the <a>DialogDestroyWithParent</a> will call
-- <tt>windowSetDestroyWithParent</tt> on the dialog window. Note that in
-- case the dialog is simply destroyed, no response signal is ever
-- emitted. Finally, <tt>DialogNoSeparator</tt> omits the separator
-- between the action area and the dialog content which is preferable for
-- very simple messages, i.e. those that only contain one button.</li>
-- </ul>
data DialogFlags
DialogModal :: DialogFlags
DialogDestroyWithParent :: DialogFlags
DialogUseHeaderBar :: DialogFlags
-- | Create a new message dialog, which is a simple dialog with an icon
-- indicating the dialog type (error, warning, etc.) and some text the
-- user may want to see. When the user clicks a button a "response"
-- signal is emitted with response IDs from <tt>ResponseType</tt>. See
-- <a>Dialog</a> for more details.
messageDialogNew :: GlibString string => Maybe Window -> [DialogFlags] -> MessageType -> ButtonsType -> string -> IO MessageDialog
-- | Creates a new message dialog, which is a simple dialog with an icon
-- indicating the dialog type (error, warning, etc.) and some text which
-- is marked up with the Pango text markup language. When the user clicks
-- a button a "response" signal is emitted with response IDs from
-- <tt>ResponseType</tt>. See <a>Dialog</a> and <tt>PangoMarkup</tt> for
-- more details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
messageDialogNewWithMarkup :: GlibString string => Maybe Window -> [DialogFlags] -> MessageType -> ButtonsType -> string -> IO MessageDialog
-- | Sets the text of the message dialog to be <tt>str</tt>, which is
-- marked up with the Pango text markup language.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
messageDialogSetMarkup :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()
-- | Sets the dialog's image to <tt>image</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogSetImage :: (MessageDialogClass self, WidgetClass image) => self -> image -> IO ()
messageDialogSetSecondaryMarkup :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()
messageDialogSetSecondaryText :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()
-- | The type of message.
--
-- Default value: <a>MessageInfo</a>
messageDialogMessageType :: MessageDialogClass self => Attr self MessageType
-- | The primary text of the message dialog. If the dialog has a secondary
-- text, this will appear as the title.
--
-- Default value: <tt>Nothing</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogText :: (MessageDialogClass self, GlibString string) => Attr self (Maybe string)
-- | Interpret the string <a>messageDialogText</a> as markup.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogUseMarkup :: MessageDialogClass self => Attr self Bool
-- | The secondary text of the message dialog.
--
-- Default value: <tt>Nothing</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogSecondaryText :: (MessageDialogClass self, GlibString string) => Attr self (Maybe string)
-- | Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogSecondaryUseMarkup :: MessageDialogClass self => Attr self Bool
-- | The image for this dialog.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
messageDialogImage :: (MessageDialogClass self, WidgetClass widget) => ReadWriteAttr self Widget widget
-- | The buttons shown in the message dialog.
--
-- Default value: <a>ButtonsNone</a>
messageDialogButtons :: MessageDialogClass self => WriteAttr self ButtonsType
-- | The <a>VBox</a> that corresponds to the message area of this dialog.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
messageDialogMessageArea :: MessageDialogClass self => ReadAttr self VBox
instance GHC.Enum.Bounded Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.MessageType
instance GHC.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.MessageType
instance GHC.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.MessageType
instance GHC.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
-- | Report important messages to the user
module Graphics.UI.Gtk.Display.InfoBar
data InfoBar
class HBoxClass o => InfoBarClass o
castToInfoBar :: GObjectClass obj => obj -> InfoBar
toInfoBar :: InfoBarClass o => o -> InfoBar
-- | Creates a new <a>InfoBar</a> object.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarNew :: IO InfoBar
-- | Add an activatable widget to the action area of a <a>InfoBar</a>,
-- connecting a signal handler that will emit the "response" signal on
-- the message area when the widget is activated. The widget is appended
-- to the end of the message areas action area.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarAddActionWidget :: (InfoBarClass self, WidgetClass child) => self -> child -> Int -> IO ()
-- | Adds a button with the given text (or a stock button, if buttonText is
-- a stock ID) and sets things up so that clicking the button will emit
-- the "response" signal with the given responseId. The button is
-- appended to the end of the info bars's action area. The button widget
-- is returned, but usually you don't need it.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarAddButton :: (InfoBarClass self, GlibString string) => self -> string -> Int -> IO Button
-- | Calls <tt>widgetSetSensitive</tt> for each widget in the info bars's
-- action area with the given responseId. A convenient way to
-- sensitize/desensitize dialog buttons.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarSetResponseSensitive :: InfoBarClass self => self -> Int -> Bool -> IO ()
-- | Sets the last widget in the info bar's action area with the given
-- responseId as the default widget for the dialog. Pressing "Enter"
-- normally activates the default widget.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarSetDefaultResponse :: InfoBarClass self => self -> Int -> IO ()
-- | Emits the 'response' signal with the given <tt>responseId</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarEmitResponse :: InfoBarClass self => self -> Int -> IO ()
-- | Returns the action area of <tt>infoBar</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarGetActionArea :: InfoBarClass self => self -> IO Widget
-- | Returns the content area of <tt>infoBar</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarGetContentArea :: InfoBarClass self => self -> IO Widget
-- | The type of the message.
--
-- The type is used to determine the colors to use in the info bar.
--
-- If the type is <tt>MessageOther</tt>, no info bar is painted but the
-- colors are still set.
--
-- Default value: <tt>MessageInfo</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarMessageType :: InfoBarClass self => Attr self MessageType
-- | Emitted when an action widget is clicked or the application programmer
-- calls <tt>dialogResponse</tt>. The <tt>responseId</tt> depends on
-- which action widget was clicked.
--
-- <ul>
-- <li>Available since Gtk+ version 2.18</li>
-- </ul>
infoBarResponse :: InfoBarClass self => Signal self (Int -> IO ())
-- | The <tt>close</tt> signal is a keybinding signal which gets emitted
-- when the user uses a keybinding to dismiss the info bar.
--
-- The default binding for this signal is the Escape key.
--
-- Since 2.18
infoBarClose :: InfoBarClass self => Signal self (IO ())
-- | A toplevel container widget used to manage offscreen rendering of
-- child widgets.
--
-- <ul>
-- <li>Module available since Gtk+ version 2.20</li>
-- </ul>
module Graphics.UI.Gtk.Windows.OffscreenWindow
data OffscreenWindow
class WindowClass o => OffscreenWindowClass o
castToOffscreenWindow :: GObjectClass obj => obj -> OffscreenWindow
gTypeOffscreenWindow :: GType
toOffscreenWindow :: OffscreenWindowClass o => o -> OffscreenWindow
-- | Creates a toplevel container widget that is used to retrieve snapshots
-- of widgets without showing them on the screen. For widgets that are on
-- the screen and part of a normal widget hierarchy,
-- <tt>widgetGetSnapshot</tt> can be used instead.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
offscreenWindowNew :: IO OffscreenWindow
-- | Retrieves a snapshot of the contained widget in the form of a
-- <a>Pixbuf</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.20</li>
-- </ul>
offscreenWindowGetPixbuf :: OffscreenWindowClass self => self -> IO (Maybe Pixbuf)
-- | Toplevel which can contain other widgets
module Graphics.UI.Gtk.Windows.Window
data Window
class BinClass o => WindowClass o
castToWindow :: GObjectClass obj => obj -> Window
gTypeWindow :: GType
toWindow :: WindowClass o => o -> Window
-- | Interaction of a window with window manager
data WindowType
WindowToplevel :: WindowType
WindowPopup :: WindowType
-- | Determines a window edge or corner.
data WindowEdge
WindowEdgeNorthWest :: WindowEdge
WindowEdgeNorth :: WindowEdge
WindowEdgeNorthEast :: WindowEdge
WindowEdgeWest :: WindowEdge
WindowEdgeEast :: WindowEdge
WindowEdgeSouthWest :: WindowEdge
WindowEdgeSouth :: WindowEdge
WindowEdgeSouthEast :: WindowEdge
-- | These are hints for the window manager that indicate what type of
-- function the window has. The window manager can use this when
-- determining decoration and behaviour of the window. The hint must be
-- set before mapping the window.
--
-- See the extended window manager hints specification for more details
-- about window types.
data WindowTypeHint
WindowTypeHintNormal :: WindowTypeHint
WindowTypeHintDialog :: WindowTypeHint
WindowTypeHintMenu :: WindowTypeHint
WindowTypeHintToolbar :: WindowTypeHint
WindowTypeHintSplashscreen :: WindowTypeHint
WindowTypeHintUtility :: WindowTypeHint
WindowTypeHintDock :: WindowTypeHint
WindowTypeHintDesktop :: WindowTypeHint
WindowTypeHintDropdownMenu :: WindowTypeHint
WindowTypeHintPopupMenu :: WindowTypeHint
WindowTypeHintTooltip :: WindowTypeHint
WindowTypeHintNotification :: WindowTypeHint
WindowTypeHintCombo :: WindowTypeHint
WindowTypeHintDnd :: WindowTypeHint
data Gravity
GravityNorthWest :: Gravity
GravityNorth :: Gravity
GravityNorthEast :: Gravity
GravityWest :: Gravity
GravityCenter :: Gravity
GravityEast :: Gravity
GravitySouthWest :: Gravity
GravitySouth :: Gravity
GravitySouthEast :: Gravity
GravityStatic :: Gravity
-- | Create a new top level window.
windowNew :: IO Window
-- | Create a popup window.
windowNewPopup :: IO Window
-- | Activates the current focused widget within the window.
windowActivateFocus :: WindowClass self => self -> IO Bool
-- | Activates the default widget for the window, unless the current
-- focused widget has been configured to receive the default action (see
-- <tt>ReceivesDefault</tt> in <tt>WidgetFlags</tt>), in which case the
-- focused widget is activated.
windowActivateDefault :: WindowClass self => self -> IO Bool
-- | Sets the default size of a window. If the window's "natural" size (its
-- size request) is larger than the default, the default will be ignored.
-- More generally, if the default size does not obey the geometry hints
-- for the window (<a>windowSetGeometryHints</a> can be used to set these
-- explicitly), the default size will be clamped to the nearest permitted
-- size.
--
-- Unlike <tt>widgetSetSizeRequest</tt>, which sets a size request for a
-- widget and thus would keep users from shrinking the window, this
-- function only sets the initial size, just as if the user had resized
-- the window themselves. Users can still shrink the window again as they
-- normally would. Setting a default size of -1 means to use the
-- "natural" default size (the size request of the window).
--
-- For more control over a window's initial size and how resizing works,
-- investigate <a>windowSetGeometryHints</a>.
--
-- For some uses, <a>windowResize</a> is a more appropriate function.
-- <a>windowResize</a> changes the current size of the window, rather
-- than the size to be used on initial display. <a>windowResize</a>
-- always affects the window itself, not the geometry widget.
--
-- The default size of a window only affects the first time a window is
-- shown; if a window is hidden and re-shown, it will remember the size
-- it had prior to hiding, rather than using the default size.
--
-- Windows can't actually be 0x0 in size, they must be at least 1x1, but
-- passing 0 for <tt>width</tt> and <tt>height</tt> is OK, resulting in a
-- 1x1 default size.
windowSetDefaultSize :: WindowClass self => self -> Int -> Int -> IO ()
-- | Gets the default size of the window. A value of -1 for the width or
-- height indicates that a default size has not been explicitly set for
-- that dimension, so the "natural" size of the window will be used.
windowGetDefaultSize :: WindowClass self => self -> IO (Int, Int)
-- | Sets a position constraint for this window. If the old or new
-- constraint is <a>WinPosCenterAlways</a>, this will also cause the
-- window to be repositioned to satisfy the new constraint.
windowSetPosition :: WindowClass self => self -> WindowPosition -> IO ()
-- | Window position types
data WindowPosition
WinPosNone :: WindowPosition
WinPosCenter :: WindowPosition
WinPosMouse :: WindowPosition
WinPosCenterAlways :: WindowPosition
WinPosCenterOnParent :: WindowPosition
-- | Returns whether the window is part of the current active toplevel.
-- (That is, the toplevel window receiving keystrokes.) The return value
-- is <tt>True</tt> if the window is active toplevel itself, but also if
-- it is, say, a <tt>Plug</tt> embedded in the active toplevel. You might
-- use this function if you wanted to draw a widget differently in an
-- active window from a widget in an inactive window. See
-- <a>windowHasToplevelFocus</a>
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
windowIsActive :: WindowClass self => self -> IO Bool
-- | Returns whether the input focus is within this <a>Window</a>. For real
-- toplevel windows, this is identical to <a>windowIsActive</a>, but for
-- embedded windows, like <tt>Plug</tt>, the results will differ.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
windowHasToplevelFocus :: WindowClass self => self -> IO Bool
-- | Returns a list of all existing toplevel windows.
windowListToplevels :: IO [Window]
-- | The default widget is the widget that's activated when the user
-- presses Enter in a dialog (for example). This function sets or unsets
-- the default widget for a Window about. When setting (rather than
-- unsetting) the default widget it's generally easier to call
-- widgetGrabDefault on the widget. Before making a widget the default
-- widget, you must set the <tt>widgetCanDefault</tt> flag on the widget.
windowSetDefault :: (WindowClass self, WidgetClass widget) => self -> Maybe widget -> IO ()
-- | Returns the default widget for window. See <a>windowSetDefault</a> for
-- more details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.14</li>
-- </ul>
windowGetDefaultWidget :: WindowClass self => self -> IO (Maybe Widget)
-- | Adds a mnemonic to this window.
windowAddMnemonic :: (WindowClass self, WidgetClass widget) => self -> KeyVal -> widget -> IO ()
-- | Removes a mnemonic from this window.
windowRemoveMnemonic :: (WindowClass self, WidgetClass widget) => self -> KeyVal -> widget -> IO ()
-- | Activates the targets associated with the mnemonic.
windowMnemonicActivate :: WindowClass self => self -> KeyVal -> [Modifier] -> IO Bool
-- | Activates mnemonics and accelerators for this <a>Window</a>. This is
-- normally called by the default <tt>keyPressEvent</tt> handler for
-- toplevel windows, however in some cases it may be useful to call this
-- directly when overriding the standard key handling for a toplevel
-- window.
windowActivateKey :: WindowClass self => self -> EventM EKey Bool
-- | Propagate a key press or release event to the focus widget and up the
-- focus container chain until a widget handles event. This is normally
-- called by the default <tt>keyPressEvent</tt> and
-- <tt>keyReleaseEvent</tt> handlers for toplevel windows, however in
-- some cases it may be useful to call this directly when overriding the
-- standard key handling for a toplevel window.
windowPropagateKeyEvent :: WindowClass self => self -> EventM EKey Bool
-- | Presents a window to the user. This may mean raising the window in the
-- stacking order, deiconifying it, moving it to the current desktop,
-- and/or giving it the keyboard focus, possibly dependent on the user's
-- platform, window manager, and preferences.
--
-- If <tt>window</tt> is hidden, this function calls <tt>widgetShow</tt>
-- as well.
--
-- This function should be used when the user tries to open a window
-- that's already open. Say for example the preferences dialog is
-- currently open, and the user chooses Preferences from the menu a
-- second time; use <a>windowPresent</a> to move the already-open dialog
-- where the user can see it.
--
-- If you are calling this function in response to a user interaction, it
-- is preferable to use <a>windowPresentWithTime</a>.
windowPresent :: WindowClass self => self -> IO ()
-- | Asks to deiconify (i.e. unminimize) the specified <tt>window</tt>.
-- Note that you shouldn't assume the window is definitely deiconified
-- afterward, because other entities (e.g. the user or window manager)
-- could iconify it again before your code which assumes deiconification
-- gets to run.
--
-- You can track iconification via the <tt>windowStateEvent</tt> signal
-- on <a>Widget</a>.
windowDeiconify :: WindowClass self => self -> IO ()
-- | Asks to iconify (i.e. minimize) the specified <tt>window</tt>. Note
-- that you shouldn't assume the window is definitely iconified
-- afterward, because other entities (e.g. the user or window manager)
-- could deiconify it again, or there may not be a window manager in
-- which case iconification isn't possible, etc. But normally the window
-- will end up iconified. Just don't write code that crashes if not.
--
-- It's permitted to call this function before showing a window, in which
-- case the window will be iconified before it ever appears onscreen.
--
-- You can track iconification via the <tt>windowStateEvent</tt> signal
-- on <a>Widget</a>.
windowIconify :: WindowClass self => self -> IO ()
-- | Asks to maximize the window, so that it becomes full-screen. Note that
-- you shouldn't assume the window is definitely maximized afterward,
-- because other entities (e.g. the user or window manager) could
-- unmaximize it again, and not all window managers support maximization.
-- But normally the window will end up maximized. Just don't write code
-- that crashes if not.
--
-- It's permitted to call this function before showing a window, in which
-- case the window will be maximized when it appears onscreen initially.
--
-- You can track maximization via the <tt>windowStateEvent</tt> signal on
-- <a>Widget</a>.
windowMaximize :: WindowClass self => self -> IO ()
-- | Asks to unmaximize the window. Note that you shouldn't assume the
-- window is definitely unmaximized afterward, because other entities
-- (e.g. the user or window manager) could maximize it again, and not all
-- window managers honor requests to unmaximize. But normally the window
-- will end up unmaximized. Just don't write code that crashes if not.
--
-- You can track maximization via the <tt>windowStateEvent</tt> signal on
-- <a>Widget</a>.
windowUnmaximize :: WindowClass self => self -> IO ()
-- | Asks to place <tt>window</tt> in the fullscreen state. Note that you
-- shouldn't assume the window is definitely full screen afterward,
-- because other entities (e.g. the user or window manager) could
-- unfullscreen it again, and not all window managers honor requests to
-- fullscreen windows. But normally the window will end up fullscreen.
-- Just don't write code that crashes if not.
--
-- You can track the fullscreen state via the <tt>windowStateEvent</tt>
-- signal on <a>Widget</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowFullscreen :: WindowClass self => self -> IO ()
-- | Asks to toggle off the fullscreen state for <tt>window</tt>. Note that
-- you shouldn't assume the window is definitely not full screen
-- afterward, because other entities (e.g. the user or window manager)
-- could fullscreen it again, and not all window managers honor requests
-- to unfullscreen windows. But normally the window will end up restored
-- to its normal state. Just don't write code that crashes if not.
--
-- You can track the fullscreen state via the <tt>windowStateEvent</tt>
-- signal on <a>Widget</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowUnfullscreen :: WindowClass self => self -> IO ()
-- | Asks to keep <tt>window</tt> above, so that it stays on top. Note that
-- you shouldn't assume the window is definitely above afterward, because
-- other entities (e.g. the user or window manager) could not keep it
-- above, and not all window managers support keeping windows above. But
-- normally the window will end kept above. Just don't write code that
-- crashes if not.
--
-- It's permitted to call this function before showing a window, in which
-- case the window will be kept above when it appears onscreen initially.
--
-- You can track the above state via the <tt>windowStateEvent</tt> signal
-- on <a>Widget</a>.
--
-- Note that, according to the Extended Window Manager Hints
-- specification, the above state is mainly meant for user preferences
-- and should not be used by applications e.g. for drawing attention to
-- their dialogs.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
windowSetKeepAbove :: WindowClass self => self -> Bool -> IO ()
-- | Asks to keep <tt>window</tt> below, so that it stays in bottom. Note
-- that you shouldn't assume the window is definitely below afterward,
-- because other entities (e.g. the user or window manager) could not
-- keep it below, and not all window managers support putting windows
-- below. But normally the window will be kept below. Just don't write
-- code that crashes if not.
--
-- It's permitted to call this function before showing a window, in which
-- case the window will be kept below when it appears onscreen initially.
--
-- You can track the below state via the <tt>windowStateEvent</tt> signal
-- on <a>Widget</a>.
--
-- Note that, according to the Extended Window Manager Hints
-- specification, the above state is mainly meant for user preferences
-- and should not be used by applications e.g. for drawing attention to
-- their dialogs.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
windowSetKeepBelow :: WindowClass self => self -> Bool -> IO ()
-- | Startup notification identifiers are used by desktop environment to
-- track application startup, to provide user feedback and other
-- features. This function changes the corresponding property on the
-- underlying GdkWindow. Normally, startup identifier is managed
-- automatically and you should only use this function in special cases
-- like transferring focus from other processes. You should use this
-- function before calling <a>windowPresent</a> or any equivalent
-- function generating a window map event.
--
-- This function is only useful on X11, not with other GTK+ targets.
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
windowSetStartupId :: (WindowClass self, GlibString string) => self -> string -> IO ()
-- | Asks to stick <tt>window</tt>, which means that it will appear on all
-- user desktops. Note that you shouldn't assume the window is definitely
-- stuck afterward, because other entities (e.g. the user or window
-- manager) could unstick it again, and some window managers do not
-- support sticking windows. But normally the window will end up stuck.
-- Just don't write code that crashes if not.
--
-- It's permitted to call this function before showing a window.
--
-- You can track stickiness via the <tt>windowStateEvent</tt> signal on
-- <a>Widget</a>.
windowStick :: WindowClass self => self -> IO ()
-- | Asks to unstick <tt>window</tt>, which means that it will appear on
-- only one of the user's desktops. Note that you shouldn't assume the
-- window is definitely unstuck afterward, because other entities (e.g.
-- the user or window manager) could stick it again. But normally the
-- window will end up stuck. Just don't write code that crashes if not.
--
-- You can track stickiness via the <tt>windowStateEvent</tt> signal on
-- <a>Widget</a>.
windowUnstick :: WindowClass self => self -> IO ()
-- | Associate <tt>accelGroup</tt> with <tt>window</tt>, such that calling
-- <tt>accelGroupsActivate</tt> on <tt>window</tt> will activate
-- accelerators in <tt>accelGroup</tt>.
windowAddAccelGroup :: WindowClass self => self -> AccelGroup -> IO ()
-- | Reverses the effects of <a>windowAddAccelGroup</a>.
windowRemoveAccelGroup :: WindowClass self => self -> AccelGroup -> IO ()
-- | Sets an icon list to be used as fallback for windows that haven't had
-- <a>windowSetIconList</a> called on them to set up a window-specific
-- icon list. This function allows you to set up the icon for all windows
-- in your app at once.
--
-- See <a>windowSetIconList</a> for more details.
windowSetDefaultIconList :: [Pixbuf] -> IO ()
-- | Gets the value set by <a>windowSetDefaultIconList</a>.
windowGetDefaultIconList :: IO [Pixbuf]
-- | Sets an icon to be used as fallback for windows that haven't had
-- <a>windowSetIcon</a> called on them from a pixbuf.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
windowSetDefaultIcon :: Maybe Pixbuf -> IO ()
-- | Sets an icon to be used as fallback for windows that haven't had
-- <a>windowSetIconList</a> called on them from a file on disk. May throw
-- a <a>GError</a> if the file cannot be loaded.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowSetDefaultIconFromFile :: GlibString string => string -> IO Bool
-- | Sets an icon to be used as fallback for windows that haven't had
-- <a>windowSetIconList</a> called on them from a named themed icon, see
-- <tt>windowSetIconName</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
windowSetDefaultIconName :: GlibString string => string -> IO ()
-- | Returns the fallback icon name for windows that has been set with
-- <a>windowSetDefaultIconName</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.16</li>
-- </ul>
windowGetDefaultIconName :: GlibString string => IO string
-- | Window gravity defines the meaning of coordinates passed to
-- <a>windowMove</a>. See <a>windowMove</a> and <a>Gravity</a> for more
-- details.
--
-- The default window gravity is <a>GravityNorthWest</a> which will
-- typically "do what you mean."
windowSetGravity :: WindowClass self => self -> Gravity -> IO ()
-- | Gets the value set by <a>windowSetGravity</a>.
windowGetGravity :: WindowClass self => self -> IO Gravity
-- | Sets the <a>Screen</a> where the <tt>window</tt> is displayed; if the
-- window is already mapped, it will be unmapped, and then remapped on
-- the new screen.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowSetScreen :: WindowClass self => self -> Screen -> IO ()
-- | Returns the <a>Screen</a> associated with the window.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowGetScreen :: WindowClass self => self -> IO Screen
-- | Starts resizing a window. This function is used if an application has
-- window resizing controls. When GDK can support it, the resize will be
-- done using the standard mechanism for the window manager or windowing
-- system. Otherwise, GDK will try to emulate window resizing,
-- potentially not all that well, depending on the windowing system.
windowBeginResizeDrag :: WindowClass self => self -> WindowEdge -> MouseButton -> Int -> Int -> TimeStamp -> IO ()
-- | Starts moving a window. This function is used if an application has
-- window movement grips. When GDK can support it, the window movement
-- will be done using the standard mechanism for the window manager or
-- windowing system. Otherwise, GDK will try to emulate window movement,
-- potentially not all that well, depending on the windowing system.
windowBeginMoveDrag :: WindowClass self => self -> MouseButton -> Int -> Int -> TimeStamp -> IO ()
-- | By setting the type hint for the window, you allow the window manager
-- to decorate and handle the window in a way which is suitable to the
-- function of the window in your application.
--
-- This function should be called before the window becomes visible.
windowSetTypeHint :: WindowClass self => self -> WindowTypeHint -> IO ()
-- | Gets the type hint for this window. See <a>windowSetTypeHint</a>.
windowGetTypeHint :: WindowClass self => self -> IO WindowTypeHint
-- | Gets the value set by <a>windowSetIcon</a> (or if you've called
-- <a>windowSetIconList</a>, gets the first icon in the icon list).
windowGetIcon :: WindowClass self => self -> IO (Maybe Pixbuf)
-- | This function returns the position you need to pass to
-- <a>windowMove</a> to keep <tt>window</tt> in its current position.
-- This means that the meaning of the returned value varies with window
-- gravity. See <a>windowMove</a> for more details.
--
-- If you haven't changed the window gravity, its gravity will be
-- <a>GravityNorthWest</a>. This means that <a>windowGetPosition</a> gets
-- the position of the top-left corner of the window manager frame for
-- the window. <a>windowMove</a> sets the position of this same top-left
-- corner.
--
-- Moreover, nearly all window managers are historically broken with
-- respect to their handling of window gravity. So moving a window to its
-- current position as returned by <a>windowGetPosition</a> tends to
-- result in moving the window slightly. Window managers are slowly
-- getting better over time.
--
-- If a window has gravity <a>GravityStatic</a> the window manager frame
-- is not relevant, and thus <a>windowGetPosition</a> will always produce
-- accurate results. However you can't use static gravity to do things
-- like place a window in a corner of the screen, because static gravity
-- ignores the window manager decorations.
--
-- If you are saving and restoring your application's window positions,
-- you should know that it's impossible for applications to do this
-- without getting it somewhat wrong because applications do not have
-- sufficient knowledge of window manager state. The Correct Mechanism is
-- to support the session management protocol (see the "GnomeClient"
-- object in the GNOME libraries for example) and allow the window
-- manager to save your window sizes and positions.
windowGetPosition :: WindowClass self => self -> IO (Int, Int)
-- | Obtains the current size of the window. If the window is not onscreen,
-- it returns the size Gtk+ will suggest to the window manager for the
-- initial window size (but this is not reliably the same as the size the
-- window manager will actually select). The size obtained by
-- <a>windowGetSize</a> is the last size received in a
-- <tt>EventConfigure</tt>, that is, Gtk+ uses its locally-stored size,
-- rather than querying the X server for the size. As a result, if you
-- call <a>windowResize</a> then immediately call <a>windowGetSize</a>,
-- the size won't have taken effect yet. After the window manager
-- processes the resize request, Gtk+ receives notification that the size
-- has changed via a configure event, and the size of the window gets
-- updated.
--
-- Note 1: Nearly any use of this function creates a race condition,
-- because the size of the window may change between the time that you
-- get the size and the time that you perform some action assuming that
-- size is the current size. To avoid race conditions, connect to
-- "configure_event" on the window and adjust your size-dependent state
-- to match the size delivered in the <tt>EventConfigure</tt>.
--
-- Note 2: The returned size does <i>not</i> include the size of the
-- window manager decorations (aka the window frame or border). Those are
-- not drawn by Gtk+ and Gtk+ has no reliable method of determining their
-- size.
--
-- Note 3: If you are getting a window size in order to position the
-- window onscreen, there may be a better way. The preferred way is to
-- simply set the window's semantic type with <a>windowSetTypeHint</a>,
-- which allows the window manager to e.g. center dialogs. Also, if you
-- set the transient parent of dialogs with <a>windowSetTransientFor</a>
-- window managers will often center the dialog over its parent window.
-- It's much preferred to let the window manager handle these things
-- rather than doing it yourself, because all apps will behave
-- consistently and according to user prefs if the window manager handles
-- it. Also, the window manager can take the size of the window
-- decorations/border into account, while your application cannot.
--
-- In any case, if you insist on application-specified window
-- positioning, there's <i>still</i> a better way than doing it yourself
-- - <a>windowSetPosition</a> will frequently handle the details for you.
windowGetSize :: WindowClass self => self -> IO (Int, Int)
-- | Asks the window manager to move <tt>window</tt> to the given position.
-- Window managers are free to ignore this; most window managers ignore
-- requests for initial window positions (instead using a user-defined
-- placement algorithm) and honor requests after the window has already
-- been shown.
--
-- Note: the position is the position of the gravity-determined reference
-- point for the window. The gravity determines two things: first, the
-- location of the reference point in root window coordinates; and
-- second, which point on the window is positioned at the reference
-- point.
--
-- By default the gravity is <a>GravityNorthWest</a>, so the reference
-- point is simply the <tt>x</tt>, <tt>y</tt> supplied to
-- <a>windowMove</a>. The top-left corner of the window decorations (aka
-- window frame or border) will be placed at <tt>x</tt>, <tt>y</tt>.
-- Therefore, to position a window at the top left of the screen, you
-- want to use the default gravity (which is <a>GravityNorthWest</a>) and
-- move the window to 0,0.
--
-- To position a window at the bottom right corner of the screen, you
-- would set <a>GravitySouthEast</a>, which means that the reference
-- point is at <tt>x</tt> + the window width and <tt>y</tt> + the window
-- height, and the bottom-right corner of the window border will be
-- placed at that reference point. So, to place a window in the bottom
-- right corner you would first set gravity to south east, then write:
-- <tt>gtk_window_move (window, gdk_screen_width() - window_width,
-- gdk_screen_height() - window_height)</tt>.
--
-- The Extended Window Manager Hints specification at
-- http://www.freedesktop.org/Standards/wm-spec has a nice table of
-- gravities in the "implementation notes" section.
--
-- The <a>windowGetPosition</a> documentation may also be relevant.
windowMove :: WindowClass self => self -> Int -> Int -> IO ()
-- | Parses a standard X Window System geometry string - see the manual
-- page for X (type 'man X') for details on this.
-- <a>windowParseGeometry</a> does work on all GTK+ ports including Win32
-- but is primarily intended for an X environment.
--
-- If either a size or a position can be extracted from the geometry
-- string, <a>windowParseGeometry</a> returns <tt>True</tt> and calls
-- gtk_window_set_default_size() and<i>or gtk_window_move() to
-- resize</i>move the window.
--
-- If <a>windowParseGeometry</a> returns <tt>True</tt>, it will also set
-- the <tt>HintUserPos</tt> and<i>or <tt>HintUserSize</tt> hints
-- indicating to the window manager that the size</i>position of the
-- window was user-specified This causes most window managers to honor
-- the geometry.
--
-- Note that for <a>windowParseGeometry</a> to work as expected, it has
-- to be called when the window has its "final" size, i.e. after calling
-- <tt>widgetShowAll</tt> on the contents and
-- <a>windowSetGeometryHints</a> on the window.
windowParseGeometry :: (WindowClass self, GlibString string) => self -> string -> IO Bool
-- | Hides window, then reshows it, resetting the default size and position
-- of the window. Used by GUI builders only.
windowReshowWithInitialSize :: WindowClass self => self -> IO ()
-- | Resizes the window as if the user had done so, obeying geometry
-- constraints. The default geometry constraint is that windows may not
-- be smaller than their size request; to override this constraint, call
-- <tt>widgetSetSizeRequest</tt> to set the window's request to a smaller
-- value.
--
-- If <a>windowResize</a> is called before showing a window for the first
-- time, it overrides any default size set with
-- <a>windowSetDefaultSize</a>.
--
-- Windows may not be resized smaller than 1 by 1 pixels.
windowResize :: WindowClass self => self -> Int -> Int -> IO ()
-- | Sets the icon for <tt>window</tt>.
--
-- This function is equivalent to calling <a>windowSetIcon</a> with a
-- pixbuf created by loading the image from <tt>filename</tt>.
--
-- This may throw an exception if the file cannot be loaded.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowSetIconFromFile :: (WindowClass self, GlibFilePath fp) => self -> fp -> IO ()
-- | By default, after showing the first <a>Window</a> for each
-- <a>Screen</a>, Gtk+ calls <tt>screenNotifyStartupComplete</tt>. Call
-- this function to disable the automatic startup notification. You might
-- do this if your first window is a splash screen, and you want to delay
-- notification until after your real main window has been shown, for
-- example.
--
-- In that example, you would disable startup notification temporarily,
-- show your splash screen, then re-enable it so that showing the main
-- window would automatically result in notification.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
windowSetAutoStartupNotification :: Bool -> IO ()
-- | Presents a window to the user in response to a user interaction. If
-- you need to present a window without a timestamp, use
-- <a>windowPresent</a>. See <a>windowPresent</a> for details.
--
-- <ul>
-- <li>Available since Gtk+ version 2.8</li>
-- </ul>
windowPresentWithTime :: WindowClass self => self -> TimeStamp -> IO ()
-- | This function sets up hints about how a window can be resized by the
-- user. You can set a minimum and maximum size, the allowed resize
-- increments (e.g. for xterm, you can only resize by the size of a
-- character) and aspect ratios.
--
-- If you set a geometry widget, the hints will apply to the geometry
-- widget instead of directly to the toplevel window. Of course since the
-- geometry widget is a child widget of the top level window,
-- constraining the sizing behaviour of the widget will have a knock-on
-- effect on the sizing of the toplevel window.
--
-- The
-- <tt>minWidth</tt>/<tt>minHeight</tt>/<tt>maxWidth</tt>/<tt>maxHeight</tt>
-- fields may be set to <tt>-1</tt>, to use the size request of the
-- window or geometry widget. If the minimum size hint is not provided,
-- Gtk+ will use the size requisition of the window (or the geometry
-- widget if it set) as the minimum size. The base size is treated
-- similarly.
--
-- The canonical use-case for <a>windowSetGeometryHints</a> is to get a
-- terminal widget to resize properly. Here, the terminal text area
-- should be the geometry widget. Gtk+ will then automatically set the
-- base size of the terminal window to the size of other widgets in the
-- terminal window, such as the menubar and scrollbar. Then, the
-- <tt>widthInc</tt> and <tt>heightInc</tt> values should be set to the
-- size of one character in the terminal. Finally, the base size should
-- be set to the size of one character. The net effect is that the
-- minimum size of the terminal will have a 1x1 character terminal area,
-- and only terminal sizes on the "character grid" will be allowed.
--
-- The other useful settings are <tt>minAspect</tt> and
-- <tt>maxAspect</tt>. These specify a width/height ratio as a floating
-- point number. If a geometry widget is set, the aspect applies to the
-- geometry widget rather than the entire window. The most common use of
-- these hints is probably to set <tt>minAspect</tt> and
-- <tt>maxAspect</tt> to the same value, thus forcing the window to keep
-- a constant aspect ratio.
windowSetGeometryHints :: (WindowClass self, WidgetClass widget) => self -> Maybe widget -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Double, Double) -> IO ()
-- | Returns the group for window or the default group, if window is
-- <tt>Nothing</tt> or if window does not have an explicit window group.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
windowGetGroup :: WindowClass self => Maybe self -> IO WindowGroup
-- | Gets the type of the window. See <a>WindowType</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.20</li>
-- </ul>
windowGetWindowType :: WindowClass self => self -> IO WindowType
-- | The title of the window.
windowTitle :: (WindowClass self, GlibString string) => Attr self string
-- | The type of the window.
--
-- Default value: <a>WindowToplevel</a>
windowType :: WindowClass self => ReadAttr self WindowType
-- | If <tt>True</tt>, the window has no mimimum size. Setting this to
-- <tt>True</tt> is 99% of the time a bad idea.
--
-- Default value: <tt>False</tt>
windowAllowShrink :: WindowClass self => Attr self Bool
-- | If <tt>True</tt>, users can expand the window beyond its minimum size.
--
-- Default value: <tt>True</tt>
windowAllowGrow :: WindowClass self => Attr self Bool
-- | If <tt>True</tt>, users can resize the window.
--
-- Default value: <tt>True</tt>
windowResizable :: WindowClass self => Attr self Bool
-- | If <tt>True</tt>, window has a resize grip.
--
-- Default value: <tt>True</tt>
windowHasResizeGrip :: WindowClass self => Attr self Bool
-- | If <tt>True</tt>, the window is modal (other windows are not usable
-- while this one is up).
--
-- Default value: <tt>False</tt>
windowModal :: WindowClass self => Attr self Bool
-- | The requested opacity of the window. See <tt>windowSetOpacity</tt> for
-- more details about window opacity.
--
-- Allowed values: [0,1]
--
-- Default values: 1
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
windowOpacity :: WindowClass self => Attr self Double
-- | Unique identifier for the window to be used when restoring a session.
--
-- Default value: "\"
windowRole :: (WindowClass self, GlibString string) => Attr self string
-- | The <a>windowStartupId</a> is a write-only property for setting
-- window's startup notification identifier.
--
-- Default value: "\"
--
-- <ul>
-- <li>Available since Gtk+ version 2.12</li>
-- </ul>
windowStartupId :: (WindowClass self, GlibString string) => Attr self string
-- | The initial position of the window.
--
-- Default value: <a>WinPosNone</a>
windowWindowPosition :: WindowClass self => Attr self WindowPosition
-- | The default width of the window, used when initially showing the
-- window.
--
-- Allowed values: >= -1
--
-- Default value: -1
windowDefaultWidth :: WindowClass self => Attr self Int
-- | The default height of the window, used when initially showing the
-- window.
--
-- Allowed values: >= -1
--
-- Default value: -1
windowDefaultHeight :: WindowClass self => Attr self Int
-- | Whether the window frame should have a close button.
--
-- Default values: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
windowDeletable :: WindowClass self => Attr self Bool
-- | If this window should be destroyed when the parent is destroyed.
--
-- Default value: <tt>False</tt>
windowDestroyWithParent :: WindowClass self => Attr self Bool
-- | Icon for this window.
windowIcon :: WindowClass self => Attr self (Maybe Pixbuf)
-- | The <a>windowIconName</a> property specifies the name of the themed
-- icon to use as the window icon. See <a>IconTheme</a> for more details.
--
-- Default values: "\"
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
windowIconName :: (WindowClass self, GlibString string) => Attr self string
-- | The screen where this window will be displayed.
windowScreen :: WindowClass self => Attr self Screen
-- | Hint to help the desktop environment understand what kind of window
-- this is and how to treat it.
--
-- Default value: <a>WindowTypeHintNormal</a>
windowTypeHint :: WindowClass self => Attr self WindowTypeHint
-- | <tt>True</tt> if the window should not be in the task bar.
--
-- Default value: <tt>False</tt>
windowSkipTaskbarHint :: WindowClass self => Attr self Bool
-- | <tt>True</tt> if the window should not be in the pager.
--
-- Default value: <tt>False</tt>
windowSkipPagerHint :: WindowClass self => Attr self Bool
-- | <tt>True</tt> if the window should be brought to the user's attention.
--
-- Default value: <tt>False</tt>
windowUrgencyHint :: WindowClass self => Attr self Bool
-- | <tt>True</tt> if the window should receive the input focus.
--
-- Default value: <tt>True</tt>
windowAcceptFocus :: WindowClass self => Attr self Bool
-- | <tt>True</tt> if the window should receive the input focus when
-- mapped.
--
-- Default value: <tt>True</tt>
windowFocusOnMap :: WindowClass self => Attr self Bool
-- | Whether the window should be decorated by the window manager.
--
-- Default value: <tt>True</tt>
windowDecorated :: WindowClass self => Attr self Bool
-- | The window gravity of the window. See <a>windowMove</a> and
-- <a>Gravity</a> for more details about window gravity.
--
-- Default value: <a>GravityNorthWest</a>
windowGravity :: WindowClass self => Attr self Gravity
-- | Whether the input focus is within this GtkWindow.
--
-- Note: If add <tt>window</tt> before <tt>HasToplevelFocus</tt>
-- (has-toplevel-focus attribute) will conflicts with fucntion
-- <a>windowHasToplevelFocus</a>, so we named this attribute to
-- <a>windowToplevelFocus</a>.
--
-- Default values: <tt>False</tt>
windowToplevelFocus :: WindowClass self => Attr self Bool
-- | 'transientFor' property. See <a>windowGetTransientFor</a> and
-- <a>windowSetTransientFor</a>
windowTransientFor :: (WindowClass self, WindowClass parent) => ReadWriteAttr self (Maybe Window) parent
-- | If <tt>focus</tt> is not the current focus widget, and is focusable,
-- sets it as the focus widget for the window. If <tt>focus</tt> is
-- <tt>Nothing</tt>, unsets the focus widget for this window. To set the
-- focus to a particular widget in the toplevel, it is usually more
-- convenient to use <tt>widgetGrabFocus</tt> instead of this function.
windowFocus :: WindowClass self => Attr self (Maybe Widget)
-- | Sets up the icon representing a <a>Window</a>. The icon is used when
-- the window is minimized (also known as iconified). Some window
-- managers or desktop environments may also place it in the window
-- frame, or display it in other contexts.
--
-- By passing several sizes, you may improve the final image quality of
-- the icon, by reducing or eliminating automatic image scaling.
--
-- Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
-- larger images (64x64, 128x128) if you have them.
--
-- See also <a>windowSetDefaultIconList</a> to set the icon for all
-- windows in your application in one go.
--
-- Note that transient windows (those who have been set transient for
-- another window using <a>windowSetTransientFor</a>) will inherit their
-- icon from their transient parent. So there's no need to explicitly set
-- the icon on transient windows.
windowIconList :: WindowClass self => Attr self [Pixbuf]
-- | The mnemonic modifier for this window.
windowMnemonicModifier :: WindowClass self => Attr self [Modifier]
windowMnemonicVisible :: WindowClass self => Attr self Bool
-- | Observe events that are emitted on the frame of this window.
frameEvent :: WindowClass self => Signal self (EventM EAny Bool)
-- | The <a>keysChanged</a> signal gets emitted when the set of
-- accelerators or mnemonics that are associated with window changes.
keysChanged :: WindowClass self => Signal self (IO ())
-- | Observe a change in input focus.
setFocus :: WindowClass self => Signal self (Maybe Widget -> IO ())
instance GHC.Enum.Enum Graphics.UI.Gtk.Windows.Window.GdkWindowHints
-- | A file chooser dialog, suitable for "File/Open" or "File/Save"
-- commands
--
-- <ul>
-- <li>Module available since Gtk+ version 2.4</li>
-- </ul>
module Graphics.UI.Gtk.Selectors.FileChooserDialog
data FileChooserDialog
class DialogClass o => FileChooserDialogClass o
castToFileChooserDialog :: GObjectClass obj => obj -> FileChooserDialog
gTypeFileChooserDialog :: GType
toFileChooserDialog :: FileChooserDialogClass o => o -> FileChooserDialog
-- | Creates a new <a>FileChooserDialog</a>.
fileChooserDialogNew :: GlibString string => Maybe string -> Maybe Window -> FileChooserAction -> [(string, ResponseId)] -> IO FileChooserDialog
-- | Creates a new <a>FileChooserDialog</a> with a specified backend. This
-- is especially useful if you use <a>fileChooserSetLocalOnly</a> to
-- allow non-local files and you use a more expressive vfs, such as
-- gnome-vfs, to load files.
fileChooserDialogNewWithBackend :: GlibString string => Maybe string -> Maybe Window -> FileChooserAction -> [(string, ResponseId)] -> string -> IO FileChooserDialog
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserDialog
-- | Base class for widgets with alignments and padding
module Graphics.UI.Gtk.Abstract.Misc
data Misc
class WidgetClass o => MiscClass o
castToMisc :: GObjectClass obj => obj -> Misc
gTypeMisc :: GType
toMisc :: MiscClass o => o -> Misc
-- | Sets the alignment of the widget.
miscSetAlignment :: MiscClass self => self -> Float -> Float -> IO ()
-- | Gets the X and Y alignment of the widget within its allocation. See
-- <a>miscSetAlignment</a>.
miscGetAlignment :: MiscClass self => self -> IO (Double, Double)
-- | Sets the amount of space to add around the widget.
miscSetPadding :: MiscClass self => self -> Int -> Int -> IO ()
-- | Gets the padding in the X and Y directions of the widget. See
-- <a>miscSetPadding</a>.
miscGetPadding :: MiscClass self => self -> IO (Int, Int)
-- | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL
-- layouts.
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
miscXalign :: MiscClass self => Attr self Float
-- | The vertical alignment, from 0 (top) to 1 (bottom).
--
-- Allowed values: [0,1]
--
-- Default value: 0.5
miscYalign :: MiscClass self => Attr self Float
-- | The amount of space to add on the left and right of the widget, in
-- pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
miscXpad :: MiscClass self => Attr self Int
-- | The amount of space to add on the top and bottom of the widget, in
-- pixels.
--
-- Allowed values: >= 0
--
-- Default value: 0
miscYpad :: MiscClass self => Attr self Int
-- | Base class for input method contexts
module Graphics.UI.Gtk.Abstract.IMContext
data IMContext
class GObjectClass o => IMContextClass o
castToIMContext :: GObjectClass obj => obj -> IMContext
gTypeIMContext :: GType
toIMContext :: IMContextClass o => o -> IMContext
-- | Set the client window for the input context; this is the
-- <a>DrawWindow</a> in which the input appears. This window is used in
-- order to correctly position status windows, and may also be used for
-- purposes internal to the input method.
imContextSetClientWindow :: IMContextClass self => self -> Maybe DrawWindow -> IO ()
-- | Retrieve the current preedit string for the input context, and a list
-- of attributes to apply to the string. This string should be displayed
-- inserted at the insertion point.
imContextGetPreeditString :: (IMContextClass self, GlibString string) => self -> IO (string, [[PangoAttribute]], Int)
-- | Allow an input method to internally handle key press and release
-- events. If this function returns <tt>True</tt>, then no further
-- processing should be done for this key event.
imContextFilterKeypress :: IMContextClass self => self -> EventM EKey Bool
-- | Notify the input method that the widget to which this input context
-- corresponds has gained focus. The input method may, for example,
-- change the displayed feedback to reflect this change.
imContextFocusIn :: IMContextClass self => self -> IO ()
-- | Notify the input method that the widget to which this input context
-- corresponds has lost focus. The input method may, for example, change
-- the displayed feedback or reset the contexts state to reflect this
-- change.
imContextFocusOut :: IMContextClass self => self -> IO ()
-- | Notify the input method that a change such as a change in cursor
-- position has been made. This will typically cause the input method to
-- clear the preedit state.
imContextReset :: IMContextClass self => self -> IO ()
-- | Notify the input method that a change in cursor position has been
-- made. The location is relative to the client window.
imContextSetCursorLocation :: IMContextClass self => self -> Rectangle -> IO ()
-- | Sets whether the IM context should use the preedit string to display
-- feedback. If <tt>usePreedit</tt> is <tt>False</tt> (default is
-- <tt>True</tt>), then the IM context may use some other method to
-- display feedback, such as displaying it in a child of the root window.
imContextSetUsePreedit :: IMContextClass self => self -> Bool -> IO ()
-- | Sets surrounding context around the insertion point and preedit
-- string. This function is expected to be called in response to the
-- <a>imContextRetrieveSurrounding</a> signal, and will likely have no
-- effect if called at other times.
imContextSetSurrounding :: (IMContextClass self, GlibString string) => self -> string -> Int -> IO ()
-- | Retrieves context around the insertion point. Input methods typically
-- want context in order to constrain input text based on existing text;
-- this is important for languages such as Thai where only some sequences
-- of characters are allowed.
--
-- This function is implemented by emitting the
-- <a>imContextRetrieveSurrounding</a> signal on the input method; in
-- response to this signal, a widget should provide as much context as is
-- available, up to an entire paragraph, by calling
-- <a>imContextSetSurrounding</a>. Note that there is no obligation for a
-- widget to respond to the <a>imContextRetrieveSurrounding</a> signal,
-- so input methods must be prepared to function without context.
imContextGetSurrounding :: (IMContextClass self, GlibString string) => self -> IO (Maybe (string, Int))
-- | Asks the widget that the input context is attached to to delete
-- characters around the cursor position by emitting the
-- <a>imContextDeleteSurrounding</a> signal.
--
-- In order to use this function, you should first call
-- <a>imContextGetSurrounding</a> to get the current context, and call
-- this function immediately afterwards to make sure that you know what
-- you are deleting. You should also account for the fact that even if
-- the signal was handled, the input context might not have deleted all
-- the characters that were requested to be deleted.
--
-- This function is used by an input method that wants to make
-- substitutions in the existing text in response to new input. It is not
-- useful for applications.
imContextDeleteSurrounding :: IMContextClass self => self -> Int -> Int -> IO Bool
-- | This signal is emitted when a new preediting sequence starts.
imContextPreeditStart :: IMContextClass self => Signal self (IO ())
-- | This signal is emitted when a preediting sequence has been completed
-- or canceled.
imContextPreeditEnd :: IMContextClass self => Signal self (IO ())
-- | This signal is emitted whenever the preedit sequence currently being
-- entered has changed. It is also emitted at the end of a preedit
-- sequence, in which case <a>imContextGetPreeditString</a> returns the
-- empty string.
imContextPreeditChanged :: IMContextClass self => Signal self (IO ())
-- | This signal is emitted when a complete input sequence has been entered
-- by the user. This can be a single character immediately after a key
-- press or the final result of preediting. Parameters:
--
-- <tt>str</tt> - the completed character(s) entered by the user
imContextCommit :: (IMContextClass self, GlibString string) => Signal self (string -> IO ())
-- | This signal is emitted when the input method requires the context
-- surrounding the cursor. The callback should set the input method
-- surrounding context by calling <a>imContextSetSurrounding</a>.
--
-- Returns True if the signal was handled.
imContextRetrieveSurrounding :: IMContextClass self => Signal self (IO Bool)
-- | This signal is emitted when the input method needs to delete all or
-- part of the context surrounding the cursor. Parameters:
--
-- <tt>offset</tt> - the character offset from the cursor position of the
-- text to be deleted. A negative value indicates a position before the
-- cursor.
--
-- <tt>n_chars</tt> - the number of characters to be deleted.
--
-- Returns True if the signal was handled.
imContextDeleteSurrounding' :: IMContextClass self => Signal self (Int -> Int -> IO Bool)
-- | Base class for widgets with two adjustable panes
module Graphics.UI.Gtk.Abstract.Paned
data Paned
class ContainerClass o => PanedClass o
castToPaned :: GObjectClass obj => obj -> Paned
gTypePaned :: GType
toPaned :: PanedClass o => o -> Paned
-- | Adds a child to the top or left pane with default parameters. This is
-- equivalent to <tt><a>panedPack1</a> paned child False True</tt>.
panedAdd1 :: (PanedClass self, WidgetClass child) => self -> child -> IO ()
-- | Adds a child to the bottom or right pane with default parameters. This
-- is equivalent to <tt><a>panedPack2</a> paned child True True</tt>.
panedAdd2 :: (PanedClass self, WidgetClass child) => self -> child -> IO ()
-- | Adds a child to the top or left pane.
panedPack1 :: (PanedClass self, WidgetClass child) => self -> child -> Bool -> Bool -> IO ()
-- | Adds a child to the bottom or right pane.
panedPack2 :: (PanedClass self, WidgetClass child) => self -> child -> Bool -> Bool -> IO ()
-- | Sets the position of the divider between the two panes.
panedSetPosition :: PanedClass self => self -> Int -> IO ()
-- | Obtains the position of the divider between the two panes.
panedGetPosition :: PanedClass self => self -> IO Int
-- | Obtains the first child of the paned widget.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
panedGetChild1 :: PanedClass self => self -> IO (Maybe Widget)
-- | Obtains the second child of the paned widget.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
panedGetChild2 :: PanedClass self => self -> IO (Maybe Widget)
-- | Returns the <a>Window</a> of the handle. This function is useful when
-- handling button or motion events because it enables the callback to
-- distinguish between the window of the paned, a child and the handle.
panedGetHandleWindow :: PanedClass self => self -> IO DrawWindow
-- | Position of paned separator in pixels (0 means all the way to the
-- left/top).
--
-- Allowed values: >= 0
--
-- Default value: 0
panedPosition :: PanedClass self => Attr self Int
-- | <tt>True</tt> if the Position property should be used.
--
-- Default value: <tt>False</tt>
panedPositionSet :: PanedClass self => Attr self Bool
-- | The smallest possible value for the position property. This property
-- is derived from the size and shrinkability of the widget's children.
--
-- Allowed values: >= 0
--
-- Default value: 0
panedMinPosition :: PanedClass self => ReadAttr self Int
-- | The largest possible value for the position property. This property is
-- derived from the size and shrinkability of the widget's children.
--
-- Allowed values: >= 0
--
-- Default value: 2147483647
panedMaxPosition :: PanedClass self => ReadAttr self Int
-- | The "resize" child property determines whether the child expands and
-- shrinks along with the paned widget.
--
-- Default value: <tt>True</tt>
panedChildResize :: (PanedClass self, WidgetClass child) => child -> Attr self Bool
-- | The "shrink" child property determines whether the child can be made
-- smaller than its requisition.
--
-- Default value: <tt>True</tt>
panedChildShrink :: (PanedClass self, WidgetClass child) => child -> Attr self Bool
-- | A container which allows you to position widgets at fixed coordinates
module Graphics.UI.Gtk.Layout.Fixed
data Fixed
class ContainerClass o => FixedClass o
castToFixed :: GObjectClass obj => obj -> Fixed
gTypeFixed :: GType
toFixed :: FixedClass o => o -> Fixed
-- | Creates a new <a>Fixed</a>.
fixedNew :: IO Fixed
-- | Adds a widget to a <a>Fixed</a> container at the given position.
fixedPut :: (FixedClass self, WidgetClass widget) => self -> widget -> (Int, Int) -> IO ()
-- | Moves a child of a <a>Fixed</a> container to the given position.
fixedMove :: (FixedClass self, WidgetClass widget) => self -> widget -> (Int, Int) -> IO ()
-- | X position of child widget.
--
-- Default value: 0
fixedChildX :: (FixedClass self, WidgetClass child) => child -> Attr self Int
-- | Y position of child widget.
--
-- Default value: 0
fixedChildY :: (FixedClass self, WidgetClass child) => child -> Attr self Int
-- | Infinite scrollable area containing child widgets and/or custom
-- drawing
module Graphics.UI.Gtk.Layout.Layout
data Layout
class ContainerClass o => LayoutClass o
castToLayout :: GObjectClass obj => obj -> Layout
gTypeLayout :: GType
toLayout :: LayoutClass o => o -> Layout
-- | Creates a new <a>Layout</a>. Unless you have a specific adjustment
-- you'd like the layout to use for scrolling, pass <tt>Nothing</tt> for
-- <tt>hadjustment</tt> and <tt>vadjustment</tt>.
layoutNew :: Maybe Adjustment -> Maybe Adjustment -> IO Layout
-- | Adds <tt>childWidget</tt> to <tt>layout</tt>, at position
-- <tt>(x,y)</tt>. <tt>layout</tt> becomes the new parent container of
-- <tt>childWidget</tt>.
layoutPut :: (LayoutClass self, WidgetClass childWidget) => self -> childWidget -> Int -> Int -> IO ()
-- | Moves a current child of <tt>layout</tt> to a new position.
layoutMove :: (LayoutClass self, WidgetClass childWidget) => self -> childWidget -> Int -> Int -> IO ()
-- | Sets the size of the scrollable area of the layout.
layoutSetSize :: LayoutClass self => self -> Int -> Int -> IO ()
-- | Gets the size that has been set on the layout, and that determines the
-- total extents of the layout's scrollbar area. See
-- <a>layoutSetSize</a>.
layoutGetSize :: LayoutClass self => self -> IO (Int, Int)
-- | This function should only be called after the layout has been placed
-- in a <a>ScrolledWindow</a> or otherwise configured for scrolling. It
-- returns the <a>Adjustment</a> used for communication between the
-- horizontal scrollbar and <tt>layout</tt>.
--
-- See <a>ScrolledWindow</a>, <a>Scrollbar</a>, <a>Adjustment</a> for
-- details.
layoutGetHAdjustment :: LayoutClass self => self -> IO Adjustment
-- | This function should only be called after the layout has been placed
-- in a <a>ScrolledWindow</a> or otherwise configured for scrolling. It
-- returns the <a>Adjustment</a> used for communication between the
-- vertical scrollbar and <tt>layout</tt>.
--
-- See <a>ScrolledWindow</a>, <a>Scrollbar</a>, <a>Adjustment</a> for
-- details.
layoutGetVAdjustment :: LayoutClass self => self -> IO Adjustment
-- | Sets the horizontal scroll adjustment for the layout.
--
-- See <a>ScrolledWindow</a>, <a>Scrollbar</a>, <a>Adjustment</a> for
-- details.
layoutSetHAdjustment :: LayoutClass self => self -> Adjustment -> IO ()
-- | Sets the vertical scroll adjustment for the layout.
--
-- See <a>ScrolledWindow</a>, <a>Scrollbar</a>, <a>Adjustment</a> for
-- details.
layoutSetVAdjustment :: LayoutClass self => self -> Adjustment -> IO ()
-- | Retrieves the <tt>Drawable</tt> part of the layout used for drawing
-- operations.
layoutGetDrawWindow :: Layout -> IO DrawWindow
-- | The <a>Adjustment</a> for the horizontal position.
layoutHAdjustment :: LayoutClass self => Attr self Adjustment
-- | The <a>Adjustment</a> for the vertical position.
layoutVAdjustment :: LayoutClass self => Attr self Adjustment
-- | The width of the layout.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 100
layoutWidth :: LayoutClass self => Attr self Int
-- | The height of the layout.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 100
layoutHeight :: LayoutClass self => Attr self Int
-- | X position of child widget.
--
-- Default value: 0
layoutChildX :: (LayoutClass self, WidgetClass child) => child -> Attr self Int
-- | Y position of child widget.
--
-- Default value: 0
layoutChildY :: (LayoutClass self, WidgetClass child) => child -> Attr self Int
-- | In case the adjustments are replaced, this signal is emitted.
onSetScrollAdjustments :: LayoutClass self => self -> (Adjustment -> Adjustment -> IO ()) -> IO (ConnectId self)
-- | In case the adjustments are replaced, this signal is emitted.
afterSetScrollAdjustments :: LayoutClass self => self -> (Adjustment -> Adjustment -> IO ()) -> IO (ConnectId self)
-- | A tabbed notebook container
module Graphics.UI.Gtk.Layout.Notebook
data Notebook
class ContainerClass o => NotebookClass o
castToNotebook :: GObjectClass obj => obj -> Notebook
gTypeNotebook :: GType
toNotebook :: NotebookClass o => o -> Notebook
-- | Creates a new <a>Notebook</a> widget with no pages.
notebookNew :: IO Notebook
-- | Appends a page to <tt>notebook</tt>.
--
-- The given label will be used for the label widget of the new tab. In
-- case the context menu is enabled, this name will also appear in the
-- popup menu. If you want to specify something else to go in the tab,
-- use <a>notebookAppendPageMenu</a>.
--
-- <ul>
-- <li>This function returned <tt>()</tt> in Gtk+ version 2.2.X and
-- earlier</li>
-- </ul>
notebookAppendPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO Int
-- | Appends a page to <tt>notebook</tt>, specifying the widget to use as
-- the label in the popup menu.
--
-- Like <a>notebookAppendPage</a> but allows any widget to be used for
-- the label of the new tab and the entry in the page-switch popup menu.
--
-- <ul>
-- <li>This function returned <tt>()</tt> in Gtk version 2.2.X and
-- earlier</li>
-- </ul>
notebookAppendPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> IO Int
-- | Prepends a page to <tt>notebook</tt>.
--
-- <ul>
-- <li>The given label will be used for the label widget of the new tab.
-- In case the context menu is enabled, this name will also appear in the
-- popup menu. If you want to specify something else to go in the tab,
-- use <a>notebookPrependPageMenu</a>.</li>
-- <li>This function returned <tt>()</tt> in Gtk version 2.2.X and
-- earlier</li>
-- </ul>
notebookPrependPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO Int
-- | Prepends a page to <tt>notebook</tt>, specifying the widget to use as
-- the label in the popup menu.
--
-- Like <a>notebookPrependPage</a> but allows any widget to be used for
-- the label of the new tab and then entry in the page-switch popup menu.
--
-- <ul>
-- <li>This function returned <tt>()</tt> in Gtk version 2.2.X and
-- earlier</li>
-- </ul>
notebookPrependPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> IO Int
-- | Insert a page into <tt>notebook</tt> at the given position.
--
-- <ul>
-- <li>The given label will be used for the label widget of the new tab.
-- In case the context menu is enabled, this name will also appear in the
-- popup menu. If you want to specify something else to go in the tab,
-- use <a>notebookInsertPageMenu</a>.</li>
-- <li>This function returned <tt>()</tt> in Gtk version 2.2.X and
-- earlier</li>
-- </ul>
notebookInsertPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> Int -> IO Int
-- | Insert a page into <tt>notebook</tt> at the given position, specifying
-- the widget to use as the label in the popup menu.
--
-- Like <a>notebookInsertPage</a> but allows any widget to be used for
-- the label of the new tab and then entry in the page-switch popup menu.
--
-- <ul>
-- <li>This function returned <tt>()</tt> in Gtk version 2.2.X and
-- earlier</li>
-- </ul>
notebookInsertPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> Int -> IO Int
-- | Removes a page from the notebook given its index in the notebook.
notebookRemovePage :: NotebookClass self => self -> Int -> IO ()
-- | Query the page the child widget is contained in.
--
-- <ul>
-- <li>The function returns the page number if the child was found,
-- Nothing otherwise.</li>
-- </ul>
notebookPageNum :: (NotebookClass self, WidgetClass w) => self -> w -> IO (Maybe Int)
-- | Switches to the page number <tt>pageNum</tt>. Page numbers start from
-- <tt>0</tt>. Use <tt>-1</tt> to request the last page.
--
-- <ul>
-- <li>Note that due to historical reasons, GtkNotebook refuses to switch
-- to a page unless the child widget is visible. Therefore, it is
-- recommended to show child widgets before adding them to a
-- notebook.</li>
-- </ul>
notebookSetCurrentPage :: NotebookClass self => self -> Int -> IO ()
-- | Switches to the next page. Nothing happens if the current page is the
-- last page.
notebookNextPage :: NotebookClass self => self -> IO ()
-- | Switches to the previous page. Nothing happens if the current page is
-- the first page.
notebookPrevPage :: NotebookClass self => self -> IO ()
-- | Reorders the page containing <tt>child</tt>, so that it appears in
-- position <tt>position</tt>. If <tt>position</tt> is greater than or
-- equal to the number of children in the list or negative,
-- <tt>child</tt> will be moved to the end of the list.
notebookReorderChild :: (NotebookClass self, WidgetClass child) => self -> child -> Int -> IO ()
-- | Position a scale's value is drawn relative to the trough
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType
-- | Sets the edge at which the tabs for switching pages in the notebook
-- are drawn.
notebookSetTabPos :: NotebookClass self => self -> PositionType -> IO ()
-- | Gets the edge at which the tabs for switching pages in the notebook
-- are drawn.
notebookGetTabPos :: NotebookClass self => self -> IO PositionType
-- | Sets whether to show the tabs for the notebook or not.
notebookSetShowTabs :: NotebookClass self => self -> Bool -> IO ()
-- | Returns whether the tabs of the notebook are shown. See
-- <a>notebookSetShowTabs</a>.
notebookGetShowTabs :: NotebookClass self => self -> IO Bool
-- | Sets whether a bevel will be drawn around the notebook pages. This
-- only has a visual effect when the tabs are not shown. See
-- <a>notebookSetShowTabs</a>.
notebookSetShowBorder :: NotebookClass self => self -> Bool -> IO ()
-- | Returns whether a bevel will be drawn around the notebook pages. See
-- <a>notebookSetShowBorder</a>.
notebookGetShowBorder :: NotebookClass self => self -> IO Bool
-- | Sets whether the tab label area will have arrows for scrolling if
-- there are too many tabs to fit in the area.
notebookSetScrollable :: NotebookClass self => self -> Bool -> IO ()
-- | Returns whether the tab label area has arrows for scrolling. See
-- <a>notebookSetScrollable</a>.
notebookGetScrollable :: NotebookClass self => self -> IO Bool
-- | Enables or disables the popup menu: if the user clicks with the right
-- mouse button on the bookmarks, a menu with all the pages will be
-- popped up.
notebookSetPopup :: NotebookClass self => self -> Bool -> IO ()
-- | Returns the page number of the current page.
notebookGetCurrentPage :: NotebookClass self => self -> IO Int
-- | Changes the menu label for the page containing <tt>child</tt>.
notebookSetMenuLabel :: (NotebookClass self, WidgetClass child, WidgetClass menuLabel) => self -> child -> Maybe menuLabel -> IO ()
-- | Retrieves the menu label widget of the page containing <tt>child</tt>.
notebookGetMenuLabel :: (NotebookClass self, WidgetClass child) => self -> child -> IO (Maybe Widget)
-- | Creates a new label and sets it as the menu label of <tt>child</tt>.
notebookSetMenuLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO ()
-- | Retrieves the text of the menu label for the page containing
-- <tt>child</tt>.
notebookGetMenuLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> IO (Maybe string)
-- | Returns the child widget contained in page number <tt>pageNum</tt>.
notebookGetNthPage :: NotebookClass self => self -> Int -> IO (Maybe Widget)
-- | Gets the number of pages in a notebook.
--
-- <ul>
-- <li>Available since Gtk version 2.2</li>
-- </ul>
notebookGetNPages :: NotebookClass self => self -> IO Int
-- | Returns the tab label widget for the page <tt>child</tt>.
-- <tt>Nothing</tt> is returned if <tt>child</tt> is not in
-- <tt>notebook</tt> or if no tab label has specifically been set for
-- <tt>child</tt>.
notebookGetTabLabel :: (NotebookClass self, WidgetClass child) => self -> child -> IO (Maybe Widget)
-- | Retrieves the text of the tab label for the page containing
-- <tt>child</tt>.
notebookGetTabLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> IO (Maybe string)
-- | Packing parameters of a widget
--
-- <ul>
-- <li>The <a>Packing</a> parameter determines how the child behaves in
-- the horizontal or vertical way in an <a>HBox</a> or <a>VBox</a>,
-- respectively. <a>PackNatural</a> means the child is as big as it
-- requests. It will stay at the start or end of a <a>Box</a> if there is
-- more space available. All children packed with <a>PackRepel</a> will
-- be padded on both sides with additional space. <a>PackGrow</a> will
-- increase the size of a widget so that it covers the available space. A
-- menu bar, for instance, should always stay at the top of a window and
-- should only occupy as little space as possible. Hence it should be
-- packed at the start of a <a>VBox</a> with the packing option
-- <a>PackNatural</a>. The working area of a window (e.g. the text area
-- in an editor) should expand when the window is resized. Here the
-- packing option <a>PackGrow</a> is the right choice and it is
-- irrelevant whether the main area is inserted at the start or the end
-- of a box. Finally <a>PackRepel</a> is most useful in a window where no
-- widget can make use of excess space. Examples include a dialog box
-- without list boxes or text fields.</li>
-- </ul>
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing
-- | Packing of widgets at start or end in a box
data PackType
PackStart :: PackType
PackEnd :: PackType
-- | Changes the tab label for <tt>child</tt>.
notebookSetTabLabel :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel) => self -> child -> tabLabel -> IO ()
-- | Creates a new label and sets it as the tab label for the page
-- containing <tt>child</tt>.
notebookSetTabLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO ()
-- | Sets whether the notebook tab can be reordered via drag and drop or
-- not.
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookSetTabReorderable :: (NotebookClass self, WidgetClass child) => self -> child -> Bool -> IO ()
-- | Gets whether the tab can be reordered via drag and drop or not.
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookGetTabReorderable :: (NotebookClass self, WidgetClass child) => self -> child -> IO Bool
-- | Sets whether the tab can be detached from notebook to another notebook
-- or widget.
--
-- Note that 2 notebooks must share a common group identificator (see
-- gtk_notebook_set_group_id()) to allow automatic tabs interchange
-- between them.
--
-- If you want a widget to interact with a notebook through DnD (i.e.:
-- accept dragged tabs from it) it must be set as a drop destination and
-- accept the target <a>GTK_NOTEBOOK_TAB</a>. The notebook will fill the
-- selection with a GtkWidget** pointing to the child widget that
-- corresponds to the dropped tab.
--
-- If you want a notebook to accept drags from other widgets, you will
-- have to set your own DnD code to do it.
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookSetTabDetachable :: (NotebookClass self, WidgetClass child) => self -> child -> Bool -> IO ()
-- | Returns whether the tab contents can be detached from notebook.
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookGetTabDetachable :: (NotebookClass self, WidgetClass child) => self -> child -> IO Bool
-- | Sets widget as one of the action widgets. Depending on the pack type
-- the widget will be placed before or after the tabs. You can use a
-- <a>Box</a> if you need to pack more than one widget on the same side.
--
-- Note that action widgets are "internal" children of the notebook and
-- thus not included in the list returned from <tt>containerForeach</tt>.
--
-- <ul>
-- <li>Available since Gtk version 2.20</li>
-- </ul>
notebookSetActionWidget :: (NotebookClass self, WidgetClass widget) => self -> widget -> PackType -> IO ()
-- | Gets one of the action widgets. See <a>notebookSetActionWidget</a>.
--
-- <ul>
-- <li>Available since Gtk version 2.20</li>
-- </ul>
notebookGetActionWidget :: NotebookClass self => self -> PackType -> IO (Maybe Widget)
-- | The index of the current page.
--
-- Allowed values: >= 0
--
-- Default value: 0
notebookPage :: NotebookClass self => Attr self Int
-- | Which side of the notebook holds the tabs.
--
-- Default value: <a>PosTop</a>
notebookTabPos :: NotebookClass self => Attr self PositionType
-- | Width of the border around the tab labels.
--
-- Default value: 2
notebookTabBorder :: NotebookClass self => WriteAttr self Int
-- | Width of the horizontal border of tab labels.
--
-- Default value: 2
notebookTabHborder :: NotebookClass self => Attr self Int
-- | Width of the vertical border of tab labels.
--
-- Default value: 2
notebookTabVborder :: NotebookClass self => Attr self Int
-- | Whether tabs should be shown or not.
--
-- Default value: <tt>True</tt>
notebookShowTabs :: NotebookClass self => Attr self Bool
-- | Whether the border should be shown or not.
--
-- Default value: <tt>True</tt>
notebookShowBorder :: NotebookClass self => Attr self Bool
-- | If <tt>True</tt>, scroll arrows are added if there are too many tabs
-- to fit.
--
-- Default value: <tt>False</tt>
notebookScrollable :: NotebookClass self => Attr self Bool
-- | If <tt>True</tt>, pressing the right mouse button on the notebook pops
-- up a menu that you can use to go to a page.
--
-- Default value: <tt>False</tt>
notebookEnablePopup :: NotebookClass self => Attr self Bool
-- | Whether tabs should have homogeneous sizes.
--
-- Default value: <tt>False</tt>
notebookHomogeneous :: NotebookClass self => Attr self Bool
-- | Switches to the page number <tt>pageNum</tt>.
--
-- Note that due to historical reasons, <a>Notebook</a> refuses to switch
-- to a page unless the child widget is visible. Therefore, it is
-- recommended to show child widgets before adding them to a notebook.
--
-- Returns the page number of the current page.
notebookCurrentPage :: NotebookClass self => Attr self Int
-- | The string displayed on the child's tab label.
--
-- Default value: <tt>Nothing</tt>
notebookChildTabLabel :: (NotebookClass self, WidgetClass child, GlibString string) => child -> Attr self string
-- | The string displayed in the child's menu entry.
--
-- Default value: <tt>Nothing</tt>
notebookChildMenuLabel :: (NotebookClass self, WidgetClass child, GlibString string) => child -> Attr self string
-- | The index of the child in the parent.
--
-- Allowed values: >= -1
--
-- Default value: 0
notebookChildPosition :: (NotebookClass self, WidgetClass child) => child -> Attr self Int
-- | The packing style of the child's tab.
--
-- Default value: <a>PackGrow</a>
notebookChildTabPacking :: (NotebookClass self, WidgetClass child) => child -> Attr self Packing
-- | A <a>PackType</a> indicating whether the child is packed with
-- reference to the start or end of the parent.
--
-- Default value: <a>PackStart</a>
notebookChildTabPackType :: (NotebookClass self, WidgetClass child) => child -> Attr self PackType
-- | Whether the tab is detachable.
--
-- Default value: <tt>False</tt>
notebookChildDetachable :: NotebookClass self => Attr self Bool
-- | Whether the tab is reorderable by user action or not.
--
-- Default value: <tt>False</tt>
notebookChildReorderable :: NotebookClass self => Attr self Bool
-- | Whether to expand the child's tab or not.
--
-- Default value : <tt>False</tt>
notebookChildTabExpand :: NotebookClass self => Attr self Bool
-- | Whether the child's tab should fill the allocated area or not.
--
-- Default value : <tt>False</tt>
notebookChildTabFill :: NotebookClass self => Attr self Bool
-- | The <a>notebookStyleArrowSpacing</a> property defines the spacing
-- between the scroll arrows and the tabs.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookStyleArrowSpacing :: NotebookClass self => ReadAttr self Bool
-- | The <a>notebookStyleHasBackwardStepper</a> property determines whether
-- the standard backward arrow button is displayed.
--
-- Default value: <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
notebookStyleHasBackwardStepper :: NotebookClass self => ReadAttr self Bool
-- | The <a>notebookStyleHasForwardStepper</a> property determines whether
-- the standard forward arrow button is displayed.
--
-- Default value : <tt>True</tt>
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
notebookStyleHasForwardStepper :: NotebookClass self => ReadAttr self Bool
-- | The <a>notebookStyleHasSecondaryBackwardStepper</a> property
-- determines whether a second backward arrow button is displayed on the
-- opposite end of the tab area.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
notebookStyleHasSecondaryBackwardStepper :: NotebookClass self => ReadAttr self Bool
-- | The <a>notebookStyleHasSecondaryForwardStepper</a> property determines
-- whether a second forward arrow button is displayed on the opposite end
-- of the tab area.
--
-- Default value: <tt>False</tt>
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
notebookStyleHasSecondaryForwardStepper :: NotebookClass self => ReadAttr self Bool
-- | The <a>notebookStyleTabCurvature</a> property defines size of tab
-- curvature.
--
-- Allowed values: >= 0
--
-- Default value: 1
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookStyleTabCurvature :: NotebookClass self => ReadAttr self Int
-- | The <a>notebookStyleTabOverlap</a> property defines size of tab
-- overlap area.
--
-- Default value: 2
--
-- <ul>
-- <li>Available since Gtk version 2.10</li>
-- </ul>
notebookStyleTabOverlap :: NotebookClass self => ReadAttr self Int
-- | Emitted when the user or a function changes the current page.
switchPage :: NotebookClass self => Signal self (Int -> IO ())
-- | The <a>pageAdded</a> signal is emitted in the notebook right after a
-- page is added to the notebook.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
pageAdded :: NotebookClass self => Signal self (Widget -> Int -> IO ())
-- | The <a>pageRemoved</a> signal is emitted in the notebook right after a
-- page is removed from the notebook.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
pageRemoved :: NotebookClass self => Signal self (Widget -> Int -> IO ())
-- | The <a>pageReordered</a> signal is emitted in the notebook right after
-- a page has been reordered.
--
-- <ul>
-- <li>Available since Gtk+ version 2.10</li>
-- </ul>
pageReordered :: NotebookClass self => Signal self (Widget -> Int -> IO ())
-- | The table widget is a container in which widgets can be aligned in
-- cells.
module Graphics.UI.Gtk.Layout.Table
data Table
class ContainerClass o => TableClass o
castToTable :: GObjectClass obj => obj -> Table
gTypeTable :: GType
toTable :: TableClass o => o -> Table
-- | Used to create a new table widget. An initial size must be given by
-- specifying how many rows and columns the table should have, although
-- this can be changed later with <a>tableResize</a>. <tt>rows</tt> and
-- <tt>columns</tt> must both be in the range 0 .. 65535.
tableNew :: Int -> Int -> Bool -> IO Table
-- | Change the dimensions of an already existing table.
tableResize :: TableClass self => self -> Int -> Int -> IO ()
-- | Child widget attach options for table containers
data AttachOptions
Expand :: AttachOptions
Shrink :: AttachOptions
Fill :: AttachOptions
-- | Adds a widget to a table. The number of 'cells' that a widget will
-- occupy is specified by <tt>leftAttach</tt>, <tt>rightAttach</tt>,
-- <tt>topAttach</tt> and <tt>bottomAttach</tt>. These each represent the
-- leftmost, rightmost, uppermost and lowest column and row numbers of
-- the table. (Columns and rows are indexed from zero).
tableAttach :: (TableClass self, WidgetClass child) => self -> child -> Int -> Int -> Int -> Int -> [AttachOptions] -> [AttachOptions] -> Int -> Int -> IO ()
-- | As there are many options associated with <a>tableAttach</a>, this
-- convenience function provides the programmer with a means to add
-- children to a table with identical padding and expansion options. The
-- values used for the <a>AttachOptions</a> are <tt>[<a>Expand</a>,
-- <a>Fill</a>]</tt>, and the padding is set to 0.
tableAttachDefaults :: (TableClass self, WidgetClass widget) => self -> widget -> Int -> Int -> Int -> Int -> IO ()
-- | Changes the space between a given table row and its surrounding rows.
tableSetRowSpacing :: TableClass self => self -> Int -> Int -> IO ()
-- | Gets the amount of space between row <tt>row</tt>, and row
-- <tt>row</tt> + 1. See <a>tableSetRowSpacing</a>.
tableGetRowSpacing :: TableClass self => self -> Int -> IO Int
-- | Alters the amount of space between a given table column and the
-- adjacent columns.
tableSetColSpacing :: TableClass self => self -> Int -> Int -> IO ()
-- | Gets the amount of space between column <tt>col</tt>, and column
-- <tt>col</tt> + 1. See <a>tableSetColSpacing</a>.
tableGetColSpacing :: TableClass self => self -> Int -> IO Int
-- | Sets the space between every row in <tt>table</tt> equal to
-- <tt>spacing</tt>.
tableSetRowSpacings :: TableClass self => self -> Int -> IO ()
-- | Gets the default row spacing for the table. This is the spacing that
-- will be used for newly added rows. (See <a>tableSetRowSpacings</a>)
tableGetDefaultRowSpacing :: TableClass self => self -> IO Int
-- | Sets the space between every column in <tt>table</tt> equal to
-- <tt>spacing</tt>.
tableSetColSpacings :: TableClass self => self -> Int -> IO ()
-- | Gets the default column spacing for the table. This is the spacing
-- that will be used for newly added columns. (See
-- <a>tableSetColSpacings</a>)
tableGetDefaultColSpacing :: TableClass self => self -> IO Int
-- | Changes the homogenous property of table cells, ie. whether all cells
-- are an equal size or not.
tableSetHomogeneous :: TableClass self => self -> Bool -> IO ()
-- | Returns whether the table cells are all constrained to the same width
-- and height. (See <a>tableSetHomogeneous</a>)
tableGetHomogeneous :: TableClass self => self -> IO Bool
-- | Returns the size of <a>Table</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.22</li>
-- </ul>
tableGetSize :: TableClass self => self -> IO (Int, Int)
-- | The number of rows in the table.
--
-- Default value: 0
tableNRows :: TableClass self => Attr self Int
-- | The number of columns in the table.
--
-- Default value: 0
tableNColumns :: TableClass self => Attr self Int
-- | The amount of space between two consecutive rows.
--
-- Default value: 0
tableRowSpacing :: TableClass self => Attr self Int
-- | The amount of space between two consecutive columns.
--
-- Default value: 0
tableColumnSpacing :: TableClass self => Attr self Int
-- | If <tt>True</tt> this means the table cells are all the same
-- width/height.
--
-- Default value: <tt>False</tt>
tableHomogeneous :: TableClass self => Attr self Bool
-- | The column number to attach the left side of the child to.
--
-- Allowed values: <= 65535
--
-- Default value: 0
tableChildLeftAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | The column number to attach the right side of a child widget to.
--
-- Allowed values: [1,65535]
--
-- Default value: 1
tableChildRightAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | The row number to attach the top of a child widget to.
--
-- Allowed values: <= 65535
--
-- Default value: 0
tableChildTopAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | The row number to attach the bottom of the child to.
--
-- Allowed values: [1,65535]
--
-- Default value: 1
tableChildBottomAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | Options specifying the horizontal behaviour of the child.
--
-- Default value: <tt>[<a>Expand</a>, <a>Fill</a>]</tt>
tableChildXOptions :: (TableClass self, WidgetClass child) => child -> Attr self [AttachOptions]
-- | Options specifying the vertical behaviour of the child.
--
-- Default value: <tt>[<a>Expand</a>, <a>Fill</a>]</tt>
tableChildYOptions :: (TableClass self, WidgetClass child) => child -> Attr self [AttachOptions]
-- | Extra space to put between the child and its left and right neighbors,
-- in pixels.
--
-- Allowed values: <= 65535
--
-- Default value: 0
tableChildXPadding :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | Extra space to put between the child and its upper and lower
-- neighbors, in pixels.
--
-- Allowed values: <= 65535
--
-- Default value: 0
tableChildYPadding :: (TableClass self, WidgetClass child) => child -> Attr self Int
-- | A menu widget
module Graphics.UI.Gtk.MenuComboToolbar.Menu
data Menu
class MenuShellClass o => MenuClass o
castToMenu :: GObjectClass obj => obj -> Menu
gTypeMenu :: GType
toMenu :: MenuClass o => o -> Menu
-- | Creates a new <a>Menu</a>.
menuNew :: IO Menu
-- | Moves a <a>MenuItem</a> to a new position within the <a>Menu</a>.
menuReorderChild :: (MenuClass self, MenuItemClass child) => self -> child -> Int -> IO ()
-- | Popup a context menu where a button press occurred.
--
-- <ul>
-- <li>This function must be called in response to a button click. It
-- opens the given menu at a place determined by the last emitted event
-- (hence the requirement that this function is called as response to a
-- button press signal).</li>
-- </ul>
menuPopup :: MenuClass self => self -> Maybe (MouseButton, TimeStamp) -> IO ()
-- | Set the <a>AccelGroup</a> which holds global accelerators for the
-- menu. This accelerator group needs to also be added to all windows
-- that this menu is being used in with <tt>windowAddAccelGroup</tt>, in
-- order for those windows to support all the accelerators contained in
-- this group.
menuSetAccelGroup :: MenuClass self => self -> AccelGroup -> IO ()
-- | Gets the <a>AccelGroup</a> which holds global accelerators for the
-- menu. See <a>menuSetAccelGroup</a>.
menuGetAccelGroup :: MenuClass self => self -> IO AccelGroup
-- | Sets an accelerator path for this menu from which accelerator paths
-- for its immediate children, its menu items, can be constructed. The
-- main purpose of this function is to spare the programmer the
-- inconvenience of having to call <tt>menuItemSetAccelPath</tt> on each
-- menu item that should support runtime user changable accelerators.
-- Instead, by just calling <a>menuSetAccelPath</a> on their parent, each
-- menu item of this menu, that contains a label describing its purpose,
-- automatically gets an accel path assigned.
--
-- For example, a menu containing menu items "New" and "Exit", will,
-- after calling
--
-- <pre>
-- menu `menuSetAccelPath` "<Gnumeric-Sheet>/File"
-- </pre>
--
-- assign its items the accel paths:
-- <tt>"<Gnumeric-Sheet>/File/New"</tt> and
-- <tt>"<Gnumeric-Sheet>/File/Exit"</tt>.
--
-- Assigning accel paths to menu items then enables the user to change
-- their accelerators at runtime. More details about accelerator paths
-- and their default setups can be found at <tt>accelMapAddEntry</tt>.
menuSetAccelPath :: (MenuClass self, GlibString string) => self -> string -> IO ()
-- | Sets the title string for the menu. The title is displayed when the
-- menu is shown as a tearoff menu.
menuSetTitle :: (MenuClass self, GlibString string) => self -> string -> IO ()
-- | Returns the title of the menu. See <a>menuSetTitle</a>.
menuGetTitle :: (MenuClass self, GlibString string) => self -> IO (Maybe string)
-- | Removes the menu from the screen.
menuPopdown :: MenuClass self => self -> IO ()
-- | Repositions the menu according to its position function.
menuReposition :: MenuClass self => self -> IO ()
-- | Returns the selected menu item from the menu. This is used by the
-- <tt>OptionMenu</tt>.
menuGetActive :: MenuClass self => self -> IO MenuItem
-- | Selects the specified menu item within the menu. This is used by the
-- <tt>OptionMenu</tt> and should not be used by anyone else.
menuSetActive :: MenuClass self => self -> Int -> IO ()
-- | Changes the tearoff state of the menu. A menu is normally displayed as
-- drop down menu which persists as long as the menu is active. It can
-- also be displayed as a tearoff menu which persists until it is closed
-- or reattached.
menuSetTearoffState :: MenuClass self => self -> Bool -> IO ()
-- | Returns whether the menu is torn off. See <a>menuSetTearoffState</a>.
menuGetTearoffState :: MenuClass self => self -> IO Bool
-- | Attach this menu to another widget.
menuAttachToWidget :: (MenuClass self, WidgetClass attachWidget) => self -> attachWidget -> IO ()
-- | Detach this menu from the widget it is attached to.
menuDetach :: MenuClass self => self -> IO ()
-- | Get the widget this menu is attached to. Returns Nothing if this is a
-- tearoff (context) menu.
menuGetAttachWidget :: MenuClass self => self -> IO (Maybe Widget)
-- | Sets the <a>Screen</a> on which the menu will be displayed.
--
-- <ul>
-- <li>Available since Gtk+ version 2.2</li>
-- </ul>
menuSetScreen :: MenuClass self => self -> Maybe Screen -> IO ()
-- | Informs Gtk+ on which monitor a menu should be popped up. See
-- <tt>screenGetMonitorGeometry</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
menuSetMonitor :: MenuClass self => self -> Int -> IO ()
-- | Adds a new <a>MenuItem</a> to a (table) menu. The number of 'cells'
-- that an item will occupy is specified by <tt>leftAttach</tt>,
-- <tt>rightAttach</tt>, <tt>topAttach</tt> and <tt>bottomAttach</tt>.
-- These each represent the leftmost, rightmost, uppermost and lower
-- column and row numbers of the table. (Columns and rows are indexed
-- from zero).
--
-- Note that this function is not related to <a>menuDetach</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
menuAttach :: (MenuClass self, MenuItemClass child) => self -> child -> Int -> Int -> Int -> Int -> IO ()
-- | Returns a list of the menus which are attached to this widget.
--
-- <ul>
-- <li>Available since Gtk+ version 2.6</li>
-- </ul>
menuGetForAttachWidget :: WidgetClass widget => widget -> IO [Menu]
-- | A boolean that indicates whether the menu is torn-off.
--
-- Default value: <tt>False</tt>
menuTearoffState :: MenuClass self => Attr self Bool
-- | 'accelGroup' property. See <a>menuGetAccelGroup</a> and
-- <a>menuSetAccelGroup</a>
menuAccelGroup :: MenuClass self => Attr self AccelGroup
-- | 'active' property. See <a>menuGetActive</a> and <a>menuSetActive</a>
menuActive :: MenuClass self => ReadWriteAttr self MenuItem Int
-- | A title that may be displayed by the window manager when this menu is
-- torn-off.
--
-- Default value: ""
menuTitle :: (MenuClass self, GlibString string) => Attr self string
-- | The column number to attach the left side of the child to.
--
-- Allowed values: >= -1
--
-- Default value: -1
menuChildLeftAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int
-- | The column number to attach the right side of the child to.
--
-- Allowed values: >= -1
--
-- Default value: -1
menuChildRightAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int
-- | The row number to attach the top of the child to.
--
-- Allowed values: >= -1
--
-- Default value: -1
menuChildTopAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int
-- | The row number to attach the bottom of the child to.
--
-- Allowed values: >= -1
--
-- Default value: -1
menuChildBottomAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int
-- | Create bars of buttons and other widgets
module Graphics.UI.Gtk.MenuComboToolbar.Toolbar
data Toolbar
class ContainerClass o => ToolbarClass o
castToToolbar :: GObjectClass obj => obj -> Toolbar
gTypeToolbar :: GType
toToolbar :: ToolbarClass o => o -> Toolbar
-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation
-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle
-- | Creates a new toolbar.
toolbarNew :: IO Toolbar
-- | Alters the view of the toolbar to display either icons only, text
-- only, or both.
toolbarSetStyle :: ToolbarClass self => self -> ToolbarStyle -> IO ()
-- | Retrieves whether the toolbar has text, icons, or both. See
-- <a>toolbarSetStyle</a>.
toolbarGetStyle :: ToolbarClass self => self -> IO ToolbarStyle
-- | Unsets a toolbar style set with <a>toolbarSetStyle</a>, so that user
-- preferences will be used to determine the toolbar style.
toolbarUnsetStyle :: ToolbarClass self => self -> IO ()
-- | The size of an icon in pixels.
--
-- <ul>
-- <li>This enumeration contains one case that is not exported and which
-- is used when new sizes are registered using
-- <a>iconSizeRegister</a>.</li>
-- <li>Applying <a>show</a> to this type will reveal the name of the size
-- that is registered with Gtk+.</li>
-- </ul>
data IconSize
-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize
-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize
-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize
-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize
-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize
-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize
-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize
-- | Retrieves the icon size for the toolbar. See
-- <tt>toolbarSetIconSize</tt>.
toolbarGetIconSize :: ToolbarClass self => self -> IO IconSize
-- | Insert a <a>ToolItem</a> into the toolbar at position <tt>pos</tt>. If
-- <tt>pos</tt> is 0 the item is prepended to the start of the toolbar.
-- If <tt>pos</tt> is negative, the item is appended to the end of the
-- toolbar.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarInsert :: (ToolbarClass self, ToolItemClass item) => self -> item -> Int -> IO ()
-- | Returns the position of <tt>item</tt> on the toolbar, starting from 0.
-- It is an error if <tt>item</tt> is not a child of the toolbar.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarGetItemIndex :: (ToolbarClass self, ToolItemClass item) => self -> item -> IO Int
-- | Returns the number of items on the toolbar.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarGetNItems :: ToolbarClass self => self -> IO Int
-- | Returns the <tt>n</tt>'th item on toolbar, or <tt>Nothing</tt> if the
-- toolbar does not contain an <tt>n</tt>'th item.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
toolbarGetNthItem :: ToolbarClass self => self -> Int -> IO (Maybe ToolItem)
-- | Returns the position corresponding to the indicated point on toolbar.
-- This is useful when dragging items to the toolbar: this function
-- returns the position a new item should be inserted.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarGetDropIndex :: ToolbarClass self => self -> (Int, Int) -> IO Int
-- | Highlights the toolbar to give an idea of what it would look like if
-- <tt>item</tt> was added to toolbar at the position indicated by
-- <tt>index</tt>. If <tt>item</tt> is <tt>Nothing</tt>, highlighting is
-- turned off (and the index is ignored).
--
-- The <tt>toolItem</tt> passed to this function must not be part of any
-- widget hierarchy. When an item is set as a drop highlight item it can
-- not added to any widget hierarchy or used as highlight item for
-- another toolbar.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarSetDropHighlightItem :: (ToolbarClass self, ToolItemClass toolItem) => self -> Maybe toolItem -> Int -> IO ()
-- | Sets whether to show an overflow menu when the toolbar doesn't have
-- room for all items on it. If <tt>True</tt>, items that there are not
-- room are available through an overflow menu.
--
-- <ul>
-- <li>Available since Gtk version 2.4</li>
-- </ul>
toolbarSetShowArrow :: ToolbarClass self => self -> Bool -> IO ()
-- | Returns whether the toolbar has an overflow menu. See
-- <a>toolbarSetShowArrow</a>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
toolbarGetShowArrow :: ToolbarClass self => self -> IO Bool
-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle
-- | Returns the relief style of buttons on the toolbar. See
-- <tt>buttonSetRelief</tt>.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
toolbarGetReliefStyle :: ToolbarClass self => self -> IO ReliefStyle
-- | If an arrow should be shown if the toolbar doesn't fit.
--
-- Default value: <tt>True</tt>
toolbarShowArrow :: ToolbarClass self => Attr self Bool
-- | How to draw the toolbar.
--
-- Default value: <a>ToolbarIcons</a>
toolbarStyle :: ToolbarClass self => Attr self ToolbarStyle
-- | Whether the item should receive extra space when the toolbar grows.
--
-- Default value: <tt>True</tt>
toolbarChildExpand :: (ToolbarClass self, WidgetClass child) => child -> Attr self Bool
-- | Whether the item should be the same size as other homogeneous items.
--
-- Default value: <tt>True</tt>
toolbarChildHomogeneous :: (ToolbarClass self, WidgetClass child) => child -> Attr self Bool
-- | Emitted when the orientation of the toolbar changes.
onOrientationChanged :: ToolbarClass self => self -> (Orientation -> IO ()) -> IO (ConnectId self)
-- | Emitted when the orientation of the toolbar changes.
afterOrientationChanged :: ToolbarClass self => self -> (Orientation -> IO ()) -> IO (ConnectId self)
-- | Emitted when the style of the toolbar changes.
onStyleChanged :: ToolbarClass self => self -> (ToolbarStyle -> IO ()) -> IO (ConnectId self)
-- | Emitted when the style of the toolbar changes.
afterStyleChanged :: ToolbarClass self => self -> (ToolbarStyle -> IO ()) -> IO (ConnectId self)
-- | Emitted when the user right-clicks the toolbar or uses the keybinding
-- to display a popup menu.
--
-- Application developers should handle this signal if they want to
-- display a context menu on the toolbar. The context-menu should appear
-- at the coordinates given by <tt>x</tt> and <tt>y</tt>. The mouse
-- button number is given by the <tt>button</tt> parameter. If the menu
-- was popped up using the keybaord, <tt>button</tt> is -1.
onPopupContextMenu :: ToolbarClass self => self -> (Int -> Int -> Int -> IO Bool) -> IO (ConnectId self)
-- | Emitted when the user right-clicks the toolbar or uses the keybinding
-- to display a popup menu.
--
-- Application developers should handle this signal if they want to
-- display a context menu on the toolbar. The context-menu should appear
-- at the coordinates given by <tt>x</tt> and <tt>y</tt>. The mouse
-- button number is given by the <tt>button</tt> parameter. If the menu
-- was popped up using the keybaord, <tt>button</tt> is -1.
afterPopupContextMenu :: ToolbarClass self => self -> (Int -> Int -> Int -> IO Bool) -> IO (ConnectId self)
-- | Base class for widgets which contain other widgets
module Graphics.UI.Gtk.Abstract.Container
data Container
class WidgetClass o => ContainerClass o
castToContainer :: GObjectClass obj => obj -> Container
gTypeContainer :: GType
toContainer :: ContainerClass o => o -> Container
-- | A function that is invoked for all widgets in a container.
type ContainerForeachCB = Widget -> IO ()
-- | Resize mode, for containers
--
-- <ul>
-- <li><a>ResizeParent</a> Pass resize request to the parent</li>
-- <li><a>ResizeQueue</a> Queue resizes on this widget</li>
-- <li><a>ResizeImmediate</a> Perform the resizes now</li>
-- </ul>
data ResizeMode
ResizeParent :: ResizeMode
ResizeQueue :: ResizeMode
ResizeImmediate :: ResizeMode
-- | Adds <tt>widget</tt> to the container. Typically used for simple
-- containers such as <a>Window</a>, <a>Frame</a>, or <a>Button</a>; for
-- more complicated layout containers such as <a>Box</a> or <a>Table</a>,
-- this function will pick default packing parameters that may not be
-- correct. So consider functions such as <tt>boxPackStart</tt> and
-- <tt>tableAttach</tt> as an alternative to <a>containerAdd</a> in those
-- cases. A widget may be added to only one container at a time; you
-- can't place the same widget inside two different containers.
containerAdd :: (ContainerClass self, WidgetClass widget) => self -> widget -> IO ()
-- | Removes <tt>widget</tt> from <tt>container</tt>. <tt>widget</tt> must
-- be inside <tt>container</tt>.
containerRemove :: (ContainerClass self, WidgetClass widget) => self -> widget -> IO ()
-- | Maps <tt>callback</tt> over each non-internal child of
-- <tt>container</tt>. See <a>containerForall</a> for details on what
-- constitutes an "internal" child. Most applications should use
-- <a>containerForeach</a>, rather than <a>containerForall</a>.
containerForeach :: ContainerClass self => self -> ContainerForeachCB -> IO ()
-- | Maps <tt>callback</tt> over each child of <tt>container</tt>,
-- including children that are considered "internal" (implementation
-- details of the container). "Internal" children generally weren't added
-- by the user of the container, but were added by the container
-- implementation itself. Most applications should use
-- <a>containerForeach</a>, rather than <a>containerForall</a>.
containerForall :: ContainerClass self => self -> ContainerForeachCB -> IO ()
-- | Returns the container's non-internal children. See
-- <a>containerForall</a> for details on what constitutes an "internal"
-- child.
containerGetChildren :: ContainerClass self => self -> IO [Widget]
-- | Give the focus to a specific child of the container.
containerSetFocusChild :: (ContainerClass self, WidgetClass child) => self -> child -> IO ()
-- | Sets a focus chain, overriding the one computed automatically by Gtk+.
--
-- In principle each widget in the chain should be a descendant of the
-- container, but this is not enforced by this method, since it's allowed
-- to set the focus chain before you pack the widgets, or have a widget
-- in the chain that isn't always packed. The necessary checks are done
-- when the focus chain is actually traversed.
containerSetFocusChain :: ContainerClass self => self -> [Widget] -> IO ()
-- | Retrieves the focus chain of the container, if one has been set
-- explicitly. If no focus chain has been explicitly set, Gtk+ computes
-- the focus chain based on the positions of the children. In that case
-- the function returns <tt>Nothing</tt>.
containerGetFocusChain :: ContainerClass self => self -> IO (Maybe [Widget])
-- | Removes a focus chain explicitly set with
-- <a>containerSetFocusChain</a>.
containerUnsetFocusChain :: ContainerClass self => self -> IO ()
-- | Hooks up an adjustment to focus handling in a container, so when a
-- child of the container is focused, the adjustment is scrolled to show
-- that widget. This function sets the vertical alignment. See
-- <tt>scrolledWindowGetVAdjustment</tt> for a typical way of obtaining
-- the adjustment and <a>containerSetFocusHAdjustment</a> for setting the
-- horizontal adjustment.
--
-- The adjustments have to be in pixel units and in the same coordinate
-- system as the allocation for immediate children of the container.
containerSetFocusVAdjustment :: ContainerClass self => self -> Adjustment -> IO ()
-- | Retrieves the vertical focus adjustment for the container. See
-- <a>containerSetFocusVAdjustment</a>.
containerGetFocusVAdjustment :: ContainerClass self => self -> IO (Maybe Adjustment)
-- | Hooks up an adjustment to focus handling in a container, so when a
-- child of the container is focused, the adjustment is scrolled to show
-- that widget. This function sets the horizontal alignment. See
-- <tt>scrolledWindowGetHAdjustment</tt> for a typical way of obtaining
-- the adjustment and <a>containerSetFocusVAdjustment</a> for setting the
-- vertical adjustment.
--
-- The adjustments have to be in pixel units and in the same coordinate
-- system as the allocation for immediate children of the container.
containerSetFocusHAdjustment :: ContainerClass self => self -> Adjustment -> IO ()
-- | Retrieves the horizontal focus adjustment for the container. See
-- <a>containerSetFocusHAdjustment</a>.
containerGetFocusHAdjustment :: ContainerClass self => self -> IO (Maybe Adjustment)
-- | Make the container resize its children.
containerResizeChildren :: ContainerClass self => self -> IO ()
-- | Sets the border width of the container.
--
-- The border width of a container is the amount of space to leave around
-- the outside of the container. The only exception to this is
-- <a>Window</a>; because toplevel windows can't leave space outside,
-- they leave the space inside. The border is added on all sides of the
-- container. To add space to only one side, one approach is to create a
-- <a>Alignment</a> widget, call <tt>widgetSetUsize</tt> to give it a
-- size, and place it on the side of the container as a spacer.
containerSetBorderWidth :: ContainerClass self => self -> Int -> IO ()
-- | Retrieves the border width of the container. See
-- <a>containerSetBorderWidth</a>.
containerGetBorderWidth :: ContainerClass self => self -> IO Int
-- | Returns the resize mode for the container. See
-- <a>containerSetResizeMode</a>.
containerGetResizeMode :: ContainerClass self => self -> IO ResizeMode
-- | Sets the resize mode for the container.
--
-- The resize mode of a container determines whether a resize request
-- will be passed to the container's parent, queued for later execution
-- or executed immediately.
containerSetResizeMode :: ContainerClass self => self -> ResizeMode -> IO ()
-- | Specify how resize events are handled.
--
-- Default value: <a>ResizeParent</a>
containerResizeMode :: ContainerClass self => Attr self ResizeMode
-- | The width of the empty border outside the containers children.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
containerBorderWidth :: ContainerClass self => Attr self Int
-- | Can be used to add a new child to the container.
containerChild :: (ContainerClass self, WidgetClass widget) => WriteAttr self widget
-- | 'focusHadjustment' property. See <a>containerGetFocusHAdjustment</a>
-- and <a>containerSetFocusHAdjustment</a>
containerFocusHAdjustment :: ContainerClass self => ReadWriteAttr self (Maybe Adjustment) Adjustment
-- | 'focusVadjustment' property. See <a>containerGetFocusVAdjustment</a>
-- and <a>containerSetFocusVAdjustment</a>
containerFocusVAdjustment :: ContainerClass self => ReadWriteAttr self (Maybe Adjustment) Adjustment
-- | A widget was added to the container.
add :: ContainerClass self => Signal self (Widget -> IO ())
-- | Emitted when widgets need to be queried again for their preferred
-- size.
checkResize :: ContainerClass self => Signal self (IO ())
-- | A widget was removed from the container.
remove :: ContainerClass self => Signal self (Widget -> IO ())
-- | A widget in the container received or lost the input focus.
setFocusChild :: ContainerClass self => Signal self (Maybe Widget -> IO ())
-- | Base class for <a>HButtonBox</a> and <a>VButtonBox</a>
module Graphics.UI.Gtk.Abstract.ButtonBox
data ButtonBox
class BoxClass o => ButtonBoxClass o
castToButtonBox :: GObjectClass obj => obj -> ButtonBox
gTypeButtonBox :: GType
toButtonBox :: ButtonBoxClass o => o -> ButtonBox
-- | Dictate the style that a ButtonBox uses to align it contents
data ButtonBoxStyle
ButtonboxSpread :: ButtonBoxStyle
ButtonboxEdge :: ButtonBoxStyle
ButtonboxStart :: ButtonBoxStyle
ButtonboxEnd :: ButtonBoxStyle
ButtonboxCenter :: ButtonBoxStyle
ButtonboxExpand :: ButtonBoxStyle
-- | Retrieves the method being used to arrange the buttons in the button
-- box.
buttonBoxGetLayout :: ButtonBoxClass self => self -> IO ButtonBoxStyle
-- | Changes the way buttons are arranged in their container.
buttonBoxSetLayout :: ButtonBoxClass self => self -> ButtonBoxStyle -> IO ()
-- | Sets whether <tt>child</tt> should appear in a secondary group of
-- children. A typical use of a secondary child is the help button in a
-- dialog.
--
-- This group appears after the other children if the style is
-- <a>ButtonboxStart</a>, <a>ButtonboxSpread</a> or <a>ButtonboxEdge</a>,
-- and before the other children if the style is <a>ButtonboxEnd</a>. For
-- horizontal button boxes, the definition of before/after depends on
-- direction of the widget (see <tt>widgetSetDirection</tt>). If the
-- style is <a>ButtonboxStart</a> or <a>ButtonboxEnd</a>, then the
-- secondary children are aligned at the other end of the button box from
-- the main children. For the other styles, they appear immediately next
-- to the main children.
buttonBoxSetChildSecondary :: (ButtonBoxClass self, WidgetClass child) => self -> child -> Bool -> IO ()
-- | Returns whether <tt>child</tt> should appear in a secondary group of
-- children.
--
-- <ul>
-- <li>Available since Gtk+ version 2.4</li>
-- </ul>
buttonBoxGetChildSecondary :: (ButtonBoxClass self, WidgetClass child) => self -> child -> IO Bool
-- | Sets whether the child is exempted from homogeous sizing.
buttonBoxSetChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => self -> child -> Bool -> IO ()
-- | Returns whether the child is exempted from homogenous sizing.
buttonBoxGetChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => self -> child -> IO Bool
-- | How to layout the buttons in the box. Possible values are default,
-- spread, edge, start and end.
--
-- Default value: <tt>ButtonboxDefaultStyle</tt>
buttonBoxLayoutStyle :: ButtonBoxClass self => Attr self ButtonBoxStyle
-- | If <tt>True</tt>, the child appears in a secondary group of children,
-- suitable for, e.g., help buttons.
--
-- Default value: <tt>False</tt>
buttonBoxChildSecondary :: (ButtonBoxClass self, WidgetClass child) => child -> Attr self Bool
-- | If <tt>True</tt>, the child will not be subject to homogeneous sizing.
--
-- Default value: <tt>False</tt>
buttonBoxChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => child -> Attr self Bool
-- | Base class for box containers
module Graphics.UI.Gtk.Abstract.Box
data Box
class ContainerClass o => BoxClass o
castToBox :: GObjectClass obj => obj -> Box
gTypeBox :: GType
toBox :: BoxClass o => o -> Box
-- | Packing parameters of a widget
--
-- <ul>
-- <li>The <a>Packing</a> parameter determines how the child behaves in
-- the horizontal or vertical way in an <a>HBox</a> or <a>VBox</a>,
-- respectively. <a>PackNatural</a> means the child is as big as it
-- requests. It will stay at the start or end of a <a>Box</a> if there is
-- more space available. All children packed with <a>PackRepel</a> will
-- be padded on both sides with additional space. <a>PackGrow</a> will
-- increase the size of a widget so that it covers the available space. A
-- menu bar, for instance, should always stay at the top of a window and
-- should only occupy as little space as possible. Hence it should be
-- packed at the start of a <a>VBox</a> with the packing option
-- <a>PackNatural</a>. The working area of a window (e.g. the text area
-- in an editor) should expand when the window is resized. Here the
-- packing option <a>PackGrow</a> is the right choice and it is
-- irrelevant whether the main area is inserted at the start or the end
-- of a box. Finally <a>PackRepel</a> is most useful in a window where no
-- widget can make use of excess space. Examples include a dialog box
-- without list boxes or text fields.</li>
-- </ul>
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing
-- | Adds the <tt>child</tt> widget to the box, packed with reference to
-- the start of the box. The <tt>child</tt> is packed after any other
-- child packed with reference to the start of the box.
boxPackStart :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> IO ()
-- | Adds the <tt>child</tt> widget to the box, packed with reference to
-- the end of the box. The <tt>child</tt> is packed after (away from end
-- of) any other child packed with reference to the end of the box.
--
-- Note that for <a>boxPackEnd</a> the <a>PackNatural</a> option will
-- move a child to the right in an <a>HBox</a> or to the bottom in an
-- <a>VBox</a> if there is more space availble.
boxPackEnd :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> IO ()
-- | Returns whether the box is homogeneous (all children are the same
-- size). See <a>boxSetHomogeneous</a>.
boxGetHomogeneous :: BoxClass self => self -> IO Bool
-- | Sets the homogeneous property, controlling whether or not all children
-- of the box are given equal space
boxSetHomogeneous :: BoxClass self => self -> Bool -> IO ()
-- | Retrieves the standard spacing between widgets.
boxGetSpacing :: BoxClass self => self -> IO Int
-- | Set the standard spacing between two children.
--
-- This space is in addition to the padding parameter that is given for
-- each child.
boxSetSpacing :: BoxClass self => self -> Int -> IO ()
-- | Moves <tt>child</tt> to a new <tt>position</tt> in the list of
-- <tt>box</tt> children. The list contains both widgets packed
-- <a>PackStart</a> as well as widgets packed <a>PackEnd</a>, in the
-- order that these widgets were added to the box.
--
-- A widget's position in the box children list determines where the
-- widget is packed into the box. A child widget at some position in the
-- list will be packed just after all other widgets of the same packing
-- type that appear earlier in the list.
boxReorderChild :: (BoxClass self, WidgetClass child) => self -> child -> Int -> IO ()
-- | Returns information about how <tt>child</tt> is packed into the box.
--
-- Returns information on the behaviour if free space is available (in
-- <a>Packing</a>), the additional padding for this widget and if the
-- widget was inserted at the start or end of the container
-- (<a>PackType</a>).
boxQueryChildPacking :: (BoxClass self, WidgetClass child) => self -> child -> IO (Packing, Int, PackType)
-- | Sets the way <tt>child</tt> is packed into the box.
boxSetChildPacking :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> PackType -> IO ()
-- | Gets the value set by <tt>boxSetBaselinePostion</tt>
boxGetBaselinePosition :: BoxClass self => self -> IO BaselinePosition
-- | Sets the baseline position of a box. This affects only horizontal
-- boxes with at least one baseline aligned child. If there is more
-- vertical space available than requested, and the baseline is not
-- allocated by the parent then <tt>position</tt> is used to allocate the
-- baseline wrt the extra space available.
boxSetBaselinePosition :: BoxClass self => self -> BaselinePosition -> IO ()
-- | Retrieves the center widget of the box.
boxGetCenterWidget :: BoxClass self => self -> IO Widget
-- | Sets a center widget; that is a child widget that will be centered
-- with respect to the full width of the box, even if the children at
-- either side take up different amounts of space.
boxSetCenterWidget :: (BoxClass self, WidgetClass widget) => self -> widget -> IO ()
-- | The amount of space between children.
--
-- Allowed values: >= 0
--
-- Default value: 0
boxSpacing :: BoxClass self => Attr self Int
-- | Whether the children should all be the same size.
--
-- Default value: <tt>False</tt>
boxHomogeneous :: BoxClass self => Attr self Bool
-- | The position of the baseline aligned widgets if extra space is
-- available.
boxBaselinePosition :: BoxClass self => Attr self BaselinePosition
-- | A child widget that will be centered with respect to the full width of
-- the box, even if the children at either side take up different amounts
-- of space.
boxCenterWidget :: (BoxClass self, WidgetClass widget) => ReadWriteAttr self Widget widget
-- | The packing style of the child.
--
-- Default value: <tt><a>PackGrow</a></tt>
boxChildPacking :: (BoxClass self, WidgetClass child) => child -> Attr self Packing
-- | Extra space to put between the child and its neighbors, in pixels.
--
-- Allowed values: <= <tt>(<a>maxBound</a> :: Int)</tt>
--
-- Default value: 0
boxChildPadding :: (BoxClass self, WidgetClass child) => child -> Attr self Int
-- | A <a>PackType</a> indicating whether the child is packed with
-- reference to the start or end of the parent.
--
-- Default value: <a>PackStart</a>
boxChildPackType :: (BoxClass self, WidgetClass child) => child -> Attr self PackType
-- | The index of the child in the parent.
--
-- Allowed values: >= -1
--
-- Default value: 0
boxChildPosition :: (BoxClass self, WidgetClass child) => child -> Attr self Int
-- | A container with just one child
module Graphics.UI.Gtk.Abstract.Bin
data Bin
class ContainerClass o => BinClass o
castToBin :: GObjectClass obj => obj -> Bin
gTypeBin :: GType
toBin :: BinClass o => o -> Bin
-- | Gets the child of the <a>Bin</a>, or <tt>Nothing</tt> if the bin
-- contains no child widget.
binGetChild :: BinClass self => self -> IO (Maybe Widget)
-- | This module gathers all publicly available functions from the Gtk
-- binding.
module Graphics.UI.Gtk
|