michael@0: /* ATK - Accessibility Toolkit michael@0: * Copyright 2001 Sun Microsystems Inc. michael@0: * michael@0: * This library is free software; you can redistribute it and/or michael@0: * modify it under the terms of the GNU Library General Public michael@0: * License as published by the Free Software Foundation; either michael@0: * version 2 of the License, or (at your option) any later version. michael@0: * michael@0: * This library is distributed in the hope that it will be useful, michael@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of michael@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU michael@0: * Library General Public License for more details. michael@0: * michael@0: * You should have received a copy of the GNU Library General Public michael@0: * License along with this library; if not, write to the michael@0: * Free Software Foundation, Inc., 59 Temple Place - Suite 330, michael@0: * Boston, MA 02111-1307, USA. michael@0: */ michael@0: michael@0: #ifndef __ATK_TABLE_H__ michael@0: #define __ATK_TABLE_H__ michael@0: michael@0: #include michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif /* __cplusplus */ michael@0: michael@0: /* michael@0: * AtkTable describes a user-interface component that presents data in michael@0: * two-dimensional table format. michael@0: */ michael@0: michael@0: michael@0: #define ATK_TYPE_TABLE (atk_table_get_type ()) michael@0: #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE) michael@0: #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable) michael@0: #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface)) michael@0: michael@0: #ifndef _TYPEDEF_ATK_TABLE_ michael@0: #define _TYPEDEF_ATK_TABLE_ michael@0: typedef struct _AtkTable AtkTable; michael@0: #endif michael@0: typedef struct _AtkTableIface AtkTableIface; michael@0: michael@0: struct _AtkTableIface michael@0: { michael@0: GTypeInterface parent; michael@0: michael@0: AtkObject* (* ref_at) (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint (* get_index_at) (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint (* get_column_at_index) (AtkTable *table, michael@0: gint index_); michael@0: gint (* get_row_at_index) (AtkTable *table, michael@0: gint index_); michael@0: gint (* get_n_columns) (AtkTable *table); michael@0: gint (* get_n_rows) (AtkTable *table); michael@0: gint (* get_column_extent_at) (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint (* get_row_extent_at) (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: AtkObject* michael@0: (* get_caption) (AtkTable *table); michael@0: G_CONST_RETURN gchar* michael@0: (* get_column_description) (AtkTable *table, michael@0: gint column); michael@0: AtkObject* (* get_column_header) (AtkTable *table, michael@0: gint column); michael@0: G_CONST_RETURN gchar* michael@0: (* get_row_description) (AtkTable *table, michael@0: gint row); michael@0: AtkObject* (* get_row_header) (AtkTable *table, michael@0: gint row); michael@0: AtkObject* (* get_summary) (AtkTable *table); michael@0: void (* set_caption) (AtkTable *table, michael@0: AtkObject *caption); michael@0: void (* set_column_description) (AtkTable *table, michael@0: gint column, michael@0: const gchar *description); michael@0: void (* set_column_header) (AtkTable *table, michael@0: gint column, michael@0: AtkObject *header); michael@0: void (* set_row_description) (AtkTable *table, michael@0: gint row, michael@0: const gchar *description); michael@0: void (* set_row_header) (AtkTable *table, michael@0: gint row, michael@0: AtkObject *header); michael@0: void (* set_summary) (AtkTable *table, michael@0: AtkObject *accessible); michael@0: gint (* get_selected_columns) (AtkTable *table, michael@0: gint **selected); michael@0: gint (* get_selected_rows) (AtkTable *table, michael@0: gint **selected); michael@0: gboolean (* is_column_selected) (AtkTable *table, michael@0: gint column); michael@0: gboolean (* is_row_selected) (AtkTable *table, michael@0: gint row); michael@0: gboolean (* is_selected) (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gboolean (* add_row_selection) (AtkTable *table, michael@0: gint row); michael@0: gboolean (* remove_row_selection) (AtkTable *table, michael@0: gint row); michael@0: gboolean (* add_column_selection) (AtkTable *table, michael@0: gint column); michael@0: gboolean (* remove_column_selection) (AtkTable *table, michael@0: gint column); michael@0: michael@0: /* michael@0: * signal handlers michael@0: */ michael@0: void (* row_inserted) (AtkTable *table, michael@0: gint row, michael@0: gint num_inserted); michael@0: void (* column_inserted) (AtkTable *table, michael@0: gint column, michael@0: gint num_inserted); michael@0: void (* row_deleted) (AtkTable *table, michael@0: gint row, michael@0: gint num_deleted); michael@0: void (* column_deleted) (AtkTable *table, michael@0: gint column, michael@0: gint num_deleted); michael@0: void (* row_reordered) (AtkTable *table); michael@0: void (* column_reordered) (AtkTable *table); michael@0: void (* model_changed) (AtkTable *table); michael@0: michael@0: AtkFunction pad1; michael@0: AtkFunction pad2; michael@0: AtkFunction pad3; michael@0: AtkFunction pad4; michael@0: }; michael@0: michael@0: GType atk_table_get_type (void); michael@0: michael@0: AtkObject* atk_table_ref_at (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint atk_table_get_index_at (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint atk_table_get_column_at_index (AtkTable *table, michael@0: gint index_); michael@0: gint atk_table_get_row_at_index (AtkTable *table, michael@0: gint index_); michael@0: gint atk_table_get_n_columns (AtkTable *table); michael@0: gint atk_table_get_n_rows (AtkTable *table); michael@0: gint atk_table_get_column_extent_at (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gint atk_table_get_row_extent_at (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: AtkObject* michael@0: atk_table_get_caption (AtkTable *table); michael@0: G_CONST_RETURN gchar* michael@0: atk_table_get_column_description (AtkTable *table, michael@0: gint column); michael@0: AtkObject* atk_table_get_column_header (AtkTable *table, michael@0: gint column); michael@0: G_CONST_RETURN gchar* michael@0: atk_table_get_row_description (AtkTable *table, michael@0: gint row); michael@0: AtkObject* atk_table_get_row_header (AtkTable *table, michael@0: gint row); michael@0: AtkObject* atk_table_get_summary (AtkTable *table); michael@0: void atk_table_set_caption (AtkTable *table, michael@0: AtkObject *caption); michael@0: void atk_table_set_column_description michael@0: (AtkTable *table, michael@0: gint column, michael@0: const gchar *description); michael@0: void atk_table_set_column_header (AtkTable *table, michael@0: gint column, michael@0: AtkObject *header); michael@0: void atk_table_set_row_description (AtkTable *table, michael@0: gint row, michael@0: const gchar *description); michael@0: void atk_table_set_row_header (AtkTable *table, michael@0: gint row, michael@0: AtkObject *header); michael@0: void atk_table_set_summary (AtkTable *table, michael@0: AtkObject *accessible); michael@0: gint atk_table_get_selected_columns (AtkTable *table, michael@0: gint **selected); michael@0: gint atk_table_get_selected_rows (AtkTable *table, michael@0: gint **selected); michael@0: gboolean atk_table_is_column_selected (AtkTable *table, michael@0: gint column); michael@0: gboolean atk_table_is_row_selected (AtkTable *table, michael@0: gint row); michael@0: gboolean atk_table_is_selected (AtkTable *table, michael@0: gint row, michael@0: gint column); michael@0: gboolean atk_table_add_row_selection (AtkTable *table, michael@0: gint row); michael@0: gboolean atk_table_remove_row_selection (AtkTable *table, michael@0: gint row); michael@0: gboolean atk_table_add_column_selection (AtkTable *table, michael@0: gint column); michael@0: gboolean atk_table_remove_column_selection michael@0: (AtkTable *table, michael@0: gint column); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif /* __cplusplus */ michael@0: michael@0: michael@0: #endif /* __ATK_TABLE_H__ */