~smspillaz/xig/xig.disconnect-signals

« back to all changes in this revision

Viewing changes to src/xig/xig-events.h

  • Committer: Robert Ancell
  • Date: 2012-01-06 01:25:12 UTC
  • Revision ID: robert.ancell@canonical.com-20120106012512-gy8rmb2e3hxz9bbh
Make a common XigCodec class

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
 
149
149
typedef struct
150
150
{
 
151
    guint8 byte1;
 
152
    guint8 byte2;
 
153
} XigCHAR2B;
 
154
 
 
155
typedef struct
 
156
{
 
157
    gint16 x;
 
158
    gint16 y;
 
159
} XigPOINT;
 
160
 
 
161
typedef struct
 
162
{
 
163
    gint16 x;
 
164
    gint16 y;
 
165
    guint16 width;
 
166
    guint16 height;
 
167
} XigRECTANGLE;
 
168
 
 
169
typedef struct
 
170
{
 
171
    gint16 x;
 
172
    gint16 y;
 
173
    guint16 width;
 
174
    guint16 height;
 
175
    gint16 angle1;
 
176
    gint16 angle2;
 
177
} XigARC;
 
178
 
 
179
typedef struct
 
180
{
151
181
    guint8 depth;
152
182
    guint8 bits_per_pixel;
153
183
    guint8 scanline_pad;
300
330
typedef struct
301
331
{
302
332
    guint16 sequence_number;
 
333
    guint8 keys[31];
303
334
} XigKeymapNotify;
304
335
 
305
336
typedef struct
739
770
    guint32 window;
740
771
    guint32 property;
741
772
    guint32 type;
742
 
    guint8 format;
743
 
    guint32 length;
744
 
    guint8 *data;
 
773
    guint8 data_format;
 
774
    void *data;
 
775
    gsize data_length;
745
776
} XigChangeProperty;
746
777
 
747
778
typedef struct
765
796
typedef struct
766
797
{
767
798
    guint16 sequence_number;
768
 
    guint8 format;
769
799
    guint32 type;
770
800
    guint32 bytes_after;
771
 
    guint8 *value;
 
801
    guint8 value_format;
 
802
    void *value;
772
803
    gsize value_length;
773
804
} XigGetPropertyReply;
774
805
 
958
989
 
959
990
typedef struct
960
991
{
 
992
    guint32 time;
 
993
    gint16 x;
 
994
    gint16 y;
 
995
} XigTIMECOORD;
 
996
 
 
997
typedef struct
 
998
{
961
999
    guint16 sequence_number;
962
1000
    guint32 window;
963
1001
    guint32 start;
966
1004
 
967
1005
typedef struct
968
1006
{
969
 
    guint32 time;
970
 
    gint16 x;
971
 
    gint16 y;
972
 
} XigTimeCoord;
973
 
 
974
 
typedef struct
975
 
{
976
1007
    guint16 sequence_number;
977
 
    XigTimeCoord *events;
 
1008
    XigTIMECOORD *events;
978
1009
    gsize events_length;
979
1010
} XigGetMotionEventsReply;
980
1011
 
1042
1073
 
1043
1074
typedef struct
1044
1075
{
 
1076
    guint16 sequence_number;
1045
1077
    guint32 fid;
1046
1078
    gchar *name;
1047
1079
} XigOpenFont;
1048
1080
 
1049
1081
typedef struct
1050
1082
{
 
1083
    guint16 sequence_number;
1051
1084
    guint32 font;
1052
1085
} XigCloseFont;
1053
1086
 
1054
1087
typedef struct
1055
1088
{
1056
 
    guint16 sequence_number;
1057
 
    guint32 font;
1058
 
} XigQueryFont;
1059
 
 
1060
 
typedef struct
1061
 
{
1062
1089
    guint32 name;
1063
1090
    guint32 value;
1064
 
} XigQueryFontProperty;
 
1091
} XigFONTPROP;
1065
1092
 
1066
1093
typedef struct
1067
1094
{
1071
1098
    gint16 ascent;
1072
1099
    gint16 descent;
1073
1100
    guint16 attributes;
1074
 
} XigQueryFontCharInfo;
1075
 
 
1076
 
typedef struct
1077
 
{
1078
 
    guint16 sequence_number;
1079
 
    XigQueryFontCharInfo min_bounds;
1080
 
    XigQueryFontCharInfo max_bounds;
 
1101
} XigCHARINFO;
 
