1 module webkit2webextension.DOMProcessingInstruction;
2 
3 private import glib.Str;
4 private import gobject.ObjectG;
5 private import webkit2webextension.DOMCharacterData;
6 private import webkit2webextension.DOMStyleSheet;
7 private import webkit2webextension.c.functions;
8 public  import webkit2webextension.c.types;
9 
10 
11 /** */
12 public class DOMProcessingInstruction : DOMCharacterData
13 {
14 	/** the main Gtk struct */
15 	protected WebKitDOMProcessingInstruction* webKitDOMProcessingInstruction;
16 
17 	/** Get the main Gtk struct */
18 	public WebKitDOMProcessingInstruction* getDOMProcessingInstructionStruct(bool transferOwnership = false)
19 	{
20 		if (transferOwnership)
21 			ownedRef = false;
22 		return webKitDOMProcessingInstruction;
23 	}
24 
25 	/** the main Gtk struct as a void* */
26 	protected override void* getStruct()
27 	{
28 		return cast(void*)webKitDOMProcessingInstruction;
29 	}
30 
31 	/**
32 	 * Sets our main struct and passes it to the parent class.
33 	 */
34 	public this (WebKitDOMProcessingInstruction* webKitDOMProcessingInstruction, bool ownedRef = false)
35 	{
36 		this.webKitDOMProcessingInstruction = webKitDOMProcessingInstruction;
37 		super(cast(WebKitDOMCharacterData*)webKitDOMProcessingInstruction, ownedRef);
38 	}
39 
40 
41 	/** */
42 	public static GType getType()
43 	{
44 		return webkit_dom_processing_instruction_get_type();
45 	}
46 
47 	/**
48 	 *
49 	 *
50 	 * Deprecated: Use JavaScriptCore API instead
51 	 *
52 	 * Returns: A #WebKitDOMStyleSheet
53 	 */
54 	public DOMStyleSheet getSheet()
55 	{
56 		auto __p = webkit_dom_processing_instruction_get_sheet(webKitDOMProcessingInstruction);
57 
58 		if(__p is null)
59 		{
60 			return null;
61 		}
62 
63 		return ObjectG.getDObject!(DOMStyleSheet)(cast(WebKitDOMStyleSheet*) __p, true);
64 	}
65 
66 	/**
67 	 *
68 	 *
69 	 * Deprecated: Use JavaScriptCore API instead
70 	 *
71 	 * Returns: A #gchar
72 	 */
73 	public string getTarget()
74 	{
75 		auto retStr = webkit_dom_processing_instruction_get_target(webKitDOMProcessingInstruction);
76 
77 		scope(exit) Str.freeString(retStr);
78 		return Str.toString(retStr);
79 	}
80 }