Added C# bindings for Window Show/Hide
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / dali-adaptor.i
old mode 100644 (file)
new mode 100755 (executable)
index ddd74c3..5834e10
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,7 +25,9 @@
 %include <dali/public-api/adaptor-framework/style-change.h>
 %include <dali/public-api/adaptor-framework/timer.h>
 %include <dali/devel-api/adaptor-framework/drag-and-drop-detector.h>
+%include <dali/devel-api/adaptor-framework/application-extensions.h>
 %include <dali/public-api/adaptor-framework/window.h>
+%include <dali/devel-api/adaptor-framework/window-devel.h>
 
 #if defined(SWIGCSHARP)
 
   */
   public";
 
-%typemap(cscode) Dali::Application %{
-
-  private static  Application instance; // singleton
-
-  public delegate void InitDelegate();
-
-  public delegate void TerminateDelegate();
-
-  public delegate void PauseDelegate();
-
-  public delegate void ResumeDelegate();
-
-  public delegate void ResizeDelegate();
-
-  public delegate void AppControlDelegate();
-
-  public delegate void LanguageChangedDelegate();
-
-  public delegate void RegionChangedDelegate();
-
-  public delegate void BatteryLowDelegate();
-
-  public delegate void MemoryLowDelegate();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void InitDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void TerminateDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void PauseDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void ResumeDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void ResizeDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void AppControlDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void LanguageChangedDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void RegionChangedDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void BatteryLowDelegateInternal();
-
-  [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
-  internal delegate void MemoryLowDelegateInternal();
-
-  static void Initialize()
-  {
-  //   instance.InitDelegate();
-  }
-
- public static Application ApplicationFromPtr(global::System.IntPtr cPtr) {
-    Application ret = new Application(cPtr, false);
-       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-    return ret;
-  }
-
-  internal void SetupDelegates() {
-    InitDelegateInternal initializeCallback = new InitDelegateInternal( Initialize );
-    System.Console.WriteLine( "InitSignal connection count");
-
-    this.InitSignal().Connect( initializeCallback );
-    //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
- }
-
-   public static Application NewApplication() {
-    Application ret = New(1);
-       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
-    // we've got an application now connect the signals
-    ret.SetupDelegates();
-    // set the singleton
-
-    return ret;
-  }
-
-%}
-
 %typemap(in) ( int* argc, char **argv[]  ) {
 
   // Todo generate argv data from the C# args