1 module webkit2webextension.DOMHTMLBaseFontElement; 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 DOMHTMLBaseFontElement : DOMHTMLElement 11 { 12 /** the main Gtk struct */ 13 protected WebKitDOMHTMLBaseFontElement* webKitDOMHTMLBaseFontElement; 14 15 /** Get the main Gtk struct */ 16 public WebKitDOMHTMLBaseFontElement* getDOMHTMLBaseFontElementStruct(bool transferOwnership = false) 17 { 18 if (transferOwnership) 19 ownedRef = false; 20 return webKitDOMHTMLBaseFontElement; 21 } 22 23 /** the main Gtk struct as a void* */ 24 protected override void* getStruct() 25 { 26 return cast(void*)webKitDOMHTMLBaseFontElement; 27 } 28 29 /** 30 * Sets our main struct and passes it to the parent class. 31 */ 32 public this (WebKitDOMHTMLBaseFontElement* webKitDOMHTMLBaseFontElement, bool ownedRef = false) 33 { 34 this.webKitDOMHTMLBaseFontElement = webKitDOMHTMLBaseFontElement; 35 super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLBaseFontElement, ownedRef); 36 } 37 38 39 /** */ 40 public static GType getType() 41 { 42 return webkit_dom_html_base_font_element_get_type(); 43 } 44 45 /** 46 * This function has been removed from the DOM spec and it just returns %NULL. 47 * 48 * Returns: A #gchar 49 */ 50 public string getColor() 51 { 52 auto retStr = webkit_dom_html_base_font_element_get_color(webKitDOMHTMLBaseFontElement); 53 54 scope(exit) Str.freeString(retStr); 55 return Str.toString(retStr); 56 } 57 58 /** 59 * This function has been removed from the DOM spec and it just returns %NULL. 60 * 61 * Returns: A #gchar 62 */ 63 public string getFace() 64 { 65 auto retStr = webkit_dom_html_base_font_element_get_face(webKitDOMHTMLBaseFontElement); 66 67 scope(exit) Str.freeString(retStr); 68 return Str.toString(retStr); 69 } 70 71 /** 72 * This function has been removed from the DOM spec and it just returns 0. 73 * 74 * Returns: A #glong 75 */ 76 public glong getSize() 77 { 78 return webkit_dom_html_base_font_element_get_size(webKitDOMHTMLBaseFontElement); 79 } 80 81 /** 82 * This function has been removed from the DOM spec and it does nothing. 83 * 84 * Params: 85 * value = A #gchar 86 */ 87 public void setColor(string value) 88 { 89 webkit_dom_html_base_font_element_set_color(webKitDOMHTMLBaseFontElement, Str.toStringz(value)); 90 } 91 92 /** 93 * This function has been removed from the DOM spec and it does nothing. 94 * 95 * Params: 96 * value = A #gchar 97 */ 98 public void setFace(string value) 99 { 100 webkit_dom_html_base_font_element_set_face(webKitDOMHTMLBaseFontElement, Str.toStringz(value)); 101 } 102 103 /** 104 * This function has been removed from the DOM spec and it does nothing. 105 * 106 * Params: 107 * value = A #glong 108 */ 109 public void setSize(glong value) 110 { 111 webkit_dom_html_base_font_element_set_size(webKitDOMHTMLBaseFontElement, value); 112 } 113 }