[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_CursorVisibleSet")]
public static extern void CursorVisibleSet(global::System.Runtime.InteropServices.HandleRef window, bool visible);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_KeyboardGrab")]
+ [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
+ public static extern bool KeyboardGrab(global::System.Runtime.InteropServices.HandleRef window, uint deviceSubclass);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_KeyboardUnGrab")]
+ [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
+ public static extern bool KeyboardUnGrab(global::System.Runtime.InteropServices.HandleRef window);
}
}
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Requests grab key events according to the requested device subtype
+ /// </summary>
+ /// <param name="deviceSubclass">The deviceSubclass type.</param>
+ /// <returns>True if KeyboardGrab succeeds.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool KeyboardGrab(DeviceSubClassType deviceSubclass)
+ {
+ bool ret = Interop.Window.KeyboardGrab(SwigCPtr, (uint)deviceSubclass);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Requests ungrab key events
+ /// </summary>
+ /// <returns>True if KeyboardUnGrab succeeds.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool KeyboardUnGrab()
+ {
+ bool ret = Interop.Window.KeyboardUnGrab(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
/// <summary>
/// Maximizes window's size.