Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
{
// register all Views with the type registry, so that can be created / styled via JSON
//ViewRegistryHelper.Initialize(); //moved to Application side.
{
// register all Views with the type registry, so that can be created / styled via JSON
//ViewRegistryHelper.Initialize(); //moved to Application side.
+ if(_instance)
+ {
+ return _instance;
+ }
Application ret = New(1, stylesheet, windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Application ret = New(1, stylesheet, windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
public static Application NewApplication(string stylesheet, Application.WindowMode windowMode, Rectangle positionSize)
{
public static Application NewApplication(string stylesheet, Application.WindowMode windowMode, Rectangle positionSize)
{
+ if (_instance)
+ {
+ return _instance;
+ }
Application ret = New(1, stylesheet, windowMode, positionSize);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Application ret = New(1, stylesheet, windowMode, positionSize);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
public static Application NewApplication(string[] args, string stylesheet, Application.WindowMode windowMode)
{
public static Application NewApplication(string[] args, string stylesheet, Application.WindowMode windowMode)
{
+ if (_instance)
+ {
+ return _instance;
+ }
Application ret = New(args, stylesheet, (Application.WindowMode)windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Application ret = New(args, stylesheet, (Application.WindowMode)windowMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
public static Application NewApplication(string[] args, string stylesheet, Application.WindowMode windowMode, Rectangle positionSize)
{
public static Application NewApplication(string[] args, string stylesheet, Application.WindowMode windowMode, Rectangle positionSize)
{
+ if (_instance)
+ {
+ return _instance;
+ }
Application ret = New(args, stylesheet, (Application.WindowMode)windowMode, positionSize);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Application ret = New(args, stylesheet, (Application.WindowMode)windowMode, positionSize);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MakeCallback")]
public static extern global::System.IntPtr MakeCallback(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_MakeCallback")]
public static extern global::System.IntPtr MakeCallback(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_PreInitialize")]
+ public static extern void Application_PreInitialize();
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_New__SWIG_0")]
public static extern global::System.IntPtr Application_New__SWIG_0();
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_New__SWIG_0")]
public static extern global::System.IntPtr Application_New__SWIG_0();
public static extern global::System.IntPtr Application_New__SWIG_4(int jarg1, string jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5);
}
}
public static extern global::System.IntPtr Application_New__SWIG_4(int jarg1, string jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5);
}
}
-}
\ No newline at end of file
public void RequestLayout()
{
Flags = Flags | LayoutFlags.ForceLayout;
public void RequestLayout()
{
Flags = Flags | LayoutFlags.ForceLayout;
- Window.Instance.LayoutController.RequestLayout(this);
+ if (Parent != null)
+ {
+ LayoutGroup layoutGroup = Parent as LayoutGroup;
+ if(! layoutGroup.LayoutRequested)
+ {
+ layoutGroup.RequestLayout();
+ }
+ }
+
+
+ /// <summary>
+ /// This is used to improve application launch performance.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static public void PreLoad()
+ {
+ Interop.Application.Application_PreInitialize();
+ Application.NewApplication("", Application.WindowMode.Opaque);
+ NUIApplication.GetDefaultWindow();
+ }