2008-09-25 Emmanuele Bassi <ebassi@linux.intel.com>
[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_text_aa_color          (GtkWidget      *widget,
40                                                       GtkStateType    state,
41                                                       ClutterColor   *color);
42 void          gtk_clutter_get_base_color             (GtkWidget      *widget,
43                                                       GtkStateType    state,
44                                                       ClutterColor   *color);
45 void          gtk_clutter_get_light_color            (GtkWidget      *widget,
46                                                       GtkStateType    state,
47                                                       ClutterColor   *color);
48 void          gtk_clutter_get_dark_color             (GtkWidget      *widget,
49                                                       GtkStateType    state,
50                                                       ClutterColor   *color);
51 void          gtk_clutter_get_mid_color              (GtkWidget      *widget,
52                                                       GtkStateType    state,
53                                                       ClutterColor   *color);
54
55 ClutterActor *gtk_clutter_texture_new_from_pixbuf    (GdkPixbuf      *pixbuf);
56 ClutterActor *gtk_clutter_texture_new_from_stock     (GtkWidget      *widget,
57                                                       const gchar    *stock_id,
58                                                       GtkIconSize     size);
59 ClutterActor *gtk_clutter_texture_new_from_icon_name (GtkWidget      *widget,
60                                                       const gchar    *icon_name,
61                                                       GtkIconSize     size);
62 void          gtk_clutter_texture_set_from_pixbuf    (ClutterTexture *texture,
63                                                       GdkPixbuf      *pixbuf);
64 void          gtk_clutter_texture_set_from_stock     (ClutterTexture *texture,
65                                                       GtkWidget      *widget,
66                                                       const gchar    *stock_id,
67                                                       GtkIconSize     size);
68 void          gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture,
69                                                       GtkWidget      *widget,
70                                                       const gchar    *icon_name,
71                                                       GtkIconSize     size);
72
73 G_END_DECLS
74
75 #endif /* __GTK_CLUTTER_UTIL_H__ */