Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright (C) 2018 Canonical Ltd. |
3 |
|
|
* |
4 |
|
|
* This program is free software; you can redistribute it and/or |
5 |
|
|
* modify it under the terms of the GNU General Public License as |
6 |
|
|
* published by the Free Software Foundation; either version 2 of the |
7 |
|
|
* License, or (at your option) any later version. |
8 |
|
|
* |
9 |
|
|
* This program is distributed in the hope that it will be useful, but |
10 |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 |
|
|
* Lesser General Public License for more details. |
13 |
|
|
* |
14 |
|
|
* You should have received a copy of the GNU General Public License |
15 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
16 |
|
|
*/ |
17 |
|
|
|
18 |
|
|
#pragma once |
19 |
|
|
|
20 |
|
|
#include <gtk/gtk.h> |
21 |
|
|
#include <pulse/pulseaudio.h> |
22 |
|
|
#include <gvc-mixer-control.h> |
23 |
|
|
#include <gvc-mixer-stream.h> |
24 |
|
|
|
25 |
|
|
#include "cc-sound-enums.h" |
26 |
|
|
|
27 |
|
|
G_BEGIN_DECLS |
28 |
|
|
|
29 |
|
|
#define CC_TYPE_VOLUME_SLIDER (cc_volume_slider_get_type ()) |
30 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcVolumeSlider, cc_volume_slider, CC, VOLUME_SLIDER, GtkWidget) |
31 |
|
|
|
32 |
|
|
void cc_volume_slider_set_mixer_control (CcVolumeSlider *slider, |
33 |
|
|
GvcMixerControl *mixer_control); |
34 |
|
|
|
35 |
|
|
void cc_volume_slider_set_stream (CcVolumeSlider *slider, |
36 |
|
|
GvcMixerStream *stream, |
37 |
|
|
CcStreamType type); |
38 |
|
|
|
39 |
|
|
void cc_volume_slider_set_is_amplified (CcVolumeSlider *slider, |
40 |
|
|
gboolean is_amplified); |
41 |
|
|
|
42 |
|
|
GvcMixerStream *cc_volume_slider_get_stream (CcVolumeSlider *slider); |
43 |
|
|
|
44 |
|
|
G_END_DECLS |
45 |
|
|
|