[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_RequestResizeToServer")]
public static extern void RequestResizeToServer(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetWindow")]
+ public static extern global::System.IntPtr Get(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
}
}
/// <summary>
+ /// A helper method to get the current window where the view is added
+ /// </summary>
+ /// <param name="view">The View added to the window</param>
+ /// <returns>A Window.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static public Window Get(View view)
+ {
+ if(view == null)
+ {
+ NUILog.Error("if there is no view, it can not get a window");
+ return null;
+ }
+
+ Window ret = Registry.GetManagedBaseHandleFromNativePtr(Interop.Window.Get(View.getCPtr(view))) as Window;
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
/// Creates a new Window.<br />
/// This creates an extra window in addition to the default main window<br />
/// </summary>