1 module webkit2webextension.DOMHTMLLIElement; 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 DOMHTMLLIElement : DOMHTMLElement 11 { 12 /** the main Gtk struct */ 13 protected WebKitDOMHTMLLIElement* webKitDOMHTMLLIElement; 14 15 /** Get the main Gtk struct */ 16 public WebKitDOMHTMLLIElement* getDOMHTMLLIElementStruct(bool transferOwnership = false) 17 { 18 if (transferOwnership) 19 ownedRef = false; 20 return webKitDOMHTMLLIElement; 21 } 22 23 /** the main Gtk struct as a void* */ 24 protected override void* getStruct() 25 { 26 return cast(void*)webKitDOMHTMLLIElement; 27 } 28 29 /** 30 * Sets our main struct and passes it to the parent class. 31 */ 32 public this (WebKitDOMHTMLLIElement* webKitDOMHTMLLIElement, bool ownedRef = false) 33 { 34 this.webKitDOMHTMLLIElement = webKitDOMHTMLLIElement; 35 super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLLIElement, ownedRef); 36 } 37 38 39 /** */ 40 public static GType getType() 41 { 42 return webkit_dom_html_li_element_get_type(); 43 } 44 45 /** 46 * 47 * 48 * Deprecated: Use JavaScriptCore API instead 49 * 50 * Returns: A #gchar 51 */ 52 public string getTypeAttr() 53 { 54 auto retStr = webkit_dom_html_li_element_get_type_attr(webKitDOMHTMLLIElement); 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 #glong 66 */ 67 public glong getValue() 68 { 69 return webkit_dom_html_li_element_get_value(webKitDOMHTMLLIElement); 70 } 71 72 /** 73 * 74 * 75 * Deprecated: Use JavaScriptCore API instead 76 * 77 * Params: 78 * value = A #gchar 79 */ 80 public void setTypeAttr(string value) 81 { 82 webkit_dom_html_li_element_set_type_attr(webKitDOMHTMLLIElement, Str.toStringz(value)); 83 } 84 85 /** 86 * 87 * 88 * Deprecated: Use JavaScriptCore API instead 89 * 90 * Params: 91 * value = A #glong 92 */ 93 public void setValue(glong value) 94 { 95 webkit_dom_html_li_element_set_value(webKitDOMHTMLLIElement, value); 96 } 97 }