1 module webkit2webextension.DOMHTMLMapElement;
2 
3 private import glib.Str;
4 private import gobject.ObjectG;
5 private import webkit2webextension.DOMHTMLCollection;
6 private import webkit2webextension.DOMHTMLElement;
7 private import webkit2webextension.c.functions;
8 public  import webkit2webextension.c.types;
9 
10 
11 /** */
12 public class DOMHTMLMapElement : DOMHTMLElement
13 {
14 	/** the main Gtk struct */
15 	protected WebKitDOMHTMLMapElement* webKitDOMHTMLMapElement;
16 
17 	/** Get the main Gtk struct */
18 	public WebKitDOMHTMLMapElement* getDOMHTMLMapElementStruct(bool transferOwnership = false)
19 	{
20 		if (transferOwnership)
21 			ownedRef = false;
22 		return webKitDOMHTMLMapElement;
23 	}
24 
25 	/** the main Gtk struct as a void* */
26 	protected override void* getStruct()
27 	{
28 		return cast(void*)webKitDOMHTMLMapElement;
29 	}
30 
31 	/**
32 	 * Sets our main struct and passes it to the parent class.
33 	 */
34 	public this (WebKitDOMHTMLMapElement* webKitDOMHTMLMapElement, bool ownedRef = false)
35 	{
36 		this.webKitDOMHTMLMapElement = webKitDOMHTMLMapElement;
37 		super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLMapElement, ownedRef);
38 	}
39 
40 
41 	/** */
42 	public static GType getType()
43 	{
44 		return webkit_dom_html_map_element_get_type();
45 	}
46 
47 	/**
48 	 *
49 	 *
50 	 * Deprecated: Use JavaScriptCore API instead
51 	 *
52 	 * Returns: A #WebKitDOMHTMLCollection
53 	 */
54 	public DOMHTMLCollection getAreas()
55 	{
56 		auto __p = webkit_dom_html_map_element_get_areas(webKitDOMHTMLMapElement);
57 
58 		if(__p is null)
59 		{
60 			return null;
61 		}
62 
63 		return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true);
64 	}
65 
66 	/**
67 	 *
68 	 *
69 	 * Deprecated: Use JavaScriptCore API instead
70 	 *
71 	 * Returns: A #gchar
72 	 */
73 	public string getName()
74 	{
75 		auto retStr = webkit_dom_html_map_element_get_name(webKitDOMHTMLMapElement);
76 
77 		scope(exit) Str.freeString(retStr);
78 		return Str.toString(retStr);
79 	}
80 
81 	/**
82 	 *
83 	 *
84 	 * Deprecated: Use JavaScriptCore API instead
85 	 *
86 	 * Params:
87 	 *     value = A #gchar
88 	 */
89 	public void setName(string value)
90 	{
91 		webkit_dom_html_map_element_set_name(webKitDOMHTMLMapElement, Str.toStringz(value));
92 	}
93 }