1 /* vi:set sw=2 sts=2 ts=2 et ai tw=100: */
2 /*-
3  * Copyright (c) 2017 Viktor Odintsev <zakhams@gmail.com>
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 (at
8  * your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * 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, write to the Free Software
17  * Foundation, Inc., Inc., 51 Franklin Street, Fifth Floor, Boston,
18  * MA 02110-1301, USA.
19  */
20 
21 #ifndef __RANGE_DEBOUNCER_H__
22 #define __RANGE_DEBOUNCER_H__
23 
24 #include <gtk/gtk.h>
25 
26 G_BEGIN_DECLS
27 
28 typedef struct _RangeDebouncerClass      RangeDebouncerClass;
29 typedef struct _RangeDebouncer           RangeDebouncer;
30 
31 #define TYPE_RANGE_DEBOUNCER             (range_debouncer_get_type ())
32 #define RANGE_DEBOUNCER(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RANGE_DEBOUNCER, RangeDebouncer))
33 #define RANGE_DEBOUNCER_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass),  TYPE_RANGE_DEBOUNCER, RangeDebouncerClass))
34 #define IS_RANGE_DEBOUNCER(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RANGE_DEBOUNCER))
35 #define IS_RANGE_DEBOUNCER_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass),  TYPE_RANGE_DEBOUNCER))
36 #define RANGE_DEBOUNCER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj),  TYPE_RANGE_DEBOUNCER, RangeDebouncerClass))
37 
38 GType                     range_debouncer_get_type                 (void)                           G_GNUC_CONST;
39 
40 RangeDebouncer *          range_debouncer_bind                     (GtkRange          *range);
41 
42 G_END_DECLS
43 
44 #endif /* __RANGE_DEBOUNCER_H__ */
45