Ardour  9.0-pre0-384-ga76afae0e9
tk/ytkmm/ytkmm/gtkmm/scale.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_SCALE_H
4 #define _GTKMM_SCALE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: scale.hg,v 1.7 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* scale.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/range.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkScale GtkScale;
36 typedef struct _GtkScaleClass GtkScaleClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Scale_Class; } // namespace Gtk
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 typedef struct _GtkVScale GtkVScale;
44 typedef struct _GtkVScaleClass GtkVScaleClass;
45 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
46 
47 
48 namespace Gtk
49 { class VScale_Class; } // namespace Gtk
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 typedef struct _GtkHScale GtkHScale;
52 typedef struct _GtkHScaleClass GtkHScaleClass;
53 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
54 
55 
56 namespace Gtk
57 { class HScale_Class; } // namespace Gtk
58 namespace Gtk
59 {
60 
76 class Scale : public Range
77 {
78  public:
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80  typedef Scale CppObjectType;
81  typedef Scale_Class CppClassType;
82  typedef GtkScale BaseObjectType;
83  typedef GtkScaleClass BaseClassType;
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 
86  virtual ~Scale();
87 
88 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89 
90 private:
91  friend class Scale_Class;
92  static CppClassType scale_class_;
93 
94  // noncopyable
95  Scale(const Scale&);
96  Scale& operator=(const Scale&);
97 
98 protected:
99  explicit Scale(const Glib::ConstructParams& construct_params);
100  explicit Scale(GtkScale* castitem);
101 
102 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
103 
104 public:
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
106  static GType get_type() G_GNUC_CONST;
107 
108 
109  static GType get_base_type() G_GNUC_CONST;
110 #endif
111 
113  GtkScale* gobj() { return reinterpret_cast<GtkScale*>(gobject_); }
114 
116  const GtkScale* gobj() const { return reinterpret_cast<GtkScale*>(gobject_); }
117 
118 
119 public:
120  //C++ methods used to invoke GTK+ virtual functions:
121 
122 protected:
123  //GTK+ Virtual Functions (override these to change behaviour):
124 
125  //Default Signal Handlers::
127  virtual Glib::ustring on_format_value(double value);
128 
129 
130 private:
131 
132 protected:
133  Scale();
134 public:
135 
136 
143  void set_digits(int digits);
144 
145 
148  int get_digits() const;
149 
150 
153  void set_draw_value(bool draw_value = true);
154 
155 
158  bool get_draw_value() const;
159 
160 
164 
165 
169 
170 
178  Glib::RefPtr<Pango::Layout> get_layout();
179 
187  Glib::RefPtr<const Pango::Layout> get_layout() const;
188 
200  void get_layout_offsets(int& x, int& y) const;
201 
202 
221  void add_mark(double value, PositionType position, const Glib::ustring& markup);
222 
225  void clear_marks();
226 
227 
239  Glib::SignalProxy1< Glib::ustring,double > signal_format_value();
240 
241  // TODO: When we can break ABI, this signal needs to be
242  // Glib::ustring format_value(double value, bool& use_default_formatting),
243  // where use_default_formatting specifies whether the return value will actually be a null char*.
244 
252  Glib::PropertyProxy< int > property_digits() ;
253 
259  Glib::PropertyProxy_ReadOnly< int > property_digits() const;
260 
261 
269  Glib::PropertyProxy< bool > property_draw_value() ;
270 
276  Glib::PropertyProxy_ReadOnly< bool > property_draw_value() const;
277 
278 
286  Glib::PropertyProxy< PositionType > property_value_pos() ;
287 
293  Glib::PropertyProxy_ReadOnly< PositionType > property_value_pos() const;
294 
295 
296 protected:
297 
298  virtual void draw_value_vfunc();
299 
300 
301  virtual int calc_digits_(double step) const;
302 
303 
304 };
305 
315 class VScale : public Scale
316 {
317  public:
318 #ifndef DOXYGEN_SHOULD_SKIP_THIS
319  typedef VScale CppObjectType;
320  typedef VScale_Class CppClassType;
321  typedef GtkVScale BaseObjectType;
322  typedef GtkVScaleClass BaseClassType;
323 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
324 
325  virtual ~VScale();
326 
327 #ifndef DOXYGEN_SHOULD_SKIP_THIS
328 
329 private:
330  friend class VScale_Class;
331  static CppClassType vscale_class_;
332 
333  // noncopyable
334  VScale(const VScale&);
335  VScale& operator=(const VScale&);
336 
337 protected:
338  explicit VScale(const Glib::ConstructParams& construct_params);
339  explicit VScale(GtkVScale* castitem);
340 
341 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
342 
343 public:
344 #ifndef DOXYGEN_SHOULD_SKIP_THIS
345  static GType get_type() G_GNUC_CONST;
346 
347 
348  static GType get_base_type() G_GNUC_CONST;
349 #endif
350 
352  GtkVScale* gobj() { return reinterpret_cast<GtkVScale*>(gobject_); }
353 
355  const GtkVScale* gobj() const { return reinterpret_cast<GtkVScale*>(gobject_); }
356 
357 
358 public:
359  //C++ methods used to invoke GTK+ virtual functions:
360 
361 protected:
362  //GTK+ Virtual Functions (override these to change behaviour):
363 
364  //Default Signal Handlers::
365 
366 
367 private:
368 
369 public:
371 
377  VScale(double min, double max, double step);
378  explicit VScale(Adjustment& adjustment);
379 
380 
381 };
382 
392 class HScale : public Scale
393 {
394  public:
395 #ifndef DOXYGEN_SHOULD_SKIP_THIS
396  typedef HScale CppObjectType;
397  typedef HScale_Class CppClassType;
398  typedef GtkHScale BaseObjectType;
399  typedef GtkHScaleClass BaseClassType;
400 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
401 
402  virtual ~HScale();
403 
404 #ifndef DOXYGEN_SHOULD_SKIP_THIS
405 
406 private:
407  friend class HScale_Class;
408  static CppClassType hscale_class_;
409 
410  // noncopyable
411  HScale(const HScale&);
412  HScale& operator=(const HScale&);
413 
414 protected:
415  explicit HScale(const Glib::ConstructParams& construct_params);
416  explicit HScale(GtkHScale* castitem);
417 
418 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
419 
420 public:
421 #ifndef DOXYGEN_SHOULD_SKIP_THIS
422  static GType get_type() G_GNUC_CONST;
423 
424 
425  static GType get_base_type() G_GNUC_CONST;
426 #endif
427 
429  GtkHScale* gobj() { return reinterpret_cast<GtkHScale*>(gobject_); }
430 
432  const GtkHScale* gobj() const { return reinterpret_cast<GtkHScale*>(gobject_); }
433 
434 
435 public:
436  //C++ methods used to invoke GTK+ virtual functions:
437 
438 protected:
439  //GTK+ Virtual Functions (override these to change behaviour):
440 
441  //Default Signal Handlers::
442 
443 
444 private:
445 
446 public:
453  HScale(double min, double max, double step);
454  explicit HScale(Adjustment& adjustment);
455 
456 
457 };
458 
459 } /* namespace Gtk */
460 
461 
462 namespace Glib
463 {
472  Gtk::Scale* wrap(GtkScale* object, bool take_copy = false);
473 } //namespace Glib
474 
475 
476 namespace Glib
477 {
486  Gtk::VScale* wrap(GtkVScale* object, bool take_copy = false);
487 } //namespace Glib
488 
489 
490 namespace Glib
491 {
500  Gtk::HScale* wrap(GtkHScale* object, bool take_copy = false);
501 } //namespace Glib
502 
503 
504 #endif /* _GTKMM_SCALE_H */
505 
virtual ~HScale()
const GtkHScale * gobj() const
Provides access to the underlying C GtkObject.
Gtk::HScale * wrap(GtkHScale *object, bool take_copy=false)
HScale(Adjustment &adjustment)
HScale(double min, double max, double step)
GtkHScale * gobj()
Provides access to the underlying C GtkObject.
Glib::RefPtr< const Pango::Layout > get_layout() const
int get_digits() const
virtual void draw_value_vfunc()
const GtkScale * gobj() const
Provides access to the underlying C GtkObject.
void add_mark(double value, PositionType position, const Glib::ustring &markup)
void set_draw_value(bool draw_value=true)
Glib::PropertyProxy_ReadOnly< PositionType > property_value_pos() const
virtual ~Scale()
virtual Glib::ustring on_format_value(double value)
This is a default handler for the signal signal_format_value().
Glib::PropertyProxy< bool > property_draw_value()
void get_layout_offsets(int &x, int &y) const
Glib::PropertyProxy< int > property_digits()
void set_digits(int digits)
Glib::PropertyProxy_ReadOnly< int > property_digits() const
bool get_draw_value() const
Glib::SignalProxy1< Glib::ustring, double > signal_format_value()
void clear_marks()
PositionType get_value_pos() const
void set_value_pos(PositionType pos)
Glib::PropertyProxy_ReadOnly< bool > property_draw_value() const
Glib::RefPtr< Pango::Layout > get_layout()
virtual int calc_digits_(double step) const
Glib::PropertyProxy< PositionType > property_value_pos()
Gtk::Scale * wrap(GtkScale *object, bool take_copy=false)
GtkScale * gobj()
Provides access to the underlying C GtkObject.
VScale(Adjustment &adjustment)
virtual ~VScale()
Gtk::VScale * wrap(GtkVScale *object, bool take_copy=false)
GtkVScale * gobj()
Provides access to the underlying C GtkObject.
VScale(double min, double max, double step)
const GtkVScale * gobj() const
Provides access to the underlying C GtkObject.
Definition: ardour_ui.h:187