| 1 |
/* |
| 2 |
* Clutter. |
| 3 |
* |
| 4 |
* An OpenGL based 'interactive canvas' library. |
| 5 |
* |
| 6 |
* Authored By Matthew Allum <[email protected]> |
| 7 |
* |
| 8 |
* Copyright (C) 2006 OpenedHand |
| 9 |
* |
| 10 |
* This library is free software; you can redistribute it and/or |
| 11 |
* modify it under the terms of the GNU Lesser General Public |
| 12 |
* License as published by the Free Software Foundation; either |
| 13 |
* version 2 of the License, or (at your option) any later version. |
| 14 |
* |
| 15 |
* This library is distributed in the hope that it will be useful, |
| 16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 |
* Lesser General Public License for more details. |
| 19 |
* |
| 20 |
* You should have received a copy of the GNU Lesser General Public |
| 21 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 22 |
* |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
/** |
| 27 |
* SECTION:clutter-gdk |
| 28 |
* @short_description: GDK specific API |
| 29 |
* |
| 30 |
* The GDK backend for Clutter provides some specific API, allowing |
| 31 |
* integration with the GDK API for manipulating the stage window and |
| 32 |
* handling events outside of Clutter. |
| 33 |
*/ |
| 34 |
|
| 35 |
#ifndef __CLUTTER_GDK_H__ |
| 36 |
#define __CLUTTER_GDK_H__ |
| 37 |
|
| 38 |
#include <glib.h> |
| 39 |
#include <gdk/gdk.h> |
| 40 |
#include <clutter/clutter.h> |
| 41 |
|
| 42 |
G_BEGIN_DECLS |
| 43 |
|
| 44 |
CLUTTER_AVAILABLE_IN_1_10 |
| 45 |
GdkDisplay * clutter_gdk_get_default_display (void); |
| 46 |
CLUTTER_AVAILABLE_IN_1_10 |
| 47 |
void clutter_gdk_set_display (GdkDisplay *display); |
| 48 |
|
| 49 |
CLUTTER_AVAILABLE_IN_1_10 |
| 50 |
GdkWindow * clutter_gdk_get_stage_window (ClutterStage *stage); |
| 51 |
CLUTTER_AVAILABLE_IN_1_10 |
| 52 |
gboolean clutter_gdk_set_stage_foreign (ClutterStage *stage, |
| 53 |
GdkWindow *window); |
| 54 |
|
| 55 |
CLUTTER_AVAILABLE_IN_1_10 |
| 56 |
GdkFilterReturn clutter_gdk_handle_event (GdkEvent *event); |
| 57 |
|
| 58 |
CLUTTER_AVAILABLE_IN_1_10 |
| 59 |
ClutterStage * clutter_gdk_get_stage_from_window (GdkWindow *window); |
| 60 |
|
| 61 |
CLUTTER_AVAILABLE_IN_1_10 |
| 62 |
void clutter_gdk_disable_event_retrieval (void); |
| 63 |
|
| 64 |
CLUTTER_AVAILABLE_IN_1_22 |
| 65 |
GdkVisual * clutter_gdk_get_visual (void); |
| 66 |
|
| 67 |
G_END_DECLS |
| 68 |
|
| 69 |
#endif /* __CLUTTER_GDK_H__ */ |