Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 : : /*
3 : : * Copyright 2024 GNOME Foundation, Inc.
4 : : *
5 : : * This library is free software; you can redistribute it and/or
6 : : * modify it under the terms of the GNU Lesser General Public
7 : : * License as published by the Free Software Foundation; either
8 : : * version 2 of the License, or (at your option) any later version.
9 : : *
10 : : * This library 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 GNU
13 : : * Lesser General Public License for more details.
14 : : *
15 : : * You should have received a copy of the GNU Lesser General
16 : : * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 : : *
18 : : * Authors:
19 : : * - Philip Withnall <pwithnall@gnome.org>
20 : : *
21 : : * SPDX-License-Identifier: GPL-3.0-or-later
22 : : */
23 : :
24 : : #pragma once
25 : :
26 : : #include <glib-object.h>
27 : : #include <gtk/gtk.h>
28 : :
29 : : G_BEGIN_DECLS
30 : :
31 : : #define CC_TYPE_BAR_CHART_BAR (cc_bar_chart_bar_get_type())
32 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (CcBarChartBar, cc_bar_chart_bar, CC, BAR_CHART_BAR, GtkWidget)
# # ]
33 : :
34 : : CcBarChartBar *cc_bar_chart_bar_new (double value,
35 : : const char *accessible_description);
36 : :
37 : : double cc_bar_chart_bar_get_value (CcBarChartBar *self);
38 : : void cc_bar_chart_bar_set_value (CcBarChartBar *self,
39 : : double value);
40 : :
41 : : const char *cc_bar_chart_bar_get_accessible_description (CcBarChartBar *self);
42 : : void cc_bar_chart_bar_set_accessible_description (CcBarChartBar *self,
43 : : const char *accessible_description);
44 : :
45 : : G_END_DECLS
|