1 /* gtk-clutter-util.h: GTK+ integration utilities
3 * Copyright (C) 2008 OpenedHand
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not see <http://www.fsf.org/licensing>.
19 * Emmanuele Bassi <ebassi@openedhand.com>
22 #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
23 #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
26 #ifndef __GTK_CLUTTER_UTIL_H__
27 #define __GTK_CLUTTER_UTIL_H__
30 #include <clutter/clutter.h>
35 * ClutterGtkInitError:
36 * @CLUTTER_INIT_ERROR_LAST: Placeholder
37 * @CLUTTER_INIT_ERROR_GTK: Unable to initialize GTK+
39 * Extension of the #ClutterInitError enumeration for the integration
45 CLUTTER_INIT_ERROR_LAST = CLUTTER_INIT_ERROR_INTERNAL,
47 CLUTTER_INIT_ERROR_GTK = (CLUTTER_INIT_ERROR_LAST - 1)
48 } ClutterGtkInitError;
50 ClutterInitError gtk_clutter_init (int *argc,
52 ClutterInitError gtk_clutter_init_with_args (int *argc,
54 const char *parameter_string,
55 GOptionEntry *entries,
56 const char *translation_domain,
59 void gtk_clutter_get_fg_color (GtkWidget *widget,
62 void gtk_clutter_get_bg_color (GtkWidget *widget,
65 void gtk_clutter_get_text_color (GtkWidget *widget,
68 void gtk_clutter_get_text_aa_color (GtkWidget *widget,
71 void gtk_clutter_get_base_color (GtkWidget *widget,
74 void gtk_clutter_get_light_color (GtkWidget *widget,
77 void gtk_clutter_get_dark_color (GtkWidget *widget,
80 void gtk_clutter_get_mid_color (GtkWidget *widget,
84 ClutterActor *gtk_clutter_texture_new_from_pixbuf (GdkPixbuf *pixbuf);
85 ClutterActor *gtk_clutter_texture_new_from_stock (GtkWidget *widget,
86 const gchar *stock_id,
88 ClutterActor *gtk_clutter_texture_new_from_icon_name (GtkWidget *widget,
89 const gchar *icon_name,
91 void gtk_clutter_texture_set_from_pixbuf (ClutterTexture *texture,
93 void gtk_clutter_texture_set_from_stock (ClutterTexture *texture,
95 const gchar *stock_id,
97 void gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture,
99 const gchar *icon_name,
104 #endif /* __GTK_CLUTTER_UTIL_H__ */