utility.h
Go to the documentation of this file.00001
00002 #ifndef _LIBCLUTTER_GTKMM_UTILITY_H
00003 #define _LIBCLUTTER_GTKMM_UTILITY_H
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <gtkmm/widget.h>
00023 #include <cluttermm/texture.h>
00024
00025 namespace Clutter
00026 {
00027 namespace Gtk
00028 {
00029
00030 void get_fg_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00031 void get_bg_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00032 void get_text_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00033 void get_base_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00034 void get_text_aa_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00035 void get_light_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00036 void get_mid_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00037 void get_dark_color(::Gtk::Widget& widget, ::Gtk::StateType state, Color& color);
00038 Glib::RefPtr<Texture> create_texture_from_pixbuf(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
00039 Glib::RefPtr<Texture> create_texture_from_stock(::Gtk::Widget& widget, const Glib::ustring& stock_id, ::Gtk::IconSize size);
00040 Glib::RefPtr<Texture> create_texture_from_icon_name(::Gtk::Widget& widget, const Glib::ustring& icon_name, ::Gtk::IconSize size);
00041 void set_texture_from_pixbuf(const Glib::RefPtr<Texture>& texture, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
00042 void set_texture_from_stock(const Glib::RefPtr<Texture>& texture, ::Gtk::Widget& widget, const Glib::ustring& stock_id, ::Gtk::IconSize size);
00043 void set_texture_from_icon_name(const Glib::RefPtr<Texture>& texture, ::Gtk::Widget& widget, const Glib::ustring& icon_name, ::Gtk::IconSize size);
00044
00045 }
00046 }
00047
00048 #endif //_LIBCLUTTER_GTKMM_UTILITY_H
00049