~fginther/geis/geis-2.2.9.1-precise

« back to all changes in this revision

Viewing changes to libutouch-geis/backend/xcb/geis_xcb_backend_token.h

  • Committer: Francis Ginther
  • Date: 2012-08-16 13:43:15 UTC
  • mfrom: (49.1.37)
  • Revision ID: francis.ginther@canonical.com-20120816134315-ex9m75nqcv0uryim
* New upstream release.
  - fixes pinch radius and drag delta calculations (lp: #985916)
    (lp: #986215)
  - changes type of geisSubscriptionFlags (lp: #813819)
  - changes direct devices to use window coordinates (lp: #984069)
  - reports device axis extents, if available (lp: #987539)
  - removes XCB back end
  - removes overlapping events when a gesture is accepted (lp: #1001365)
  - avoids trying to start a DBus session if there is none already
    (lp: #997630)
  - detect added devices properly (LP: #1009270)
  - fix crash when accepting a gesture (LP: #1015775)
  - fix result value of geis_subscription_deactivate() (LP: #1021448)
  - upstream project renamed to just 'geis'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file geis_xcb_backend_token.h
3
 
 * @brief GEIS filter token for the XCB-based grail back end
4
 
 *
5
 
 * Copyright 2011 Canonical Ltd.
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or modify it under
8
 
 * the terms of the GNU Lesser General Public License as published by the Free
9
 
 * Software Foundation; either version 3 of the License, or (at your option) any
10
 
 * later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful, but WITHOUT
13
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
 
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15
 
 * details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
#ifndef GEIS_XCB_BACKEND_TOKEN_H_
21
 
#define GEIS_XCB_BACKEND_TOKEN_H_
22
 
 
23
 
#include "geis_backend_protected.h"
24
 
#include <xcb/xcb.h>
25
 
 
26
 
typedef struct XcbBackendToken *XcbBackendToken;
27
 
 
28
 
GeisBackendToken geis_xcb_token_new(GeisBackend be, GeisBackendTokenInitState);
29
 
 
30
 
void geis_xcb_token_set_xcb(GeisBackendToken, xcb_connection_t *xcb_connection);
31
 
 
32
 
GeisStatus geis_xcb_token_add_class_term(GeisBackendToken     gbtoken,
33
 
                                         void                *context,
34
 
                                         GeisString           name,
35
 
                                         GeisFilterOperation  op,
36
 
                                         void                *value);
37
 
 
38
 
GeisStatus geis_xcb_token_add_device_term(GeisBackendToken     gbtoken,
39
 
                                          void                *context,
40
 
                                          GeisString           name,
41
 
                                          GeisFilterOperation  op,
42
 
                                          void                *value);
43
 
 
44
 
GeisStatus geis_xcb_token_add_region_term(GeisBackendToken     gbtoken,
45
 
                                          void                *context,
46
 
                                          GeisString           name,
47
 
                                          GeisFilterOperation  op,
48
 
                                          void                *value);
49
 
 
50
 
GeisStatus geis_xcb_token_add_feature_term(GeisBackendToken     gbtoken,
51
 
                                           void                *context,
52
 
                                           GeisString           name,
53
 
                                           GeisFilterOperation  op,
54
 
                                           void                *value);
55
 
 
56
 
 
57
 
/**
58
 
 * Gets the number of devices on a token.
59
 
 */
60
 
uint16_t geis_xcb_token_device_count(XcbBackendToken token);
61
 
 
62
 
/**
63
 
 * Gets an indicated device from a tken.
64
 
 */
65
 
uint16_t geis_xcb_token_device(XcbBackendToken token, uint16_t index);
66
 
 
67
 
/**
68
 
 * Gets the number of windowids on a token.
69
 
 */
70
 
int geis_xcb_token_window_count(XcbBackendToken token);
71
 
 
72
 
/**
73
 
 * Gets an indicated window from a token.
74
 
 */
75
 
xcb_window_t geis_xcb_token_window(XcbBackendToken token, int index);
76
 
 
77
 
/**
78
 
 * Gets the size of the grail bitmask on the token.
79
 
 */
80
 
uint16_t geis_xcb_token_grail_mask_len(XcbBackendToken token);
81
 
 
82
 
/**
83
 
 * Gets the grail bitmask fro the token.
84
 
 */
85
 
uint32_t* geis_xcb_token_grail_mask(XcbBackendToken token);
86
 
 
87
 
#endif /* GEIS_XCB_BACKEND_TOKEN_H_ */