2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLRENDERERPROGRESS_H
4 #define _GTKMM_CELLRENDERERPROGRESS_H
10 /* Copyright (C) 2004 The gtkmm Development Team
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <gtkmm/cellrenderer.h>
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 typedef struct _GtkCellRendererProgress GtkCellRendererProgress;
32 typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass;
33 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 { class CellRendererProgress_Class; } // namespace Gtk
41 /** Renders numbers as progress bars.
46 class CellRendererProgress : public CellRenderer
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 typedef CellRendererProgress CppObjectType;
51 typedef CellRendererProgress_Class CppClassType;
52 typedef GtkCellRendererProgress BaseObjectType;
53 typedef GtkCellRendererProgressClass BaseClassType;
54 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
56 virtual ~CellRendererProgress();
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 friend class CellRendererProgress_Class;
62 static CppClassType cellrendererprogress_class_;
65 CellRendererProgress(const CellRendererProgress&);
66 CellRendererProgress& operator=(const CellRendererProgress&);
69 explicit CellRendererProgress(const Glib::ConstructParams& construct_params);
70 explicit CellRendererProgress(GtkCellRendererProgress* castitem);
72 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS
76 static GType get_type() G_GNUC_CONST;
77 static GType get_base_type() G_GNUC_CONST;
80 ///Provides access to the underlying C GtkObject.
81 GtkCellRendererProgress* gobj() { return reinterpret_cast<GtkCellRendererProgress*>(gobject_); }
83 ///Provides access to the underlying C GtkObject.
84 const GtkCellRendererProgress* gobj() const { return reinterpret_cast<GtkCellRendererProgress*>(gobject_); }
88 //C++ methods used to invoke GTK+ virtual functions:
91 //GTK+ Virtual Functions (override these to change behaviour):
93 //Default Signal Handlers::
99 CellRendererProgress();
101 /** Value of the progress bar.
103 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
104 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
105 * the value of the property changes.
107 Glib::PropertyProxy<int> property_value() ;
109 /** Value of the progress bar.
111 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
112 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
113 * the value of the property changes.
115 Glib::PropertyProxy_ReadOnly<int> property_value() const;
117 /** Text on the progress bar.
119 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
120 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
121 * the value of the property changes.
123 Glib::PropertyProxy<Glib::ustring> property_text() ;
125 /** Text on the progress bar.
127 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
128 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
129 * the value of the property changes.
131 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const;
134 virtual Glib::PropertyProxy_Base _property_renderable(); //override
144 /** @relates Gtk::CellRendererProgress
145 * @param object The C instance
146 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
147 * @result A C++ instance that wraps this C instance.
149 Gtk::CellRendererProgress* wrap(GtkCellRendererProgress* object, bool take_copy = false);
151 #endif /* _GTKMM_CELLRENDERERPROGRESS_H */