Ardour  9.0-pre0-582-g084a23a80d
adjustment.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ADJUSTMENT_H
4 #define _GTKMM_ADJUSTMENT_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: adjustment.hg,v 1.5 2006/11/08 21:51:35 murrayc Exp $ */
11 
12 /* adjustment.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/object.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkAdjustment GtkAdjustment;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Adjustment_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
62 class Adjustment : public Object
63 {
64  public:
65 #ifndef DOXYGEN_SHOULD_SKIP_THIS
66  typedef Adjustment CppObjectType;
67  typedef Adjustment_Class CppClassType;
68  typedef GtkAdjustment BaseObjectType;
69  typedef GtkAdjustmentClass BaseClassType;
70 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 
72  virtual ~Adjustment();
73 
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75 
76 private:
77  friend class Adjustment_Class;
78  static CppClassType adjustment_class_;
79 
80  // noncopyable
81  Adjustment(const Adjustment&);
82  Adjustment& operator=(const Adjustment&);
83 
84 protected:
85  explicit Adjustment(const Glib::ConstructParams& construct_params);
86  explicit Adjustment(GtkAdjustment* castitem);
87 
88 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
89 
90 public:
91 #ifndef DOXYGEN_SHOULD_SKIP_THIS
92  static GType get_type() G_GNUC_CONST;
93 
94 
95  static GType get_base_type() G_GNUC_CONST;
96 #endif
97 
99  GtkAdjustment* gobj() { return reinterpret_cast<GtkAdjustment*>(gobject_); }
100 
102  const GtkAdjustment* gobj() const { return reinterpret_cast<GtkAdjustment*>(gobject_); }
103 
104 
105 public:
106  //C++ methods used to invoke GTK+ virtual functions:
107 
108 protected:
109  //GTK+ Virtual Functions (override these to change behaviour):
110 
111  //Default Signal Handlers::
113  virtual void on_changed();
115  virtual void on_value_changed();
116 
117 
118 private:
119 
120 public:
121 
122  friend class Range;
123  friend class HScrollbar;
124  friend class VScrollbar;
125 
134  Adjustment(double value, double lower, double upper, double step_increment = 1, double page_increment = 10, double page_size = 0);
135 
136 
139  void changed();
140 
144 
145 
151  void clamp_page(double lower, double upper);
152 
153 
158  void set_value(double value);
159 
165  double get_value() const;
166 
167 
184  void set_lower(double lower);
185 
190  double get_lower() const;
191 
192 
205  void set_upper(double upper);
206 
211  double get_upper() const;
212 
213 
222  void set_step_increment(double step_increment);
223 
228  double get_step_increment() const;
229 
230 
239  void set_page_increment(double page_increment);
240 
245  double get_page_increment() const;
246 
247 
256  void set_page_size(double page_size);
257 
262  double get_page_size() const;
263 
264 
278  void configure(double value, double lower, double upper, double step_increment, double page_increment, double page_size);
279 
280 
287  Glib::SignalProxy0< void > signal_changed();
288 
289 
296  Glib::SignalProxy0< void > signal_value_changed();
297 
298 
304  Glib::PropertyProxy< double > property_value() ;
305 
311  Glib::PropertyProxy_ReadOnly< double > property_value() const;
312 
318  Glib::PropertyProxy< double > property_lower() ;
319 
325  Glib::PropertyProxy_ReadOnly< double > property_lower() const;
326 
332  Glib::PropertyProxy< double > property_upper() ;
333 
339  Glib::PropertyProxy_ReadOnly< double > property_upper() const;
340 
346  Glib::PropertyProxy< double > property_step_increment() ;
347 
353  Glib::PropertyProxy_ReadOnly< double > property_step_increment() const;
354 
360  Glib::PropertyProxy< double > property_page_increment() ;
361 
367  Glib::PropertyProxy_ReadOnly< double > property_page_increment() const;
368 
374  Glib::PropertyProxy< double > property_page_size() ;
375 
381  Glib::PropertyProxy_ReadOnly< double > property_page_size() const;
382 
383 
384 };
385 
386 } /* namespace Gtk */
387 
388 
389 namespace Glib
390 {
399  Gtk::Adjustment* wrap(GtkAdjustment* object, bool take_copy = false);
400 } //namespace Glib
401 
402 
403 #endif /* _GTKMM_ADJUSTMENT_H */
404 
void set_step_increment(double step_increment)
void configure(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
Glib::PropertyProxy_ReadOnly< double > property_upper() const
Glib::PropertyProxy< double > property_lower()
virtual void on_value_changed()
This is a default handler for the signal signal_value_changed().
Gtk::Adjustment * wrap(GtkAdjustment *object, bool take_copy=false)
Adjustment(double value, double lower, double upper, double step_increment=1, double page_increment=10, double page_size=0)
Glib::SignalProxy0< void > signal_value_changed()
Glib::PropertyProxy< double > property_page_size()
double get_page_size() const
Glib::PropertyProxy< double > property_page_increment()
double get_value() const
Glib::SignalProxy0< void > signal_changed()
double get_step_increment() const
void clamp_page(double lower, double upper)
Glib::PropertyProxy< double > property_step_increment()
GtkAdjustment * gobj()
Provides access to the underlying C GtkObject.
Definition: adjustment.h:99
double get_upper() const
void set_page_increment(double page_increment)
void set_lower(double lower)
void set_page_size(double page_size)
Glib::PropertyProxy_ReadOnly< double > property_value() const
double get_page_increment() const
Glib::PropertyProxy_ReadOnly< double > property_lower() const
void value_changed()
Glib::PropertyProxy< double > property_value()
Glib::PropertyProxy_ReadOnly< double > property_page_size() const
Glib::PropertyProxy< double > property_upper()
void set_upper(double upper)
Glib::PropertyProxy_ReadOnly< double > property_step_increment() const
void set_value(double value)
double get_lower() const
virtual ~Adjustment()
Glib::PropertyProxy_ReadOnly< double > property_page_increment() const
const GtkAdjustment * gobj() const
Provides access to the underlying C GtkObject.
Definition: adjustment.h:102
virtual void on_changed()
This is a default handler for the signal signal_changed().
Definition: ardour_ui.h:188