fb18d57dbc9bf13851ef8fd0b203ec71d3beec17
[platform/upstream/at-spi2-core.git] / atspi / atspi-table.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2002 Ximian, Inc.
6  *           2002 Sun Microsystems Inc.
7  *           
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24
25 #ifndef _ATSPI_TABLE_H_
26 #define _ATSPI_TABLE_H_
27
28 #include "glib-object.h"
29
30 #include "atspi-constants.h"
31
32 #include "atspi-types.h"
33
34 #define ATSPI_TYPE_TABLE                    (atspi_table_get_type ())
35 #define ATSPI_IS_TABLE(obj)                 G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_TABLE)
36 #define ATSPI_TABLE(obj)                    G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_TABLE, AtspiTable)
37 #define ATSPI_TABLE_GET_IFACE(obj)          (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATSPI_TYPE_TABLE, AtspiTable))
38
39 GType atspi_table_get_type ();
40
41 struct _AtspiTable
42 {
43   GTypeInterface parent;
44 };
45
46 AtspiAccessible * atspi_table_get_caption (AtspiTable *obj, GError **error);
47
48 AtspiAccessible * atspi_table_get_summary (AtspiTable *obj, GError **error);
49
50 gint atspi_table_get_n_rows (AtspiTable *obj, GError **error);
51
52 gint atspi_table_get_n_columns (AtspiTable *obj, GError **error);
53
54 AtspiAccessible * atspi_table_get_accessible_at (AtspiTable *obj, gint row, gint column, GError **error);
55
56 gint atspi_table_get_index_at (AtspiTable *obj, gint row, gint column, GError **error);
57
58 gint atspi_table_get_row_at_index (AtspiTable *obj, gint index, GError **error);
59
60 gint atspi_table_get_column_at_index (AtspiTable *obj, gint index, GError **error);
61
62 gchar * atspi_table_get_row_description (AtspiTable *obj, gint row, GError **error);
63
64 gchar * atspi_table_get_column_description (AtspiTable *obj, gint         column, GError **error);
65
66 gint
67 atspi_table_get_row_extent_at (AtspiTable *obj, gint row, gint column, GError **error);
68
69 gint
70 atspi_table_get_column_extent_at (AtspiTable *obj, gint row, gint column, GError **error);
71
72 AtspiAccessible * atspi_table_get_row_header (AtspiTable *obj, gint row, GError **error);
73
74 AtspiAccessible * atspi_table_get_column_header (AtspiTable *obj, gint column, GError **error);
75
76 gint atspi_table_get_n_selected_rows (AtspiTable *obj, GError **error);
77
78 GArray *atspi_table_get_selected_rows (AtspiTable *obj, GError **error);
79
80 GArray * atspi_table_get_selected_columns (AtspiTable *obj, GError **error);
81
82 gint atspi_table_get_n_selected_columns (AtspiTable *obj, GError **error);
83
84 gboolean atspi_table_is_row_selected (AtspiTable *obj, gint row, GError **error);
85
86 gboolean atspi_table_is_column_selected (AtspiTable *obj, gint column, GError **error);
87
88 gboolean atspi_table_add_row_selection (AtspiTable *obj, gint row, GError **error);
89
90 gboolean atspi_table_add_column_selection (AtspiTable *obj, gint column, GError **error);
91
92 gboolean atspi_table_remove_row_selection (AtspiTable *obj, gint row, GError **error);
93
94 gboolean atspi_table_remove_column_selection (AtspiTable *obj, gint column, GError **error);
95
96 gboolean atspi_table_get_row_column_extents_at_index (AtspiTable *obj, gint index, gint *row, gint *col, gint *row_extents, gint *col_extents, gboolean *is_selected, GError **error);
97
98 gboolean atspi_table_is_selected (AtspiTable *obj, gint row, gint column, GError **error);
99
100 #endif  /* _ATSPI_TABLE_H_ */