1 /*
2  * Copyright © 2018 Red Hat, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU 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  * Author: Carlos Garnacho <carlosg@gnome.org>
18  */
19 
20 #pragma once
21 
22 #include <glib.h>
23 #include <gtk/gtk.h>
24 
25 G_BEGIN_DECLS
26 
27 #define CC_TYPE_CLOCK (cc_clock_get_type ())
28 
29 G_DECLARE_FINAL_TYPE (CcClock, cc_clock, CC, CLOCK, GtkWidget)
30 
31 GtkWidget * cc_clock_new          (guint duration);
32 
33 void        cc_clock_reset        (CcClock *clock);
34 
35 void        cc_clock_set_duration (CcClock *clock,
36                                    guint    duration);
37 guint       cc_clock_get_duration (CcClock *clock);
38 
39 GType       cc_clock_get_type     (void);
40 
41 G_END_DECLS
42