utility.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 #ifndef _LIBCLUTTER_GTKMM_UTILITY_H
00003 #define _LIBCLUTTER_GTKMM_UTILITY_H
00004 /*
00005  * Copyright 2008-2009 The cluttermm Development Team
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free
00019  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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 } //namespace Gtk
00046 } //namespace Clutter
00047 
00048 #endif //_LIBCLUTTER_GTKMM_UTILITY_H
00049 

Generated on Mon Jun 15 21:35:11 2009 for clutter-gtkmm by  doxygen 1.5.8