1 /* ATK - Accessibility Toolkit
2 * Copyright 2014 SUSE LLC.
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_CELL_H__
21 #define __ATK_TABLE_CELL_H__
23 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
24 #error "Only <atk/atk.h> can be included directly."
27 #include <atk/atkobject.h>
31 #define ATK_TYPE_TABLE_CELL (atk_table_cell_get_type ())
32 #define ATK_IS_TABLE_CELL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE_CELL)
33 #define ATK_TABLE_CELL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE_CELL, AtkTableCell)
34 #define ATK_TABLE_CELL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE_CELL, AtkTableCellIface))
36 #ifndef _TYPEDEF_ATK_TABLE_CELL_
37 #define _TYPEDEF_ATK_TABLE_CELL_
38 typedef struct _AtkTableCell AtkTableCell;
40 typedef struct _AtkTableCellIface AtkTableCellIface;
44 * @get_column_span: virtual function that returns the number of
45 * columns occupied by this cell accessible
46 * @get_column_header_cells: virtual function that returns the column
47 * headers as an array of cell accessibles
48 * @get_position: virtual function that retrieves the tabular position
50 * @get_row_span: virtual function that returns the number of rows
51 * occupied by this cell
52 * @get_row_header_cells: virtual function that returns the row
53 * headers as an array of cell accessibles
54 * @get_row_column_span: virtual function that get the row an column
55 * indexes and span of this cell
56 * @get_table: virtual function that returns a reference to the
57 * accessible of the containing table
59 * AtkTableCell is an interface for cells inside an #AtkTable.
63 struct _AtkTableCellIface
66 GTypeInterface parent;
69 gint (*get_column_span) (AtkTableCell *cell);
70 GPtrArray * (*get_column_header_cells) (AtkTableCell *cell);
71 gboolean (*get_position) (AtkTableCell *cell,
74 gint (*get_row_span) (AtkTableCell *cell);
75 GPtrArray * (*get_row_header_cells) (AtkTableCell *cell);
76 gboolean (*get_row_column_span) (AtkTableCell *cell,
81 AtkObject * (*get_table) (AtkTableCell *cell);
85 GType atk_table_cell_get_type (void);
88 gint atk_table_cell_get_column_span (AtkTableCell *cell);
90 GPtrArray * atk_table_cell_get_column_header_cells (AtkTableCell *cell);
92 gboolean atk_table_cell_get_position (AtkTableCell *cell,
96 gint atk_table_cell_get_row_span (AtkTableCell *cell);
98 GPtrArray * atk_table_cell_get_row_header_cells (AtkTableCell *cell);
100 gboolean atk_table_cell_get_row_column_span (AtkTableCell *cell,
105 ATK_AVAILABLE_IN_2_12
106 AtkObject * atk_table_cell_get_table (AtkTableCell *cell);
110 #endif /* __ATK_TABLE_CELL_H__ */