1102
 
 
1103
typedef struct
 
1104
{
 
1105
    guint16 sequence_number;
 
1106
    guint32 font;
 
1107
} XigQueryFont;
 
1108
 
 
1109
typedef struct
 
1110
{
 
1111
    guint16 sequence_number;
 
1112
    XigCHARINFO min_bounds;
 
1113
    XigCHARINFO max_bounds;
1081
1114
    guint16 min_char_or_byte2;
1082
1115
    guint16 max_char_or_byte2;
1083
1116
    guint16 default_char;
1087
1120
    gboolean all_chars_exist;
1088
1121
    gint16 font_ascent;
1089
1122
    gint16 font_descent;
1090
 
    XigQueryFontProperty *properties;
 
1123
    XigFONTPROP *properties;
1091
1124
    gsize properties_length;
1092
 
    XigQueryFontCharInfo *char_infos;
 
1125
    XigCHARINFO *char_infos;
1093
1126
    gsize char_infos_length;
1094
1127
} XigQueryFontReply;
1095
1128
 
1110
1143
    gint16 overall_ascent;
1111
1144
    gint16 overall_descent;
1112
1145
    gint32 overall_width;
1113
 
    gint32 overall_height;
1114
1146
    gint32 overall_left;
1115
1147
    gint32 overall_right;
1116
1148
} XigQueryTextExtentsReply;
1126
1158
{
1127
1159
    guint16 sequence_number;
1128
1160
    gchar **names;
1129
 
    gsize names_length;
1130
1161
} XigListFontsReply;
1131
1162
 
1132
1163
typedef struct
1139
1170
typedef struct
1140
1171
{
1141
1172
    guint16 sequence_number;
1142
 
    XigQueryFontCharInfo min_bounds;
1143
 
    XigQueryFontCharInfo max_bounds;
 
1173
    XigCHARINFO min_bounds;
 
1174
    XigCHARINFO max_bounds;
1144
1175
    guint16 min_char_or_byte2;
1145
1176
    guint16 max_char_or_byte2;
1146
1177
    guint16 default_char;
1150
1181
    gboolean all_chars_exist;
1151
1182
    gint16 font_ascent;
1152
1183
    gint16 font_descent;
1153
 
    XigQueryFontProperty *properties;
 
1184
    guint32 replies_hint;
 
1185
    XigFONTPROP *properties;
1154
1186
    gsize properties_length;
1155
1187
    gchar *name;
1156
1188
} XigListFontsWithInfoReply;
1170
1202
{
1171
1203
    guint16 sequence_number;
1172
1204
    gchar **path;
1173
 
    gsize path_length;
1174
1205
} XigGetFontPathReply;
1175
1206
 
1176
1207
typedef struct
1292
1323
 
1293
1324
typedef struct
1294
1325
{
1295
 
    gint16 x;
1296
 
    gint16 y;
1297
 
    guint16 width;
1298
 
    guint16 height;
1299
 
} XigRectangle;
1300
 
 
1301
 
typedef struct
1302
 
{
1303
1326
    guint16 sequence_number;
1304
1327
    guint8 ordering;
1305
1328
    guint32 gc;
1306
1329
    gint16 clip_x_origin;
1307
1330
    gint16 clip_y_origin;
1308
 
    XigRectangle *rectangles;
 
1331
    XigRECTANGLE *rectangles;
1309
1332
    gsize rectangles_length;
1310
1333
} XigSetClipRectangles;
1311
1334
 
1357
1380
 
1358
1381
typedef struct
1359
1382
{
1360
 
    gint16 x;
1361
 
    gint16 y;
1362
 
} XigPoint;
1363
 
 
1364
 
typedef struct
1365
 
{
1366
1383
    guint16 sequence_number;
1367
1384
    guint8 coordinate_mode;
1368
1385
    guint32 drawable;
1369
1386
    guint32 gc;
1370
 
    XigPoint *points;
 
1387
    XigPOINT *points;
1371
1388
    gsize points_length;
1372
1389
} XigPolyPoint;
1373
1390
 
1377
1394
    guint8 coordinate_mode;
1378
1395
    guint32 drawable;
1379
1396
    guint32 gc;
1380
 
    XigPoint *points;
 
1397
    XigPOINT *points;
1381
1398
    gsize points_length;
