1
#include "clutterperl.h"
3
MODULE = Gtk2::ClutterUtil PACKAGE = Gtk2::ClutterUtil PREFIX = gtk_clutter_
5
=for position DESCRIPTION
9
A set of utility calls for retrieving theme colors from a L<Gtk2::Widget>
10
in a form understandable by Clutter.
15
get_fg_clutter_color (GtkWidget *widget, GtkStateType state)
17
Gtk2::ClutterUtil::get_bg_clutter_color = 1
18
Gtk2::ClutterUtil::get_text_clutter_color = 2
19
Gtk2::ClutterUtil::get_base_clutter_color = 3
21
ClutterColor color = { 0, };
24
case 0: gtk_clutter_get_fg_color (widget, state, &color); break;
25
case 1: gtk_clutter_get_bg_color (widget, state, &color); break;
26
case 2: gtk_clutter_get_text_color (widget, state, &color); break;
27
case 3: gtk_clutter_get_base_color (widget, state, &color); break;
29
g_assert_not_reached ();
36
MODULE = Gtk2::ClutterUtil PACKAGE = Gtk2::ClutterTexture PREFIX = gtk_clutter_texture_
38
=for position DESCRIPTION
42
A set of utility calls for using L<Clutter::Texture> with GTK+ stock icons,
43
icons from themes and L<Gtk2::Gdk::Pixbuf> objects.
48
gtk_clutter_texture_new_from_pixbuf (class, GdkPixbuf *pixbuf)
53
gtk_clutter_texture_new_from_stock (class, GtkWidget *widget, const gchar *stock_id, GtkIconSize size=-1)
55
widget, stock_id, size
58
gtk_clutter_texture_new_from_icon_name (class, GtkWidget_ornull *widget, const gchar *icon_name, GtkIconSize size=-1)
60
widget, icon_name, size
63
gtk_clutter_texture_set_from_pixbuf (ClutterTexture *texture, GdkPixbuf *pixbuf)
66
gtk_clutter_texture_set_from_stock (ClutterTexture *texture, GtkWidget *widget, const gchar *stock_id, GtkIconSize size=-1)
69
gtk_clutter_texture_set_from_icon_name (ClutterTexture *texture, GtkWidget_ornull *widget, const gchar *icon_name, GtkIconSize size=-1)