1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/atk-1.0/atk/atktable.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,218 @@ 1.4 +/* ATK - Accessibility Toolkit 1.5 + * Copyright 2001 Sun Microsystems Inc. 1.6 + * 1.7 + * This library is free software; you can redistribute it and/or 1.8 + * modify it under the terms of the GNU Library General Public 1.9 + * License as published by the Free Software Foundation; either 1.10 + * version 2 of the License, or (at your option) any later version. 1.11 + * 1.12 + * This library is distributed in the hope that it will be useful, 1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1.15 + * Library General Public License for more details. 1.16 + * 1.17 + * You should have received a copy of the GNU Library General Public 1.18 + * License along with this library; if not, write to the 1.19 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 1.20 + * Boston, MA 02111-1307, USA. 1.21 + */ 1.22 + 1.23 +#ifndef __ATK_TABLE_H__ 1.24 +#define __ATK_TABLE_H__ 1.25 + 1.26 +#include <atk/atkobject.h> 1.27 + 1.28 +#ifdef __cplusplus 1.29 +extern "C" { 1.30 +#endif /* __cplusplus */ 1.31 + 1.32 +/* 1.33 + * AtkTable describes a user-interface component that presents data in 1.34 + * two-dimensional table format. 1.35 + */ 1.36 + 1.37 + 1.38 +#define ATK_TYPE_TABLE (atk_table_get_type ()) 1.39 +#define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE) 1.40 +#define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable) 1.41 +#define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface)) 1.42 + 1.43 +#ifndef _TYPEDEF_ATK_TABLE_ 1.44 +#define _TYPEDEF_ATK_TABLE_ 1.45 +typedef struct _AtkTable AtkTable; 1.46 +#endif 1.47 +typedef struct _AtkTableIface AtkTableIface; 1.48 + 1.49 +struct _AtkTableIface 1.50 +{ 1.51 + GTypeInterface parent; 1.52 + 1.53 + AtkObject* (* ref_at) (AtkTable *table, 1.54 + gint row, 1.55 + gint column); 1.56 + gint (* get_index_at) (AtkTable *table, 1.57 + gint row, 1.58 + gint column); 1.59 + gint (* get_column_at_index) (AtkTable *table, 1.60 + gint index_); 1.61 + gint (* get_row_at_index) (AtkTable *table, 1.62 + gint index_); 1.63 + gint (* get_n_columns) (AtkTable *table); 1.64 + gint (* get_n_rows) (AtkTable *table); 1.65 + gint (* get_column_extent_at) (AtkTable *table, 1.66 + gint row, 1.67 + gint column); 1.68 + gint (* get_row_extent_at) (AtkTable *table, 1.69 + gint row, 1.70 + gint column); 1.71 + AtkObject* 1.72 + (* get_caption) (AtkTable *table); 1.73 + G_CONST_RETURN gchar* 1.74 + (* get_column_description) (AtkTable *table, 1.75 + gint column); 1.76 + AtkObject* (* get_column_header) (AtkTable *table, 1.77 + gint column); 1.78 + G_CONST_RETURN gchar* 1.79 + (* get_row_description) (AtkTable *table, 1.80 + gint row); 1.81 + AtkObject* (* get_row_header) (AtkTable *table, 1.82 + gint row); 1.83 + AtkObject* (* get_summary) (AtkTable *table); 1.84 + void (* set_caption) (AtkTable *table, 1.85 + AtkObject *caption); 1.86 + void (* set_column_description) (AtkTable *table, 1.87 + gint column, 1.88 + const gchar *description); 1.89 + void (* set_column_header) (AtkTable *table, 1.90 + gint column, 1.91 + AtkObject *header); 1.92 + void (* set_row_description) (AtkTable *table, 1.93 + gint row, 1.94 + const gchar *description); 1.95 + void (* set_row_header) (AtkTable *table, 1.96 + gint row, 1.97 + AtkObject *header); 1.98 + void (* set_summary) (AtkTable *table, 1.99 + AtkObject *accessible); 1.100 + gint (* get_selected_columns) (AtkTable *table, 1.101 + gint **selected); 1.102 + gint (* get_selected_rows) (AtkTable *table, 1.103 + gint **selected); 1.104 + gboolean (* is_column_selected) (AtkTable *table, 1.105 + gint column); 1.106 + gboolean (* is_row_selected) (AtkTable *table, 1.107 + gint row); 1.108 + gboolean (* is_selected) (AtkTable *table, 1.109 + gint row, 1.110 + gint column); 1.111 + gboolean (* add_row_selection) (AtkTable *table, 1.112 + gint row); 1.113 + gboolean (* remove_row_selection) (AtkTable *table, 1.114 + gint row); 1.115 + gboolean (* add_column_selection) (AtkTable *table, 1.116 + gint column); 1.117 + gboolean (* remove_column_selection) (AtkTable *table, 1.118 + gint column); 1.119 + 1.120 + /* 1.121 + * signal handlers 1.122 + */ 1.123 + void (* row_inserted) (AtkTable *table, 1.124 + gint row, 1.125 + gint num_inserted); 1.126 + void (* column_inserted) (AtkTable *table, 1.127 + gint column, 1.128 + gint num_inserted); 1.129 + void (* row_deleted) (AtkTable *table, 1.130 + gint row, 1.131 + gint num_deleted); 1.132 + void (* column_deleted) (AtkTable *table, 1.133 + gint column, 1.134 + gint num_deleted); 1.135 + void (* row_reordered) (AtkTable *table); 1.136 + void (* column_reordered) (AtkTable *table); 1.137 + void (* model_changed) (AtkTable *table); 1.138 + 1.139 + AtkFunction pad1; 1.140 + AtkFunction pad2; 1.141 + AtkFunction pad3; 1.142 + AtkFunction pad4; 1.143 +}; 1.144 + 1.145 +GType atk_table_get_type (void); 1.146 + 1.147 +AtkObject* atk_table_ref_at (AtkTable *table, 1.148 + gint row, 1.149 + gint column); 1.150 +gint atk_table_get_index_at (AtkTable *table, 1.151 + gint row, 1.152 + gint column); 1.153 +gint atk_table_get_column_at_index (AtkTable *table, 1.154 + gint index_); 1.155 +gint atk_table_get_row_at_index (AtkTable *table, 1.156 + gint index_); 1.157 +gint atk_table_get_n_columns (AtkTable *table); 1.158 +gint atk_table_get_n_rows (AtkTable *table); 1.159 +gint atk_table_get_column_extent_at (AtkTable *table, 1.160 + gint row, 1.161 + gint column); 1.162 +gint atk_table_get_row_extent_at (AtkTable *table, 1.163 + gint row, 1.164 + gint column); 1.165 +AtkObject* 1.166 + atk_table_get_caption (AtkTable *table); 1.167 +G_CONST_RETURN gchar* 1.168 + atk_table_get_column_description (AtkTable *table, 1.169 + gint column); 1.170 +AtkObject* atk_table_get_column_header (AtkTable *table, 1.171 + gint column); 1.172 +G_CONST_RETURN gchar* 1.173 + atk_table_get_row_description (AtkTable *table, 1.174 + gint row); 1.175 +AtkObject* atk_table_get_row_header (AtkTable *table, 1.176 + gint row); 1.177 +AtkObject* atk_table_get_summary (AtkTable *table); 1.178 +void atk_table_set_caption (AtkTable *table, 1.179 + AtkObject *caption); 1.180 +void atk_table_set_column_description 1.181 + (AtkTable *table, 1.182 + gint column, 1.183 + const gchar *description); 1.184 +void atk_table_set_column_header (AtkTable *table, 1.185 + gint column, 1.186 + AtkObject *header); 1.187 +void atk_table_set_row_description (AtkTable *table, 1.188 + gint row, 1.189 + const gchar *description); 1.190 +void atk_table_set_row_header (AtkTable *table, 1.191 + gint row, 1.192 + AtkObject *header); 1.193 +void atk_table_set_summary (AtkTable *table, 1.194 + AtkObject *accessible); 1.195 +gint atk_table_get_selected_columns (AtkTable *table, 1.196 + gint **selected); 1.197 +gint atk_table_get_selected_rows (AtkTable *table, 1.198 + gint **selected); 1.199 +gboolean atk_table_is_column_selected (AtkTable *table, 1.200 + gint column); 1.201 +gboolean atk_table_is_row_selected (AtkTable *table, 1.202 + gint row); 1.203 +gboolean atk_table_is_selected (AtkTable *table, 1.204 + gint row, 1.205 + gint column); 1.206 +gboolean atk_table_add_row_selection (AtkTable *table, 1.207 + gint row); 1.208 +gboolean atk_table_remove_row_selection (AtkTable *table, 1.209 + gint row); 1.210 +gboolean atk_table_add_column_selection (AtkTable *table, 1.211 + gint column); 1.212 +gboolean atk_table_remove_column_selection 1.213 + (AtkTable *table, 1.214 + gint column); 1.215 + 1.216 +#ifdef __cplusplus 1.217 +} 1.218 +#endif /* __cplusplus */ 1.219 + 1.220 + 1.221 +#endif /* __ATK_TABLE_H__ */