1382
1399
} XigPolyLine;
1383
1400
 
1387
1404
    gint16 y1;
1388
1405
    gint16 x2;
1389
1406
    gint16 y2;
1390
 
} XigSegment;
 
1407
} XigSEGMENT;
1391
1408
 
1392
1409
typedef struct
1393
1410
{
1394
1411
    guint16 sequence_number;
1395
1412
    guint32 drawable;
1396
1413
    guint32 gc;
1397
 
    XigSegment *segments;
 
1414
    XigSEGMENT *segments;
1398
1415
    gsize segments_length;
1399
1416
} XigPolySegment;
1400
1417
 
1403
1420
    guint16 sequence_number;
1404
1421
    guint32 drawable;
1405
1422
    guint32 gc;
1406
 
    XigRectangle *rectangles;
 
1423
    XigRECTANGLE *rectangles;
1407
1424
    gsize rectangles_length;
1408
1425
} XigPolyRectangle;
1409
1426
 
1410
1427
typedef struct
1411
1428
{
1412
 
    gint16 x;
1413
 
    gint16 y;
1414
 
    guint16 width;
1415
 
    guint16 height;
1416
 
    gint16 angle1;
1417
 
    gint16 angle2; 
1418
 
} XigArc;
1419
 
 
1420
 
typedef struct
1421
 
{
1422
1429
    guint16 sequence_number;
1423
1430
    guint32 drawable;
1424
1431
    guint32 gc;
1425
 
    XigArc *arcs;
 
1432
    XigARC *arcs;
1426
1433
    gsize arcs_length;
1427
1434
} XigPolyArc;
1428
1435
 
1433
1440
    guint32 gc;
1434
1441
    guint8 shape;
1435
1442
    guint8 coordinate_mode;
1436
 
    XigPoint *points;
 
1443
    XigPOINT *points;
1437
1444
    gsize points_length;
1438
1445
} XigFillPoly;
1439
1446
 
1442
1449
    guint16 sequence_number;
1443
1450
    guint32 drawable;
1444
1451
    guint32 gc;
1445
 
    XigRectangle *rectangles;
 
1452
    XigRECTANGLE *rectangles;
1446
1453
    gsize rectangles_length;
1447
1454
} XigPolyFillRectangle;
1448
1455
 
1451
1458
    guint16 sequence_number;
1452
1459
    guint32 drawable;
1453
1460
    guint32 gc;
1454
 
    XigArc *arcs;
 
1461
    XigARC *arcs;
1455
1462
    gsize arcs_length;
1456
1463
} XigPolyFillArc;
1457
1464
 
1467
1474
    gint16 dst_y;
1468
1475
    guint8 left_pad;
1469
1476
    guint8 depth;
1470
 
    const guint8 *data;
 
1477
    guint8 *data;
1471
1478
    gsize data_length;
1472
1479
} XigPutImage;
1473
1480
 
1490
1497
    guint16 sequence_number;
1491
1498
    guint8 depth;
1492
1499
    guint32 visual;
1493
 
    const guint8 *data;
 
1500
    guint8 *data;
1494
1501
    gsize data_length;
1495
1502
} XigGetImageReply;
1496
1503
 
1501
1508
    guint32 gc;
1502
1509
    gint16 x;
1503
1510
    gint16 y;
 
1511
    guint8 *items;
 
1512
    gsize items_length;
1504
1513
} XigPolyText8;
1505
1514
 
1506
1515
typedef struct
1510
1519
    guint32 gc;
1511
1520
    gint16 x;
1512
1521
    gint16 y;
 
1522
    guint8 *items;
 
1523
    gsize items_length;
1513
1524
} XigPolyText16;
1514
1525
 
1515
1526
typedef struct
1516
1527
{
1517
1528
    guint16 sequence_number;
1518
 
    guint8 string_len;
1519
1529
    guint32 drawable;
1520
1530
    guint32 gc;
1521
1531
    gint16 x;
1522
1532
    gint16 y;
 
1533
    gchar *string;
1523
1534
} XigImageText8;
1524
1535
 
1525
1536
typedef struct
1526
1537
{
1527
1538
    guint16 sequence_number;
1528
 
    guint8 string_len;
1529
1539
    guint32 drawable;
1530
1540
    guint32 gc;
1531
1541
    gint16 x;
1532
1542
    gint16 y;
 
1543
    guint16 *string;
 
1544
    gsize string_length;
1533
1545
} XigImageText16;
1534
1546
 
