| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
// To exclude this file from the documentation when build-deprecated-api=false. |
| 18 |
_CONFIGINCLUDE(gtkmmconfig.h) |
| 19 |
|
| 20 |
#include <gtkmm/scale.h> |
| 21 |
_DEFS(gtkmm,gtk) |
| 22 |
|
| 23 |
_PINCLUDE(gtkmm/private/scale_p.h) |
| 24 |
|
| 25 |
#m4 _PUSH(SECTION_CC_PRE_INCLUDES) |
| 26 |
#undef GTK_DISABLE_DEPRECATED |
| 27 |
#define GDK_DISABLE_DEPRECATION_WARNINGS 1 |
| 28 |
#m4 _POP() |
| 29 |
|
| 30 |
namespace Gtk |
| 31 |
{ |
| 32 |
|
| 33 |
/** A vertical slider for selecting values. |
| 34 |
* |
| 35 |
* The Gtk::VScale widget is used to allow the user to select a value using a |
| 36 |
* vertical slider. See the Gtk::Scale documentation for more information |
| 37 |
* on how to use a Gtk::VScale. |
| 38 |
* |
| 39 |
* A VScale widget looks like this: |
| 40 |
* @image html vscale1.png |
| 41 |
* |
| 42 |
* @ingroup Widgets |
| 43 |
* |
| 44 |
* @deprecated Use Scale instead. |
| 45 |
*/ |
| 46 |
class GTKMM_API VScale : public Scale |
| 47 |
{ |
| 48 |
_CLASS_GTKOBJECT(VScale,GtkVScale,GTK_VSCALE,Gtk::Scale,GtkScale,,,GTKMM_API) |
| 49 |
_IS_DEPRECATED |
| 50 |
public: |
| 51 |
VScale(); |
| 52 |
|
| 53 |
/** |
| 54 |
* Construct a VScale with the given minimum and maximum. The step size is the |
| 55 |
* distance the slider moves when the arrow keys are used to adjust the scale |
| 56 |
* value. |
| 57 |
*/ |
| 58 |
VScale(double min, double max, double step); |
| 59 |
explicit VScale(const Glib::RefPtr<Adjustment>& adjustment); |
| 60 |
|
| 61 |
}; |
| 62 |
|
| 63 |
/** A horizontal slider for selecting values. |
| 64 |
* |
| 65 |
* The Gtk::HScale widget is used to allow the user to select a value using a |
| 66 |
* horizontal slider. See the Gtk::Scale documentation for more information |
| 67 |
* on how to use a Gtk::HScale. |
| 68 |
* |
| 69 |
* The HScale widget looks like this: |
| 70 |
* @image html hscale1.png |
| 71 |
* |
| 72 |
* @ingroup Widgets |
| 73 |
* |
| 74 |
* @deprecated Use Scale instead. |
| 75 |
*/ |
| 76 |
class GTKMM_API HScale : public Scale |
| 77 |
{ |
| 78 |
_CLASS_GTKOBJECT(HScale,GtkHScale,GTK_HSCALE,Gtk::Scale,GtkScale,,,GTKMM_API) |
| 79 |
_IS_DEPRECATED |
| 80 |
public: |
| 81 |
HScale(); |
| 82 |
/** |
| 83 |
* Construct a HScale with the given minimum and maximum. The step size is the |
| 84 |
* distance the slider moves when the arrow keys are used to adjust the scale |
| 85 |
* value. |
| 86 |
*/ |
| 87 |
HScale(double min, double max, double step); |
| 88 |
explicit HScale(const Glib::RefPtr<Adjustment>& adjustment); |
| 89 |
|
| 90 |
}; |
| 91 |
|
| 92 |
} //namespace Gtk |