1 module webkit2webextension.DOMHTMLOListElement;
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 DOMHTMLOListElement : DOMHTMLElement
11 {
12 	/** the main Gtk struct */
13 	protected WebKitDOMHTMLOListElement* webKitDOMHTMLOListElement;
14 
15 	/** Get the main Gtk struct */
16 	public WebKitDOMHTMLOListElement* getDOMHTMLOListElementStruct(bool transferOwnership = false)
17 	{
18 		if (transferOwnership)
19 			ownedRef = false;
20 		return webKitDOMHTMLOListElement;
21 	}
22 
23 	/** the main Gtk struct as a void* */
24 	protected override void* getStruct()
25 	{
26 		return cast(void*)webKitDOMHTMLOListElement;
27 	}
28 
29 	/**
30 	 * Sets our main struct and passes it to the parent class.
31 	 */
32 	public this (WebKitDOMHTMLOListElement* webKitDOMHTMLOListElement, bool ownedRef = false)
33 	{
34 		this.webKitDOMHTMLOListElement = webKitDOMHTMLOListElement;
35 		super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLOListElement, ownedRef);
36 	}
37 
38 
39 	/** */
40 	public static GType getType()
41 	{
42 		return webkit_dom_html_o_list_element_get_type();
43 	}
44 
45 	/**
46 	 *
47 	 *
48 	 * Deprecated: Use JavaScriptCore API instead
49 	 *
50 	 * Returns: A #gboolean
51 	 */
52 	public bool getCompact()
53 	{
54 		return webkit_dom_html_o_list_element_get_compact(webKitDOMHTMLOListElement) != 0;
55 	}
56 
57 	/**
58 	 *
59 	 *
60 	 * Deprecated: Use JavaScriptCore API instead
61 	 *
62 	 * Returns: A #glong
63 	 */
64 	public glong getStart()
65 	{
66 		return webkit_dom_html_o_list_element_get_start(webKitDOMHTMLOListElement);
67 	}
68 
69 	/**
70 	 *
71 	 *
72 	 * Deprecated: Use JavaScriptCore API instead
73 	 *
74 	 * Returns: A #gchar
75 	 */
76 	public string getTypeAttr()
77 	{
78 		auto retStr = webkit_dom_html_o_list_element_get_type_attr(webKitDOMHTMLOListElement);
79 
80 		scope(exit) Str.freeString(retStr);
81 		return Str.toString(retStr);
82 	}
83 
84 	/**
85 	 *
86 	 *
87 	 * Deprecated: Use JavaScriptCore API instead
88 	 *
89 	 * Params:
90 	 *     value = A #gboolean
91 	 */
92 	public void setCompact(bool value)
93 	{
94 		webkit_dom_html_o_list_element_set_compact(webKitDOMHTMLOListElement, value);
95 	}
96 
97 	/**
98 	 *
99 	 *
100 	 * Deprecated: Use JavaScriptCore API instead
101 	 *
102 	 * Params:
103 	 *     value = A #glong
104 	 */
105 	public void setStart(glong value)
106 	{
107 		webkit_dom_html_o_list_element_set_start(webKitDOMHTMLOListElement, value);
108 	}
109 
110 	/**
111 	 *
112 	 *
113 	 * Deprecated: Use JavaScriptCore API instead
114 	 *
115 	 * Params:
116 	 *     value = A #gchar
117 	 */
118 	public void setTypeAttr(string value)
119 	{
120 		webkit_dom_html_o_list_element_set_type_attr(webKitDOMHTMLOListElement, Str.toStringz(value));
121 	}
122 }