Revert "Merge remote-tracking branch 'origin/sandbox/mniesluchow/upstream_2_16' into...
[platform/upstream/atk.git] / atk / atkrange.h
1 /* ATK -  Accessibility Toolkit
2  * Copyright 2014 Igalia S.L.
3  *
4  * Author: Alejandro PiƱeiro Iglesias <apinheiro@igalia.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
22 #error "Only <atk/atk.h> can be included directly."
23 #endif
24
25 #ifndef __ATK_RANGE_H__
26 #define __ATK_RANGE_H__
27
28 #include <glib-object.h>
29
30 G_BEGIN_DECLS
31
32 #define ATK_TYPE_RANGE         (atk_range_get_type ())
33
34 typedef struct _AtkRange AtkRange;
35
36 /* AtkRange methods */
37 GType atk_range_get_type (void);
38
39 AtkRange*    atk_range_copy (AtkRange *src);
40 void         atk_range_free (AtkRange *range);
41
42 gdouble      atk_range_get_lower_limit  (AtkRange    *range);
43 gdouble      atk_range_get_upper_limit  (AtkRange    *range);
44 const gchar* atk_range_get_description  (AtkRange    *range);
45 AtkRange*    atk_range_new              (gdouble      lower_limit,
46                                          gdouble      upper_limit,
47                                          const gchar *description);
48
49 G_END_DECLS
50
51 #endif /* __ATK_RANGE_H__ */