1535
1547
typedef struct
1673
1685
    gboolean do_red;
1674
1686
    gboolean do_green;
1675
1687
    gboolean do_blue; 
1676
 
} XigColorItem;
 
1688
} XigCOLORITEM;
1677
1689
 
1678
1690
typedef struct
1679
1691
{
1680
1692
    guint16 sequence_number;
1681
1693
    guint32 cmap;
1682
 
    XigColorItem *items;
 
1694
    XigCOLORITEM *items;
1683
1695
    gsize items_length;
1684
1696
} XigStoreColors;
1685
1697
 
1686
1698
typedef struct
1687
1699
{
1688
1700
    guint16 sequence_number;
1689
 
    guint32 cmap;
1690
 
    guint32 pixel;
1691
1701
    gboolean do_red;
1692
1702
    gboolean do_green;
1693
1703
    gboolean do_blue;
 
1704
    guint32 cmap;
 
1705
    guint32 pixel;
1694
1706
    gchar *name;
1695
1707
} XigStoreNamedColor;
1696
1708
 
1697
1709
typedef struct
1698
1710
{
 
1711
    guint16 red;
 
1712
    guint16 green;
 
1713
    guint16 blue;
 
1714
} XigRGB;
 
1715
 
 
1716
typedef struct
 
1717
{
1699
1718
    guint16 sequence_number;
1700
1719
    guint32 cmap;
1701
1720
    guint32 *pixels;
1704
1723
 
1705
1724
typedef struct
1706
1725
{
1707
 
    guint16 red;
1708
 
    guint16 green;
1709
 
    guint16 blue;
1710
 
} XigRGB;
1711
 
 
1712
 
typedef struct
1713
 
{
1714
1726
    guint16 sequence_number;
1715
1727
    XigRGB *colors;
1716
1728
    gsize colors_length;
1824
1836
{
1825
1837
    guint16 sequence_number;
1826
1838
    gchar **names;
1827
 
    gsize names_length;
1828
1839
} XigListExtensionsReply;
1829
1840
 
1830
1841
typedef struct
1831
1842
{
1832
1843
    guint16 sequence_number;
 
1844
    guint8 keycode_count;
1833
1845
    guint8 first_keycode;
1834
1846
    guint8 keysyms_per_keycode;
1835
1847
    guint32 *keysyms;
1897
1909
typedef struct
1898
1910
{
1899
1911
    guint16 sequence_number;
1900
 
    guint8 percent;
 
1912
    gint8 percent;
1901
1913
} XigBell;
1902
1914
 
1903
1915
typedef struct
1959
1971
 
1960
1972
typedef struct
1961
1973
{
 
1974
    guint8 family;
 
1975
    guint8 *address;
 
1976
    gsize address_length;
 
1977
} XigHOST;
 
1978
 
 
1979
typedef struct
 
1980
{
1962
1981
    guint16 sequence_number;
1963
1982
} XigListHosts;
1964
1983
 
1965
1984
typedef struct
1966
1985
{
1967
 
    guint8 family;
1968
 
    guint8 *address;
1969
 
    gsize address_length;
1970
 
} XigHost;
1971
 
 
1972
 
typedef struct
1973
 
{
1974
1986
    guint16 sequence_number;
1975
1987
    guint8 mode;
1976
 
    XigHost *hosts;
 
1988
    XigHOST *hosts;
1977
1989
    gsize hosts_length;
1978
1990
} XigListHostsReply;
1979
1991
 
2040
2052
    guint16 sequence_number;
2041
2053
    guint8 keycodes_per_modifier;
2042
2054
    guint8 *keycodes;
 
2055
    gsize keycodes_length;
2043
2056
} XigSetModifierMapping;
2044
2057
 
2045
2058
typedef struct
2069
2082
typedef struct
2070
2083
{
2071
2084
    guint16 sequence_number;
2072
 
} XigBigReqEnable;
 
2085
} XigBIGREQEnable;
2073
2086
 
2074
2087
typedef struct
2075
2088
{
2076
2089
    guint16 sequence_number;
2077
2090
    guint32 maximum_request_length;
2078
 
} XigBigReqEnableReply;
 
2091
} XigBIGREQEnableReply;
2079
2092
 
2080
2093
typedef struct
2081
2094
{