Debian Codegraph @

gtk/src/volumebutton.hg

raw
1 /* Copyright (C) 2007 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/scalebutton.h>
18 _DEFS(gtkmm,gtk)
19 _PINCLUDE(gtkmm/private/scalebutton_p.h)
20
21
22 namespace Gtk
23 {
24
25 /** A button which pops up a volume control.
26 *
27 * Gtk::VolumeButton is a subclass of Gtk::ScaleButton that has been tailored
28 * for use as a volume control widget with suitable icons, tooltips and
29 * accessible labels.
30 *
31 * @ingroup Widgets
32 * @newin{2,12}
33 */
34 class GTKMM_API VolumeButton : public ScaleButton
35 {
36 _CLASS_GTKOBJECT(VolumeButton, GtkVolumeButton, GTK_VOLUME_BUTTON, Gtk::ScaleButton, GtkScaleButton, , , GTKMM_API)
37 public:
38
39 /** Creates a VolumeButton, with a range between 0 and 100, with
40 * a stepping of 2. Volume values can be obtained and modified using
41 * the methods from the ScaleButton base class.
42 */
43 _CTOR_DEFAULT()
44 _IGNORE(gtk_volume_button_new)
45 };
46
47 } // namespace Gtk