755742650000d56472ce480b328e4912f612e092
[clutter-gtk] / clutter-gtk / gtk-clutter-util.h
1 /* gtk-clutter-util.h: GTK+ integration utilities
2  *
3  * Copyright (C) 2008 OpenedHand
4  *
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.
9  *
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.
14  *
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>.
17  *
18  * Authors:
19  *   Emmanuele Bassi  <ebassi@openedhand.com>
20  */
21
22 #ifndef __GTK_CLUTTER_UTIL_H__
23 #define __GTK_CLUTTER_UTIL_H__
24
25 #include <gtk/gtk.h>
26 #include <clutter/clutter.h>
27
28 G_BEGIN_DECLS
29
30 void          gtk_clutter_get_fg_color               (GtkWidget      *widget,
31                                                       GtkStateType    state,
32                                                       ClutterColor   *color);
33 void          gtk_clutter_get_bg_color               (GtkWidget      *widget,
34                                                       GtkStateType    state,
35                                                       ClutterColor   *color);
36 void          gtk_clutter_get_text_color             (GtkWidget      *widget,
37                                                       GtkStateType    state,
38                                                       ClutterColor   *color);
39 void          gtk_clutter_get_base_color             (GtkWidget      *widget,
40                                                       GtkStateType    state,
41                                                       ClutterColor   *color);
42
43 ClutterActor *gtk_clutter_texture_new_from_pixbuf    (GdkPixbuf      *pixbuf);
44 ClutterActor *gtk_clutter_texture_new_from_stock     (GtkWidget      *widget,
45                                                       const gchar    *stock_id,
46                                                       GtkIconSize     size);
47 ClutterActor *gtk_clutter_texture_new_from_icon_name (GtkWidget      *widget,
48                                                       const gchar    *icon_name,
49                                                       GtkIconSize     size);
50 void          gtk_clutter_texture_set_from_pixbuf    (ClutterTexture *texture,
51                                                       GdkPixbuf      *pixbuf);
52 void          gtk_clutter_texture_set_from_stock     (ClutterTexture *texture,
53                                                       GtkWidget      *widget,
54                                                       const gchar    *stock_id,
55                                                       GtkIconSize     size);
56 void          gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture,
57                                                       GtkWidget      *widget,
58                                                       const gchar    *icon_name,
59                                                       GtkIconSize     size);
60
61 G_END_DECLS
62
63 #endif /* __GTK_CLUTTER_UTIL_H__ */