2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLRENDERERSPIN_H
4 #define _GTKMM_CELLRENDERERSPIN_H
9 /* Copyright (C) 2006 The gtkmm Development Team
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
21 * You should have received a copy of the GNU Library General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <gtkmm/cellrenderertext.h>
27 //#include <gtkmm/treemodel.h>
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 typedef struct _GtkCellRendererSpin GtkCellRendererSpin;
32 typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass;
33 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 { class CellRendererSpin_Class; } // namespace Gtk
46 class CellRendererSpin : public CellRendererText
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 typedef CellRendererSpin CppObjectType;
51 typedef CellRendererSpin_Class CppClassType;
52 typedef GtkCellRendererSpin BaseObjectType;
53 typedef GtkCellRendererSpinClass BaseClassType;
54 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
56 virtual ~CellRendererSpin();
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 friend class CellRendererSpin_Class;
62 static CppClassType cellrendererspin_class_;
65 CellRendererSpin(const CellRendererSpin&);
66 CellRendererSpin& operator=(const CellRendererSpin&);
69 explicit CellRendererSpin(const Glib::ConstructParams& construct_params);
70 explicit CellRendererSpin(GtkCellRendererSpin* 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 GtkCellRendererSpin* gobj() { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
83 ///Provides access to the underlying C GtkObject.
84 const GtkCellRendererSpin* gobj() const { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
88 //C++ methods used to invoke GTK+ virtual functions:
89 #ifdef GLIBMM_VFUNCS_ENABLED
90 #endif //GLIBMM_VFUNCS_ENABLED
93 //GTK+ Virtual Functions (override these to change behaviour):
94 #ifdef GLIBMM_VFUNCS_ENABLED
95 #endif //GLIBMM_VFUNCS_ENABLED
97 //Default Signal Handlers::
98 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
99 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
108 #ifdef GLIBMM_PROPERTIES_ENABLED
109 /** The adjustment that holds the value of the spinbutton.
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<Gtk::Adjustment*> property_adjustment() ;
116 #endif //#GLIBMM_PROPERTIES_ENABLED
118 #ifdef GLIBMM_PROPERTIES_ENABLED
119 /** The adjustment that holds the value of the spinbutton.
121 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
122 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
123 * the value of the property changes.
125 Glib::PropertyProxy_ReadOnly<Gtk::Adjustment*> property_adjustment() const;
126 #endif //#GLIBMM_PROPERTIES_ENABLED
128 #ifdef GLIBMM_PROPERTIES_ENABLED
129 /** The acceleration rate when you hold down a button.
131 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
132 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
133 * the value of the property changes.
135 Glib::PropertyProxy<double> property_climb_rate() ;
136 #endif //#GLIBMM_PROPERTIES_ENABLED
138 #ifdef GLIBMM_PROPERTIES_ENABLED
139 /** The acceleration rate when you hold down a button.
141 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
142 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
143 * the value of the property changes.
145 Glib::PropertyProxy_ReadOnly<double> property_climb_rate() const;
146 #endif //#GLIBMM_PROPERTIES_ENABLED
148 #ifdef GLIBMM_PROPERTIES_ENABLED
149 /** The number of decimal places to display.
151 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
152 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
153 * the value of the property changes.
155 Glib::PropertyProxy<guint> property_digits() ;
156 #endif //#GLIBMM_PROPERTIES_ENABLED
158 #ifdef GLIBMM_PROPERTIES_ENABLED
159 /** The number of decimal places to display.
161 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
162 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
163 * the value of the property changes.
165 Glib::PropertyProxy_ReadOnly<guint> property_digits() const;
166 #endif //#GLIBMM_PROPERTIES_ENABLED
169 #ifdef GLIBMM_PROPERTIES_ENABLED
170 virtual Glib::PropertyProxy_Base _property_renderable(); //override
171 #endif //GLIBMM_PROPERTIES_ENABLED
181 /** @relates Gtk::CellRendererSpin
182 * @param object The C instance
183 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
184 * @result A C++ instance that wraps this C instance.
186 Gtk::CellRendererSpin* wrap(GtkCellRendererSpin* object, bool take_copy = false);
190 #endif /* _GTKMM_CELLRENDERERSPIN_H */