~ubuntu-branches/ubuntu/precise/gtkmm3.0/precise

« back to all changes in this revision

Viewing changes to gtk/gtkmm/volumebutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-17 00:12:44 UTC
  • Revision ID: james.westby@ubuntu.com-20110617001244-9hl5an15hiaaahi6
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- c++ -*-
 
2
// Generated by gtkmmproc -- DO NOT MODIFY!
 
3
#ifndef _GTKMM_VOLUMEBUTTON_H
 
4
#define _GTKMM_VOLUMEBUTTON_H
 
5
 
 
6
 
 
7
#include <glibmm.h>
 
8
 
 
9
/* $Id: volumebutton.hg,v 1.5 2005/11/30 14:10:49 murrayc Exp $ */
 
10
 
 
11
/* volumebutton.h
 
12
 *
 
13
 * Copyright (C) 2007 The gtkmm Development Team
 
14
 *
 
15
 * This library is free software; you can redistribute it and/or
 
16
 * modify it under the terms of the GNU Lesser General Public
 
17
 * License as published by the Free Software Foundation; either
 
18
 * version 2.1 of the License, or (at your option) any later version.
 
19
 *
 
20
 * This library is distributed in the hope that it will be useful,
 
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
23
 * Lesser General Public License for more details.
 
24
 *
 
25
 * You should have received a copy of the GNU Lesser General Public
 
26
 * License along with this library; if not, write to the Free
 
27
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
28
 */
 
29
 
 
30
#include <gtkmm/scalebutton.h>
 
31
 
 
32
 
 
33
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
34
typedef struct _GtkVolumeButton GtkVolumeButton;
 
35
typedef struct _GtkVolumeButtonClass GtkVolumeButtonClass;
 
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
37
 
 
38
 
 
39
namespace Gtk
 
40
{ class VolumeButton_Class; } // namespace Gtk
 
41
namespace Gtk
 
42
{
 
43
 
 
44
/** A button which pops up a volume control.
 
45
 *
 
46
 * Gtk::VolumeButton is a subclass of Gtk::ScaleButton that has been tailored 
 
47
 * for use as a volume control widget with suitable icons, tooltips and 
 
48
 * accessible labels.
 
49
 *
 
50
 * @ingroup Widgets
 
51
 * @newin{2,12}
 
52
 */
 
53
 
 
54
class VolumeButton : public ScaleButton
 
55
{
 
56
  public:
 
57
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
58
  typedef VolumeButton CppObjectType;
 
59
  typedef VolumeButton_Class CppClassType;
 
60
  typedef GtkVolumeButton BaseObjectType;
 
61
  typedef GtkVolumeButtonClass BaseClassType;
 
62
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
63
 
 
64
  virtual ~VolumeButton();
 
65
 
 
66
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
67
 
 
68
private:
 
69
  friend class VolumeButton_Class;
 
70
  static CppClassType volumebutton_class_;
 
71
 
 
72
  // noncopyable
 
73
  VolumeButton(const VolumeButton&);
 
74
  VolumeButton& operator=(const VolumeButton&);
 
75
 
 
76
protected:
 
77
  explicit VolumeButton(const Glib::ConstructParams& construct_params);
 
78
  explicit VolumeButton(GtkVolumeButton* castitem);
 
79
 
 
80
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
81
 
 
82
public:
 
83
#ifndef DOXYGEN_SHOULD_SKIP_THIS
 
84
  static GType get_type()      G_GNUC_CONST;
 
85
 
 
86
 
 
87
  static GType get_base_type() G_GNUC_CONST;
 
88
#endif
 
89
 
 
90
  ///Provides access to the underlying C GtkObject.
 
91
  GtkVolumeButton*       gobj()       { return reinterpret_cast<GtkVolumeButton*>(gobject_); }
 
92
 
 
93
  ///Provides access to the underlying C GtkObject.
 
94
  const GtkVolumeButton* gobj() const { return reinterpret_cast<GtkVolumeButton*>(gobject_); }
 
95
 
 
96
 
 
97
public:
 
98
  //C++ methods used to invoke GTK+ virtual functions:
 
99
 
 
100
protected:
 
101
  //GTK+ Virtual Functions (override these to change behaviour):
 
102
 
 
103
  //Default Signal Handlers::
 
104
 
 
105
 
 
106
private:
 
107
 
 
108
public:
 
109
 
 
110
  /** Creates a olumeButton, with a range between 0 and 100, with
 
111
   * a stepping of 2. Volume values can be obtained and modified using
 
112
   * the methods from the ScaleButton base class.
 
113
   */
 
114
  VolumeButton();
 
115
  
 
116
 
 
117
};
 
118
 
 
119
 
 
120
} // namespace Gtk
 
121
 
 
122
 
 
123
namespace Glib
 
124
{
 
125
  /** A Glib::wrap() method for this object.
 
126
   * 
 
127
   * @param object The C instance.
 
128
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
 
129
   * @result A C++ instance that wraps this C instance.
 
130
   *
 
131
   * @relates Gtk::VolumeButton
 
132
   */
 
133
  Gtk::VolumeButton* wrap(GtkVolumeButton* object, bool take_copy = false);
 
134
} //namespace Glib
 
135
 
 
136
 
 
137
#endif /* _GTKMM_VOLUMEBUTTON_H */
 
138