update to 1.10.4
[profile/ivi/clutter.git] / clutter / osx / clutter-osx.h
1 /* Clutter -  An OpenGL based 'interactive canvas' library.
2  * OSX backend
3  *
4  * Copyright (C) 2007  Tommi Komulainen <tommi.komulainen@iki.fi>
5  * Copyright (C) 2007  OpenedHand Ltd.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19  *
20  *
21  */
22 #ifndef __CLUTTER_OSX_H__
23 #define __CLUTTER_OSX_H__
24
25 #import <AppKit/AppKit.h>
26
27 #include <clutter/clutter-stage.h>
28
29 @class NSEvent;
30
31 G_BEGIN_DECLS
32
33 #define CLUTTER_OSX_POOL_ALLOC()        NSAutoreleasePool *autorelease_pool = [[NSAutoreleasePool alloc] init]
34 #define CLUTTER_OSX_POOL_RELEASE()      [autorelease_pool release];
35
36 void _clutter_events_osx_init   (void);
37 void _clutter_events_osx_uninit (void);
38
39 void _clutter_event_osx_put     (NSEvent *nsevent, ClutterStage *wrapper);
40
41 G_END_DECLS
42
43 #endif /* __CLUTTER_OSX_H__ */