[viewport] Remove units-based API
[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 #if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
23 #error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
24 #endif
25
26 #ifndef __GTK_CLUTTER_UTIL_H__
27 #define __GTK_CLUTTER_UTIL_H__
28
29 #include <gtk/gtk.h>
30 #include <clutter/clutter.h>
31
32 G_BEGIN_DECLS
33
34 void          gtk_clutter_get_fg_color               (GtkWidget      *widget,
35                                                       GtkStateType    state,
36                                                       ClutterColor   *color);
37 void          gtk_clutter_get_bg_color               (GtkWidget      *widget,
38                                                       GtkStateType    state,
39                                                       ClutterColor   *color);
40 void          gtk_clutter_get_text_color             (GtkWidget      *widget,
41                                                       GtkStateType    state,
42                                                       ClutterColor   *color);
43 void          gtk_clutter_get_text_aa_color          (GtkWidget      *widget,
44                                                       GtkStateType    state,
45                                                       ClutterColor   *color);
46 void          gtk_clutter_get_base_color             (GtkWidget      *widget,
47                                                       GtkStateType    state,
48                                                       ClutterColor   *color);
49 void          gtk_clutter_get_light_color            (GtkWidget      *widget,
50                                                       GtkStateType    state,
51                                                       ClutterColor   *color);
52 void          gtk_clutter_get_dark_color             (GtkWidget      *widget,
53                                                       GtkStateType    state,
54                                                       ClutterColor   *color);
55 void          gtk_clutter_get_mid_color              (GtkWidget      *widget,
56                                                       GtkStateType    state,
57                                                       ClutterColor   *color);
58
59 ClutterActor *gtk_clutter_texture_new_from_pixbuf    (GdkPixbuf      *pixbuf);
60 ClutterActor *gtk_clutter_texture_new_from_stock     (GtkWidget      *widget,
61                                                       const gchar    *stock_id,
62                                                       GtkIconSize     size);
63 ClutterActor *gtk_clutter_texture_new_from_icon_name (GtkWidget      *widget,
64                                                       const gchar    *icon_name,
65                                                       GtkIconSize     size);
66 void          gtk_clutter_texture_set_from_pixbuf    (ClutterTexture *texture,
67                                                       GdkPixbuf      *pixbuf);
68 void          gtk_clutter_texture_set_from_stock     (ClutterTexture *texture,
69                                                       GtkWidget      *widget,
70                                                       const gchar    *stock_id,
71                                                       GtkIconSize     size);
72 void          gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture,
73                                                       GtkWidget      *widget,
74                                                       const gchar    *icon_name,
75                                                       GtkIconSize     size);
76
77 G_END_DECLS
78
79 #endif /* __GTK_CLUTTER_UTIL_H__ */