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 gtk.CellAccessibleParentT;
26 
27 public  import atk.RelationSet;
28 public  import glib.PtrArray;
29 public  import gtk.CellAccessible;
30 public  import gtk.c.functions;
31 public  import gtk.c.types;
32 public  import gtkc.gtktypes;
33 
34 
35 /** */
36 public template CellAccessibleParentT(TStruct)
37 {
38 	/** Get the main Gtk struct */
39 	public GtkCellAccessibleParent* getCellAccessibleParentStruct(bool transferOwnership = false)
40 	{
41 		if (transferOwnership)
42 			ownedRef = false;
43 		return cast(GtkCellAccessibleParent*)getStruct();
44 	}
45 
46 
47 	/** */
48 	public void activate(CellAccessible cell)
49 	{
50 		gtk_cell_accessible_parent_activate(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
51 	}
52 
53 	/** */
54 	public void edit(CellAccessible cell)
55 	{
56 		gtk_cell_accessible_parent_edit(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
57 	}
58 
59 	/** */
60 	public void expandCollapse(CellAccessible cell)
61 	{
62 		gtk_cell_accessible_parent_expand_collapse(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
63 	}
64 
65 	/** */
66 	public void getCellArea(CellAccessible cell, out GdkRectangle cellRect)
67 	{
68 		gtk_cell_accessible_parent_get_cell_area(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct(), &cellRect);
69 	}
70 
71 	/** */
72 	public void getCellExtents(CellAccessible cell, out int x, out int y, out int width, out int height, AtkCoordType coordType)
73 	{
74 		gtk_cell_accessible_parent_get_cell_extents(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct(), &x, &y, &width, &height, coordType);
75 	}
76 
77 	/** */
78 	public void getCellPosition(CellAccessible cell, out int row, out int column)
79 	{
80 		gtk_cell_accessible_parent_get_cell_position(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct(), &row, &column);
81 	}
82 
83 	/** */
84 	public int getChildIndex(CellAccessible cell)
85 	{
86 		return gtk_cell_accessible_parent_get_child_index(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
87 	}
88 
89 	/** */
90 	public PtrArray getColumnHeaderCells(CellAccessible cell)
91 	{
92 		auto p = gtk_cell_accessible_parent_get_column_header_cells(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
93 
94 		if(p is null)
95 		{
96 			return null;
97 		}
98 
99 		return new PtrArray(cast(GPtrArray*) p, true);
100 	}
101 
102 	/** */
103 	public GtkCellRendererState getRendererState(CellAccessible cell)
104 	{
105 		return gtk_cell_accessible_parent_get_renderer_state(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
106 	}
107 
108 	/** */
109 	public PtrArray getRowHeaderCells(CellAccessible cell)
110 	{
111 		auto p = gtk_cell_accessible_parent_get_row_header_cells(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct());
112 
113 		if(p is null)
114 		{
115 			return null;
116 		}
117 
118 		return new PtrArray(cast(GPtrArray*) p, true);
119 	}
120 
121 	/** */
122 	public bool grabFocus(CellAccessible cell)
123 	{
124 		return gtk_cell_accessible_parent_grab_focus(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct()) != 0;
125 	}
126 
127 	/** */
128 	public void updateRelationset(CellAccessible cell, RelationSet relationset)
129 	{
130 		gtk_cell_accessible_parent_update_relationset(getCellAccessibleParentStruct(), (cell is null) ? null : cell.getCellAccessibleStruct(), (relationset is null) ? null : relationset.getRelationSetStruct());
131 	}
132 }