~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.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.h
3
 
 * @brief 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_BACKEND_XCB_BACKEND_H_
21
 
#define GEIS_BACKEND_XCB_BACKEND_H_
22
 
 
23
 
#include "geis/geis.h"
24
 
#include "geis_xcb_backend_token.h"
25
 
 
26
 
typedef struct GeisXcbBackend *GeisXcbBackend;
27
 
 
28
 
 
29
 
/**
30
 
 * Gets the GEIS instance for a back end.
31
 
 */
32
 
Geis geis_xcb_backend_geis(GeisXcbBackend be);
33
 
 
34
 
/**
35
 
 * Sets a token as active in the back end.
36
 
 */
37
 
void geis_xcb_backend_add_token(GeisXcbBackend be, XcbBackendToken token);
38
 
 
39
 
/**
40
 
 * Removes a token as active in the back end.
41
 
 */
42
 
void geis_xcb_backend_remove_token(GeisXcbBackend be, XcbBackendToken token);
43
 
 
44
 
/**
45
 
 * Actually selects XCB events for all active tokens in the back end.
46
 
 */
47
 
void geis_xcb_backend_select_events(GeisXcbBackend be,
48
 
                                    uint16_t       device,
49
 
                                    xcb_window_t   window);
50
 
 
51
 
#endif /* GEIS_BACKEND_XCB_BACKEND_H_ */