1 module webkit2webextension.DOMHTMLDocument;
2 
3 private import glib.Str;
4 private import gobject.ObjectG;
5 private import webkit2webextension.DOMDocument;
6 private import webkit2webextension.DOMHTMLCollection;
7 private import webkit2webextension.c.functions;
8 public  import webkit2webextension.c.types;
9 
10 
11 /** */
12 public class DOMHTMLDocument : DOMDocument
13 {
14 	/** the main Gtk struct */
15 	protected WebKitDOMHTMLDocument* webKitDOMHTMLDocument;
16 
17 	/** Get the main Gtk struct */
18 	public WebKitDOMHTMLDocument* getDOMHTMLDocumentStruct(bool transferOwnership = false)
19 	{
20 		if (transferOwnership)
21 			ownedRef = false;
22 		return webKitDOMHTMLDocument;
23 	}
24 
25 	/** the main Gtk struct as a void* */
26 	protected override void* getStruct()
27 	{
28 		return cast(void*)webKitDOMHTMLDocument;
29 	}
30 
31 	/**
32 	 * Sets our main struct and passes it to the parent class.
33 	 */
34 	public this (WebKitDOMHTMLDocument* webKitDOMHTMLDocument, bool ownedRef = false)
35 	{
36 		this.webKitDOMHTMLDocument = webKitDOMHTMLDocument;
37 		super(cast(WebKitDOMDocument*)webKitDOMHTMLDocument, ownedRef);
38 	}
39 
40 
41 	/** */
42 	public static GType getType()
43 	{
44 		return webkit_dom_html_document_get_type();
45 	}
46 
47 	/**
48 	 *
49 	 *
50 	 * Deprecated: Use JavaScriptCore API instead
51 	 */
52 	public void captureEvents()
53 	{
54 		webkit_dom_html_document_capture_events(webKitDOMHTMLDocument);
55 	}
56 
57 	/**
58 	 *
59 	 *
60 	 * Deprecated: Use JavaScriptCore API instead
61 	 */
62 	public void clear()
63 	{
64 		webkit_dom_html_document_clear(webKitDOMHTMLDocument);
65 	}
66 
67 	/**
68 	 *
69 	 *
70 	 * Deprecated: Use JavaScriptCore API instead
71 	 */
72 	public void close()
73 	{
74 		webkit_dom_html_document_close(webKitDOMHTMLDocument);
75 	}
76 
77 	/**
78 	 *
79 	 *
80 	 * Deprecated: Use JavaScriptCore API instead
81 	 *
82 	 * Returns: A #gchar
83 	 */
84 	public string getAlinkColor()
85 	{
86 		auto retStr = webkit_dom_html_document_get_alink_color(webKitDOMHTMLDocument);
87 
88 		scope(exit) Str.freeString(retStr);
89 		return Str.toString(retStr);
90 	}
91 
92 	/**
93 	 *
94 	 *
95 	 * Deprecated: Use JavaScriptCore API instead
96 	 *
97 	 * Returns: A #gchar
98 	 */
99 	public string getBgColor()
100 	{
101 		auto retStr = webkit_dom_html_document_get_bg_color(webKitDOMHTMLDocument);
102 
103 		scope(exit) Str.freeString(retStr);
104 		return Str.toString(retStr);
105 	}
106 
107 	/**
108 	 *
109 	 *
110 	 * Deprecated: Use webkit_dom_document_get_compat_mode() instead.
111 	 *
112 	 * Returns: A #gchar
113 	 */
114 	public override string getCompatMode()
115 	{
116 		auto retStr = webkit_dom_html_document_get_compat_mode(webKitDOMHTMLDocument);
117 
118 		scope(exit) Str.freeString(retStr);
119 		return Str.toString(retStr);
120 	}
121 
122 	/**
123 	 *
124 	 *
125 	 * Deprecated: Use webkit_dom_document_get_design_mode() instead.
126 	 *
127 	 * Returns: A #gchar
128 	 */
129 	public override string getDesignMode()
130 	{
131 		auto retStr = webkit_dom_html_document_get_design_mode(webKitDOMHTMLDocument);
132 
133 		scope(exit) Str.freeString(retStr);
134 		return Str.toString(retStr);
135 	}
136 
137 	/**
138 	 *
139 	 *
140 	 * Deprecated: Use JavaScriptCore API instead
141 	 *
142 	 * Returns: A #gchar
143 	 */
144 	public override string getDir()
145 	{
146 		auto retStr = webkit_dom_html_document_get_dir(webKitDOMHTMLDocument);
147 
148 		scope(exit) Str.freeString(retStr);
149 		return Str.toString(retStr);
150 	}
151 
152 	/**
153 	 *
154 	 *
155 	 * Deprecated: Use webkit_dom_document_get_embeds() instead.
156 	 *
157 	 * Returns: A #WebKitDOMHTMLCollection
158 	 */
159 	public override DOMHTMLCollection getEmbeds()
160 	{
161 		auto __p = webkit_dom_html_document_get_embeds(webKitDOMHTMLDocument);
162 
163 		if(__p is null)
164 		{
165 			return null;
166 		}
167 
168 		return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true);
169 	}
170 
171 	/**
172 	 *
173 	 *
174 	 * Deprecated: Use JavaScriptCore API instead
175 	 *
176 	 * Returns: A #gchar
177 	 */
178 	public string getFgColor()
179 	{
180 		auto retStr = webkit_dom_html_document_get_fg_color(webKitDOMHTMLDocument);
181 
182 		scope(exit) Str.freeString(retStr);
183 		return Str.toString(retStr);
184 	}
185 
186 	/**
187 	 *
188 	 *
189 	 * Deprecated: Use JavaScriptCore API instead
190 	 *
191 	 * Returns: A #glong
192 	 */
193 	public glong getHeight()
194 	{
195 		return webkit_dom_html_document_get_height(webKitDOMHTMLDocument);
196 	}
197 
198 	/**
199 	 *
200 	 *
201 	 * Deprecated: Use JavaScriptCore API instead
202 	 *
203 	 * Returns: A #gchar
204 	 */
205 	public string getLinkColor()
206 	{
207 		auto retStr = webkit_dom_html_document_get_link_color(webKitDOMHTMLDocument);
208 
209 		scope(exit) Str.freeString(retStr);
210 		return Str.toString(retStr);
211 	}
212 
213 	/**
214 	 *
215 	 *
216 	 * Deprecated: Use webkit_dom_document_get_plugins() instead.
217 	 *
218 	 * Returns: A #WebKitDOMHTMLCollection
219 	 */
220 	public override DOMHTMLCollection getPlugins()
221 	{
222 		auto __p = webkit_dom_html_document_get_plugins(webKitDOMHTMLDocument);
223 
224 		if(__p is null)
225 		{
226 			return null;
227 		}
228 
229 		return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true);
230 	}
231 
232 	/**
233 	 *
234 	 *
235 	 * Deprecated: Use webkit_dom_document_get_scripts() instead.
236 	 *
237 	 * Returns: A #WebKitDOMHTMLCollection
238 	 */
239 	public override DOMHTMLCollection getScripts()
240 	{
241 		auto __p = webkit_dom_html_document_get_scripts(webKitDOMHTMLDocument);
242 
243 		if(__p is null)
244 		{
245 			return null;
246 		}
247 
248 		return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true);
249 	}
250 
251 	/**
252 	 *
253 	 *
254 	 * Deprecated: Use JavaScriptCore API instead
255 	 *
256 	 * Returns: A #gchar
257 	 */
258 	public string getVlinkColor()
259 	{
260 		auto retStr = webkit_dom_html_document_get_vlink_color(webKitDOMHTMLDocument);
261 
262 		scope(exit) Str.freeString(retStr);
263 		return Str.toString(retStr);
264 	}
265 
266 	/**
267 	 *
268 	 *
269 	 * Deprecated: Use JavaScriptCore API instead
270 	 *
271 	 * Returns: A #glong
272 	 */
273 	public glong getWidth()
274 	{
275 		return webkit_dom_html_document_get_width(webKitDOMHTMLDocument);
276 	}
277 
278 	/**
279 	 *
280 	 *
281 	 * Deprecated: Use JavaScriptCore API instead
282 	 */
283 	public void releaseEvents()
284 	{
285 		webkit_dom_html_document_release_events(webKitDOMHTMLDocument);
286 	}
287 
288 	/**
289 	 *
290 	 *
291 	 * Deprecated: Use JavaScriptCore API instead
292 	 *
293 	 * Params:
294 	 *     value = A #gchar
295 	 */
296 	public void setAlinkColor(string value)
297 	{
298 		webkit_dom_html_document_set_alink_color(webKitDOMHTMLDocument, Str.toStringz(value));
299 	}
300 
301 	/**
302 	 *
303 	 *
304 	 * Deprecated: Use JavaScriptCore API instead
305 	 *
306 	 * Params:
307 	 *     value = A #gchar
308 	 */
309 	public void setBgColor(string value)
310 	{
311 		webkit_dom_html_document_set_bg_color(webKitDOMHTMLDocument, Str.toStringz(value));
312 	}
313 
314 	/**
315 	 *
316 	 *
317 	 * Deprecated: Use webkit_dom_document_set_design_mode() instead.
318 	 *
319 	 * Params:
320 	 *     value = A #gchar
321 	 */
322 	public override void setDesignMode(string value)
323 	{
324 		webkit_dom_html_document_set_design_mode(webKitDOMHTMLDocument, Str.toStringz(value));
325 	}
326 
327 	/**
328 	 *
329 	 *
330 	 * Deprecated: Use JavaScriptCore API instead
331 	 *
332 	 * Params:
333 	 *     value = A #gchar
334 	 */
335 	public override void setDir(string value)
336 	{
337 		webkit_dom_html_document_set_dir(webKitDOMHTMLDocument, Str.toStringz(value));
338 	}
339 
340 	/**
341 	 *
342 	 *
343 	 * Deprecated: Use JavaScriptCore API instead
344 	 *
345 	 * Params:
346 	 *     value = A #gchar
347 	 */
348 	public void setFgColor(string value)
349 	{
350 		webkit_dom_html_document_set_fg_color(webKitDOMHTMLDocument, Str.toStringz(value));
351 	}
352 
353 	/**
354 	 *
355 	 *
356 	 * Deprecated: Use JavaScriptCore API instead
357 	 *
358 	 * Params:
359 	 *     value = A #gchar
360 	 */
361 	public void setLinkColor(string value)
362 	{
363 		webkit_dom_html_document_set_link_color(webKitDOMHTMLDocument, Str.toStringz(value));
364 	}
365 
366 	/**
367 	 *
368 	 *
369 	 * Deprecated: Use JavaScriptCore API instead
370 	 *
371 	 * Params:
372 	 *     value = A #gchar
373 	 */
374 	public void setVlinkColor(string value)
375 	{
376 		webkit_dom_html_document_set_vlink_color(webKitDOMHTMLDocument, Str.toStringz(value));
377 	}
378 }