~inkscape.dev/inkscape-devlibs/devlibs-gtk3

« back to all changes in this revision

Viewing changes to include/gtkmm-2.4/gtkmm/cellrendererspin.h

  • Committer: JazzyNico
  • Date: 2013-01-21 10:11:05 UTC
  • Revision ID: nicoduf@yahoo.fr-20130121101105-i8d8slkq9ng4olx8
Adding gtk2 libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_CELLRENDERERSPIN_H
 
4
#define _GTKMM_CELLRENDERERSPIN_H
 
5
 
 
6
 
 
7
#include <glibmm.h>
 
8
 
 
9
/* Copyright (C) 2006 The gtkmm Development Team
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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.
 
24
 */
 
25
 
 
26
#include <gtkmm/cellrenderertext.h>
 
27
//#include <gtkmm/treemodel.h>
 
28
 
 
29
 
 
30
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
31
typedef struct _GtkCellRendererSpin GtkCellRendererSpin;
 
32
typedef struct _GtkCellRendererSpinClass GtkCellRendererSpinClass;
 
33
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
34
 
 
35
 
 
36
namespace Gtk
 
37
{ class CellRendererSpin_Class; } // namespace Gtk
 
38
namespace Gtk
 
39
{
 
40
 
 
41
/**  Renders a spin button in a cell.
 
42
 *
 
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 
 
47
 * number.
 
48
 *
 
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
 
54
 * signal. 
 
55
 *
 
56
 * @ingroup TreeView
 
57
 * @newin{2,12}
 
58
 */
 
59
 
 
60
class CellRendererSpin : public CellRendererText
 
61
{
 
62
  public:
 
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 */
 
69
 
 
70
  virtual ~CellRendererSpin();
 
71
 
 
72
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
73
 
 
74
private:
 
75
  friend class CellRendererSpin_Class;
 
76
  static CppClassType cellrendererspin_class_;
 
77
 
 
78
  // noncopyable
 
79
  CellRendererSpin(const CellRendererSpin&);
 
80
  CellRendererSpin& operator=(const CellRendererSpin&);
 
81
 
 
82
protected:
 
83
  explicit CellRendererSpin(const Glib::ConstructParams& construct_params);
 
84
  explicit CellRendererSpin(GtkCellRendererSpin* castitem);
 
85
 
 
86
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
87
 
 
88
public:
 
89
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
90
  static GType get_type()      G_GNUC_CONST;
 
91
 
 
92
 
 
93
  static GType get_base_type() G_GNUC_CONST;
 
94
#endif
 
95
 
 
96
  ///Provides access to the underlying C GtkObject.
 
97
  GtkCellRendererSpin*       gobj()       { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
 
98
 
 
99
  ///Provides access to the underlying C GtkObject.
 
100
  const GtkCellRendererSpin* gobj() const { return reinterpret_cast<GtkCellRendererSpin*>(gobject_); }
 
101
 
 
102
 
 
103
public:
 
104
  //C++ methods used to invoke GTK+ virtual functions:
 
105
 
 
106
protected:
 
107
  //GTK+ Virtual Functions (override these to change behaviour):
 
108
 
 
109
  //Default Signal Handlers::
 
110
 
 
111
 
 
112
private:
 
113
 
 
114
public:
 
115
 
 
116
  CellRendererSpin();
 
117
  
 
118
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
119
/** The adjustment that holds the value of the spinbutton.
 
120
   *
 
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.
 
124
   */
 
125
  Glib::PropertyProxy<Gtk::Adjustment*> property_adjustment() ;
 
126
#endif //#GLIBMM_PROPERTIES_ENABLED
 
127
 
 
128
#ifdef GLIBMM_PROPERTIES_ENABLED
 
129
/** The adjustment that holds the value of the spinbutton.
 
130
   *
 
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.
 
134
   */
 
135
  Glib::PropertyProxy_ReadOnly<Gtk::Adjustment*> property_adjustment() const;
 
136
#endif //#GLIBMM_PROPERTIES_ENABLED
 
137
 
 
138
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
139
/** The acceleration rate when you hold down a button.
 
140
   *
 
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.
 
144
   */
 
145
  Glib::PropertyProxy<double> property_climb_rate() ;
 
146
#endif //#GLIBMM_PROPERTIES_ENABLED
 
147
 
 
148
#ifdef GLIBMM_PROPERTIES_ENABLED
 
149
/** The acceleration rate when you hold down a button.
 
150
   *
 
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.
 
154
   */
 
155
  Glib::PropertyProxy_ReadOnly<double> property_climb_rate() const;
 
156
#endif //#GLIBMM_PROPERTIES_ENABLED
 
157
 
 
158
  #ifdef GLIBMM_PROPERTIES_ENABLED
 
159
/** The number of decimal places to display.
 
160
   *
 
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.
 
164
   */
 
165
  Glib::PropertyProxy<guint> property_digits() ;
 
166
#endif //#GLIBMM_PROPERTIES_ENABLED
 
167
 
 
168
#ifdef GLIBMM_PROPERTIES_ENABLED
 
169
/** The number of decimal places to display.
 
170
   *
 
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.
 
174
   */
 
175
  Glib::PropertyProxy_ReadOnly<guint> property_digits() const;
 
176
#endif //#GLIBMM_PROPERTIES_ENABLED
 
177
 
 
178
 
 
179
  virtual Glib::PropertyProxy_Base _property_renderable(); //override
 
180
 
 
181
 
 
182
};
 
183
 
 
184
} // namespace Gtk
 
185
 
 
186
 
 
187
namespace Glib
 
188
{
 
189
  /** A Glib::wrap() method for this object.
 
190
   * 
 
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.
 
194
   *
 
195
   * @relates Gtk::CellRendererSpin
 
196
   */
 
197
  Gtk::CellRendererSpin* wrap(GtkCellRendererSpin* object, bool take_copy = false);
 
198
} //namespace Glib
 
199
 
 
200
 
 
201
#endif /* _GTKMM_CELLRENDERERSPIN_H */
 
202