Ardour  9.0-pre0-582-g084a23a80d
tk/ytkmm/ytkmm/gtkmm/range.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RANGE_H
4 #define _GTKMM_RANGE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: range.hg,v 1.8 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 #include <gtkmm/widget.h>
30 #include <gtkmm/enums.h> //For SensitivityType.
31 #include <gtkmm/border.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkRange GtkRange;
36 typedef struct _GtkRangeClass GtkRangeClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Range_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
45 class Adjustment;
46 
52 class Range : public Widget
53 {
54  public:
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56  typedef Range CppObjectType;
57  typedef Range_Class CppClassType;
58  typedef GtkRange BaseObjectType;
59  typedef GtkRangeClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61 
62  virtual ~Range();
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 
66 private:
67  friend class Range_Class;
68  static CppClassType range_class_;
69 
70  // noncopyable
71  Range(const Range&);
72  Range& operator=(const Range&);
73 
74 protected:
75  explicit Range(const Glib::ConstructParams& construct_params);
76  explicit Range(GtkRange* castitem);
77 
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79 
80 public:
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82  static GType get_type() G_GNUC_CONST;
83 
84 
85  static GType get_base_type() G_GNUC_CONST;
86 #endif
87 
89  GtkRange* gobj() { return reinterpret_cast<GtkRange*>(gobject_); }
90 
92  const GtkRange* gobj() const { return reinterpret_cast<GtkRange*>(gobject_); }
93 
94 
95 public:
96  //C++ methods used to invoke GTK+ virtual functions:
97 
98 protected:
99  //GTK+ Virtual Functions (override these to change behaviour):
100 
101  //Default Signal Handlers::
103  virtual void on_value_changed();
105  virtual void on_adjust_bounds(double new_value);
107  virtual void on_move_slider(ScrollType scroll);
108 
109 
110 private:
111 
112 protected:
113  Range();
114 public:
115 
116 
117 #ifndef GTKMM_DISABLE_DEPRECATED
118 
134 #endif // GTKMM_DISABLE_DEPRECATED
135 
136 
137 #ifndef GTKMM_DISABLE_DEPRECATED
138 
147 #endif // GTKMM_DISABLE_DEPRECATED
148 
149 
160  void set_adjustment(Gtk::Adjustment& adjustment);
162 
163 
172 
181 
189  void set_inverted(bool setting = true);
190 
195  bool get_inverted() const;
196 
204  void set_flippable(bool flippable = true);
205 
210  bool get_flippable() const;
211 
212 
220  void set_slider_size_fixed(bool size_fixed = true);
221 
228  bool get_slider_size_fixed() const;
229 
230 
237  void set_min_slider_size(bool min_size = true);
238 
245  int get_min_slider_size() const;
246 
255 
256 
265  void get_slider_range(int& slider_start, int& slider_end) const;
266 
267 
274 
281 
288 
295 
296 
305  void set_increments(double step, double page);
306 
314  void set_range(double min, double max);
315 
323  void set_value(double value);
324 
329  double get_value() const;
330 
331 
338  void set_show_fill_level(bool show_fill_level = true);
339 
344  bool get_show_fill_level() const;
345 
352  void set_restrict_to_fill_level(bool restrict_to_fill_level = true);
353 
359 
380  void set_fill_level(double fill_level);
381 
386  double get_fill_level() const;
387  //gtkmmproc error: gtk_range_set_round_digits : method defs lookup failed (1)
388  //gtkmmproc error: gtk_range_get_round_digits : method defs lookup failed (1)
389 
390 
397  Glib::SignalProxy0< void > signal_value_changed();
398 
399 
406  Glib::SignalProxy1< void,double > signal_adjust_bounds();
407 
408 
415  Glib::SignalProxy1< void,ScrollType > signal_move_slider();
416 
417 
418  //We use no_default_handler for this, because we can not add a new vfunc to 2.5 without breaking ABI.
419  //TODO: Remove no_default_handler when we do an ABI-break-with-parallel-install.
420 
447  Glib::SignalProxy2< bool,ScrollType,double > signal_change_value();
448 
449 
455  Glib::PropertyProxy< UpdateType > property_update_policy() ;
456 
462  Glib::PropertyProxy_ReadOnly< UpdateType > property_update_policy() const;
463 
469  Glib::PropertyProxy< Adjustment* > property_adjustment() ;
470 
476  Glib::PropertyProxy_ReadOnly< Adjustment* > property_adjustment() const;
477 
483  Glib::PropertyProxy< bool > property_inverted() ;
484 
490  Glib::PropertyProxy_ReadOnly< bool > property_inverted() const;
491 
497  Glib::PropertyProxy< SensitivityType > property_lower_stepper_sensitivity() ;
498 
504  Glib::PropertyProxy_ReadOnly< SensitivityType > property_lower_stepper_sensitivity() const;
505 
511  Glib::PropertyProxy< SensitivityType > property_upper_stepper_sensitivity() ;
512 
518  Glib::PropertyProxy_ReadOnly< SensitivityType > property_upper_stepper_sensitivity() const;
519 
525  Glib::PropertyProxy< bool > property_show_fill_level() ;
526 
532  Glib::PropertyProxy_ReadOnly< bool > property_show_fill_level() const;
533 
539  Glib::PropertyProxy< bool > property_restrict_to_fill_level() ;
540 
546  Glib::PropertyProxy_ReadOnly< bool > property_restrict_to_fill_level() const;
547 
553  Glib::PropertyProxy< double > property_fill_level() ;
554 
560  Glib::PropertyProxy_ReadOnly< double > property_fill_level() const;
561 
562  //gtkmmproc error: round-digits : property defs lookup failed.
563 
564 protected:
565 
566 
567  virtual void get_range_border_vfunc(Gtk::Border* border) const;
568 
569 
570 };
571 
572 } // namespace Gtk
573 
574 
575 namespace Glib
576 {
585  Gtk::Range* wrap(GtkRange* object, bool take_copy = false);
586 } //namespace Glib
587 
588 
589 #endif /* _GTKMM_RANGE_H */
590 
virtual ~Range()
bool get_slider_size_fixed() const
double get_value() const
const GtkRange * gobj() const
Provides access to the underlying C GtkObject.
void set_value(double value)
Glib::PropertyProxy< SensitivityType > property_lower_stepper_sensitivity()
void get_slider_range(int &slider_start, int &slider_end) const
virtual void on_adjust_bounds(double new_value)
This is a default handler for the signal signal_adjust_bounds().
Glib::PropertyProxy< bool > property_restrict_to_fill_level()
virtual void on_value_changed()
This is a default handler for the signal signal_value_changed().
bool get_flippable() const
int get_min_slider_size() const
UpdateType get_update_policy() const
Glib::PropertyProxy< bool > property_inverted()
SensitivityType get_lower_stepper_sensitivity() const
Glib::PropertyProxy< bool > property_show_fill_level()
void set_range(double min, double max)
Glib::PropertyProxy_ReadOnly< SensitivityType > property_upper_stepper_sensitivity() const
Glib::PropertyProxy_ReadOnly< bool > property_show_fill_level() const
SensitivityType get_upper_stepper_sensitivity() const
Glib::SignalProxy1< void, ScrollType > signal_move_slider()
void set_adjustment(Gtk::Adjustment &adjustment)
Glib::PropertyProxy_ReadOnly< double > property_fill_level() const
void set_update_policy(UpdateType policy)
bool get_show_fill_level() const
Glib::PropertyProxy_ReadOnly< UpdateType > property_update_policy() const
Glib::PropertyProxy_ReadOnly< bool > property_restrict_to_fill_level() const
double get_fill_level() const
Gtk::Range * wrap(GtkRange *object, bool take_copy=false)
Gtk::Adjustment * get_adjustment()
Gdk::Rectangle get_range_rect() const
void unset_adjustment()
void set_lower_stepper_sensitivity(SensitivityType sensitivity)
Glib::SignalProxy2< bool, ScrollType, double > signal_change_value()
virtual void on_move_slider(ScrollType scroll)
This is a default handler for the signal signal_move_slider().
void set_fill_level(double fill_level)
Glib::PropertyProxy< double > property_fill_level()
bool get_restrict_to_fill_level() const
bool get_inverted() const
void set_min_slider_size(bool min_size=true)
Glib::PropertyProxy_ReadOnly< Adjustment * > property_adjustment() const
Glib::PropertyProxy_ReadOnly< SensitivityType > property_lower_stepper_sensitivity() const
Glib::PropertyProxy< UpdateType > property_update_policy()
void set_inverted(bool setting=true)
GtkRange * gobj()
Provides access to the underlying C GtkObject.
void set_upper_stepper_sensitivity(SensitivityType sensitivity)
void set_increments(double step, double page)
Glib::SignalProxy0< void > signal_value_changed()
Glib::PropertyProxy_ReadOnly< bool > property_inverted() const
void set_show_fill_level(bool show_fill_level=true)
void set_flippable(bool flippable=true)
virtual void get_range_border_vfunc(Gtk::Border *border) const
Glib::PropertyProxy< Adjustment * > property_adjustment()
Glib::PropertyProxy< SensitivityType > property_upper_stepper_sensitivity()
Glib::SignalProxy1< void, double > signal_adjust_bounds()
const Gtk::Adjustment * get_adjustment() const
void set_restrict_to_fill_level(bool restrict_to_fill_level=true)
void set_slider_size_fixed(bool size_fixed=true)
Definition: ardour_ui.h:188