/*
- * 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.
%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
%template(ApplicationSignal) Dali::Signal<void(Dali::Application&)>;
%template(ApplicationControlSignal) Dali::Signal<void(Dali::Application&, void*)>;
%template(TimerSignalType) Dali::Signal<bool()>;
+%template(WindowFocusSignalType) Dali::Signal<void(bool)>;
// Application specialisation