1 /* ATK - Accessibility Toolkit
2 * Copyright 2001 Sun Microsystems Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
21 #error "Only <atk/atk.h> can be included directly."
24 #ifndef __ATK_TABLE_H__
25 #define __ATK_TABLE_H__
27 #include <atk/atkobject.h>
31 #define ATK_TYPE_TABLE (atk_table_get_type ())
32 #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE)
33 #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable)
34 #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface))
36 #ifndef _TYPEDEF_ATK_TABLE_
37 #define _TYPEDEF_ATK_TABLE_
38 typedef struct _AtkTable AtkTable;
40 typedef struct _AtkTableIface AtkTableIface;
44 GTypeInterface parent;
46 AtkObject* (* ref_at) (AtkTable *table,
49 gint (* get_index_at) (AtkTable *table,
52 gint (* get_column_at_index) (AtkTable *table,
54 gint (* get_row_at_index) (AtkTable *table,
56 gint (* get_n_columns) (AtkTable *table);
57 gint (* get_n_rows) (AtkTable *table);
58 gint (* get_column_extent_at) (AtkTable *table,
61 gint (* get_row_extent_at) (AtkTable *table,
65 (* get_caption) (AtkTable *table);
66 const gchar* (* get_column_description) (AtkTable *table,
68 AtkObject* (* get_column_header) (AtkTable *table,
70 const gchar* (* get_row_description) (AtkTable *table,
72 AtkObject* (* get_row_header) (AtkTable *table,
74 AtkObject* (* get_summary) (AtkTable *table);
75 void (* set_caption) (AtkTable *table,
77 void (* set_column_description) (AtkTable *table,
79 const gchar *description);
80 void (* set_column_header) (AtkTable *table,
83 void (* set_row_description) (AtkTable *table,
85 const gchar *description);
86 void (* set_row_header) (AtkTable *table,
89 void (* set_summary) (AtkTable *table,
90 AtkObject *accessible);
91 gint (* get_selected_columns) (AtkTable *table,
93 gint (* get_selected_rows) (AtkTable *table,
95 gboolean (* is_column_selected) (AtkTable *table,
97 gboolean (* is_row_selected) (AtkTable *table,
99 gboolean (* is_selected) (AtkTable *table,
102 gboolean (* add_row_selection) (AtkTable *table,
104 gboolean (* remove_row_selection) (AtkTable *table,
106 gboolean (* add_column_selection) (AtkTable *table,
108 gboolean (* remove_column_selection) (AtkTable *table,
114 void (* row_inserted) (AtkTable *table,
117 void (* column_inserted) (AtkTable *table,
120 void (* row_deleted) (AtkTable *table,
123 void (* column_deleted) (AtkTable *table,
126 void (* row_reordered) (AtkTable *table);
127 void (* column_reordered) (AtkTable *table);
128 void (* model_changed) (AtkTable *table);
132 GType atk_table_get_type (void);
135 AtkObject* atk_table_ref_at (AtkTable *table,
138 ATK_DEPRECATED_IN_2_12_FOR(atk_table_ref_at)
139 gint atk_table_get_index_at (AtkTable *table,
142 ATK_DEPRECATED_IN_2_12
143 gint atk_table_get_column_at_index (AtkTable *table,
145 ATK_DEPRECATED_IN_2_12
146 gint atk_table_get_row_at_index (AtkTable *table,
149 gint atk_table_get_n_columns (AtkTable *table);
151 gint atk_table_get_n_rows (AtkTable *table);
153 gint atk_table_get_column_extent_at (AtkTable *table,
157 gint atk_table_get_row_extent_at (AtkTable *table,
162 atk_table_get_caption (AtkTable *table);
164 const gchar* atk_table_get_column_description
168 AtkObject* atk_table_get_column_header (AtkTable *table,
171 const gchar* atk_table_get_row_description (AtkTable *table,
174 AtkObject* atk_table_get_row_header (AtkTable *table,
177 AtkObject* atk_table_get_summary (AtkTable *table);
179 void atk_table_set_caption (AtkTable *table,
182 void atk_table_set_column_description
185 const gchar *description);
187 void atk_table_set_column_header (AtkTable *table,
191 void atk_table_set_row_description (AtkTable *table,
193 const gchar *description);
195 void atk_table_set_row_header (AtkTable *table,
199 void atk_table_set_summary (AtkTable *table,
200 AtkObject *accessible);
202 gint atk_table_get_selected_columns (AtkTable *table,
205 gint atk_table_get_selected_rows (AtkTable *table,
208 gboolean atk_table_is_column_selected (AtkTable *table,
211 gboolean atk_table_is_row_selected (AtkTable *table,
214 gboolean atk_table_is_selected (AtkTable *table,
218 gboolean atk_table_add_row_selection (AtkTable *table,
221 gboolean atk_table_remove_row_selection (AtkTable *table,
224 gboolean atk_table_add_column_selection (AtkTable *table,
227 gboolean atk_table_remove_column_selection
233 #endif /* __ATK_TABLE_H__ */