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 Lesser General Public
13
* License as published by the Free Software Foundation; either
14
* version 2.1 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
* Lesser General Public License for more details.
21
* You should have received a copy of the GNU Lesser 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
41
/** Renders a spin button in a cell.
43
* Gtk::CellRendererSpin renders text in a cell like Gtk::CellRendererText,
44
* from which it is derived. But while Gtk::CellRendererText offers a simple
45
* entry to edit the text, Gtk::CellRendererSpin offers a Gtk::SpinButton widget.
46
* Of course, that means that the text must be parseable as a floating point
49
* The range of the spinbutton is taken from the adjustment property of the
50
* cell renderer, which can be set explicitly or mapped to a column in
51
* the tree model, like all properties of cell renders. Gtk::CellRendererSpin
52
* also has properties for the climb rate and the number of digits to display.
53
* Other Gtk::SpinButton properties can be set in a handler for the start-editing
60
class CellRendererSpin : public CellRendererText
63
#ifndef DOXYGEN_SHOULD_SKIP_THIS
64
typedef CellRendererSpin CppObjectType;
65
typedef CellRendererSpin_Class CppClassType;
66
typedef GtkCellRendererSpin BaseObjectType;
67
typedef GtkCellRendererSpinClass BaseClassType;
68
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
70
virtual ~CellRendererSpin();
72
#ifndef DOXYGEN_SHOULD_SKIP_THIS
75
friend class CellRendererSpin_Class;
76
static CppClassType cellrendererspin_class_;
79
CellRendererSpin(const CellRendererSpin&);
80
CellRendererSpin& operator=(const CellRendererSpin&);
83
explicit CellRendererSpin(const Glib::ConstructParams& construct_params);
84
explicit CellRendererSpin(GtkCellRendererSpin* castitem);
86
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
89
#ifndef DOXYGEN_SHOULD_SKIP_THIS
90
static GType get_type() G_GNUC_CONST;
93
static GType get_base_type() G_GNUC_CONST;
96
///Provides access to the underlying C GtkObject.
97
GtkCellRendererSpin* gobj() { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
99
///Provides access to the underlying C GtkObject.
100
const GtkCellRendererSpin* gobj() const { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
104
//C++ methods used to invoke GTK+ virtual functions:
107
//GTK+ Virtual Functions (override these to change behaviour):
109
//Default Signal Handlers::
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<Gtk::Adjustment*> property_adjustment() ;
126
#endif //#GLIBMM_PROPERTIES_ENABLED
128
#ifdef GLIBMM_PROPERTIES_ENABLED
129
/** The adjustment that holds the value of the spinbutton.
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_ReadOnly<Gtk::Adjustment*> property_adjustment() const;
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<double> property_climb_rate() ;
146
#endif //#GLIBMM_PROPERTIES_ENABLED
148
#ifdef GLIBMM_PROPERTIES_ENABLED
149
/** The acceleration rate when you hold down a button.
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_ReadOnly<double> property_climb_rate() const;
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<guint> property_digits() ;
166
#endif //#GLIBMM_PROPERTIES_ENABLED
168
#ifdef GLIBMM_PROPERTIES_ENABLED
169
/** The number of decimal places to display.
171
* You rarely need to use properties because there are get_ and set_ methods for almost all of them.
172
* @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
173
* the value of the property changes.
175
Glib::PropertyProxy_ReadOnly<guint> property_digits() const;
176
#endif //#GLIBMM_PROPERTIES_ENABLED
179
virtual Glib::PropertyProxy_Base _property_renderable(); //override
189
/** A Glib::wrap() method for this object.
191
* @param object The C instance.
192
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
193
* @result A C++ instance that wraps this C instance.
195
* @relates Gtk::CellRendererSpin
197
Gtk::CellRendererSpin* wrap(GtkCellRendererSpin* object, bool take_copy = false);
201
#endif /* _GTKMM_CELLRENDERERSPIN_H */