Added support for app stylesheets and window mode 85/91085/5
authorNick Holland <nick.holland@partner.samsung.com>
Wed, 5 Oct 2016 14:16:20 +0000 (15:16 +0100)
committerMuhammad Umar <m.umar@partner.samsung.com>
Mon, 10 Oct 2016 11:00:48 +0000 (04:00 -0700)
To use:

NewApplication();  // defaults to no stylesheet and OPAQUE window

NewApplication("mystylesheet"); // defaults to OPQAUE

NewApplication("mystylesheet", Application.WINDOW_MODE.TRANSPARENT);

NewApplication( Application.WINDOW_MODE.TRANSPARENT); // no style sheet

Change-Id: Ief4755e0892560eb4cba45ebf89a1d8ce103fa34

plugins/dali-swig/SWIG/events/application-event.i

index af9ebdf..f5154d3 100644 (file)
     }
 
     public static Application NewApplication() {
-      Application ret = New(1);
+      return NewApplication("",Application.WINDOW_MODE.OPAQUE);
+    }
+
+    public static Application NewApplication(string stylesheet) {
+      return NewApplication(stylesheet, Application.WINDOW_MODE.OPAQUE);
+    }
+
+    public static Application NewApplication(string stylesheet, Application.WINDOW_MODE windowMode) {
+
+      Application ret = New(1, stylesheet, windowMode);
       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
       // we've got an application now connect the signals
       return ret;
     }
 
+
     %}
     %enddef