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 Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 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, 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 25namespace Gtk 26{ 27 28/** Renders numbers as progress bars. 29 * 30 * @ingroup TreeView 31 * @newin{2,6} 32 */ 33class CellRendererProgress : public CellRenderer 34{ 35 _CLASS_GTKOBJECT(CellRendererProgress, GtkCellRendererProgress, GTK_CELL_RENDERER_PROGRESS, Gtk::CellRenderer, GtkCellRenderer) 36public: 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 _WRAP_PROPERTY("orientation", ProgressBarOrientation) 45 46 virtual Glib::PropertyProxy_Base _property_renderable(); 47}; 48 49} // namespace Gtk 50 51