add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / gtk / src / cellrendererprogress.hg
1 /* $Id: cellrendererprogress.hg,v 1.3 2006/05/10 20:59:27 murrayc Exp $ */
2
3 /* Copyright (C) 2004 The gtkmm Development Team
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library 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  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #include <gtkmm/cellrenderer.h>
21 _DEFS(gtkmm,gtk)
22 _PINCLUDE(gtkmm/private/cellrenderer_p.h)
23
24
25 namespace Gtk
26 {
27
28 /** Renders numbers as progress bars.
29  *
30  * @ingroup TreeView
31  * @newin2p6
32  */
33 class CellRendererProgress : public CellRenderer
34 {
35   _CLASS_GTKOBJECT(CellRendererProgress, GtkCellRendererProgress, GTK_CELL_RENDERER_PROGRESS, Gtk::CellRenderer, GtkCellRenderer)
36 public:
37   _CTOR_DEFAULT()
38
39   _WRAP_PROPERTY("value", int)
40   _WRAP_PROPERTY("text", Glib::ustring)
41   _WRAP_PROPERTY("pulse", int)
42   _WRAP_PROPERTY("text-xalign", float)
43   _WRAP_PROPERTY("text-yalign", float)
44
45 #ifdef GLIBMM_PROPERTIES_ENABLED
46   virtual Glib::PropertyProxy_Base _property_renderable();
47 #else
48   virtual Glib::ustring _property_renderable();
49 #endif
50 };
51
52 } // namespace Gtk
53