1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module atk.TableCellIF;
26 
27 private import atk.ObjectAtk;
28 private import glib.PtrArray;
29 private import gobject.ObjectG;
30 private import gtkc.atk;
31 public  import gtkc.atktypes;
32 
33 
34 /**
35  * Being #AtkTable a component which present elements ordered via rows
36  * and columns, an #AtkTableCell is the interface which each of those
37  * elements, so "cells" should implement.
38  * 
39  * See also #AtkTable.
40  */
41 public interface TableCellIF{
42 	/** Get the main Gtk struct */
43 	public AtkTableCell* getTableCellStruct(bool transferOwnership = false);
44 
45 	/** the main Gtk struct as a void* */
46 	protected void* getStruct();
47 
48 
49 	/**
50 	 * Returns the column headers as an array of cell accessibles.
51 	 *
52 	 * Returns: a GPtrArray of AtkObjects
53 	 *     representing the column header cells.
54 	 *
55 	 * Since: 2.12
56 	 */
57 	public PtrArray getColumnHeaderCells();
58 
59 	/**
60 	 * Returns the number of columns occupied by this cell accessible.
61 	 *
62 	 * Returns: a gint representing the number of columns occupied by this cell,
63 	 *     or 0 if the cell does not implement this method.
64 	 *
65 	 * Since: 2.12
66 	 */
67 	public int getColumnSpan();
68 
69 	/**
70 	 * Retrieves the tabular position of this cell.
71 	 *
72 	 * Params:
73 	 *     row = the row of the given cell.
74 	 *     column = the column of the given cell.
75 	 *
76 	 * Returns: TRUE if successful; FALSE otherwise.
77 	 *
78 	 * Since: 2.12
79 	 */
80 	public bool getPosition(out int row, out int column);
81 
82 	/**
83 	 * Gets the row and column indexes and span of this cell accessible.
84 	 *
85 	 * Note: If the object does not implement this function, then, by default, atk
86 	 * will implement this function by calling get_row_span and get_column_span
87 	 * on the object.
88 	 *
89 	 * Params:
90 	 *     row = the row index of the given cell.
91 	 *     column = the column index of the given cell.
92 	 *     rowSpan = the number of rows occupied by this cell.
93 	 *     columnSpan = the number of columns occupied by this cell.
94 	 *
95 	 * Returns: TRUE if successful; FALSE otherwise.
96 	 *
97 	 * Since: 2.12
98 	 */
99 	public bool getRowColumnSpan(out int row, out int column, out int rowSpan, out int columnSpan);
100 
101 	/**
102 	 * Returns the row headers as an array of cell accessibles.
103 	 *
104 	 * Returns: a GPtrArray of AtkObjects
105 	 *     representing the row header cells.
106 	 *
107 	 * Since: 2.12
108 	 */
109 	public PtrArray getRowHeaderCells();
110 
111 	/**
112 	 * Returns the number of rows occupied by this cell accessible.
113 	 *
114 	 * Returns: a gint representing the number of rows occupied by this cell,
115 	 *     or 0 if the cell does not implement this method.
116 	 *
117 	 * Since: 2.12
118 	 */
119 	public int getRowSpan();
120 
121 	/**
122 	 * Returns a reference to the accessible of the containing table.
123 	 *
124 	 * Returns: the atk object for the containing table.
125 	 *
126 	 * Since: 2.12
127 	 */
128 	public ObjectAtk getTable();
129 }