1 module webkit2.PointerLockPermissionRequest; 2 3 private import gobject.ObjectG; 4 private import webkit2.PermissionRequestIF; 5 private import webkit2.PermissionRequestT; 6 private import webkit2.c.functions; 7 public import webkit2.c.types; 8 9 10 /** 11 * WebKitPointerLockPermissionRequest represents a request for 12 * permission to decide whether WebKit can lock the pointer device when 13 * requested by web content. 14 * 15 * When a WebKitPointerLockPermissionRequest is not handled by the user, 16 * it is allowed by default. 17 * 18 * Since: 2.28 19 */ 20 public class PointerLockPermissionRequest : ObjectG, PermissionRequestIF 21 { 22 /** the main Gtk struct */ 23 protected WebKitPointerLockPermissionRequest* webKitPointerLockPermissionRequest; 24 25 /** Get the main Gtk struct */ 26 public WebKitPointerLockPermissionRequest* getPointerLockPermissionRequestStruct(bool transferOwnership = false) 27 { 28 if (transferOwnership) 29 ownedRef = false; 30 return webKitPointerLockPermissionRequest; 31 } 32 33 /** the main Gtk struct as a void* */ 34 protected override void* getStruct() 35 { 36 return cast(void*)webKitPointerLockPermissionRequest; 37 } 38 39 /** 40 * Sets our main struct and passes it to the parent class. 41 */ 42 public this (WebKitPointerLockPermissionRequest* webKitPointerLockPermissionRequest, bool ownedRef = false) 43 { 44 this.webKitPointerLockPermissionRequest = webKitPointerLockPermissionRequest; 45 super(cast(GObject*)webKitPointerLockPermissionRequest, ownedRef); 46 } 47 48 // add the PermissionRequest capabilities 49 mixin PermissionRequestT!(WebKitPointerLockPermissionRequest); 50 51 52 /** */ 53 public static GType getType() 54 { 55 return webkit_pointer_lock_permission_request_get_type(); 56 } 57 }