1 module webkit2webextension.DOMBlob; 2 3 private import webkit2webextension.DOMObject; 4 private import webkit2webextension.c.functions; 5 public import webkit2webextension.c.types; 6 7 8 /** */ 9 public class DOMBlob : DOMObject 10 { 11 /** the main Gtk struct */ 12 protected WebKitDOMBlob* webKitDOMBlob; 13 14 /** Get the main Gtk struct */ 15 public WebKitDOMBlob* getDOMBlobStruct(bool transferOwnership = false) 16 { 17 if (transferOwnership) 18 ownedRef = false; 19 return webKitDOMBlob; 20 } 21 22 /** the main Gtk struct as a void* */ 23 protected override void* getStruct() 24 { 25 return cast(void*)webKitDOMBlob; 26 } 27 28 /** 29 * Sets our main struct and passes it to the parent class. 30 */ 31 public this (WebKitDOMBlob* webKitDOMBlob, bool ownedRef = false) 32 { 33 this.webKitDOMBlob = webKitDOMBlob; 34 super(cast(WebKitDOMObject*)webKitDOMBlob, ownedRef); 35 } 36 37 38 /** */ 39 public static GType getType() 40 { 41 return webkit_dom_blob_get_type(); 42 } 43 44 /** 45 * 46 * 47 * Deprecated: Use JavaScriptCore API instead 48 * 49 * Returns: A #guint64 50 */ 51 public ulong getSize() 52 { 53 return webkit_dom_blob_get_size(webKitDOMBlob); 54 } 55 }