~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to clutter/x11/clutter-backend-x11.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * Lesser General Public License for more details.
15
15
 *
16
16
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the
18
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
 * Boston, MA 02111-1307, USA.
 
17
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
18
 *
 
19
 *
20
20
 */
21
21
 
22
22
#ifndef __CLUTTER_BACKEND_X11_H__
76
76
  Atom atom_NET_WM_NAME;
77
77
  Atom atom_UTF8_STRING;
78
78
 
 
79
  int xi_event_base;
79
80
  int event_types[CLUTTER_X11_XINPUT_LAST_EVENT];
80
81
  gboolean have_xinput;
81
82
 
82
83
  Time last_event_time;
 
84
 
 
85
  ClutterDeviceManager *device_manager;
83
86
};
84
87
 
85
88
struct _ClutterBackendX11Class
86
89
{
87
90
  ClutterBackendClass parent_class;
88
91
 
89
 
  XVisualInfo *(* get_visual_info) (ClutterBackendX11 *backend,
90
 
                                    gboolean           for_offscreen);
 
92
  /*
 
93
   * To support foreign stage windows the we need a way to ask for an
 
94
   * XVisualInfo that may be used by toolkits to create an XWindow, and this
 
95
   * may need to be handled differently for different backends.
 
96
   */
 
97
  XVisualInfo *(* get_visual_info) (ClutterBackendX11 *backend);
 
98
 
 
99
  /*
 
100
   * Different X11 backends may care about some special events so they all have
 
101
   * a chance to intercept them.
 
102
   */
 
103
  gboolean (*handle_event) (ClutterBackendX11 *backend,
 
104
                            XEvent            *xevent);
91
105
};
92
106
 
93
107
void   _clutter_backend_x11_events_init (ClutterBackend *backend);
119
133
clutter_backend_x11_get_features (ClutterBackend *backend);
120
134
 
121
135
XVisualInfo *
122
 
clutter_backend_x11_get_visual_info (ClutterBackendX11 *backend_x11,
123
 
                                     gboolean           for_offscreen);
124
 
 
125
 
void 
126
 
_clutter_x11_register_xinput (void);
127
 
 
128
 
void
129
 
_clutter_x11_unregister_xinput (void);
 
136
clutter_backend_x11_get_visual_info (ClutterBackendX11 *backend_x11);
130
137
 
131
138
ClutterInputDevice *
132
139
_clutter_x11_get_device_for_xid (XID id);