[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetRootLayer")]
public static extern global::System.IntPtr GetRootLayer(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetOverlayLayer")]
+ public static extern global::System.IntPtr GetOverlayLayer(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_KeyEventSignal")]
public static extern global::System.IntPtr KeyEventSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
{
private HandleRef stageCPtr;
private Layer rootLayer;
+ private Layer overlayLayer;
private Layer borderLayer;
private string windowTitle;
private List<Layer> childLayers = new List<Layer>();
}
/// <summary>
+ /// Gets the overlay layer.
+ /// </summary>
+ /// <returns>The overlay layer.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Layer GetOverlayLayer()
+ {
+ // Window.IsInstalled() is actually true only when called from event thread and
+ // Core has been initialized, not when Stage is ready.
+ if (overlayLayer == null && Window.IsInstalled())
+ {
+ overlayLayer = new Layer(Interop.Window.GetOverlayLayer(SwigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ overlayLayer.SetWindow(this);
+ }
+ return overlayLayer;
+ }
+
+ /// <summary>
/// Add a child view to window.
/// </summary>
/// <param name="view">the child should be added to the window.</param>