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.GridLayoutChild;
26 
27 private import gtk.LayoutChild;
28 private import gtk.c.functions;
29 public  import gtk.c.types;
30 
31 
32 /**
33  * `GtkLayoutChild` subclass for children in a `GtkGridLayout`.
34  */
35 public class GridLayoutChild : LayoutChild
36 {
37 	/** the main Gtk struct */
38 	protected GtkGridLayoutChild* gtkGridLayoutChild;
39 
40 	/** Get the main Gtk struct */
41 	public GtkGridLayoutChild* getGridLayoutChildStruct(bool transferOwnership = false)
42 	{
43 		if (transferOwnership)
44 			ownedRef = false;
45 		return gtkGridLayoutChild;
46 	}
47 
48 	/** the main Gtk struct as a void* */
49 	protected override void* getStruct()
50 	{
51 		return cast(void*)gtkGridLayoutChild;
52 	}
53 
54 	/**
55 	 * Sets our main struct and passes it to the parent class.
56 	 */
57 	public this (GtkGridLayoutChild* gtkGridLayoutChild, bool ownedRef = false)
58 	{
59 		this.gtkGridLayoutChild = gtkGridLayoutChild;
60 		super(cast(GtkLayoutChild*)gtkGridLayoutChild, ownedRef);
61 	}
62 
63 
64 	/** */
65 	public static GType getType()
66 	{
67 		return gtk_grid_layout_child_get_type();
68 	}
69 
70 	/**
71 	 * Retrieves the column number to which @child attaches its left side.
72 	 *
73 	 * Returns: the column number
74 	 */
75 	public int getColumn()
76 	{
77 		return gtk_grid_layout_child_get_column(gtkGridLayoutChild);
78 	}
79 
80 	/**
81 	 * Retrieves the number of columns that @child spans to.
82 	 *
83 	 * Returns: the number of columns
84 	 */
85 	public int getColumnSpan()
86 	{
87 		return gtk_grid_layout_child_get_column_span(gtkGridLayoutChild);
88 	}
89 
90 	/**
91 	 * Retrieves the row number to which @child attaches its top side.
92 	 *
93 	 * Returns: the row number
94 	 */
95 	public int getRow()
96 	{
97 		return gtk_grid_layout_child_get_row(gtkGridLayoutChild);
98 	}
99 
100 	/**
101 	 * Retrieves the number of rows that @child spans to.
102 	 *
103 	 * Returns: the number of row
104 	 */
105 	public int getRowSpan()
106 	{
107 		return gtk_grid_layout_child_get_row_span(gtkGridLayoutChild);
108 	}
109 
110 	/**
111 	 * Sets the column number to attach the left side of @child.
112 	 *
113 	 * Params:
114 	 *     column = the attach point for @child
115 	 */
116 	public void setColumn(int column)
117 	{
118 		gtk_grid_layout_child_set_column(gtkGridLayoutChild, column);
119 	}
120 
121 	/**
122 	 * Sets the number of columns @child spans to.
123 	 *
124 	 * Params:
125 	 *     span = the span of @child
126 	 */
127 	public void setColumnSpan(int span)
128 	{
129 		gtk_grid_layout_child_set_column_span(gtkGridLayoutChild, span);
130 	}
131 
132 	/**
133 	 * Sets the row to place @child in.
134 	 *
135 	 * Params:
136 	 *     row = the row for @child
137 	 */
138 	public void setRow(int row)
139 	{
140 		gtk_grid_layout_child_set_row(gtkGridLayoutChild, row);
141 	}
142 
143 	/**
144 	 * Sets the number of rows @child spans to.
145 	 *
146 	 * Params:
147 	 *     span = the span of @child
148 	 */
149 	public void setRowSpan(int span)
150 	{
151 		gtk_grid_layout_child_set_row_span(gtkGridLayoutChild, span);
152 	}
153 }