1 module webkit2webextension.DOMHTMLImageElement;
2 
3 private import glib.Str;
4 private import webkit2webextension.DOMHTMLElement;
5 private import webkit2webextension.c.functions;
6 public  import webkit2webextension.c.types;
7 
8 
9 /** */
10 public class DOMHTMLImageElement : DOMHTMLElement
11 {
12 	/** the main Gtk struct */
13 	protected WebKitDOMHTMLImageElement* webKitDOMHTMLImageElement;
14 
15 	/** Get the main Gtk struct */
16 	public WebKitDOMHTMLImageElement* getDOMHTMLImageElementStruct(bool transferOwnership = false)
17 	{
18 		if (transferOwnership)
19 			ownedRef = false;
20 		return webKitDOMHTMLImageElement;
21 	}
22 
23 	/** the main Gtk struct as a void* */
24 	protected override void* getStruct()
25 	{
26 		return cast(void*)webKitDOMHTMLImageElement;
27 	}
28 
29 	/**
30 	 * Sets our main struct and passes it to the parent class.
31 	 */
32 	public this (WebKitDOMHTMLImageElement* webKitDOMHTMLImageElement, bool ownedRef = false)
33 	{
34 		this.webKitDOMHTMLImageElement = webKitDOMHTMLImageElement;
35 		super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLImageElement, ownedRef);
36 	}
37 
38 
39 	/** */
40 	public static GType getType()
41 	{
42 		return webkit_dom_html_image_element_get_type();
43 	}
44 
45 	/**
46 	 *
47 	 *
48 	 * Deprecated: Use JavaScriptCore API instead
49 	 *
50 	 * Returns: A #gchar
51 	 */
52 	public string getAlign()
53 	{
54 		auto retStr = webkit_dom_html_image_element_get_align(webKitDOMHTMLImageElement);
55 
56 		scope(exit) Str.freeString(retStr);
57 		return Str.toString(retStr);
58 	}
59 
60 	/**
61 	 *
62 	 *
63 	 * Deprecated: Use JavaScriptCore API instead
64 	 *
65 	 * Returns: A #gchar
66 	 */
67 	public string getAlt()
68 	{
69 		auto retStr = webkit_dom_html_image_element_get_alt(webKitDOMHTMLImageElement);
70 
71 		scope(exit) Str.freeString(retStr);
72 		return Str.toString(retStr);
73 	}
74 
75 	/**
76 	 *
77 	 *
78 	 * Deprecated: Use JavaScriptCore API instead
79 	 *
80 	 * Returns: A #gchar
81 	 */
82 	public string getBorder()
83 	{
84 		auto retStr = webkit_dom_html_image_element_get_border(webKitDOMHTMLImageElement);
85 
86 		scope(exit) Str.freeString(retStr);
87 		return Str.toString(retStr);
88 	}
89 
90 	/**
91 	 *
92 	 *
93 	 * Deprecated: Use JavaScriptCore API instead
94 	 *
95 	 * Returns: A #gboolean
96 	 */
97 	public bool getComplete()
98 	{
99 		return webkit_dom_html_image_element_get_complete(webKitDOMHTMLImageElement) != 0;
100 	}
101 
102 	/**
103 	 *
104 	 *
105 	 * Deprecated: Use JavaScriptCore API instead
106 	 *
107 	 * Returns: A #glong
108 	 */
109 	public glong getHeight()
110 	{
111 		return webkit_dom_html_image_element_get_height(webKitDOMHTMLImageElement);
112 	}
113 
114 	/**
115 	 *
116 	 *
117 	 * Deprecated: Use JavaScriptCore API instead
118 	 *
119 	 * Returns: A #glong
120 	 */
121 	public glong getHspace()
122 	{
123 		return webkit_dom_html_image_element_get_hspace(webKitDOMHTMLImageElement);
124 	}
125 
126 	/**
127 	 *
128 	 *
129 	 * Deprecated: Use JavaScriptCore API instead
130 	 *
131 	 * Returns: A #gboolean
132 	 */
133 	public bool getIsMap()
134 	{
135 		return webkit_dom_html_image_element_get_is_map(webKitDOMHTMLImageElement) != 0;
136 	}
137 
138 	/**
139 	 *
140 	 *
141 	 * Deprecated: Use JavaScriptCore API instead
142 	 *
143 	 * Returns: A #gchar
144 	 */
145 	public string getLongDesc()
146 	{
147 		auto retStr = webkit_dom_html_image_element_get_long_desc(webKitDOMHTMLImageElement);
148 
149 		scope(exit) Str.freeString(retStr);
150 		return Str.toString(retStr);
151 	}
152 
153 	/**
154 	 *
155 	 *
156 	 * Deprecated: Use JavaScriptCore API instead
157 	 *
158 	 * Returns: A #gchar
159 	 */
160 	public string getLowsrc()
161 	{
162 		auto retStr = webkit_dom_html_image_element_get_lowsrc(webKitDOMHTMLImageElement);
163 
164 		scope(exit) Str.freeString(retStr);
165 		return Str.toString(retStr);
166 	}
167 
168 	/**
169 	 *
170 	 *
171 	 * Deprecated: Use JavaScriptCore API instead
172 	 *
173 	 * Returns: A #gchar
174 	 */
175 	public string getName()
176 	{
177 		auto retStr = webkit_dom_html_image_element_get_name(webKitDOMHTMLImageElement);
178 
179 		scope(exit) Str.freeString(retStr);
180 		return Str.toString(retStr);
181 	}
182 
183 	/**
184 	 *
185 	 *
186 	 * Deprecated: Use JavaScriptCore API instead
187 	 *
188 	 * Returns: A #glong
189 	 */
190 	public glong getNaturalHeight()
191 	{
192 		return webkit_dom_html_image_element_get_natural_height(webKitDOMHTMLImageElement);
193 	}
194 
195 	/**
196 	 *
197 	 *
198 	 * Deprecated: Use JavaScriptCore API instead
199 	 *
200 	 * Returns: A #glong
201 	 */
202 	public glong getNaturalWidth()
203 	{
204 		return webkit_dom_html_image_element_get_natural_width(webKitDOMHTMLImageElement);
205 	}
206 
207 	/**
208 	 *
209 	 *
210 	 * Deprecated: Use JavaScriptCore API instead
211 	 *
212 	 * Returns: A #gchar
213 	 */
214 	public string getSrc()
215 	{
216 		auto retStr = webkit_dom_html_image_element_get_src(webKitDOMHTMLImageElement);
217 
218 		scope(exit) Str.freeString(retStr);
219 		return Str.toString(retStr);
220 	}
221 
222 	/**
223 	 *
224 	 *
225 	 * Deprecated: Use JavaScriptCore API instead
226 	 *
227 	 * Returns: A #gchar
228 	 */
229 	public string getUseMap()
230 	{
231 		auto retStr = webkit_dom_html_image_element_get_use_map(webKitDOMHTMLImageElement);
232 
233 		scope(exit) Str.freeString(retStr);
234 		return Str.toString(retStr);
235 	}
236 
237 	/**
238 	 *
239 	 *
240 	 * Deprecated: Use JavaScriptCore API instead
241 	 *
242 	 * Returns: A #glong
243 	 */
244 	public glong getVspace()
245 	{
246 		return webkit_dom_html_image_element_get_vspace(webKitDOMHTMLImageElement);
247 	}
248 
249 	/**
250 	 *
251 	 *
252 	 * Deprecated: Use JavaScriptCore API instead
253 	 *
254 	 * Returns: A #glong
255 	 */
256 	public glong getWidth()
257 	{
258 		return webkit_dom_html_image_element_get_width(webKitDOMHTMLImageElement);
259 	}
260 
261 	/**
262 	 *
263 	 *
264 	 * Deprecated: Use JavaScriptCore API instead
265 	 *
266 	 * Returns: A #glong
267 	 */
268 	public glong getX()
269 	{
270 		return webkit_dom_html_image_element_get_x(webKitDOMHTMLImageElement);
271 	}
272 
273 	/**
274 	 *
275 	 *
276 	 * Deprecated: Use JavaScriptCore API instead
277 	 *
278 	 * Returns: A #glong
279 	 */
280 	public glong getY()
281 	{
282 		return webkit_dom_html_image_element_get_y(webKitDOMHTMLImageElement);
283 	}
284 
285 	/**
286 	 *
287 	 *
288 	 * Deprecated: Use JavaScriptCore API instead
289 	 *
290 	 * Params:
291 	 *     value = A #gchar
292 	 */
293 	public void setAlign(string value)
294 	{
295 		webkit_dom_html_image_element_set_align(webKitDOMHTMLImageElement, Str.toStringz(value));
296 	}
297 
298 	/**
299 	 *
300 	 *
301 	 * Deprecated: Use JavaScriptCore API instead
302 	 *
303 	 * Params:
304 	 *     value = A #gchar
305 	 */
306 	public void setAlt(string value)
307 	{
308 		webkit_dom_html_image_element_set_alt(webKitDOMHTMLImageElement, Str.toStringz(value));
309 	}
310 
311 	/**
312 	 *
313 	 *
314 	 * Deprecated: Use JavaScriptCore API instead
315 	 *
316 	 * Params:
317 	 *     value = A #gchar
318 	 */
319 	public void setBorder(string value)
320 	{
321 		webkit_dom_html_image_element_set_border(webKitDOMHTMLImageElement, Str.toStringz(value));
322 	}
323 
324 	/**
325 	 *
326 	 *
327 	 * Deprecated: Use JavaScriptCore API instead
328 	 *
329 	 * Params:
330 	 *     value = A #glong
331 	 */
332 	public void setHeight(glong value)
333 	{
334 		webkit_dom_html_image_element_set_height(webKitDOMHTMLImageElement, value);
335 	}
336 
337 	/**
338 	 *
339 	 *
340 	 * Deprecated: Use JavaScriptCore API instead
341 	 *
342 	 * Params:
343 	 *     value = A #glong
344 	 */
345 	public void setHspace(glong value)
346 	{
347 		webkit_dom_html_image_element_set_hspace(webKitDOMHTMLImageElement, value);
348 	}
349 
350 	/**
351 	 *
352 	 *
353 	 * Deprecated: Use JavaScriptCore API instead
354 	 *
355 	 * Params:
356 	 *     value = A #gboolean
357 	 */
358 	public void setIsMap(bool value)
359 	{
360 		webkit_dom_html_image_element_set_is_map(webKitDOMHTMLImageElement, value);
361 	}
362 
363 	/**
364 	 *
365 	 *
366 	 * Deprecated: Use JavaScriptCore API instead
367 	 *
368 	 * Params:
369 	 *     value = A #gchar
370 	 */
371 	public void setLongDesc(string value)
372 	{
373 		webkit_dom_html_image_element_set_long_desc(webKitDOMHTMLImageElement, Str.toStringz(value));
374 	}
375 
376 	/**
377 	 *
378 	 *
379 	 * Deprecated: Use JavaScriptCore API instead
380 	 *
381 	 * Params:
382 	 *     value = A #gchar
383 	 */
384 	public void setLowsrc(string value)
385 	{
386 		webkit_dom_html_image_element_set_lowsrc(webKitDOMHTMLImageElement, Str.toStringz(value));
387 	}
388 
389 	/**
390 	 *
391 	 *
392 	 * Deprecated: Use JavaScriptCore API instead
393 	 *
394 	 * Params:
395 	 *     value = A #gchar
396 	 */
397 	public void setName(string value)
398 	{
399 		webkit_dom_html_image_element_set_name(webKitDOMHTMLImageElement, Str.toStringz(value));
400 	}
401 
402 	/**
403 	 *
404 	 *
405 	 * Deprecated: Use JavaScriptCore API instead
406 	 *
407 	 * Params:
408 	 *     value = A #gchar
409 	 */
410 	public void setSrc(string value)
411 	{
412 		webkit_dom_html_image_element_set_src(webKitDOMHTMLImageElement, Str.toStringz(value));
413 	}
414 
415 	/**
416 	 *
417 	 *
418 	 * Deprecated: Use JavaScriptCore API instead
419 	 *
420 	 * Params:
421 	 *     value = A #gchar
422 	 */
423 	public void setUseMap(string value)
424 	{
425 		webkit_dom_html_image_element_set_use_map(webKitDOMHTMLImageElement, Str.toStringz(value));
426 	}
427 
428 	/**
429 	 *
430 	 *
431 	 * Deprecated: Use JavaScriptCore API instead
432 	 *
433 	 * Params:
434 	 *     value = A #glong
435 	 */
436 	public void setVspace(glong value)
437 	{
438 		webkit_dom_html_image_element_set_vspace(webKitDOMHTMLImageElement, value);
439 	}
440 
441 	/**
442 	 *
443 	 *
444 	 * Deprecated: Use JavaScriptCore API instead
445 	 *
446 	 * Params:
447 	 *     value = A #glong
448 	 */
449 	public void setWidth(glong value)
450 	{
451 		webkit_dom_html_image_element_set_width(webKitDOMHTMLImageElement, value);
452 	}
453 }