1 module webkit2webextension.DOMHTMLOptGroupElement; 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 DOMHTMLOptGroupElement : DOMHTMLElement 11 { 12 /** the main Gtk struct */ 13 protected WebKitDOMHTMLOptGroupElement* webKitDOMHTMLOptGroupElement; 14 15 /** Get the main Gtk struct */ 16 public WebKitDOMHTMLOptGroupElement* getDOMHTMLOptGroupElementStruct(bool transferOwnership = false) 17 { 18 if (transferOwnership) 19 ownedRef = false; 20 return webKitDOMHTMLOptGroupElement; 21 } 22 23 /** the main Gtk struct as a void* */ 24 protected override void* getStruct() 25 { 26 return cast(void*)webKitDOMHTMLOptGroupElement; 27 } 28 29 /** 30 * Sets our main struct and passes it to the parent class. 31 */ 32 public this (WebKitDOMHTMLOptGroupElement* webKitDOMHTMLOptGroupElement, bool ownedRef = false) 33 { 34 this.webKitDOMHTMLOptGroupElement = webKitDOMHTMLOptGroupElement; 35 super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLOptGroupElement, ownedRef); 36 } 37 38 39 /** */ 40 public static GType getType() 41 { 42 return webkit_dom_html_opt_group_element_get_type(); 43 } 44 45 /** 46 * 47 * 48 * Deprecated: Use JavaScriptCore API instead 49 * 50 * Returns: A #gboolean 51 */ 52 public bool getDisabled() 53 { 54 return webkit_dom_html_opt_group_element_get_disabled(webKitDOMHTMLOptGroupElement) != 0; 55 } 56 57 /** 58 * 59 * 60 * Deprecated: Use JavaScriptCore API instead 61 * 62 * Returns: A #gchar 63 */ 64 public string getLabel() 65 { 66 auto retStr = webkit_dom_html_opt_group_element_get_label(webKitDOMHTMLOptGroupElement); 67 68 scope(exit) Str.freeString(retStr); 69 return Str.toString(retStr); 70 } 71 72 /** 73 * 74 * 75 * Deprecated: Use JavaScriptCore API instead 76 * 77 * Params: 78 * value = A #gboolean 79 */ 80 public void setDisabled(bool value) 81 { 82 webkit_dom_html_opt_group_element_set_disabled(webKitDOMHTMLOptGroupElement, value); 83 } 84 85 /** 86 * 87 * 88 * Deprecated: Use JavaScriptCore API instead 89 * 90 * Params: 91 * value = A #gchar 92 */ 93 public void setLabel(string value) 94 { 95 webkit_dom_html_opt_group_element_set_label(webKitDOMHTMLOptGroupElement, Str.toStringz(value)); 96 } 97 }