1 module webkit2webextension.DOMHTMLTableSectionElement; 2 3 private import glib.ErrorG; 4 private import glib.GException; 5 private import glib.Str; 6 private import gobject.ObjectG; 7 private import webkit2webextension.DOMHTMLCollection; 8 private import webkit2webextension.DOMHTMLElement; 9 private import webkit2webextension.c.functions; 10 public import webkit2webextension.c.types; 11 12 13 /** */ 14 public class DOMHTMLTableSectionElement : DOMHTMLElement 15 { 16 /** the main Gtk struct */ 17 protected WebKitDOMHTMLTableSectionElement* webKitDOMHTMLTableSectionElement; 18 19 /** Get the main Gtk struct */ 20 public WebKitDOMHTMLTableSectionElement* getDOMHTMLTableSectionElementStruct(bool transferOwnership = false) 21 { 22 if (transferOwnership) 23 ownedRef = false; 24 return webKitDOMHTMLTableSectionElement; 25 } 26 27 /** the main Gtk struct as a void* */ 28 protected override void* getStruct() 29 { 30 return cast(void*)webKitDOMHTMLTableSectionElement; 31 } 32 33 /** 34 * Sets our main struct and passes it to the parent class. 35 */ 36 public this (WebKitDOMHTMLTableSectionElement* webKitDOMHTMLTableSectionElement, bool ownedRef = false) 37 { 38 this.webKitDOMHTMLTableSectionElement = webKitDOMHTMLTableSectionElement; 39 super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLTableSectionElement, ownedRef); 40 } 41 42 43 /** */ 44 public static GType getType() 45 { 46 return webkit_dom_html_table_section_element_get_type(); 47 } 48 49 /** 50 * 51 * 52 * Deprecated: Use JavaScriptCore API instead 53 * 54 * Params: 55 * index = A #glong 56 * 57 * Throws: GException on failure. 58 */ 59 public void deleteRow(glong index) 60 { 61 GError* err = null; 62 63 webkit_dom_html_table_section_element_delete_row(webKitDOMHTMLTableSectionElement, index, &err); 64 65 if (err !is null) 66 { 67 throw new GException( new ErrorG(err) ); 68 } 69 } 70 71 /** 72 * 73 * 74 * Deprecated: Use JavaScriptCore API instead 75 * 76 * Returns: A #gchar 77 */ 78 public string getAlign() 79 { 80 auto retStr = webkit_dom_html_table_section_element_get_align(webKitDOMHTMLTableSectionElement); 81 82 scope(exit) Str.freeString(retStr); 83 return Str.toString(retStr); 84 } 85 86 /** 87 * 88 * 89 * Deprecated: Use JavaScriptCore API instead 90 * 91 * Returns: A #gchar 92 */ 93 public string getCh() 94 { 95 auto retStr = webkit_dom_html_table_section_element_get_ch(webKitDOMHTMLTableSectionElement); 96 97 scope(exit) Str.freeString(retStr); 98 return Str.toString(retStr); 99 } 100 101 /** 102 * 103 * 104 * Deprecated: Use JavaScriptCore API instead 105 * 106 * Returns: A #gchar 107 */ 108 public string getChOff() 109 { 110 auto retStr = webkit_dom_html_table_section_element_get_ch_off(webKitDOMHTMLTableSectionElement); 111 112 scope(exit) Str.freeString(retStr); 113 return Str.toString(retStr); 114 } 115 116 /** 117 * 118 * 119 * Deprecated: Use JavaScriptCore API instead 120 * 121 * Returns: A #WebKitDOMHTMLCollection 122 */ 123 public DOMHTMLCollection getRows() 124 { 125 auto __p = webkit_dom_html_table_section_element_get_rows(webKitDOMHTMLTableSectionElement); 126 127 if(__p is null) 128 { 129 return null; 130 } 131 132 return ObjectG.getDObject!(DOMHTMLCollection)(cast(WebKitDOMHTMLCollection*) __p, true); 133 } 134 135 /** 136 * 137 * 138 * Deprecated: Use JavaScriptCore API instead 139 * 140 * Returns: A #gchar 141 */ 142 public string getVAlign() 143 { 144 auto retStr = webkit_dom_html_table_section_element_get_v_align(webKitDOMHTMLTableSectionElement); 145 146 scope(exit) Str.freeString(retStr); 147 return Str.toString(retStr); 148 } 149 150 /** 151 * 152 * 153 * Deprecated: Use JavaScriptCore API instead 154 * 155 * Params: 156 * index = A #glong 157 * 158 * Returns: A #WebKitDOMHTMLElement 159 * 160 * Throws: GException on failure. 161 */ 162 public DOMHTMLElement insertRow(glong index) 163 { 164 GError* err = null; 165 166 auto __p = webkit_dom_html_table_section_element_insert_row(webKitDOMHTMLTableSectionElement, index, &err); 167 168 if (err !is null) 169 { 170 throw new GException( new ErrorG(err) ); 171 } 172 173 if(__p is null) 174 { 175 return null; 176 } 177 178 return ObjectG.getDObject!(DOMHTMLElement)(cast(WebKitDOMHTMLElement*) __p); 179 } 180 181 /** 182 * 183 * 184 * Deprecated: Use JavaScriptCore API instead 185 * 186 * Params: 187 * value = A #gchar 188 */ 189 public void setAlign(string value) 190 { 191 webkit_dom_html_table_section_element_set_align(webKitDOMHTMLTableSectionElement, Str.toStringz(value)); 192 } 193 194 /** 195 * 196 * 197 * Deprecated: Use JavaScriptCore API instead 198 * 199 * Params: 200 * value = A #gchar 201 */ 202 public void setCh(string value) 203 { 204 webkit_dom_html_table_section_element_set_ch(webKitDOMHTMLTableSectionElement, Str.toStringz(value)); 205 } 206 207 /** 208 * 209 * 210 * Deprecated: Use JavaScriptCore API instead 211 * 212 * Params: 213 * value = A #gchar 214 */ 215 public void setChOff(string value) 216 { 217 webkit_dom_html_table_section_element_set_ch_off(webKitDOMHTMLTableSectionElement, Str.toStringz(value)); 218 } 219 220 /** 221 * 222 * 223 * Deprecated: Use JavaScriptCore API instead 224 * 225 * Params: 226 * value = A #gchar 227 */ 228 public void setVAlign(string value) 229 { 230 webkit_dom_html_table_section_element_set_v_align(webKitDOMHTMLTableSectionElement, Str.toStringz(value)); 231 } 232 }