Ardour  9.0-pre0-582-g084a23a80d
tk/ytkmm/ytkmm/gtkmm/ruler.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RULER_H
4 #define _GTKMM_RULER_H
5 
6 
7 #ifndef GTKMM_DISABLE_DEPRECATED
8 
9 
10 #include <glibmm/ustring.h>
11 #include <sigc++/sigc++.h>
12 
13 /* $Id: ruler.hg,v 1.1 2003/01/21 13:40:35 murrayc Exp $ */
14 
15 /* ruler.h
16  *
17  * Copyright (C) 1998-2002 The gtkmm Development Team
18  *
19  * This library is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU Lesser General Public
21  * License as published by the Free Software Foundation; either
22  * version 2.1 of the License, or (at your option) any later version.
23  *
24  * This library is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27  * Lesser General Public License for more details.
28  *
29  * You should have received a copy of the GNU Lesser General Public
30  * License along with this library; if not, write to the Free
31  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32  */
33 
34 #include <gtkmm/widget.h>
35 
36 
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 typedef struct _GtkRuler GtkRuler;
39 typedef struct _GtkRulerClass GtkRulerClass;
40 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
41 
42 
43 namespace Gtk
44 { class Ruler_Class; } // namespace Gtk
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 typedef struct _GtkVRuler GtkVRuler;
47 typedef struct _GtkVRulerClass GtkVRulerClass;
48 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
49 
50 
51 namespace Gtk
52 { class VRuler_Class; } // namespace Gtk
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 typedef struct _GtkHRuler GtkHRuler;
55 typedef struct _GtkHRulerClass GtkHRulerClass;
56 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
57 
58 
59 namespace Gtk
60 { class HRuler_Class; } // namespace Gtk
61 namespace Gtk
62 {
63 
64 //TODO: Inherit/Implement Orientation when we can break ABI.
65 
80 class Ruler : public Widget
81 {
82  public:
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84  typedef Ruler CppObjectType;
85  typedef Ruler_Class CppClassType;
86  typedef GtkRuler BaseObjectType;
87  typedef GtkRulerClass BaseClassType;
88 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
89 
90  virtual ~Ruler();
91 
92 #ifndef DOXYGEN_SHOULD_SKIP_THIS
93 
94 private:
95  friend class Ruler_Class;
96  static CppClassType ruler_class_;
97 
98  // noncopyable
99  Ruler(const Ruler&);
100  Ruler& operator=(const Ruler&);
101 
102 protected:
103  explicit Ruler(const Glib::ConstructParams& construct_params);
104  explicit Ruler(GtkRuler* castitem);
105 
106 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
107 
108 public:
109 #ifndef DOXYGEN_SHOULD_SKIP_THIS
110  static GType get_type() G_GNUC_CONST;
111 
112 
113  static GType get_base_type() G_GNUC_CONST;
114 #endif
115 
117  GtkRuler* gobj() { return reinterpret_cast<GtkRuler*>(gobject_); }
118 
120  const GtkRuler* gobj() const { return reinterpret_cast<GtkRuler*>(gobject_); }
121 
122 
123 public:
124  //C++ methods used to invoke GTK+ virtual functions:
125 
126 protected:
127  //GTK+ Virtual Functions (override these to change behaviour):
128 
129  //Default Signal Handlers::
130 
131 
132 private:
133 
134 
135 protected:
136  Ruler();
137 
138 public:
139 
140 
147  void set_metric(MetricType metric = PIXELS);
148 
149 
158 
159 #ifndef GTKMM_DISABLE_DEPRECATED
160 
171 #endif // GTKMM_DISABLE_DEPRECATED
172 
173 
174 #ifndef GTKMM_DISABLE_DEPRECATED
175 
176 //TODO: Remove these when we can break ABI:
177 
180  double get_range_lower() const;
181 
184  double get_range_upper() const;
185  #endif // GTKMM_DISABLE_DEPRECATED
186 
187 
194  void set_range(double lower, double upper, double position, double max_size);
195 
208  void get_range(double& lower, double& upper, double& position, double& max_size);
209 
210 
213  void draw_ticks();
214 
215 
218  void draw_pos();
219 
220  virtual void draw_ticks_vfunc();
221 
222  virtual void draw_pos_vfunc();
223 
224 
230  Glib::PropertyProxy< double > property_lower() ;
231 
237  Glib::PropertyProxy_ReadOnly< double > property_lower() const;
238 
244  Glib::PropertyProxy< double > property_upper() ;
245 
251  Glib::PropertyProxy_ReadOnly< double > property_upper() const;
252 
258  Glib::PropertyProxy< double > property_position() ;
259 
265  Glib::PropertyProxy_ReadOnly< double > property_position() const;
266 
272  Glib::PropertyProxy< double > property_max_size() ;
273 
279  Glib::PropertyProxy_ReadOnly< double > property_max_size() const;
280 
286  Glib::PropertyProxy< MetricType > property_metric() ;
287 
293  Glib::PropertyProxy_ReadOnly< MetricType > property_metric() const;
294 
295 
296 };
297 
298 
307 class VRuler : public Ruler
308 {
309  public:
310 #ifndef DOXYGEN_SHOULD_SKIP_THIS
311  typedef VRuler CppObjectType;
312  typedef VRuler_Class CppClassType;
313  typedef GtkVRuler BaseObjectType;
314  typedef GtkVRulerClass BaseClassType;
315 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
316 
317  virtual ~VRuler();
318 
319 #ifndef DOXYGEN_SHOULD_SKIP_THIS
320 
321 private:
322  friend class VRuler_Class;
323  static CppClassType vruler_class_;
324 
325  // noncopyable
326  VRuler(const VRuler&);
327  VRuler& operator=(const VRuler&);
328 
329 protected:
330  explicit VRuler(const Glib::ConstructParams& construct_params);
331  explicit VRuler(GtkVRuler* castitem);
332 
333 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
334 
335 public:
336 #ifndef DOXYGEN_SHOULD_SKIP_THIS
337  static GType get_type() G_GNUC_CONST;
338 
339 
340  static GType get_base_type() G_GNUC_CONST;
341 #endif
342 
344  GtkVRuler* gobj() { return reinterpret_cast<GtkVRuler*>(gobject_); }
345 
347  const GtkVRuler* gobj() const { return reinterpret_cast<GtkVRuler*>(gobject_); }
348 
349 
350 public:
351  //C++ methods used to invoke GTK+ virtual functions:
352 
353 protected:
354  //GTK+ Virtual Functions (override these to change behaviour):
355 
356  //Default Signal Handlers::
357 
358 
359 private:
360 
361 
362 public:
364 
365 
366 };
367 
368 
377 class HRuler : public Ruler
378 {
379  public:
380 #ifndef DOXYGEN_SHOULD_SKIP_THIS
381  typedef HRuler CppObjectType;
382  typedef HRuler_Class CppClassType;
383  typedef GtkHRuler BaseObjectType;
384  typedef GtkHRulerClass BaseClassType;
385 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
386 
387  virtual ~HRuler();
388 
389 #ifndef DOXYGEN_SHOULD_SKIP_THIS
390 
391 private:
392  friend class HRuler_Class;
393  static CppClassType hruler_class_;
394 
395  // noncopyable
396  HRuler(const HRuler&);
397  HRuler& operator=(const HRuler&);
398 
399 protected:
400  explicit HRuler(const Glib::ConstructParams& construct_params);
401  explicit HRuler(GtkHRuler* castitem);
402 
403 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
404 
405 public:
406 #ifndef DOXYGEN_SHOULD_SKIP_THIS
407  static GType get_type() G_GNUC_CONST;
408 
409 
410  static GType get_base_type() G_GNUC_CONST;
411 #endif
412 
414  GtkHRuler* gobj() { return reinterpret_cast<GtkHRuler*>(gobject_); }
415 
417  const GtkHRuler* gobj() const { return reinterpret_cast<GtkHRuler*>(gobject_); }
418 
419 
420 public:
421  //C++ methods used to invoke GTK+ virtual functions:
422 
423 protected:
424  //GTK+ Virtual Functions (override these to change behaviour):
425 
426  //Default Signal Handlers::
427 
428 
429 private:
430 
431 
432 public:
434 
435 
436 };
437 
438 } /* namespace Gtk */
439 
440 
441 namespace Glib
442 {
451  Gtk::Ruler* wrap(GtkRuler* object, bool take_copy = false);
452 } //namespace Glib
453 
454 
455 namespace Glib
456 {
465  Gtk::VRuler* wrap(GtkVRuler* object, bool take_copy = false);
466 } //namespace Glib
467 
468 
469 namespace Glib
470 {
479  Gtk::HRuler* wrap(GtkHRuler* object, bool take_copy = false);
480 } //namespace Glib
481 
482 
483 #endif // GTKMM_DISABLE_DEPRECATED
484 
485 
486 #endif /* _GTKMM_RULER_H */
487 
const GtkHRuler * gobj() const
Provides access to the underlying C GtkObject.
virtual ~HRuler()
GtkHRuler * gobj()
Provides access to the underlying C GtkObject.
Gtk::HRuler * wrap(GtkHRuler *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< double > property_lower() const
double get_range_upper() const
MetricType get_metric() const
Glib::PropertyProxy< double > property_upper()
const GtkRuler * gobj() const
Provides access to the underlying C GtkObject.
virtual ~Ruler()
Glib::PropertyProxy_ReadOnly< MetricType > property_metric() const
void draw_ticks()
Glib::PropertyProxy< MetricType > property_metric()
void set_metric(MetricType metric=PIXELS)
Glib::PropertyProxy< double > property_position()
void draw_pos()
Gtk::Ruler * wrap(GtkRuler *object, bool take_copy=false)
virtual void draw_pos_vfunc()
Glib::PropertyProxy< double > property_max_size()
Glib::PropertyProxy_ReadOnly< double > property_position() const
void get_range(double &lower, double &upper, double &position, double &max_size)
void set_range(double lower, double upper, double position, double max_size)
virtual void draw_ticks_vfunc()
Glib::PropertyProxy< double > property_lower()
GtkRuler * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< double > property_upper() const
Glib::PropertyProxy_ReadOnly< double > property_max_size() const
double get_range_lower() const
MetricType get_metric()
const GtkVRuler * gobj() const
Provides access to the underlying C GtkObject.
virtual ~VRuler()
GtkVRuler * gobj()
Provides access to the underlying C GtkObject.
Gtk::VRuler * wrap(GtkVRuler *object, bool take_copy=false)
Definition: ardour_ui.h:188