1 /* Clutter - An OpenGL based 'interactive canvas' library.
4 * Copyright (C) 2007 Tommi Komulainen <tommi.komulainen@iki.fi>
5 * Copyright (C) 2007 OpenedHand Ltd.
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.
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.
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/>.
22 #ifndef __CLUTTER_OSX_H__
23 #define __CLUTTER_OSX_H__
25 #import <AppKit/AppKit.h>
27 #include <clutter/clutter-stage.h>
33 #define CLUTTER_OSX_POOL_ALLOC() NSAutoreleasePool *autorelease_pool = [[NSAutoreleasePool alloc] init]
34 #define CLUTTER_OSX_POOL_RELEASE() [autorelease_pool release];
36 void _clutter_events_osx_init (void);
37 void _clutter_events_osx_uninit (void);
39 void _clutter_event_osx_put (NSEvent *nsevent, ClutterStage *wrapper);
43 #endif /* __CLUTTER_OSX_H__ */