1 module webkit2webextension.DOMHTMLTableRowElement;
2 
3 private import glib.ErrorG;
4 private import glib.GException;
5 private import glib.Str;
6 private import gobject.ObjectG;
7 private import webkit2webextension.DOMHTMLCollection;
8 private import webkit2webextension.DOMHTMLElement;
9 private import webkit2webextension.c.functions;
10 public  import webkit2webextension.c.types;
11 
12 
13 /** */
14 public class DOMHTMLTableRowElement : DOMHTMLElement
15 {
16 	/** the main Gtk struct */
17 	protected WebKitDOMHTMLTableRowElement* webKitDOMHTMLTableRowElement;
18 
19 	/** Get the main Gtk struct */
20 	public WebKitDOMHTMLTableRowElement* getDOMHTMLTableRowElementStruct(bool transferOwnership = false)
21 	{
22 		if (transferOwnership)
23 			ownedRef = false;
24 		return webKitDOMHTMLTableRowElement;
25 	}
26 
27 	/** the main Gtk struct as a void* */
28 	protected override void* getStruct()
29 	{
30 		return cast(void*)webKitDOMHTMLTableRowElement;
31 	}
32 
33 	/**
34 	 * Sets our main struct and passes it to the parent class.
35 	 */
36 	public this (WebKitDOMHTMLTableRowElement* webKitDOMHTMLTableRowElement, bool ownedRef = false)
37 	{
38 		this.webKitDOMHTMLTableRowElement = webKitDOMHTMLTableRowElement;
39 		super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLTableRowElement, ownedRef);
40 	}
41 
42 
43 	/** */
44 	public static GType getType()
45 	{
46 		return webkit_dom_html_table_row_element_get_type();
47 	}
48 
49 	/**
50 	 *
51 	 *
52 	 * Deprecated: Use JavaScriptCore API instead
53 	 *
54 	 * Params:
55 	 *     index = A #glong
56 	 *
57 	 * Throws: GException on failure.
58 	 */
59 	public void deleteCell(glong index)
60 	{
61 		GError* err = null;
62 
63 		webkit_dom_html_table_row_element_delete_cell(webKitDOMHTMLTableRowElement, index, &err);
64 
65 		if (err !is null)
66 		{
67 			throw new GException( new ErrorG(err) );
68 		}
69 	}
70 
71 	/**
72 	 *
73 	 *
74 	 * Deprecated: Use JavaScriptCore API instead
75 	 *
76 	 * Returns: A #gchar
77 	 */
78 	public string getAlign()
79 	{
80 		auto retStr = webkit_dom_html_table_row_element_get_align(webKitDOMHTMLTableRowElement);
81 
82 		scope(exit) Str.freeString(retStr);
83 		return Str.toString(retStr);
84 	}
85 
86 	/**
87 	 *
88 	 *
89 	 * Deprecated: Use JavaScriptCore API instead
90 	 *
91 	 * Returns: A #gchar
92 	 */
93 	public string getBgColor()
94 	{
95 		auto retStr = webkit_dom_html_table_row_element_get_bg_color(webKitDOMHTMLTableRowElement);
96 
97 		scope(exit) Str.freeString(retStr);
98 		return Str.toString(retStr);
99 	}
100 
101 	/**
102 	 *
103 	 *
104 	 * Deprecated: Use JavaScriptCore API instead
105 	 *
106 	 * Returns: A #WebKitDOMHTMLCollection
107 	 */
108 	public DOMHTMLCollection getCells()
109 	{
110 		auto __p = webkit_dom_html_table_row_element_get_cells(webKitDOMHTMLTableRowElement);
111 
112 		if(__p is null)
113 		{
114 			return null;
115 		}
116 
117 		return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true);
118 	}
119 
120 	/**
121 	 *
122 	 *
123 	 * Deprecated: Use JavaScriptCore API instead
124 	 *
125 	 * Returns: A #gchar
126 	 */
127 	public string getCh()
128 	{
129 		auto retStr = webkit_dom_html_table_row_element_get_ch(webKitDOMHTMLTableRowElement);
130 
131 		scope(exit) Str.freeString(retStr);
132 		return Str.toString(retStr);
133 	}
134 
135 	/**
136 	 *
137 	 *
138 	 * Deprecated: Use JavaScriptCore API instead
139 	 *
140 	 * Returns: A #gchar
141 	 */
142 	public string getChOff()
143 	{
144 		auto retStr = webkit_dom_html_table_row_element_get_ch_off(webKitDOMHTMLTableRowElement);
145 
146 		scope(exit) Str.freeString(retStr);
147 		return Str.toString(retStr);
148 	}
149 
150 	/**
151 	 *
152 	 *
153 	 * Deprecated: Use JavaScriptCore API instead
154 	 *
155 	 * Returns: A #glong
156 	 */
157 	public glong getRowIndex()
158 	{
159 		return webkit_dom_html_table_row_element_get_row_index(webKitDOMHTMLTableRowElement);
160 	}
161 
162 	/**
163 	 *
164 	 *
165 	 * Deprecated: Use JavaScriptCore API instead
166 	 *
167 	 * Returns: A #glong
168 	 */
169 	public glong getSectionRowIndex()
170 	{
171 		return webkit_dom_html_table_row_element_get_section_row_index(webKitDOMHTMLTableRowElement);
172 	}
173 
174 	/**
175 	 *
176 	 *
177 	 * Deprecated: Use JavaScriptCore API instead
178 	 *
179 	 * Returns: A #gchar
180 	 */
181 	public string getVAlign()
182 	{
183 		auto retStr = webkit_dom_html_table_row_element_get_v_align(webKitDOMHTMLTableRowElement);
184 
185 		scope(exit) Str.freeString(retStr);
186 		return Str.toString(retStr);
187 	}
188 
189 	/**
190 	 *
191 	 *
192 	 * Deprecated: Use JavaScriptCore API instead
193 	 *
194 	 * Params:
195 	 *     index = A #glong
196 	 *
197 	 * Returns: A #WebKitDOMHTMLElement
198 	 *
199 	 * Throws: GException on failure.
200 	 */
201 	public DOMHTMLElement insertCell(glong index)
202 	{
203 		GError* err = null;
204 
205 		auto __p = webkit_dom_html_table_row_element_insert_cell(webKitDOMHTMLTableRowElement, index, &err);
206 
207 		if (err !is null)
208 		{
209 			throw new GException( new ErrorG(err) );
210 		}
211 
212 		if(__p is null)
213 		{
214 			return null;
215 		}
216 
217 		return ObjectG.getDObject!(DOMHTMLElement)(cast(WebKitDOMHTMLElement*) __p);
218 	}
219 
220 	/**
221 	 *
222 	 *
223 	 * Deprecated: Use JavaScriptCore API instead
224 	 *
225 	 * Params:
226 	 *     value = A #gchar
227 	 */
228 	public void setAlign(string value)
229 	{
230 		webkit_dom_html_table_row_element_set_align(webKitDOMHTMLTableRowElement, Str.toStringz(value));
231 	}
232 
233 	/**
234 	 *
235 	 *
236 	 * Deprecated: Use JavaScriptCore API instead
237 	 *
238 	 * Params:
239 	 *     value = A #gchar
240 	 */
241 	public void setBgColor(string value)
242 	{
243 		webkit_dom_html_table_row_element_set_bg_color(webKitDOMHTMLTableRowElement, Str.toStringz(value));
244 	}
245 
246 	/**
247 	 *
248 	 *
249 	 * Deprecated: Use JavaScriptCore API instead
250 	 *
251 	 * Params:
252 	 *     value = A #gchar
253 	 */
254 	public void setCh(string value)
255 	{
256 		webkit_dom_html_table_row_element_set_ch(webKitDOMHTMLTableRowElement, Str.toStringz(value));
257 	}
258 
259 	/**
260 	 *
261 	 *
262 	 * Deprecated: Use JavaScriptCore API instead
263 	 *
264 	 * Params:
265 	 *     value = A #gchar
266 	 */
267 	public void setChOff(string value)
268 	{
269 		webkit_dom_html_table_row_element_set_ch_off(webKitDOMHTMLTableRowElement, Str.toStringz(value));
270 	}
271 
272 	/**
273 	 *
274 	 *
275 	 * Deprecated: Use JavaScriptCore API instead
276 	 *
277 	 * Params:
278 	 *     value = A #gchar
279 	 */
280 	public void setVAlign(string value)
281 	{
282 		webkit_dom_html_table_row_element_set_v_align(webKitDOMHTMLTableRowElement, Str.toStringz(value));
283 	}
284 }