2.34.1
[platform/upstream/at-spi2-atk.git] / tests / dummyatk / my-atk-table.h
1 /*
2  * Copyright 2008 Codethink Ltd.
3  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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.1 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 Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #ifndef MY_ATK_TABLE_H_
22 #define MY_ATK_TABLE_H_
23
24 #include <glib.h>
25 #include <glib-object.h>
26 #include <atk/atk.h>
27
28 #include "my-atk-object.h"
29 #define MY_TYPE_ATK_TABLE             (my_atk_table_get_type ())
30 #define MY_ATK_TABLE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), MY_TYPE_ATK_TABLE, MyAtkTable))
31 #define MY_ATK_TABLE_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), MY_TYPE_ATK_TABLE, MyAtkTableClass))
32 #define MY_IS_ATK_TABLE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MY_TYPE_ATK_TABLE))
33 #define MY_IS_ATK_TABLE_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), MY_TYPE_ATK_TABLE))
34 #define MY_ATK_TABLE_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), MY_TYPE_ATK_TABLE, MyAtkTableClass))
35
36 typedef struct _MyAtkTable MyAtkTable;
37 typedef struct _MyAtkTableClass MyAtkTableClass;
38
39 struct _MyAtkTable {
40   MyAtkObject parent;
41   MyAtkTable *parent_table;
42   GPtrArray *table;
43   GPtrArray *column_headers;
44   GPtrArray *row_headers;
45   GPtrArray *row_header;
46   gchar *col_desc;
47   gboolean selected;
48 };
49
50 struct _MyAtkTableClass {
51   MyAtkObjectClass parent;
52 };
53
54 GType my_atk_table_get_type (void);
55
56 guint my_atk_set_table (AtkTable *obj,
57                         gchar *col_header,
58                         gchar *row_header,
59                         gchar *col_desc,
60                         gchar* row_desc,
61                         gchar *value,
62                         gboolean selected,
63                         gboolean selected_col);
64
65 AtkObject*
66 test_get_cell_from_table (AtkTable *obj, gint row);
67
68 #endif /* MY_ATK_TABLE_H_ */