1/* ATK - Accessibility Toolkit
2 * Copyright 2014 SUSE LLC.
3 *
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.
8 *
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.
13 *
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.
18 */
19
20#ifndef __ATK_TABLE_CELL_H__
21#define __ATK_TABLE_CELL_H__
22
23#if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
24#error "Only <atk/atk.h> can be included directly."
25#endif
26
27#include <atk/atkobject.h>
28
29G_BEGIN_DECLS
30
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))
35
36#ifndef _TYPEDEF_ATK_TABLE_CELL_
37#define _TYPEDEF_ATK_TABLE_CELL_
38typedef struct _AtkTableCell AtkTableCell;
39#endif
40typedef struct _AtkTableCellIface AtkTableCellIface;
41
42/**
43 * AtkTableCellIface:
44 * @get_column_span: virtual function that returns the number of
45 * columns occupied by this cell accessible. @Since: 2.12
46 * @get_column_header_cells: virtual function that returns the column
47 * headers as an array of cell accessibles. @Since: 2.12
48 * @get_position: virtual function that retrieves the tabular position
49 * of this cell. @Since: 2.12
50 * @get_row_span: virtual function that returns the number of rows
51 * occupied by this cell. @Since: 2.12
52 * @get_row_header_cells: virtual function that returns the row
53 * headers as an array of cell accessibles. @Since: 2.12
54 * @get_row_column_span: virtual function that get the row an column
55 * indexes and span of this cell. @Since: 2.12
56 * @get_table: virtual function that returns a reference to the
57 * accessible of the containing table. @Since: 2.12
58 */
59struct _AtkTableCellIface
60{
61 GTypeInterface parent;
62
63 gint (*get_column_span) (AtkTableCell *cell);
64 GPtrArray * (*get_column_header_cells) (AtkTableCell *cell);
65 gboolean (*get_position) (AtkTableCell *cell,
66 gint *row,
67 gint *column);
68 gint (*get_row_span) (AtkTableCell *cell);
69 GPtrArray * (*get_row_header_cells) (AtkTableCell *cell);
70 gboolean (*get_row_column_span) (AtkTableCell *cell,
71 gint *row,
72 gint *column,
73 gint *row_span,
74 gint *column_span);
75 AtkObject * (*get_table) (AtkTableCell *cell);
76};
77
78ATK_AVAILABLE_IN_2_12
79GType atk_table_cell_get_type (void);
80
81ATK_AVAILABLE_IN_2_12
82gint atk_table_cell_get_column_span (AtkTableCell *cell);
83ATK_AVAILABLE_IN_2_12
84GPtrArray * atk_table_cell_get_column_header_cells (AtkTableCell *cell);
85ATK_AVAILABLE_IN_2_12
86gboolean atk_table_cell_get_position (AtkTableCell *cell,
87 gint *row,
88 gint *column);
89ATK_AVAILABLE_IN_2_12
90gint atk_table_cell_get_row_span (AtkTableCell *cell);
91ATK_AVAILABLE_IN_2_12
92GPtrArray * atk_table_cell_get_row_header_cells (AtkTableCell *cell);
93ATK_AVAILABLE_IN_2_12
94gboolean atk_table_cell_get_row_column_span (AtkTableCell *cell,
95 gint *row,
96 gint *column,
97 gint *row_span,
98 gint *column_span);
99ATK_AVAILABLE_IN_2_12
100AtkObject * atk_table_cell_get_table (AtkTableCell *cell);
101
102G_END_DECLS
103
104#endif /* __ATK_TABLE_CELL_H__ */
105