2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GTKMM_VOLUMEBUTTON_H
4
#define _GTKMM_VOLUMEBUTTON_H
9
/* $Id: volumebutton.hg,v 1.5 2005/11/30 14:10:49 murrayc Exp $ */
13
* Copyright (C) 2007 The gtkmm Development Team
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.
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.
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.
30
#include <gtkmm/scalebutton.h>
33
#ifndef DOXYGEN_SHOULD_SKIP_THIS
34
typedef struct _GtkVolumeButton GtkVolumeButton;
35
typedef struct _GtkVolumeButtonClass GtkVolumeButtonClass;
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
40
{ class VolumeButton_Class; } // namespace Gtk
44
/** A button which pops up a volume control.
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
54
class VolumeButton : public ScaleButton
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 */
64
virtual ~VolumeButton();
66
#ifndef DOXYGEN_SHOULD_SKIP_THIS
69
friend class VolumeButton_Class;
70
static CppClassType volumebutton_class_;
73
VolumeButton(const VolumeButton&);
74
VolumeButton& operator=(const VolumeButton&);
77
explicit VolumeButton(const Glib::ConstructParams& construct_params);
78
explicit VolumeButton(GtkVolumeButton* castitem);
80
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
83
#ifndef DOXYGEN_SHOULD_SKIP_THIS
84
static GType get_type() G_GNUC_CONST;
87
static GType get_base_type() G_GNUC_CONST;
90
///Provides access to the underlying C GtkObject.
91
GtkVolumeButton* gobj() { return reinterpret_cast<GtkVolumeButton*>(gobject_); }
93
///Provides access to the underlying C GtkObject.
94
const GtkVolumeButton* gobj() const { return reinterpret_cast<GtkVolumeButton*>(gobject_); }
98
//C++ methods used to invoke GTK+ virtual functions:
101
//GTK+ Virtual Functions (override these to change behaviour):
103
//Default Signal Handlers::
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.
125
/** A Glib::wrap() method for this object.
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.
131
* @relates Gtk::VolumeButton
133
Gtk::VolumeButton* wrap(GtkVolumeButton* object, bool take_copy = false);
137
#endif /* _GTKMM_VOLUMEBUTTON_H */