GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

range.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00024 00025 #ifndef GFC_GTK_RANGE_HH 00026 #define GFC_GTK_RANGE_HH 00027 00028 #ifndef GFC_GTK_WIDGET_HH 00029 #include <gfc/gtk/widget.hh> 00030 #endif 00031 00032 #ifndef __GTK_RANGE_H__ 00033 #include <gtk/gtkrange.h> 00034 #endif 00035 00036 namespace GFC { 00037 00038 namespace Gtk { 00039 00044 00045 class Range : public Widget 00046 { 00047 friend class G::Object; 00048 00049 Range(const Range&); 00050 Range& operator=(const Range&); 00051 00052 protected: 00055 00056 Range(); 00058 00059 explicit Range(GtkRange *range, bool owns_reference = false); 00066 00067 virtual ~Range() = 0; 00069 00072 00073 typedef G::Signal<void> ValueChangedSignalType; 00074 typedef G::SignalProxy<TypeInstance, ValueChangedSignalType> ValueChangedSignalProxy; 00075 static const ValueChangedSignalType value_changed_signal; 00080 00081 typedef G::Signal<void, double> AdjustBoundsSignalType; 00082 typedef G::SignalProxy<TypeInstance, AdjustBoundsSignalType> AdjustBoundsSignalProxy; 00083 static const AdjustBoundsSignalType adjust_bounds_signal; 00089 00091 00092 public: 00095 00096 GtkRange* gtk_range() const; 00098 00099 operator GtkRange* () const; 00101 00102 UpdateType get_policy() const; 00105 00106 Adjustment* get_adjustment() const; 00111 00112 bool get_inverted() const; 00115 00116 double get_value() const; 00118 00122 00123 void set_round_digits(int round_digits); 00125 00126 void set_update_policy(UpdateType policy); 00135 00136 void set_adjustment(Adjustment *adjustment); 00145 00146 void set_inverted(bool setting); 00153 00154 void set_increments(double step, double page); 00161 00162 void set_range(double min, double max); 00168 00169 void set_value(double value); 00175 00179 00180 const ValueChangedSignalProxy sig_value_changed(); 00182 00183 const AdjustBoundsSignalProxy sig_adjust_bounds(); 00186 00188 }; 00189 00190 } // namespace Gtk 00191 00192 } // namespace GFC 00193 00194 #include <gfc/gtk/inline/range.inl> 00195 00196 #endif // GFC_GTK_RANGE_HH 00197

Generated on Tue Aug 24 00:34:31 2004 for GFC-UI by doxygen 1.3.8