1 /* Clutter - An OpenGL based 'interactive canvas' library.
2 * OSX backend - initial entry point
4 * Copyright (C) 2007 Tommi Komulainen <tommi.komulainen@iki.fi>
5 * Copyright (C) 2007 OpenedHand Ltd.
6 * Copyright (C) 2011 Crystalnix <vgachkaylo@crystalnix.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef __CLUTTER_BACKEND_OSX_H__
24 #define __CLUTTER_BACKEND_OSX_H__
26 #import <AppKit/AppKit.h>
27 #import <Cocoa/Cocoa.h>
28 #import <Foundation/Foundation.h>
32 #include "clutter-backend-private.h"
34 @class NSOpenGLPixelFormat, NSOpenGLContext;
38 #define CLUTTER_TYPE_BACKEND_OSX (_clutter_backend_osx_get_type())
39 #define CLUTTER_BACKEND_OSX(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),CLUTTER_TYPE_BACKEND_OSX,ClutterBackendOSX))
40 #define CLUTTER_BACKEND_OSX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),CLUTTER_TYPE_BACKEND_OSX,ClutterBackend))
41 #define CLUTTER_IS_BACKEND_OSX(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),CLUTTER_TYPE_BACKEND_OSX))
42 #define CLUTTER_IS_BACKEND_OSX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),CLUTTER_TYPE_BACKEND_OSX))
43 #define CLUTTER_BACKEND_OSX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),CLUTTER_TYPE_BACKEND_OSX,ClutterBackendOSXClass))
45 typedef struct _ClutterBackendOSX ClutterBackendOSX;
46 typedef struct _ClutterBackendOSXClass ClutterBackendOSXClass;
48 struct _ClutterBackendOSX
50 ClutterBackend parent;
52 NSOpenGLPixelFormat *pixel_format;
53 NSOpenGLContext *context;
54 ClutterDeviceManager *device_manager;
57 struct _ClutterBackendOSXClass
59 ClutterBackendClass parent_class;
62 GType _clutter_backend_osx_get_type (void) G_GNUC_CONST;
64 void _clutter_backend_osx_events_init (ClutterBackend *backend);
68 #endif /* __CLUTTER_BACKEND_OSX_H__ */