Line |
Branch |
Exec |
Source |
1 |
|
|
/* cc-brightness-scale.h |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2020 System76, Inc. |
4 |
|
|
* |
5 |
|
|
* This program is free software; you can redistribute it and/or modify |
6 |
|
|
* it under the terms of the GNU General Public License as published by |
7 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program is distributed in the hope that it will be useful, |
11 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
17 |
|
|
* |
18 |
|
|
* SPDX-License-Identifier: GPL-2.0-or-later |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#pragma once |
22 |
|
|
|
23 |
|
|
#include <gtk/gtk.h> |
24 |
|
|
#include <libupower-glib/upower.h> |
25 |
|
|
|
26 |
|
|
G_BEGIN_DECLS |
27 |
|
|
|
28 |
|
|
#define CC_TYPE_BATTERY_ROW (cc_battery_row_get_type()) |
29 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcBatteryRow, cc_battery_row, CC, BATTERY_ROW, GtkListBoxRow) |
30 |
|
|
|
31 |
|
|
CcBatteryRow* cc_battery_row_new (UpDevice *device, |
32 |
|
|
gboolean primary); |
33 |
|
|
|
34 |
|
|
gboolean cc_battery_row_get_primary (CcBatteryRow *row); |
35 |
|
|
UpDeviceKind cc_battery_row_get_kind (CcBatteryRow *row); |
36 |
|
|
|
37 |
|
|
G_END_DECLS |
38 |
|
|
|