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 #ifndef __ATK_TABLE_H__
21 #define __ATK_TABLE_H__
23 #include <atk/atkobject.h>
27 #endif /* __cplusplus */
30 * AtkTable describes a user-interface component that presents data in
31 * two-dimensional table format.
35 #define ATK_TYPE_TABLE (atk_table_get_type ())
36 #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE)
37 #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable)
38 #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface))
40 #ifndef _TYPEDEF_ATK_TABLE_
41 #define _TYPEDEF_ATK_TABLE_
42 typedef struct _AtkTable AtkTable
;
44 typedef struct _AtkTableIface AtkTableIface
;
48 GTypeInterface parent
;
50 AtkObject
* (* ref_at
) (AtkTable
*table
,
53 gint (* get_index_at
) (AtkTable
*table
,
56 gint (* get_column_at_index
) (AtkTable
*table
,
58 gint (* get_row_at_index
) (AtkTable
*table
,
60 gint (* get_n_columns
) (AtkTable
*table
);
61 gint (* get_n_rows
) (AtkTable
*table
);
62 gint (* get_column_extent_at
) (AtkTable
*table
,
65 gint (* get_row_extent_at
) (AtkTable
*table
,
69 (* get_caption
) (AtkTable
*table
);
71 (* get_column_description
) (AtkTable
*table
,
73 AtkObject
* (* get_column_header
) (AtkTable
*table
,
76 (* get_row_description
) (AtkTable
*table
,
78 AtkObject
* (* get_row_header
) (AtkTable
*table
,
80 AtkObject
* (* get_summary
) (AtkTable
*table
);
81 void (* set_caption
) (AtkTable
*table
,
82 const gchar
*caption
);
83 void (* set_column_description
) (AtkTable
*table
,
85 const gchar
*description
);
86 void (* set_column_header
) (AtkTable
*table
,
89 void (* set_row_description
) (AtkTable
*table
,
91 const gchar
*description
);
92 void (* set_row_header
) (AtkTable
*table
,
95 void (* set_summary
) (AtkTable
*table
,
96 AtkObject
*accessible
);
97 gint (* get_selected_columns
) (AtkTable
*table
,
99 gint (* get_selected_rows
) (AtkTable
*table
,
101 gboolean (* is_column_selected
) (AtkTable
*table
,
103 gboolean (* is_row_selected
) (AtkTable
*table
,
105 gboolean (* is_selected
) (AtkTable
*table
,
108 gboolean (* add_row_selection
) (AtkTable
*table
,
110 gboolean (* remove_row_selection
) (AtkTable
*table
,
112 gboolean (* add_column_selection
) (AtkTable
*table
,
114 gboolean (* remove_column_selection
) (AtkTable
*table
,
120 void (* row_inserted
) (AtkTable
*table
,
123 void (* column_inserted
) (AtkTable
*table
,
126 void (* row_deleted
) (AtkTable
*table
,
129 void (* column_deleted
) (AtkTable
*table
,
132 void (* row_reordered
) (AtkTable
*table
);
133 void (* column_reordered
) (AtkTable
*table
);
136 GType
atk_table_get_type ();
138 AtkObject
* atk_table_ref_at (AtkTable
*table
,
141 gint
atk_table_get_index_at (AtkTable
*table
,
144 gint
atk_table_get_column_at_index (AtkTable
*table
,
146 gint
atk_table_get_row_at_index (AtkTable
*table
,
148 gint
atk_table_get_n_columns (AtkTable
*table
);
149 gint
atk_table_get_n_rows (AtkTable
*table
);
150 gint
atk_table_get_column_extent_at (AtkTable
*table
,
153 gint
atk_table_get_row_extent_at (AtkTable
*table
,
156 G_CONST_RETURN gchar
*
157 atk_table_get_caption (AtkTable
*table
);
158 G_CONST_RETURN gchar
*
159 atk_table_get_column_description (AtkTable
*table
,
161 AtkObject
* atk_table_get_column_header (AtkTable
*table
,
163 G_CONST_RETURN gchar
*
164 atk_table_get_row_description (AtkTable
*table
,
166 AtkObject
* atk_table_get_row_header (AtkTable
*table
,
168 AtkObject
* atk_table_get_summary (AtkTable
*table
);
169 void atk_table_set_caption (AtkTable
*table
,
170 const gchar
*caption
);
171 void atk_table_set_column_description
174 const gchar
*description
);
175 void atk_table_set_column_header (AtkTable
*table
,
178 void atk_table_set_row_description (AtkTable
*table
,
180 const gchar
*description
);
181 void atk_table_set_row_header (AtkTable
*table
,
184 void atk_table_set_summary (AtkTable
*table
,
185 AtkObject
*accessible
);
186 gint
atk_table_get_selected_columns (AtkTable
*table
,
188 gint
atk_table_get_selected_rows (AtkTable
*table
,
190 gboolean
atk_table_is_column_selected (AtkTable
*table
,
192 gboolean
atk_table_is_row_selected (AtkTable
*table
,
194 gboolean
atk_table_is_selected (AtkTable
*table
,
197 gboolean
atk_table_add_row_selection (AtkTable
*table
,
199 gboolean
atk_table_remove_row_selection (AtkTable
*table
,
201 gboolean
atk_table_add_column_selection (AtkTable
*table
,
203 gboolean atk_table_remove_column_selection
209 #endif /* __cplusplus */
212 #endif /* __ATK_TABLE_H__ */